Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F166727843
D2155.id4455.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
833 B
Referenced Files
None
Subscribers
None
D2155.id4455.diff
View Options
Index: sys/dev/ofw/openfirm.c
===================================================================
--- sys/dev/ofw/openfirm.c
+++ sys/dev/ofw/openfirm.c
@@ -154,15 +154,15 @@
SYSINIT(xrefinfo, SI_SUB_KMEM, SI_ORDER_ANY, xrefinfo_init, NULL);
static struct xrefinfo *
-xrefinfo_find(phandle_t phandle, int find_by)
+xrefinfo_find(uintptr_t phandle, int find_by)
{
struct xrefinfo *rv, *xi;
rv = NULL;
mtx_lock(&xreflist_lock);
SLIST_FOREACH(xi, &xreflist, next_entry) {
- if ((find_by == FIND_BY_XREF && phandle == xi->xref) ||
- (find_by == FIND_BY_NODE && phandle == xi->node) ||
+ if ((find_by == FIND_BY_XREF && (phandle_t)phandle == xi->xref) ||
+ (find_by == FIND_BY_NODE && (phandle_t)phandle == xi->node) ||
(find_by == FIND_BY_DEV && phandle == (uintptr_t)xi->dev)) {
rv = xi;
break;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 16, 9:38 PM (3 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36841670
Default Alt Text
D2155.id4455.diff (833 B)
Attached To
Mode
D2155: Fix bug in xrefinfo_find() for 64-bit platforms
Attached
Detach File
Event Timeline
Log In to Comment