summaryrefslogtreecommitdiff
path: root/lib/usercopy.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2024-05-07 23:01:31 +0300
committerYury Norov <yury.norov@gmail.com>2024-05-19 16:12:38 -0700
commit9f2c2d6ba13da08643c65b948ce5e3d616864c47 (patch)
treeed722d46a1e9847db51651fff6aac385a9ba0e73 /lib/usercopy.c
parentfe708f915541b0b7b9ba066f73007fde69a0d2ea (diff)
bitops: Move aligned_byte_mask() to wordpart.h
The bitops.h is for bit related operations. The aligned_byte_mask() is about byte (or part of the machine word) operations, for which we have a separate header, move the mentioned macro to wordpart.h to consolidate similar operations. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Yury Norov <yury.norov@gmail.com>
Diffstat (limited to 'lib/usercopy.c')
-rw-r--r--lib/usercopy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/usercopy.c b/lib/usercopy.c
index d29fe29c6849..4b62e6299cc8 100644
--- a/lib/usercopy.c
+++ b/lib/usercopy.c
@@ -3,6 +3,7 @@
#include <linux/fault-inject-usercopy.h>
#include <linux/instrumented.h>
#include <linux/uaccess.h>
+#include <linux/wordpart.h>
#include <linux/nospec.h>
/* out-of-line parts */