summaryrefslogtreecommitdiffstats
path: root/fs/namei.c
diff options
context:
space:
mode:
authorTanzir Hasan <tanzirh@google.com>2023-12-26 19:00:00 +0100
committerKees Cook <keescook@chromium.org>2024-02-01 18:47:59 +0100
commit66a5c40f60f5d88ad8d47ba6a4ba05892853fa1f (patch)
tree63ee4c0ec6e43b5890cd0e0f168f8100e254c5b3 /fs/namei.c
parentlkdtm/bugs: In lkdtm_HUNG_TASK() use BUG(), not BUG_ON(1) (diff)
downloadlinux-66a5c40f60f5d88ad8d47ba6a4ba05892853fa1f.tar.xz
linux-66a5c40f60f5d88ad8d47ba6a4ba05892853fa1f.zip
kernel.h: removed REPEAT_BYTE from kernel.h
This patch creates wordpart.h and includes it in asm/word-at-a-time.h for all architectures. WORD_AT_A_TIME_CONSTANTS depends on kernel.h because of REPEAT_BYTE. Moving this to another header and including it where necessary allows us to not include the bloated kernel.h. Making this implicit dependency on REPEAT_BYTE explicit allows for later improvements in the lib/string.c inclusion list. Suggested-by: Al Viro <viro@zeniv.linux.org.uk> Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Tanzir Hasan <tanzirh@google.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/20231226-libstringheader-v6-1-80aa08c7652c@google.com Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'fs/namei.c')
-rw-r--r--fs/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 4e0de939fea1..6a548c2c40b9 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -17,8 +17,8 @@
#include <linux/init.h>
#include <linux/export.h>
-#include <linux/kernel.h>
#include <linux/slab.h>
+#include <linux/wordpart.h>
#include <linux/fs.h>
#include <linux/filelock.h>
#include <linux/namei.h>