summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2025-12-14 16:51:56 -0800
committerAndrew Morton <akpm@linux-foundation.org>2026-01-20 19:44:19 -0800
commit24c776355f4097316a763005434ffff716aa21a8 (patch)
tree86b46217929d6d4f06abba4a84343ad3afe6cbd6 /fs
parent6dcd539f062d89127cb3a84a7da373a9bd28ba7b (diff)
downloadlinux-next-24c776355f4097316a763005434ffff716aa21a8.tar.gz
linux-next-24c776355f4097316a763005434ffff716aa21a8.zip
kernel.h: drop hex.h and update all hex.h users
Remove <linux/hex.h> from <linux/kernel.h> and update all users/callers of hex.h interfaces to directly #include <linux/hex.h> as part of the process of putting kernel.h on a diet. Removing hex.h from kernel.h means that 36K C source files don't have to pay the price of parsing hex.h for the roughly 120 C source files that need it. This change has been build-tested with allmodconfig on most ARCHes. Also, all users/callers of <linux/hex.h> in the entire source tree have been updated if needed (if not already #included). Link: https://lkml.kernel.org/r/20251215005206.2362276-1-rdunlap@infradead.org Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Yury Norov (NVIDIA) <yury.norov@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/adfs/dir.c1
-rw-r--r--fs/binfmt_misc.c1
-rw-r--r--fs/ecryptfs/ecryptfs_kernel.h1
-rw-r--r--fs/efivarfs/vars.c1
-rw-r--r--fs/fat/dir.c1
-rw-r--r--fs/fat/namei_vfat.c1
-rw-r--r--fs/gfs2/lock_dlm.c1
-rw-r--r--fs/nfsd/nfs4recover.c1
-rw-r--r--fs/ntfs3/ntfs_fs.h1
-rw-r--r--fs/overlayfs/namei.c1
-rw-r--r--fs/proc/array.c1
-rw-r--r--fs/seq_file.c1
-rw-r--r--fs/udf/unicode.c1
13 files changed, 13 insertions, 0 deletions
diff --git a/fs/adfs/dir.c b/fs/adfs/dir.c
index 77fbd196008f..4f9dc276da6f 100644
--- a/fs/adfs/dir.c
+++ b/fs/adfs/dir.c
@@ -6,6 +6,7 @@
*
* Common directory handling for ADFS
*/
+#include <linux/hex.h>
#include <linux/slab.h>
#include "adfs.h"
diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c
index 8cb1a94339b8..2b772613a74c 100644
--- a/fs/binfmt_misc.c
+++ b/fs/binfmt_misc.c
@@ -12,6 +12,7 @@
#include <linux/kernel.h>
#include <linux/module.h>
+#include <linux/hex.h>
#include <linux/init.h>
#include <linux/sched/mm.h>
#include <linux/magic.h>
diff --git a/fs/ecryptfs/ecryptfs_kernel.h b/fs/ecryptfs/ecryptfs_kernel.h
index 62a2ea7f59ed..0acc1e638454 100644
--- a/fs/ecryptfs/ecryptfs_kernel.h
+++ b/fs/ecryptfs/ecryptfs_kernel.h
@@ -21,6 +21,7 @@
#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/fs_stack.h>
+#include <linux/hex.h>
#include <linux/namei.h>
#include <linux/scatterlist.h>
#include <linux/hash.h>
diff --git a/fs/efivarfs/vars.c b/fs/efivarfs/vars.c
index 6edc10958ecf..798a1bc36022 100644
--- a/fs/efivarfs/vars.c
+++ b/fs/efivarfs/vars.c
@@ -9,6 +9,7 @@
#include <linux/capability.h>
#include <linux/types.h>
#include <linux/errno.h>
+#include <linux/hex.h>
#include <linux/init.h>
#include <linux/mm.h>
#include <linux/module.h>
diff --git a/fs/fat/dir.c b/fs/fat/dir.c
index 92b091783966..af7dedf8adcb 100644
--- a/fs/fat/dir.c
+++ b/fs/fat/dir.c
@@ -16,6 +16,7 @@
#include <linux/slab.h>
#include <linux/compat.h>
+#include <linux/hex.h>
#include <linux/uaccess.h>
#include <linux/iversion.h>
#include "fat.h"
diff --git a/fs/fat/namei_vfat.c b/fs/fat/namei_vfat.c
index 5dbc4cbb8fce..4f3cc2b3089e 100644
--- a/fs/fat/namei_vfat.c
+++ b/fs/fat/namei_vfat.c
@@ -20,6 +20,7 @@
#include <linux/ctype.h>
#include <linux/slab.h>
#include <linux/namei.h>
+#include <linux/hex.h>
#include <linux/kernel.h>
#include <linux/iversion.h>
#include "fat.h"
diff --git a/fs/gfs2/lock_dlm.c b/fs/gfs2/lock_dlm.c
index b8d249925395..065ade6a1192 100644
--- a/fs/gfs2/lock_dlm.c
+++ b/fs/gfs2/lock_dlm.c
@@ -8,6 +8,7 @@
#include <linux/fs.h>
#include <linux/dlm.h>
+#include <linux/hex.h>
#include <linux/slab.h>
#include <linux/types.h>
#include <linux/delay.h>
diff --git a/fs/nfsd/nfs4recover.c b/fs/nfsd/nfs4recover.c
index 441dfbfe2d2b..1e6b2dd47ba7 100644
--- a/fs/nfsd/nfs4recover.c
+++ b/fs/nfsd/nfs4recover.c
@@ -39,6 +39,7 @@
#include <linux/namei.h>
#include <linux/sched.h>
#include <linux/fs.h>
+#include <linux/hex.h>
#include <linux/module.h>
#include <net/net_namespace.h>
#include <linux/sunrpc/rpc_pipe_fs.h>
diff --git a/fs/ntfs3/ntfs_fs.h b/fs/ntfs3/ntfs_fs.h
index a4559c9f64e6..f18349689458 100644
--- a/fs/ntfs3/ntfs_fs.h
+++ b/fs/ntfs3/ntfs_fs.h
@@ -14,6 +14,7 @@
#include <linux/fs.h>
#include <linux/highmem.h>
#include <linux/kernel.h>
+#include <linux/hex.h>
#include <linux/mm.h>
#include <linux/mutex.h>
#include <linux/page-flags.h>
diff --git a/fs/overlayfs/namei.c b/fs/overlayfs/namei.c
index e9a69c95be91..cda26bdef3b9 100644
--- a/fs/overlayfs/namei.c
+++ b/fs/overlayfs/namei.c
@@ -7,6 +7,7 @@
#include <linux/fs.h>
#include <linux/cred.h>
#include <linux/ctype.h>
+#include <linux/hex.h>
#include <linux/namei.h>
#include <linux/xattr.h>
#include <linux/ratelimit.h>
diff --git a/fs/proc/array.c b/fs/proc/array.c
index 42932f88141a..39e9246f6e4a 100644
--- a/fs/proc/array.c
+++ b/fs/proc/array.c
@@ -55,6 +55,7 @@
#include <linux/types.h>
#include <linux/errno.h>
+#include <linux/hex.h>
#include <linux/time.h>
#include <linux/time_namespace.h>
#include <linux/kernel.h>
diff --git a/fs/seq_file.c b/fs/seq_file.c
index 8bbb1ad46335..8894cbde8d3a 100644
--- a/fs/seq_file.c
+++ b/fs/seq_file.c
@@ -11,6 +11,7 @@
#include <linux/cache.h>
#include <linux/fs.h>
#include <linux/export.h>
+#include <linux/hex.h>
#include <linux/seq_file.h>
#include <linux/vmalloc.h>
#include <linux/slab.h>
diff --git a/fs/udf/unicode.c b/fs/udf/unicode.c
index 32c7f3d27f74..87580ff827ee 100644
--- a/fs/udf/unicode.c
+++ b/fs/udf/unicode.c
@@ -16,6 +16,7 @@
#include "udfdecl.h"
+#include <linux/hex.h>
#include <linux/kernel.h>
#include <linux/string.h> /* for memset */
#include <linux/nls.h>