Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115425402
D49971.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
733 B
Referenced Files
None
Subscribers
None
D49971.id.diff
View Options
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -160,7 +160,7 @@
caddr_t __read_mostly unmapped_buf;
#ifdef INVARIANTS
-caddr_t poisoned_buf = (void *)-1;
+void *poisoned_buf = (void *)-1;
#endif
/* Used below and for softdep flushing threads in ufs/ffs/ffs_softdep.c */
diff --git a/sys/sys/kassert.h b/sys/sys/kassert.h
--- a/sys/sys/kassert.h
+++ b/sys/sys/kassert.h
@@ -51,11 +51,11 @@
*/
#ifdef INVARIANTS
-extern caddr_t poisoned_buf;
+extern void *poisoned_buf;
#define DEBUG_POISON_POINTER_VALUE poisoned_buf
#define DEBUG_POISON_POINTER(x) ({ \
- x = (void *)(DEBUG_POISON_POINTER_VALUE); \
+ x = (DEBUG_POISON_POINTER_VALUE); \
})
#else
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 24, 4:43 PM (18 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17762034
Default Alt Text
D49971.id.diff (733 B)
Attached To
Mode
D49971: kassert: Turn 'poisoned_buf' into a 'void *'
Attached
Detach File
Event Timeline
Log In to Comment