Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154615613
D53135.id164287.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
558 B
Referenced Files
None
Subscribers
None
D53135.id164287.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/bitops.h b/sys/compat/linuxkpi/common/include/linux/bitops.h
--- a/sys/compat/linuxkpi/common/include/linux/bitops.h
+++ b/sys/compat/linuxkpi/common/include/linux/bitops.h
@@ -37,12 +37,7 @@
#define BIT(nr) (1UL << (nr))
#define BIT_ULL(nr) (1ULL << (nr))
-#ifdef __LP64__
-#define BITS_PER_LONG 64
-#else
-#define BITS_PER_LONG 32
-#endif
-
+#define BITS_PER_LONG (sizeof(long) * 8)
#define BITS_PER_LONG_LONG 64
#define BITMAP_FIRST_WORD_MASK(start) (~0UL << ((start) % BITS_PER_LONG))
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 30, 1:25 AM (5 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32425665
Default Alt Text
D53135.id164287.diff (558 B)
Attached To
Mode
D53135: linuxkpi: Fix the definition of BITS_PER_LONG
Attached
Detach File
Event Timeline
Log In to Comment