]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
kernel.h: drop hex.h and update all hex.h users
authorRandy Dunlap <rdunlap@infradead.org>
Mon, 15 Dec 2025 00:51:56 +0000 (16:51 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 21 Jan 2026 03:44:19 +0000 (19:44 -0800)
commit24c776355f4097316a763005434ffff716aa21a8
tree86b46217929d6d4f06abba4a84343ad3afe6cbd6
parent6dcd539f062d89127cb3a84a7da373a9bd28ba7b
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>
123 files changed:
arch/mips/kernel/setup.c
arch/mips/rb532/devices.c
arch/powerpc/kernel/btext.c
arch/s390/kernel/alternative.c
arch/s390/kernel/stackprotector.c
arch/um/drivers/vector_kern.c
arch/xtensa/platforms/iss/network.c
certs/blacklist.c
crypto/asymmetric_keys/asymmetric_type.c
crypto/asymmetric_keys/x509_public_key.c
crypto/krb5/selftest.c
drivers/atm/nicstar.c
drivers/auxdisplay/hd44780_common.c
drivers/auxdisplay/lcd2s.c
drivers/bus/moxtet.c
drivers/char/tpm/tpm.h
drivers/comedi/drivers/jr3_pci.c
drivers/firmware/broadcom/bcm47xx_sprom.c
drivers/gpio/gpio-macsmc.c
drivers/hid/hid-picolcd_debugfs.c
drivers/hwmon/pmbus/q54sj108a2.c
drivers/hwmon/pmbus/ucd9000.c
drivers/infiniband/ulp/srp/ib_srp.c
drivers/infiniband/ulp/srpt/ib_srpt.c
drivers/input/touchscreen/iqs5xx.c
drivers/md/dm-crypt.c
drivers/md/dm-integrity.c
drivers/md/dm-verity-target.c
drivers/media/cec/usb/extron-da-hd-4k-plus/extron-da-hd-4k-plus.c
drivers/media/cec/usb/rainshadow/rainshadow-cec.c
drivers/media/i2c/ccs/ccs-reg-access.c
drivers/media/usb/pvrusb2/pvrusb2-debugifc.c
drivers/misc/kgdbts.c
drivers/misc/pch_phub.c
drivers/net/bonding/bond_options.c
drivers/net/can/can327.c
drivers/net/can/slcan/slcan-core.c
drivers/net/ethernet/chelsio/cxgb3/common.h
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_dbg.c
drivers/net/ethernet/micrel/ksz884x.c
drivers/net/ethernet/pasemi/pasemi_mac.c
drivers/net/netconsole.c
drivers/net/netdevsim/dev.c
drivers/net/usb/r8152.c
drivers/net/usb/usbnet.c
drivers/net/wireless/ath/ath6kl/debug.c
drivers/net/wireless/intel/iwlwifi/fw/debugfs.c
drivers/net/wireless/intel/iwlwifi/mld/debugfs.c
drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h
drivers/net/wireless/realtek/rtw89/debug.c
drivers/net/wireless/silabs/wfx/fwio.c
drivers/nvme/target/configfs.c
drivers/nvme/target/core.c
drivers/nvmem/brcm_nvram.c
drivers/nvmem/layouts/u-boot-env.c
drivers/platform/x86/intel/wmi/thunderbolt.c
drivers/pnp/support.c
drivers/ptp/ptp_pch.c
drivers/s390/cio/blacklist.c
drivers/s390/crypto/ap_bus.c
drivers/s390/crypto/zcrypt_cex4.c
drivers/s390/virtio/virtio_ccw.c
drivers/scsi/aacraid/rx.c
drivers/scsi/ips.c
drivers/scsi/libsas/sas_scsi_host.c
drivers/scsi/qla2xxx/tcm_qla2xxx.c
drivers/scsi/scsi_transport_fc.c
drivers/staging/rtl8723bs/core/rtw_ieee80211.c
drivers/target/iscsi/iscsi_target_auth.c
drivers/target/target_core_fabric_lib.c
drivers/target/target_core_spc.c
drivers/target/tcm_fc/tfc_conf.c
drivers/thunderbolt/switch.c
drivers/tty/vt/vt.c
drivers/ufs/core/ufshcd.c
drivers/usb/atm/speedtch.c
drivers/usb/atm/ueagle-atm.c
drivers/usb/gadget/function/u_ether.c
drivers/usb/gadget/function/uvc_configfs.c
drivers/usb/typec/ucsi/debugfs.c
drivers/usb/typec/ucsi/ucsi_ccg.c
drivers/watchdog/hpwdt.c
fs/adfs/dir.c
fs/binfmt_misc.c
fs/ecryptfs/ecryptfs_kernel.h
fs/efivarfs/vars.c
fs/fat/dir.c
fs/fat/namei_vfat.c
fs/gfs2/lock_dlm.c
fs/nfsd/nfs4recover.c
fs/ntfs3/ntfs_fs.h
fs/overlayfs/namei.c
fs/proc/array.c
fs/seq_file.c
fs/udf/unicode.c
include/linux/kernel.h
kernel/audit.c
kernel/bpf/core.c
kernel/bpf/syscall.c
kernel/debug/gdbstub.c
lib/hexdump.c
lib/string_helpers.c
lib/uuid.c
lib/vsprintf.c
net/bridge/br_sysfs_br.c
net/core/pktgen.c
net/core/utils.c
net/ipv4/arp.c
net/mac80211/debugfs_netdev.c
net/sunrpc/cache.c
net/tipc/core.h
security/integrity/evm/evm_crypto.c
security/integrity/ima/ima_api.c
security/ipe/digest.c
security/keys/encrypted-keys/encrypted.c
security/keys/trusted-keys/trusted_core.c
security/keys/trusted-keys/trusted_tpm1.c
security/loadpin/loadpin.c
security/selinux/selinuxfs.c
sound/pci/riptide/riptide.c
sound/usb/6fire/firmware.c