Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161611710
D56441.id175705.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D56441.id175705.diff
View Options
Index: sys/compat/linuxkpi/common/include/linux/compiler.h
===================================================================
--- sys/compat/linuxkpi/common/include/linux/compiler.h
+++ sys/compat/linuxkpi/common/include/linux/compiler.h
@@ -66,9 +66,6 @@
#define barrier() __asm__ __volatile__("": : :"memory")
-#define lower_32_bits(n) ((u32)(n))
-#define upper_32_bits(n) ((u32)(((n) >> 16) >> 16))
-
#define WRITE_ONCE(x,v) do { \
barrier(); \
(*(volatile __typeof(x) *)(uintptr_t)&(x)) = (v); \
Index: sys/compat/linuxkpi/common/include/linux/kernel.h
===================================================================
--- sys/compat/linuxkpi/common/include/linux/kernel.h
+++ sys/compat/linuxkpi/common/include/linux/kernel.h
@@ -56,6 +56,7 @@
#include <linux/log2.h>
#include <linux/kconfig.h>
#include <linux/instruction_pointer.h>
+#include <linux/wordpart.h>
#include <asm/byteorder.h>
#include <asm/cpufeature.h>
Index: sys/compat/linuxkpi/common/include/linux/wordpart.h
===================================================================
--- /dev/null
+++ sys/compat/linuxkpi/common/include/linux/wordpart.h
@@ -0,0 +1,16 @@
+/*
+ * SPDX-License-Identifier: BSD-2-Clause
+ *
+ * Copyright (c) 2010 Isilon Systems, Inc.
+ * Copyright (c) 2010 iX Systems, Inc.
+ * Copyright (c) 2010 Panasas, Inc.
+ * Copyright (c) 2013-2016 Mellanox Technologies, Ltd.
+ * Copyright (c) 2015 François Tigeot
+ */
+#ifndef _LINUXKPI_LINUX_WORDPART_H_
+#define _LINUXKPI_LINUX_WORDPART_H_
+
+#define lower_32_bits(n) ((u32)(n))
+#define upper_32_bits(n) ((u32)(((n) >> 16) >> 16))
+
+#endif /* _LINUXKPI_LINUX_WORDPART_H_ */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jul 6, 7:33 AM (10 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34745008
Default Alt Text
D56441.id175705.diff (1 KB)
Attached To
Mode
D56441: linuxkpi: Move {lower,upper}_32_bits macros to <linux/wordpart.h>
Attached
Detach File
Event Timeline
Log In to Comment