From b8fd5ea8ff378f7b856fdf8768c7790a36ad7b19 Mon Sep 17 00:00:00 2001 From: "Matthew Wilcox (Oracle)" Date: Thu, 13 Aug 2026 08:46:44 -0400 Subject: alpha: Fix pgd_t dependency asm-generic/pgtable-nop4d.h uses pgd_t so we need to include first. Presumably this is usually covered up by other includes of asm/page.h first, but a lone inclusion of linux/pgtable.h will hit this dependency problem. Signed-off-by: Matthew Wilcox (Oracle) --- arch/alpha/include/asm/pgtable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/alpha/include/asm/pgtable.h b/arch/alpha/include/asm/pgtable.h index 8e00cf9dc39d..0ba22c8c2ff2 100644 --- a/arch/alpha/include/asm/pgtable.h +++ b/arch/alpha/include/asm/pgtable.h @@ -2,6 +2,7 @@ #ifndef _ALPHA_PGTABLE_H #define _ALPHA_PGTABLE_H +#include #include /* @@ -13,7 +14,6 @@ */ #include -#include #include /* For TASK_SIZE */ #include #include -- cgit v1.2.3 From 3509b4c26f336f3d0e74cab0c04c55b5fc6342f0 Mon Sep 17 00:00:00 2001 From: "Matthew Wilcox (Oracle)" Date: Thu, 13 Aug 2026 08:46:44 -0400 Subject: arc: Fix pgd_t dependency asm-generic/pgtable-nop4d.h uses pgd_t so we need to include first. Presumably this is usually covered up by other includes of asm/page.h first, but a lone inclusion of linux/pgtable.h will hit this dependency problem. Signed-off-by: Matthew Wilcox (Oracle) --- arch/arc/include/asm/pgtable-levels.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arc/include/asm/pgtable-levels.h b/arch/arc/include/asm/pgtable-levels.h index c8f9273372c0..82544e671011 100644 --- a/arch/arc/include/asm/pgtable-levels.h +++ b/arch/arc/include/asm/pgtable-levels.h @@ -87,6 +87,8 @@ #ifndef __ASSEMBLER__ +#include + #if CONFIG_PGTABLE_LEVELS > 3 #include #elif CONFIG_PGTABLE_LEVELS > 2 -- cgit v1.2.3 From 65b22e9b6f0a0b714fb9c2ad86047db636e7850f Mon Sep 17 00:00:00 2001 From: "Matthew Wilcox (Oracle)" Date: Wed, 19 Aug 2026 23:23:16 -0400 Subject: microblaze: Fix pgd_t dependency asm-generic/pgtable-nop4d.h uses pgd_t so we need to include first. Presumably this is usually covered up by other includes of asm/page.h first, but a lone inclusion of linux/pgtable.h will hit this dependency problem. Signed-off-by: Matthew Wilcox (Oracle) --- arch/microblaze/include/asm/pgtable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/microblaze/include/asm/pgtable.h b/arch/microblaze/include/asm/pgtable.h index 7678c040a2fd..6d42c18a0d4b 100644 --- a/arch/microblaze/include/asm/pgtable.h +++ b/arch/microblaze/include/asm/pgtable.h @@ -14,6 +14,7 @@ extern int mem_init_done; #endif +#include #include #ifdef __KERNEL__ @@ -23,7 +24,6 @@ extern int mem_init_done; #include #include /* For TASK_SIZE */ #include -#include extern unsigned long va_to_phys(unsigned long address); extern pte_t *va_to_pte(unsigned long address); -- cgit v1.2.3 From 8f9e7b9670bcda52bf3bf3e0fa926005ab361e38 Mon Sep 17 00:00:00 2001 From: "Matthew Wilcox (Oracle)" Date: Fri, 14 Aug 2026 11:38:33 -0400 Subject: sh: Fix pgd_t dependency asm-generic/pgtable-nop4d.h uses pgd_t so we need to include first. Presumably this is usually covered up by other includes of asm/page.h first, but a lone inclusion of linux/pgtable.h will hit this dependency problem. Signed-off-by: Matthew Wilcox (Oracle) --- arch/sh/include/asm/pgtable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sh/include/asm/pgtable.h b/arch/sh/include/asm/pgtable.h index d5ce0950a323..59244af775fd 100644 --- a/arch/sh/include/asm/pgtable.h +++ b/arch/sh/include/asm/pgtable.h @@ -9,12 +9,12 @@ #ifndef __ASM_SH_PGTABLE_H #define __ASM_SH_PGTABLE_H +#include #ifdef CONFIG_X2TLB #include #else #include #endif -#include #include #ifndef __ASSEMBLER__ -- cgit v1.2.3 From 5046db841c50ae0945d7f3e9f6e0815491a1f189 Mon Sep 17 00:00:00 2001 From: "Matthew Wilcox (Oracle)" Date: Fri, 14 Aug 2026 11:38:33 -0400 Subject: sparc: Fix pgd_t dependency asm-generic/pgtable-nop4d.h uses pgd_t so we need to include first. Presumably this is usually covered up by other includes of asm/page.h first, but a lone inclusion of linux/pgtable.h will hit this dependency problem. Signed-off-by: Matthew Wilcox (Oracle) --- arch/sparc/include/asm/pgtable_64.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sparc/include/asm/pgtable_64.h b/arch/sparc/include/asm/pgtable_64.h index 0837ebbc5dce..c548dcca0e8c 100644 --- a/arch/sparc/include/asm/pgtable_64.h +++ b/arch/sparc/include/asm/pgtable_64.h @@ -13,6 +13,7 @@ * the SpitFire page tables. */ +#include #include #include #include @@ -20,7 +21,6 @@ #include #include #include -#include #include /* The kernel image occupies 0x4000000 to 0x6000000 (4MB --> 96MB). -- cgit v1.2.3 From 372c1254a10712f04cc47fa96b6627b58f091eb6 Mon Sep 17 00:00:00 2001 From: "Matthew Wilcox (Oracle)" Date: Tue, 11 Aug 2026 14:51:44 -0400 Subject: headers: Remove swap.h from suspend.h Nothing in suspend.h needs swap.h. However, many files indirectly depend on some of swap.h's dependencies, so this is a large cross-subsystem patch. Stats: 42 are missing includes of interrupt.h (the question of why swap.h brings in interrupt.h remains unanswered). 10 missing includes of seq_file.h 5 missing includes of swap.h (obviously all files could have just added swap.h, but I preferred to bring in a more minimal inclusion set) 3 missing includes of highmem.h 2 missing includes of device.h 2 missing includes of string_choices.h 1 missing include of cacheflush.h 1 missing include of dma-direction.h 1 missing include of kthread.h 1 missing include of pagemap.h 1 missing include of string_helpers.h 1 missing include of writeback.h I tried to follow whatever conventions appeared to be in use for the various subsystems I touched; for example I added string_choices.h to drm_print.h instead of individually to each driver which used the functions declared there. Signed-off-by: Matthew Wilcox (Oracle) --- arch/arm/mach-pxa/pxa3xx.c | 1 + arch/x86/virt/vmx/tdx/tdx.c | 1 + arch/xtensa/kernel/hibernate.c | 1 + block/fops.c | 1 + drivers/dma/ste_dma40.c | 1 + drivers/gpu/drm/display/drm_dp_cec.c | 1 + drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 1 + drivers/gpu/drm/i915/display/intel_display_power.c | 1 + drivers/gpu/drm/msm/msm_fb.c | 2 ++ drivers/gpu/drm/msm/msm_gem_shrinker.c | 2 ++ drivers/gpu/drm/omapdrm/dss/hdmi4.c | 1 + drivers/gpu/drm/omapdrm/dss/hdmi5.c | 1 + drivers/gpu/drm/panel/panel-ilitek-ili9806e-core.c | 1 + drivers/gpu/drm/panfrost/panfrost_gem.c | 2 ++ drivers/gpu/drm/panthor/panthor_gem.c | 3 +++ drivers/hwmon/pmbus/pmbus_core.c | 1 + drivers/i2c/busses/i2c-amd-asf-plat.c | 1 + drivers/i2c/busses/i2c-gxp.c | 1 + drivers/i2c/busses/i2c-k1.c | 1 + drivers/i2c/busses/i2c-pasemi-platform.c | 1 + drivers/iio/accel/fxls8962af-core.c | 1 + drivers/iio/adc/nct7201.c | 1 + drivers/iio/adc/ti-ads1298.c | 1 + drivers/iio/light/rohm-bu27034.c | 1 + drivers/iio/pressure/bmp280-core.c | 1 + drivers/iio/pressure/bmp280.h | 1 + drivers/input/misc/aw86927.c | 1 + drivers/input/touchscreen/goodix_berlin_core.c | 1 + drivers/input/touchscreen/hynitron_cstxxx.c | 1 + drivers/input/touchscreen/imagis.c | 1 + drivers/leds/leds-turris-omnia.c | 1 + drivers/media/platform/st/stm32/stm32-csi.c | 1 + drivers/mfd/88pm886.c | 1 + drivers/mfd/abx500-core.c | 1 + drivers/mfd/adp5585.c | 1 + drivers/mfd/cs40l50-core.c | 1 + drivers/mfd/cs42l43.c | 1 + drivers/mfd/rt5120.c | 1 + drivers/mfd/tps65219.c | 1 + drivers/mfd/twl-core.c | 2 +- drivers/phy/st/phy-stm32-combophy.c | 1 + drivers/pinctrl/pinctrl-sx150x.c | 1 + drivers/platform/arm64/huawei-gaokun-ec.c | 1 + drivers/platform/arm64/lenovo-yoga-c630.c | 2 +- drivers/platform/x86/intel/int3472/clk_and_regulator.c | 1 + drivers/power/supply/bq25630_charger.c | 1 + drivers/power/supply/rk817_charger.c | 2 +- drivers/regulator/fixed.c | 1 + drivers/regulator/fp9931.c | 1 + drivers/regulator/mt6360-regulator.c | 1 + drivers/regulator/qcom-labibb-regulator.c | 1 + drivers/regulator/rtq2208-regulator.c | 1 + drivers/regulator/tps65185.c | 1 + drivers/regulator/tps65219-regulator.c | 1 + drivers/regulator/tps6594-regulator.c | 1 + drivers/soc/xilinx/zynqmp_power.c | 1 + drivers/ufs/host/ufs-mediatek.c | 1 + drivers/ufs/host/ufs-qcom.c | 1 + drivers/usb/core/hcd.c | 1 + drivers/usb/typec/mux/it5205.c | 1 + drivers/usb/typec/wusb3801.c | 1 + drivers/video/fbdev/core/fb_procfs.c | 1 + drivers/xen/balloon.c | 1 + fs/buffer.c | 1 + include/drm/drm_print.h | 1 + include/linux/i3c/master.h | 1 + include/linux/suspend.h | 1 - include/sound/cs35l41.h | 1 + kernel/power/snapshot.c | 1 + sound/soc/codecs/cs35l41-lib.c | 1 + 70 files changed, 74 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-pxa/pxa3xx.c b/arch/arm/mach-pxa/pxa3xx.c index 06c578ea658e..ce9e41848665 100644 --- a/arch/arm/mach-pxa/pxa3xx.c +++ b/arch/arm/mach-pxa/pxa3xx.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include diff --git a/arch/x86/virt/vmx/tdx/tdx.c b/arch/x86/virt/vmx/tdx/tdx.c index 1b9ff749dd8e..3636a4d6ab8b 100644 --- a/arch/x86/virt/vmx/tdx/tdx.c +++ b/arch/x86/virt/vmx/tdx/tdx.c @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include diff --git a/arch/xtensa/kernel/hibernate.c b/arch/xtensa/kernel/hibernate.c index 06984327d6e2..fba3ab10c0eb 100644 --- a/arch/xtensa/kernel/hibernate.c +++ b/arch/xtensa/kernel/hibernate.c @@ -3,6 +3,7 @@ #include #include #include +#include int pfn_is_nosave(unsigned long pfn) { diff --git a/block/fops.c b/block/fops.c index 2ce7c6c4714e..cb9960879c44 100644 --- a/block/fops.c +++ b/block/fops.c @@ -6,6 +6,7 @@ */ #include #include +#include #include #include #include diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c index 0d9ffa3e2663..42906b394df8 100644 --- a/drivers/dma/ste_dma40.c +++ b/drivers/dma/ste_dma40.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/gpu/drm/display/drm_dp_cec.c b/drivers/gpu/drm/display/drm_dp_cec.c index 436bfe9f9081..476a4aa55fa6 100644 --- a/drivers/gpu/drm/display/drm_dp_cec.c +++ b/drivers/gpu/drm/display/drm_dp_cec.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c index 5c23182f4d33..bfcb2328f5c0 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include diff --git a/drivers/gpu/drm/i915/display/intel_display_power.c b/drivers/gpu/drm/i915/display/intel_display_power.c index 0ebec6e0c240..ee2a2bc1332b 100644 --- a/drivers/gpu/drm/i915/display/intel_display_power.c +++ b/drivers/gpu/drm/i915/display/intel_display_power.c @@ -5,6 +5,7 @@ #include #include +#include #include #include diff --git a/drivers/gpu/drm/msm/msm_fb.c b/drivers/gpu/drm/msm/msm_fb.c index 9b681e144c07..e8954e6a5f43 100644 --- a/drivers/gpu/drm/msm/msm_fb.c +++ b/drivers/gpu/drm/msm/msm_fb.c @@ -4,6 +4,8 @@ * Author: Rob Clark */ +#include + #include #include #include diff --git a/drivers/gpu/drm/msm/msm_gem_shrinker.c b/drivers/gpu/drm/msm/msm_gem_shrinker.c index 9d2788f79ace..e4bc21b7d9a8 100644 --- a/drivers/gpu/drm/msm/msm_gem_shrinker.c +++ b/drivers/gpu/drm/msm/msm_gem_shrinker.c @@ -4,6 +4,8 @@ * Author: Rob Clark */ +#include +#include #include #include diff --git a/drivers/gpu/drm/omapdrm/dss/hdmi4.c b/drivers/gpu/drm/omapdrm/dss/hdmi4.c index 61cfd003569c..33a1421c0d86 100644 --- a/drivers/gpu/drm/omapdrm/dss/hdmi4.c +++ b/drivers/gpu/drm/omapdrm/dss/hdmi4.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/gpu/drm/omapdrm/dss/hdmi5.c b/drivers/gpu/drm/omapdrm/dss/hdmi5.c index 1ee3bbe20583..7911d4a416da 100644 --- a/drivers/gpu/drm/omapdrm/dss/hdmi5.c +++ b/drivers/gpu/drm/omapdrm/dss/hdmi5.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9806e-core.c b/drivers/gpu/drm/panel/panel-ilitek-ili9806e-core.c index 53e25d1086db..1a5b7438ee1c 100644 --- a/drivers/gpu/drm/panel/panel-ilitek-ili9806e-core.c +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9806e-core.c @@ -8,6 +8,7 @@ #include #include +#include #include #include #include diff --git a/drivers/gpu/drm/panfrost/panfrost_gem.c b/drivers/gpu/drm/panfrost/panfrost_gem.c index 3a7fce428898..68546925f16b 100644 --- a/drivers/gpu/drm/panfrost/panfrost_gem.c +++ b/drivers/gpu/drm/panfrost/panfrost_gem.c @@ -7,6 +7,8 @@ #include #include #include +#include +#include #include #include diff --git a/drivers/gpu/drm/panthor/panthor_gem.c b/drivers/gpu/drm/panthor/panthor_gem.c index b090b01211ad..3b36cb5e3cc7 100644 --- a/drivers/gpu/drm/panthor/panthor_gem.c +++ b/drivers/gpu/drm/panthor/panthor_gem.c @@ -9,6 +9,9 @@ #include #include #include +#include +#include +#include #include #include diff --git a/drivers/hwmon/pmbus/pmbus_core.c b/drivers/hwmon/pmbus/pmbus_core.c index 806c9a4913bb..e81f49915bac 100644 --- a/drivers/hwmon/pmbus/pmbus_core.c +++ b/drivers/hwmon/pmbus/pmbus_core.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/i2c/busses/i2c-amd-asf-plat.c b/drivers/i2c/busses/i2c-amd-asf-plat.c index 5968953e483a..8030b353944f 100644 --- a/drivers/i2c/busses/i2c-amd-asf-plat.c +++ b/drivers/i2c/busses/i2c-amd-asf-plat.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/i2c/busses/i2c-gxp.c b/drivers/i2c/busses/i2c-gxp.c index f9a5465f52da..ad98f3348144 100644 --- a/drivers/i2c/busses/i2c-gxp.c +++ b/drivers/i2c/busses/i2c-gxp.c @@ -4,6 +4,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/i2c/busses/i2c-k1.c b/drivers/i2c/busses/i2c-k1.c index ee75eee15c10..1c2f331f6f1e 100644 --- a/drivers/i2c/busses/i2c-k1.c +++ b/drivers/i2c/busses/i2c-k1.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/i2c/busses/i2c-pasemi-platform.c b/drivers/i2c/busses/i2c-pasemi-platform.c index a486a37d3863..f6d98647f9df 100644 --- a/drivers/i2c/busses/i2c-pasemi-platform.c +++ b/drivers/i2c/busses/i2c-pasemi-platform.c @@ -7,6 +7,7 @@ #include #include +#include #include #include #include diff --git a/drivers/iio/accel/fxls8962af-core.c b/drivers/iio/accel/fxls8962af-core.c index d0c2a8daef0d..26ce3c8f6c42 100644 --- a/drivers/iio/accel/fxls8962af-core.c +++ b/drivers/iio/accel/fxls8962af-core.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/iio/adc/nct7201.c b/drivers/iio/adc/nct7201.c index bea88a9b9440..cc4d758af12f 100644 --- a/drivers/iio/adc/nct7201.c +++ b/drivers/iio/adc/nct7201.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/iio/adc/ti-ads1298.c b/drivers/iio/adc/ti-ads1298.c index 9e47ace16acd..89bc56e87b31 100644 --- a/drivers/iio/adc/ti-ads1298.c +++ b/drivers/iio/adc/ti-ads1298.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/iio/light/rohm-bu27034.c b/drivers/iio/light/rohm-bu27034.c index 28d111ac8c0a..4e0c6abc80c5 100644 --- a/drivers/iio/light/rohm-bu27034.c +++ b/drivers/iio/light/rohm-bu27034.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/iio/pressure/bmp280-core.c b/drivers/iio/pressure/bmp280-core.c index 990340a9b10c..ac65070a332c 100644 --- a/drivers/iio/pressure/bmp280-core.c +++ b/drivers/iio/pressure/bmp280-core.c @@ -46,6 +46,7 @@ #include #include #include +#include #include #include diff --git a/drivers/iio/pressure/bmp280.h b/drivers/iio/pressure/bmp280.h index 25bb9c743a05..d19fb33e3a15 100644 --- a/drivers/iio/pressure/bmp280.h +++ b/drivers/iio/pressure/bmp280.h @@ -1,6 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0 */ #include #include +#include #include #include diff --git a/drivers/input/misc/aw86927.c b/drivers/input/misc/aw86927.c index f53b8f004cb3..1f73f063690e 100644 --- a/drivers/input/misc/aw86927.c +++ b/drivers/input/misc/aw86927.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/input/touchscreen/goodix_berlin_core.c b/drivers/input/touchscreen/goodix_berlin_core.c index b0938a4f3fec..2311b3e091ef 100644 --- a/drivers/input/touchscreen/goodix_berlin_core.c +++ b/drivers/input/touchscreen/goodix_berlin_core.c @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/input/touchscreen/hynitron_cstxxx.c b/drivers/input/touchscreen/hynitron_cstxxx.c index 49fb35c830dc..3a54a3e6a365 100644 --- a/drivers/input/touchscreen/hynitron_cstxxx.c +++ b/drivers/input/touchscreen/hynitron_cstxxx.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/input/touchscreen/imagis.c b/drivers/input/touchscreen/imagis.c index 7bbb00beec3b..5ca19ab7a73c 100644 --- a/drivers/input/touchscreen/imagis.c +++ b/drivers/input/touchscreen/imagis.c @@ -4,6 +4,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/leds/leds-turris-omnia.c b/drivers/leds/leds-turris-omnia.c index ed6a47bbb44f..3df3c8340b94 100644 --- a/drivers/leds/leds-turris-omnia.c +++ b/drivers/leds/leds-turris-omnia.c @@ -6,6 +6,7 @@ */ #include +#include #include #include #include diff --git a/drivers/media/platform/st/stm32/stm32-csi.c b/drivers/media/platform/st/stm32/stm32-csi.c index fd2b6dfbd44c..3dfd670bb64c 100644 --- a/drivers/media/platform/st/stm32/stm32-csi.c +++ b/drivers/media/platform/st/stm32/stm32-csi.c @@ -9,6 +9,7 @@ #include #include +#include #include #include #include diff --git a/drivers/mfd/88pm886.c b/drivers/mfd/88pm886.c index e411d8dee554..4cf56daa2dd8 100644 --- a/drivers/mfd/88pm886.c +++ b/drivers/mfd/88pm886.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only #include +#include #include #include #include diff --git a/drivers/mfd/abx500-core.c b/drivers/mfd/abx500-core.c index e896531d0354..46f4d7dfcc6a 100644 --- a/drivers/mfd/abx500-core.c +++ b/drivers/mfd/abx500-core.c @@ -5,6 +5,7 @@ * Author: Mattias Wallin */ +#include #include #include #include diff --git a/drivers/mfd/adp5585.c b/drivers/mfd/adp5585.c index aad1d734baeb..3ef0a3b0fb6d 100644 --- a/drivers/mfd/adp5585.c +++ b/drivers/mfd/adp5585.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/mfd/cs40l50-core.c b/drivers/mfd/cs40l50-core.c index 662d987b650b..56bb5f1499a3 100644 --- a/drivers/mfd/cs40l50-core.c +++ b/drivers/mfd/cs40l50-core.c @@ -8,6 +8,7 @@ * Author: James Ogletree */ +#include #include #include #include diff --git a/drivers/mfd/cs42l43.c b/drivers/mfd/cs42l43.c index ed6d93893de0..600b0ae69877 100644 --- a/drivers/mfd/cs42l43.c +++ b/drivers/mfd/cs42l43.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/mfd/rt5120.c b/drivers/mfd/rt5120.c index a229eb292484..c468b1cf730b 100644 --- a/drivers/mfd/rt5120.c +++ b/drivers/mfd/rt5120.c @@ -5,6 +5,7 @@ */ #include +#include #include #include #include diff --git a/drivers/mfd/tps65219.c b/drivers/mfd/tps65219.c index e52fbf1481fe..f8c08dd86618 100644 --- a/drivers/mfd/tps65219.c +++ b/drivers/mfd/tps65219.c @@ -6,6 +6,7 @@ // Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/ #include +#include #include #include diff --git a/drivers/mfd/twl-core.c b/drivers/mfd/twl-core.c index c024a28b057e..4f6093cbbefe 100644 --- a/drivers/mfd/twl-core.c +++ b/drivers/mfd/twl-core.c @@ -25,7 +25,7 @@ #include #include #include -#include +#include #include #include diff --git a/drivers/phy/st/phy-stm32-combophy.c b/drivers/phy/st/phy-stm32-combophy.c index 607b4d607eb5..ca4a472f954f 100644 --- a/drivers/phy/st/phy-stm32-combophy.c +++ b/drivers/phy/st/phy-stm32-combophy.c @@ -8,6 +8,7 @@ #include #include +#include #include #include #include diff --git a/drivers/pinctrl/pinctrl-sx150x.c b/drivers/pinctrl/pinctrl-sx150x.c index b59d913513d5..e3802a773a31 100644 --- a/drivers/pinctrl/pinctrl-sx150x.c +++ b/drivers/pinctrl/pinctrl-sx150x.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/platform/arm64/huawei-gaokun-ec.c b/drivers/platform/arm64/huawei-gaokun-ec.c index 80a8ba8b8dda..6f75e339564e 100644 --- a/drivers/platform/arm64/huawei-gaokun-ec.c +++ b/drivers/platform/arm64/huawei-gaokun-ec.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/platform/arm64/lenovo-yoga-c630.c b/drivers/platform/arm64/lenovo-yoga-c630.c index a8600a977fbc..76e60d24a576 100644 --- a/drivers/platform/arm64/lenovo-yoga-c630.c +++ b/drivers/platform/arm64/lenovo-yoga-c630.c @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/drivers/platform/x86/intel/int3472/clk_and_regulator.c b/drivers/platform/x86/intel/int3472/clk_and_regulator.c index 9e052b164a1a..f2f71142867c 100644 --- a/drivers/platform/x86/intel/int3472/clk_and_regulator.c +++ b/drivers/platform/x86/intel/int3472/clk_and_regulator.c @@ -9,6 +9,7 @@ #include #include #include +#include /* * 82c0d13a-78c5-4244-9bb1-eb8b539a8d11 diff --git a/drivers/power/supply/bq25630_charger.c b/drivers/power/supply/bq25630_charger.c index 200f74f8eab6..cdae7f180cea 100644 --- a/drivers/power/supply/bq25630_charger.c +++ b/drivers/power/supply/bq25630_charger.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include diff --git a/drivers/power/supply/rk817_charger.c b/drivers/power/supply/rk817_charger.c index 5558b182a1a6..cf2ba6c31623 100644 --- a/drivers/power/supply/rk817_charger.c +++ b/drivers/power/supply/rk817_charger.c @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/drivers/regulator/fixed.c b/drivers/regulator/fixed.c index 417d282dd4ed..2e8ccfcb6b8b 100644 --- a/drivers/regulator/fixed.c +++ b/drivers/regulator/fixed.c @@ -15,6 +15,7 @@ */ #include +#include #include #include #include diff --git a/drivers/regulator/fp9931.c b/drivers/regulator/fp9931.c index ff743a8b0dfe..48c3b21ebafc 100644 --- a/drivers/regulator/fp9931.c +++ b/drivers/regulator/fp9931.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/regulator/mt6360-regulator.c b/drivers/regulator/mt6360-regulator.c index ed25e9603b2b..daef54ea4e6e 100644 --- a/drivers/regulator/mt6360-regulator.c +++ b/drivers/regulator/mt6360-regulator.c @@ -5,6 +5,7 @@ // Author: Gene Chen #include +#include #include #include #include diff --git a/drivers/regulator/qcom-labibb-regulator.c b/drivers/regulator/qcom-labibb-regulator.c index 1b14015caca6..4e089a75cd65 100644 --- a/drivers/regulator/qcom-labibb-regulator.c +++ b/drivers/regulator/qcom-labibb-regulator.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-only // Copyright (c) 2020, The Linux Foundation. All rights reserved. +#include #include #include #include diff --git a/drivers/regulator/rtq2208-regulator.c b/drivers/regulator/rtq2208-regulator.c index b4eb5d3eb5bd..bd48c97b8ada 100644 --- a/drivers/regulator/rtq2208-regulator.c +++ b/drivers/regulator/rtq2208-regulator.c @@ -5,6 +5,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/regulator/tps65185.c b/drivers/regulator/tps65185.c index 1f13e4156cab..14d04c1a55f2 100644 --- a/drivers/regulator/tps65185.c +++ b/drivers/regulator/tps65185.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/regulator/tps65219-regulator.c b/drivers/regulator/tps65219-regulator.c index a667c3f44bb7..c2b474dfedac 100644 --- a/drivers/regulator/tps65219-regulator.c +++ b/drivers/regulator/tps65219-regulator.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/regulator/tps6594-regulator.c b/drivers/regulator/tps6594-regulator.c index 31a5218d5510..a54d88c58e7b 100644 --- a/drivers/regulator/tps6594-regulator.c +++ b/drivers/regulator/tps6594-regulator.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/soc/xilinx/zynqmp_power.c b/drivers/soc/xilinx/zynqmp_power.c index 54c796afb89e..82224346eb29 100644 --- a/drivers/soc/xilinx/zynqmp_power.c +++ b/drivers/soc/xilinx/zynqmp_power.c @@ -9,6 +9,7 @@ * Rajan Vaja */ +#include #include #include #include diff --git a/drivers/ufs/host/ufs-mediatek.c b/drivers/ufs/host/ufs-mediatek.c index 814c1b7343b9..865be3ddf448 100644 --- a/drivers/ufs/host/ufs-mediatek.c +++ b/drivers/ufs/host/ufs-mediatek.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/ufs/host/ufs-qcom.c b/drivers/ufs/host/ufs-qcom.c index 62396212a0a7..0f2e083b04fd 100644 --- a/drivers/ufs/host/ufs-qcom.c +++ b/drivers/ufs/host/ufs-qcom.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c index 8e8a5f59b319..a865a15ea386 100644 --- a/drivers/usb/core/hcd.c +++ b/drivers/usb/core/hcd.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/usb/typec/mux/it5205.c b/drivers/usb/typec/mux/it5205.c index 5e1a120b2e3b..146f0cc5bf4e 100644 --- a/drivers/usb/typec/mux/it5205.c +++ b/drivers/usb/typec/mux/it5205.c @@ -10,6 +10,7 @@ #include #include +#include #include #include #include diff --git a/drivers/usb/typec/wusb3801.c b/drivers/usb/typec/wusb3801.c index 6062875fb04a..3ca66138f7be 100644 --- a/drivers/usb/typec/wusb3801.c +++ b/drivers/usb/typec/wusb3801.c @@ -6,6 +6,7 @@ */ #include +#include #include #include #include diff --git a/drivers/video/fbdev/core/fb_procfs.c b/drivers/video/fbdev/core/fb_procfs.c index 59641142f8aa..3003fa62d342 100644 --- a/drivers/video/fbdev/core/fb_procfs.c +++ b/drivers/video/fbdev/core/fb_procfs.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0 #include +#include #include "fb_internal.h" diff --git a/drivers/xen/balloon.c b/drivers/xen/balloon.c index e7f74ea7cd5e..373042fe501b 100644 --- a/drivers/xen/balloon.c +++ b/drivers/xen/balloon.c @@ -48,6 +48,7 @@ #include #include #include +#include #include #include #include diff --git a/fs/buffer.c b/fs/buffer.c index ed966fa73b1b..c13b591e3748 100644 --- a/fs/buffer.c +++ b/fs/buffer.c @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include diff --git a/include/drm/drm_print.h b/include/drm/drm_print.h index 2adc5ac688e1..8ab7545f2786 100644 --- a/include/drm/drm_print.h +++ b/include/drm/drm_print.h @@ -28,6 +28,7 @@ #include #include +#include #include #include diff --git a/include/linux/i3c/master.h b/include/linux/i3c/master.h index 4d2a68793324..b74ccfa12548 100644 --- a/include/linux/i3c/master.h +++ b/include/linux/i3c/master.h @@ -11,6 +11,7 @@ #include #include +#include #include #include #include diff --git a/include/linux/suspend.h b/include/linux/suspend.h index b02876f1ae38..b1a1db042a45 100644 --- a/include/linux/suspend.h +++ b/include/linux/suspend.h @@ -2,7 +2,6 @@ #ifndef _LINUX_SUSPEND_H #define _LINUX_SUSPEND_H -#include #include #include #include diff --git a/include/sound/cs35l41.h b/include/sound/cs35l41.h index 7542cabfa726..c97db5816502 100644 --- a/include/sound/cs35l41.h +++ b/include/sound/cs35l41.h @@ -11,6 +11,7 @@ #define __CS35L41_H #include +#include #include #define CS35L41_FIRSTREG 0x00000000 diff --git a/kernel/power/snapshot.c b/kernel/power/snapshot.c index b209712cb2c3..54b60fdfe462 100644 --- a/kernel/power/snapshot.c +++ b/kernel/power/snapshot.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include diff --git a/sound/soc/codecs/cs35l41-lib.c b/sound/soc/codecs/cs35l41-lib.c index b0fa80705be7..c79b14f752f0 100644 --- a/sound/soc/codecs/cs35l41-lib.c +++ b/sound/soc/codecs/cs35l41-lib.c @@ -8,6 +8,7 @@ // Author: Lucas Tanure #include +#include #include #include #include -- cgit v1.2.3 From 1f88c0d0e50d88edc5c11b802d593e340d5b3b1c Mon Sep 17 00:00:00 2001 From: "Matthew Wilcox (Oracle)" Date: Mon, 10 Aug 2026 05:13:30 -0400 Subject: agp: Remove pagemap includes agp does not use the page cache and so does not need to include pagemap.h. This also removes a few indirect includes of highmem.h, kmsan.h and hugetlb_inline.h. The uninorth driver needs asm/cacheflush.h which was being pulled in through pagemap.h. Signed-off-by: Matthew Wilcox (Oracle) --- drivers/char/agp/backend.c | 1 - drivers/char/agp/generic.c | 1 - drivers/char/agp/intel-agp.c | 1 - drivers/char/agp/intel-gtt.c | 1 - drivers/char/agp/uninorth-agp.c | 3 ++- 5 files changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/char/agp/backend.c b/drivers/char/agp/backend.c index 8983addca695..5ce4ea4eb895 100644 --- a/drivers/char/agp/backend.c +++ b/drivers/char/agp/backend.c @@ -31,7 +31,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/char/agp/generic.c b/drivers/char/agp/generic.c index 41752ed2b075..417f007967a4 100644 --- a/drivers/char/agp/generic.c +++ b/drivers/char/agp/generic.c @@ -29,7 +29,6 @@ */ #include #include -#include #include #include #include diff --git a/drivers/char/agp/intel-agp.c b/drivers/char/agp/intel-agp.c index 3111e320b2c5..4c9a79a0bcc5 100644 --- a/drivers/char/agp/intel-agp.c +++ b/drivers/char/agp/intel-agp.c @@ -7,7 +7,6 @@ #include #include #include -#include #include #include #include "agp.h" diff --git a/drivers/char/agp/intel-gtt.c b/drivers/char/agp/intel-gtt.c index bcc26785175d..f589a6e02c65 100644 --- a/drivers/char/agp/intel-gtt.c +++ b/drivers/char/agp/intel-gtt.c @@ -18,7 +18,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/char/agp/uninorth-agp.c b/drivers/char/agp/uninorth-agp.c index 08175fe2f530..229294c15b40 100644 --- a/drivers/char/agp/uninorth-agp.c +++ b/drivers/char/agp/uninorth-agp.c @@ -7,10 +7,11 @@ #include #include #include -#include #include #include #include + +#include #include #include #include -- cgit v1.2.3 From dec9da157f4c210d4f73ac03a95dd71b5fbbff9e Mon Sep 17 00:00:00 2001 From: "Matthew Wilcox (Oracle)" Date: Mon, 10 Aug 2026 15:55:01 -0400 Subject: arch: Remove pagemap.h from arch includes There's no reason to include pagemap.h in any arch include file; these should all be too low-level to include pagemap.h. Some git archaelogy indicates that at one point, swap.h needed declarations from pagemap.h but couldn't include pagemap.h itself. That reason seems to have disappeared since swap.h now includes pagemap.h. Some of these files turn into just including the asm-generic version, so in those cases, modify Kbuild to just use the asm-generic version directly. Signed-off-by: Matthew Wilcox (Oracle) --- arch/arc/include/asm/Kbuild | 1 + arch/arc/include/asm/tlb.h | 12 ------------ arch/arm/include/asm/pgalloc.h | 2 -- arch/arm/include/asm/tlb.h | 2 -- arch/arm64/include/asm/tlb.h | 3 --- arch/hexagon/include/asm/tlb.h | 1 - arch/nios2/include/asm/tlb.h | 1 - arch/openrisc/include/asm/Kbuild | 1 + arch/openrisc/include/asm/tlb.h | 26 -------------------------- arch/powerpc/include/asm/tlb.h | 2 -- arch/sh/include/asm/tlb.h | 1 - arch/sparc/include/asm/tlb_64.h | 1 - arch/x86/include/asm/pgalloc.h | 1 - 13 files changed, 2 insertions(+), 52 deletions(-) delete mode 100644 arch/arc/include/asm/tlb.h delete mode 100644 arch/openrisc/include/asm/tlb.h diff --git a/arch/arc/include/asm/Kbuild b/arch/arc/include/asm/Kbuild index 483caacc6988..5a8ad8b9ad53 100644 --- a/arch/arc/include/asm/Kbuild +++ b/arch/arc/include/asm/Kbuild @@ -6,5 +6,6 @@ generic-y += kvm_para.h generic-y += mcs_spinlock.h generic-y += parport.h generic-y += ring_buffer.h +generic-y += tlb.h generic-y += user.h generic-y += text-patching.h diff --git a/arch/arc/include/asm/tlb.h b/arch/arc/include/asm/tlb.h deleted file mode 100644 index 975b35d3738d..000000000000 --- a/arch/arc/include/asm/tlb.h +++ /dev/null @@ -1,12 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ -/* - * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) - */ - -#ifndef _ASM_ARC_TLB_H -#define _ASM_ARC_TLB_H - -#include -#include - -#endif /* _ASM_ARC_TLB_H */ diff --git a/arch/arm/include/asm/pgalloc.h b/arch/arm/include/asm/pgalloc.h index a17f01235c29..25d78ee33fa7 100644 --- a/arch/arm/include/asm/pgalloc.h +++ b/arch/arm/include/asm/pgalloc.h @@ -7,8 +7,6 @@ #ifndef _ASMARM_PGALLOC_H #define _ASMARM_PGALLOC_H -#include - #include #include #include diff --git a/arch/arm/include/asm/tlb.h b/arch/arm/include/asm/tlb.h index ea4fbe7b17f6..1b8903a1ccf7 100644 --- a/arch/arm/include/asm/tlb.h +++ b/arch/arm/include/asm/tlb.h @@ -18,8 +18,6 @@ #ifndef CONFIG_MMU -#include - #define tlb_flush(tlb) ((void) tlb) #include diff --git a/arch/arm64/include/asm/tlb.h b/arch/arm64/include/asm/tlb.h index 751bd57bc3ba..2bb9ede20261 100644 --- a/arch/arm64/include/asm/tlb.h +++ b/arch/arm64/include/asm/tlb.h @@ -8,9 +8,6 @@ #ifndef __ASM_TLB_H #define __ASM_TLB_H -#include - - #define tlb_flush tlb_flush static void tlb_flush(struct mmu_gather *tlb); diff --git a/arch/hexagon/include/asm/tlb.h b/arch/hexagon/include/asm/tlb.h index 2c9390e7ca8d..39a182b61f6c 100644 --- a/arch/hexagon/include/asm/tlb.h +++ b/arch/hexagon/include/asm/tlb.h @@ -6,7 +6,6 @@ #ifndef _ASM_TLB_H #define _ASM_TLB_H -#include #include #include diff --git a/arch/nios2/include/asm/tlb.h b/arch/nios2/include/asm/tlb.h index f9f2e27e32dd..5cca73a5d1fa 100644 --- a/arch/nios2/include/asm/tlb.h +++ b/arch/nios2/include/asm/tlb.h @@ -18,7 +18,6 @@ extern void set_mmu_pid(unsigned long pid); * full mm invalidation. So use flush_tlb_mm() for everything. */ -#include #include #endif /* _ASM_NIOS2_TLB_H */ diff --git a/arch/openrisc/include/asm/Kbuild b/arch/openrisc/include/asm/Kbuild index 8aa34621702d..91d8432ed991 100644 --- a/arch/openrisc/include/asm/Kbuild +++ b/arch/openrisc/include/asm/Kbuild @@ -9,4 +9,5 @@ generic-y += spinlock.h generic-y += qrwlock_types.h generic-y += qrwlock.h generic-y += ring_buffer.h +generic-y += tlb.h generic-y += user.h diff --git a/arch/openrisc/include/asm/tlb.h b/arch/openrisc/include/asm/tlb.h deleted file mode 100644 index 1936d0494b2a..000000000000 --- a/arch/openrisc/include/asm/tlb.h +++ /dev/null @@ -1,26 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* - * OpenRISC Linux - * - * Linux architectural port borrowing liberally from similar works of - * others. All original copyrights apply as per the original source - * declaration. - * - * OpenRISC implementation: - * Copyright (C) 2003 Matjaz Breskvar - * Copyright (C) 2010-2011 Jonas Bonn - * et al. - */ - -#ifndef __ASM_OPENRISC_TLB_H__ -#define __ASM_OPENRISC_TLB_H__ - -/* - * OpenRISC doesn't have an efficient flush_tlb_range() so use flush_tlb_mm() - * for everything. - */ - -#include -#include - -#endif /* __ASM_OPENRISC_TLB_H__ */ diff --git a/arch/powerpc/include/asm/tlb.h b/arch/powerpc/include/asm/tlb.h index 1ca7d4c4b90d..7ee22249148b 100644 --- a/arch/powerpc/include/asm/tlb.h +++ b/arch/powerpc/include/asm/tlb.h @@ -17,8 +17,6 @@ #include #endif -#include - static inline void __tlb_remove_tlb_entry(struct mmu_gather *tlb, pte_t *ptep, unsigned long address); #define __tlb_remove_tlb_entry __tlb_remove_tlb_entry diff --git a/arch/sh/include/asm/tlb.h b/arch/sh/include/asm/tlb.h index 39df40d0ebc2..6d07dae196f5 100644 --- a/arch/sh/include/asm/tlb.h +++ b/arch/sh/include/asm/tlb.h @@ -3,7 +3,6 @@ #define __ASM_SH_TLB_H #ifndef __ASSEMBLER__ -#include #include #ifdef CONFIG_MMU diff --git a/arch/sparc/include/asm/tlb_64.h b/arch/sparc/include/asm/tlb_64.h index 3037187482db..73208fa963a5 100644 --- a/arch/sparc/include/asm/tlb_64.h +++ b/arch/sparc/include/asm/tlb_64.h @@ -3,7 +3,6 @@ #define _SPARC64_TLB_H #include -#include #include #include diff --git a/arch/x86/include/asm/pgalloc.h b/arch/x86/include/asm/pgalloc.h index c88691b15f3c..2d03b8dd95d4 100644 --- a/arch/x86/include/asm/pgalloc.h +++ b/arch/x86/include/asm/pgalloc.h @@ -4,7 +4,6 @@ #include #include /* for struct page */ -#include #include -- cgit v1.2.3 From 27b9d47d9231c5d7678fda02b7855f86e17deee7 Mon Sep 17 00:00:00 2001 From: "Matthew Wilcox (Oracle)" Date: Mon, 10 Aug 2026 16:04:37 -0400 Subject: security: Remove pagemap.h includes The security subsystem does not use the page cache. Removing just the pagemap.h includes isn't quite enough to insulate it from changes to pagemap as it's also pulled in by swap.h and hugetlb.h. Fortunately, security doesn't need either of those so we can lose all three. Now touching pagemap.h causes no rebuilds in the security subsystem. Signed-off-by: Matthew Wilcox (Oracle) --- security/commoncap.c | 3 --- security/inode.c | 1 - security/selinux/hooks.c | 1 - security/selinux/selinuxfs.c | 1 - security/smack/smack_lsm.c | 1 - 5 files changed, 7 deletions(-) diff --git a/security/commoncap.c b/security/commoncap.c index 3399535808fe..c5d2f263d75b 100644 --- a/security/commoncap.c +++ b/security/commoncap.c @@ -10,13 +10,10 @@ #include #include #include -#include -#include #include #include #include #include -#include #include #include #include diff --git a/security/inode.c b/security/inode.c index 080402367674..346172b8f814 100644 --- a/security/inode.c +++ b/security/inode.c @@ -15,7 +15,6 @@ #include #include #include -#include #include #include #include diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 035aaf113d1d..fd18c25a30a5 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -35,7 +35,6 @@ #include #include #include -#include #include #include #include diff --git a/security/selinux/selinuxfs.c b/security/selinux/selinuxfs.c index c7d91476971c..350469e3dbf3 100644 --- a/security/selinux/selinuxfs.c +++ b/security/selinux/selinuxfs.c @@ -13,7 +13,6 @@ */ #include -#include #include #include #include diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c index 8e88ac65fd7f..52e8ed55dacf 100644 --- a/security/smack/smack_lsm.c +++ b/security/smack/smack_lsm.c @@ -16,7 +16,6 @@ */ #include -#include #include #include #include -- cgit v1.2.3 From 59df3f69b3da1b7553f107c948308bbdce4acedd Mon Sep 17 00:00:00 2001 From: "Matthew Wilcox (Oracle)" Date: Mon, 10 Aug 2026 16:12:43 -0400 Subject: mm: Remove pagemap.h from mempolicy.h Nothing in mempolicy.h depends on pagemap.h. This only reduces the number of files that depend on pagemap.h by 5 (9118 to 9113), but it reduces our header entanglement slighty. Signed-off-by: Matthew Wilcox (Oracle) --- fs/aio.c | 1 + include/linux/mempolicy.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/aio.c b/fs/aio.c index d78acc69f487..93657af6ca82 100644 --- a/fs/aio.c +++ b/fs/aio.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include diff --git a/include/linux/mempolicy.h b/include/linux/mempolicy.h index 65c732d440d2..ba262af53863 100644 --- a/include/linux/mempolicy.h +++ b/include/linux/mempolicy.h @@ -13,7 +13,6 @@ #include #include #include -#include #include struct mm_struct; -- cgit v1.2.3 From 043341e3b5e7fcd3637867c3fd16053c676be2f8 Mon Sep 17 00:00:00 2001 From: "Matthew Wilcox (Oracle)" Date: Mon, 10 Aug 2026 16:21:25 -0400 Subject: balloon: Remove pagmap.h include Balloon does not logically depend on pagemap. Everyone getting pagemap.h throuogh balloon.h is already including pagemap.h because this eliminates no dependencies, but it's a nice cleanup. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/balloon.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/balloon.h b/include/linux/balloon.h index ca5b15150f42..13a0af318cc2 100644 --- a/include/linux/balloon.h +++ b/include/linux/balloon.h @@ -36,7 +36,6 @@ */ #ifndef _LINUX_BALLOON_H #define _LINUX_BALLOON_H -#include #include #include #include -- cgit v1.2.3 From 3ba909fa9fe743a374f225418f905f1eb62caf3f Mon Sep 17 00:00:00 2001 From: "Matthew Wilcox (Oracle)" Date: Tue, 11 Aug 2026 12:56:22 -0400 Subject: drivers/net: Remove includes of pagemap.h Networking drivers have no need to use the page cache. Remove explicit includes which means that drivers/net/ are now completely independent of pagemap.h. Signed-off-by: Matthew Wilcox (Oracle) --- drivers/net/ethernet/atheros/atl1c/atl1c.h | 1 - drivers/net/ethernet/atheros/atl1e/atl1e.h | 1 - drivers/net/ethernet/intel/e1000/e1000.h | 1 - drivers/net/ethernet/intel/e1000e/netdev.c | 1 - drivers/net/ethernet/intel/igb/igb_main.c | 1 - drivers/net/ethernet/intel/igbvf/netdev.c | 1 - 6 files changed, 6 deletions(-) diff --git a/drivers/net/ethernet/atheros/atl1c/atl1c.h b/drivers/net/ethernet/atheros/atl1c/atl1c.h index 63ba64dbb731..789884261403 100644 --- a/drivers/net/ethernet/atheros/atl1c/atl1c.h +++ b/drivers/net/ethernet/atheros/atl1c/atl1c.h @@ -29,7 +29,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/net/ethernet/atheros/atl1e/atl1e.h b/drivers/net/ethernet/atheros/atl1e/atl1e.h index 9fcad783c939..2b1a09ea10e3 100644 --- a/drivers/net/ethernet/atheros/atl1e/atl1e.h +++ b/drivers/net/ethernet/atheros/atl1e/atl1e.h @@ -30,7 +30,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/net/ethernet/intel/e1000/e1000.h b/drivers/net/ethernet/intel/e1000/e1000.h index ea6ccf4b728b..0b2ae5c4d4c3 100644 --- a/drivers/net/ethernet/intel/e1000/e1000.h +++ b/drivers/net/ethernet/intel/e1000/e1000.h @@ -24,7 +24,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c b/drivers/net/ethernet/intel/e1000e/netdev.c index 844f31ab37ad..a0142f656a1b 100644 --- a/drivers/net/ethernet/intel/e1000e/netdev.c +++ b/drivers/net/ethernet/intel/e1000e/netdev.c @@ -8,7 +8,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c index d4a897a8c82c..8b29f19a6dea 100644 --- a/drivers/net/ethernet/intel/igb/igb_main.c +++ b/drivers/net/ethernet/intel/igb/igb_main.c @@ -8,7 +8,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/net/ethernet/intel/igbvf/netdev.c b/drivers/net/ethernet/intel/igbvf/netdev.c index c686ee120a14..b187e5641202 100644 --- a/drivers/net/ethernet/intel/igbvf/netdev.c +++ b/drivers/net/ethernet/intel/igbvf/netdev.c @@ -12,7 +12,6 @@ #include #include #include -#include #include #include #include -- cgit v1.2.3 From eedb302993369feb934c8b6fdfc0d544d6c61968 Mon Sep 17 00:00:00 2001 From: "Matthew Wilcox (Oracle)" Date: Wed, 12 Aug 2026 09:29:38 -0400 Subject: drivers/media: Remove pagemap.h includes None of these files actually needs pagemap.h. ivtv does need highmem.h which is brought in by pagemap.h, but that's easy to add. Signed-off-by: Matthew Wilcox (Oracle) --- drivers/media/common/videobuf2/frame_vector.c | 1 - drivers/media/pci/cx18/cx18-driver.h | 1 - drivers/media/pci/ivtv/ivtv-driver.h | 2 +- drivers/media/platform/ti/omap3isp/ispvideo.c | 1 - drivers/media/usb/go7007/go7007-v4l2.c | 1 - drivers/media/usb/gspca/gspca.c | 1 - 6 files changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/media/common/videobuf2/frame_vector.c b/drivers/media/common/videobuf2/frame_vector.c index 41f289c75cbb..de3b303237de 100644 --- a/drivers/media/common/videobuf2/frame_vector.c +++ b/drivers/media/common/videobuf2/frame_vector.c @@ -5,7 +5,6 @@ #include #include #include -#include #include #include diff --git a/drivers/media/pci/cx18/cx18-driver.h b/drivers/media/pci/cx18/cx18-driver.h index ef38903709d0..51f8a5f5c5f1 100644 --- a/drivers/media/pci/cx18/cx18-driver.h +++ b/drivers/media/pci/cx18/cx18-driver.h @@ -24,7 +24,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/media/pci/ivtv/ivtv-driver.h b/drivers/media/pci/ivtv/ivtv-driver.h index f1f18911332e..000e8beecc7c 100644 --- a/drivers/media/pci/ivtv/ivtv-driver.h +++ b/drivers/media/pci/ivtv/ivtv-driver.h @@ -30,13 +30,13 @@ #include #include #include +#include #include #include #include #include #include #include -#include #include #include #include diff --git a/drivers/media/platform/ti/omap3isp/ispvideo.c b/drivers/media/platform/ti/omap3isp/ispvideo.c index b946c8087c77..5cb78955e74d 100644 --- a/drivers/media/platform/ti/omap3isp/ispvideo.c +++ b/drivers/media/platform/ti/omap3isp/ispvideo.c @@ -13,7 +13,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/media/usb/go7007/go7007-v4l2.c b/drivers/media/usb/go7007/go7007-v4l2.c index 2087ffcb85a5..2fc407914e15 100644 --- a/drivers/media/usb/go7007/go7007-v4l2.c +++ b/drivers/media/usb/go7007/go7007-v4l2.c @@ -12,7 +12,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/media/usb/gspca/gspca.c b/drivers/media/usb/gspca/gspca.c index 594d73e50b9f..6516bcebadea 100644 --- a/drivers/media/usb/gspca/gspca.c +++ b/drivers/media/usb/gspca/gspca.c @@ -19,7 +19,6 @@ #include #include #include -#include #include #include #include -- cgit v1.2.3 From 720c3726e164bd9fc57d74ef3a6d573452d2dd7b Mon Sep 17 00:00:00 2001 From: "Matthew Wilcox (Oracle)" Date: Wed, 12 Aug 2026 09:29:38 -0400 Subject: drivers/mmc: Remove pagemap.h includes None of these files actually needs pagemap.h. After this patch, no files in drivers/mmc depend on pagemap.h any more. Signed-off-by: Matthew Wilcox (Oracle) --- drivers/mmc/core/core.c | 1 - drivers/mmc/core/host.c | 1 - drivers/mmc/host/renesas_sdhi_internal_dmac.c | 1 - drivers/mmc/host/renesas_sdhi_sys_dmac.c | 1 - drivers/mmc/host/sh_mmcif.c | 1 - drivers/mmc/host/tmio_mmc.h | 1 - drivers/mmc/host/tmio_mmc_core.c | 1 - drivers/mmc/host/usdhi6rol0.c | 1 - 8 files changed, 8 deletions(-) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 29e80e5f928e..7cfdbe2d57d6 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -13,7 +13,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c index b7ce3137d452..4c09700b2d5c 100644 --- a/drivers/mmc/core/host.c +++ b/drivers/mmc/core/host.c @@ -13,7 +13,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/mmc/host/renesas_sdhi_internal_dmac.c b/drivers/mmc/host/renesas_sdhi_internal_dmac.c index 0c3967f758c2..033d8cd92726 100644 --- a/drivers/mmc/host/renesas_sdhi_internal_dmac.c +++ b/drivers/mmc/host/renesas_sdhi_internal_dmac.c @@ -14,7 +14,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/mmc/host/renesas_sdhi_sys_dmac.c b/drivers/mmc/host/renesas_sdhi_sys_dmac.c index 426308b73b49..c7df4da9e865 100644 --- a/drivers/mmc/host/renesas_sdhi_sys_dmac.c +++ b/drivers/mmc/host/renesas_sdhi_sys_dmac.c @@ -14,7 +14,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/mmc/host/sh_mmcif.c b/drivers/mmc/host/sh_mmcif.c index 7706d01b149e..189232aec564 100644 --- a/drivers/mmc/host/sh_mmcif.c +++ b/drivers/mmc/host/sh_mmcif.c @@ -45,7 +45,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/mmc/host/tmio_mmc.h b/drivers/mmc/host/tmio_mmc.h index b9de03325c58..3ab8c0d8a2bd 100644 --- a/drivers/mmc/host/tmio_mmc.h +++ b/drivers/mmc/host/tmio_mmc.h @@ -18,7 +18,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/mmc/host/tmio_mmc_core.c b/drivers/mmc/host/tmio_mmc_core.c index 775e0d9353d5..4116c4d29c63 100644 --- a/drivers/mmc/host/tmio_mmc_core.c +++ b/drivers/mmc/host/tmio_mmc_core.c @@ -37,7 +37,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/mmc/host/usdhi6rol0.c b/drivers/mmc/host/usdhi6rol0.c index 3bccf800339b..8d9d4f362999 100644 --- a/drivers/mmc/host/usdhi6rol0.c +++ b/drivers/mmc/host/usdhi6rol0.c @@ -18,7 +18,6 @@ #include #include #include -#include #include #include #include -- cgit v1.2.3 From 2854902575ac6d6cfa97e1bf0f134b718d65b16b Mon Sep 17 00:00:00 2001 From: "Matthew Wilcox (Oracle)" Date: Wed, 12 Aug 2026 11:01:28 -0400 Subject: drm: Remove pagemap from ttm_tt.h header This header does not depend on pagemap itself, nor does any file rely on pagemap being included through it. Signed-off-by: Matthew Wilcox (Oracle) --- include/drm/ttm/ttm_tt.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/drm/ttm/ttm_tt.h b/include/drm/ttm/ttm_tt.h index 406437ad674b..58c8bf9a6cbd 100644 --- a/include/drm/ttm/ttm_tt.h +++ b/include/drm/ttm/ttm_tt.h @@ -27,7 +27,6 @@ #ifndef _TTM_TT_H_ #define _TTM_TT_H_ -#include #include #include #include -- cgit v1.2.3 From 54db4e00bf624941cbfc4af7ba3404723b08961a Mon Sep 17 00:00:00 2001 From: "Matthew Wilcox (Oracle)" Date: Wed, 12 Aug 2026 11:02:29 -0400 Subject: drm/amd: Remove pagemap.h includes None of these files need pagemap.h. kfd_priv.h brings in pagemap.h indirectly through swap.h, but fortunately it doesn't need swap.h either. amdgpu_ttm.c needs highmem.h for kmap/kunmap, but doesn't need all of pagemap.h. Signed-off-by: Matthew Wilcox (Oracle) --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 1 - drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 1 - drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 1 - drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 3 +-- drivers/gpu/drm/amd/amdkfd/kfd_migrate.c | 1 + drivers/gpu/drm/amd/amdkfd/kfd_priv.h | 1 - 6 files changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c index 34481ee7065a..d465fddefb2d 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c @@ -22,7 +22,6 @@ */ #include #include -#include #include #include #include diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c index 03b41f803520..b68a017afd53 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c @@ -26,7 +26,6 @@ */ #include -#include #include #include diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c index f754a4a3a1c2..e9017ff2cca7 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c @@ -28,7 +28,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c index d5a419776e93..0214a6620b6f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c @@ -31,13 +31,12 @@ */ #include +#include #include -#include #include #include #include #include -#include #include #include #include diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_migrate.c b/drivers/gpu/drm/amd/amdkfd/kfd_migrate.c index f5af1dd3b70e..460b289ddd4e 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_migrate.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_migrate.c @@ -24,6 +24,7 @@ #include #include #include +#include #include "amdgpu_sync.h" #include "amdgpu_object.h" #include "amdgpu_vm.h" diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_priv.h b/drivers/gpu/drm/amd/amdkfd/kfd_priv.h index d8631847f0eb..e590fffab915 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_priv.h +++ b/drivers/gpu/drm/amd/amdkfd/kfd_priv.h @@ -45,7 +45,6 @@ #include #include #include -#include #include "amd_shared.h" #include "amdgpu.h" -- cgit v1.2.3 From 9a2d69cd7b99b042ae56c386ec2890aeab21b3c0 Mon Sep 17 00:00:00 2001 From: "Matthew Wilcox (Oracle)" Date: Wed, 12 Aug 2026 16:27:59 -0400 Subject: headers: Remove pagemap.h from swap.h swap.h does not need pagemap.h itself, and only three files were relying on pagemap.h being implicitly included by swap.h. This does not significantly reduce the number of files depending on pagemap.h, but it does reduce the entanglement of our headers a little. Signed-off-by: Matthew Wilcox (Oracle) --- drivers/gpu/drm/i915/gem/i915_gem_userptr.c | 1 + drivers/gpu/drm/nouveau/nouveau_dmem.c | 1 + fs/file_table.c | 1 + fs/inode.c | 1 + include/linux/swap.h | 1 - 5 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gem/i915_gem_userptr.c b/drivers/gpu/drm/i915/gem/i915_gem_userptr.c index 043095f93ac6..297fca511afb 100644 --- a/drivers/gpu/drm/i915/gem/i915_gem_userptr.c +++ b/drivers/gpu/drm/i915/gem/i915_gem_userptr.c @@ -35,6 +35,7 @@ #include #include +#include #include #include diff --git a/drivers/gpu/drm/nouveau/nouveau_dmem.c b/drivers/gpu/drm/nouveau/nouveau_dmem.c index 9442ec6e1f6c..c6c0866eebf4 100644 --- a/drivers/gpu/drm/nouveau/nouveau_dmem.c +++ b/drivers/gpu/drm/nouveau/nouveau_dmem.c @@ -40,6 +40,7 @@ #include #include #include +#include /* * FIXME: this is ugly right now we are using TTM to allocate vram and we pin diff --git a/fs/file_table.c b/fs/file_table.c index c68b8c0a4097..8dcd213c0251 100644 --- a/fs/file_table.c +++ b/fs/file_table.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include diff --git a/fs/inode.c b/fs/inode.c index ba7da39be4a3..8d1cdaf64869 100644 --- a/fs/inode.c +++ b/fs/inode.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include diff --git a/include/linux/swap.h b/include/linux/swap.h index 696ed01709c2..e26b1cdccc50 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h @@ -10,7 +10,6 @@ #include #include #include -#include #include #include #include -- cgit v1.2.3 From 487f6c57f2afc0f50cf20a985ef240504c6c16c9 Mon Sep 17 00:00:00 2001 From: "Matthew Wilcox (Oracle)" Date: Thu, 13 Aug 2026 14:47:44 -0400 Subject: sunrpc: Remove pagemap.h No file in net/sunrpc needs pagemap.h, nor depends on it bringing in any of its dependencies. After this patch, no file in net/sunrpc depends on pagemap.h, even transitively. Signed-off-by: Matthew Wilcox (Oracle) --- net/sunrpc/auth_gss/auth_gss.c | 1 - net/sunrpc/auth_gss/gss_krb5_crypto.c | 1 - net/sunrpc/auth_gss/gss_krb5_wrap.c | 1 - net/sunrpc/auth_gss/svcauth_gss.c | 1 - net/sunrpc/cache.c | 1 - net/sunrpc/rpc_pipe.c | 1 - net/sunrpc/socklib.c | 1 - net/sunrpc/xdr.c | 1 - net/sunrpc/xprtsock.c | 1 - 9 files changed, 9 deletions(-) diff --git a/net/sunrpc/auth_gss/auth_gss.c b/net/sunrpc/auth_gss/auth_gss.c index 8ddc65e894da..eb4a32382a1b 100644 --- a/net/sunrpc/auth_gss/auth_gss.c +++ b/net/sunrpc/auth_gss/auth_gss.c @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include diff --git a/net/sunrpc/auth_gss/gss_krb5_crypto.c b/net/sunrpc/auth_gss/gss_krb5_crypto.c index cf461ebcdde5..70e846aee671 100644 --- a/net/sunrpc/auth_gss/gss_krb5_crypto.c +++ b/net/sunrpc/auth_gss/gss_krb5_crypto.c @@ -39,7 +39,6 @@ #include #include #include -#include #include #include diff --git a/net/sunrpc/auth_gss/gss_krb5_wrap.c b/net/sunrpc/auth_gss/gss_krb5_wrap.c index d3f61c4b5a13..789901e0f83a 100644 --- a/net/sunrpc/auth_gss/gss_krb5_wrap.c +++ b/net/sunrpc/auth_gss/gss_krb5_wrap.c @@ -31,7 +31,6 @@ #include #include #include -#include #include "gss_krb5_internal.h" diff --git a/net/sunrpc/auth_gss/svcauth_gss.c b/net/sunrpc/auth_gss/svcauth_gss.c index 967e9d53080d..44f4b093193d 100644 --- a/net/sunrpc/auth_gss/svcauth_gss.c +++ b/net/sunrpc/auth_gss/svcauth_gss.c @@ -41,7 +41,6 @@ #include #include #include -#include #include #include diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c index 1bc04109d213..825e47833e09 100644 --- a/net/sunrpc/cache.c +++ b/net/sunrpc/cache.c @@ -27,7 +27,6 @@ #include #include #include -#include #include #include #include diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c index 9d349cfbc483..b4054fad2e03 100644 --- a/net/sunrpc/rpc_pipe.c +++ b/net/sunrpc/rpc_pipe.c @@ -12,7 +12,6 @@ #include #include #include -#include #include #include #include diff --git a/net/sunrpc/socklib.c b/net/sunrpc/socklib.c index d8d8842c7de5..83ec61c45365 100644 --- a/net/sunrpc/socklib.c +++ b/net/sunrpc/socklib.c @@ -12,7 +12,6 @@ #include #include #include -#include #include #include #include diff --git a/net/sunrpc/xdr.c b/net/sunrpc/xdr.c index cb2ef428651f..9043db47e2cd 100644 --- a/net/sunrpc/xdr.c +++ b/net/sunrpc/xdr.c @@ -12,7 +12,6 @@ #include #include #include -#include #include #include #include diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c index 359407aae03e..1205723ff4ee 100644 --- a/net/sunrpc/xprtsock.c +++ b/net/sunrpc/xprtsock.c @@ -24,7 +24,6 @@ #include #include #include -#include #include #include #include -- cgit v1.2.3 From aedeab60c2cc3f7c3997dcd4d98f3ee95bc7b345 Mon Sep 17 00:00:00 2001 From: "Matthew Wilcox (Oracle)" Date: Thu, 13 Aug 2026 16:53:14 -0400 Subject: net: Remove includes of pagemap.h Two ceph files call __page_cache_alloc(), so need to include pagemap.h. I'm not sure that they should be allocating memory using this interface, but that's a question for later. net/ is largely free of indirect dependencies on pagemap.h at this point. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/ceph/libceph.h | 1 - net/ceph/osd_client.c | 1 - net/ceph/pagevec.c | 1 + net/core/datagram.c | 1 - net/rds/rdma.c | 1 - 5 files changed, 1 insertion(+), 4 deletions(-) diff --git a/include/linux/ceph/libceph.h b/include/linux/ceph/libceph.h index 63e0e2aa1ce9..4de957db6500 100644 --- a/include/linux/ceph/libceph.h +++ b/include/linux/ceph/libceph.h @@ -11,7 +11,6 @@ #include #include #include -#include #include #include #include diff --git a/net/ceph/osd_client.c b/net/ceph/osd_client.c index 28d76c2f6b3e..86b681a56e20 100644 --- a/net/ceph/osd_client.c +++ b/net/ceph/osd_client.c @@ -6,7 +6,6 @@ #include #include #include -#include #include #include #ifdef CONFIG_BLOCK diff --git a/net/ceph/pagevec.c b/net/ceph/pagevec.c index 858359873c4d..7e54c0c92b4f 100644 --- a/net/ceph/pagevec.c +++ b/net/ceph/pagevec.c @@ -6,6 +6,7 @@ #include #include #include +#include #include #include diff --git a/net/core/datagram.c b/net/core/datagram.c index 173b5d97bd40..b9b50ce8ea7c 100644 --- a/net/core/datagram.c +++ b/net/core/datagram.c @@ -49,7 +49,6 @@ #include #include #include -#include #include #include #include diff --git a/net/rds/rdma.c b/net/rds/rdma.c index 078090d292fa..81cfbb2b2e87 100644 --- a/net/rds/rdma.c +++ b/net/rds/rdma.c @@ -30,7 +30,6 @@ * SOFTWARE. * */ -#include #include #include #include /* for DMA_*_DEVICE */ -- cgit v1.2.3 From 5d5e31b22113083f63f829896512ebe580e39bdf Mon Sep 17 00:00:00 2001 From: "Matthew Wilcox (Oracle)" Date: Thu, 13 Aug 2026 23:01:18 -0400 Subject: nfs: Remove pagemap.h from includes These two header files don't use anything from pagemap.h. Some files were depending on it being included, so add it directly to those files. Signed-off-by: Matthew Wilcox (Oracle) --- fs/nfs/blocklayout/blocklayout.c | 1 + fs/nfs/nfs42proc.c | 1 + fs/nfs/nfstrace.h | 1 + fs/nfs/pnfs.c | 1 + fs/nfsd/nfs4proc.c | 1 + include/linux/nfs_fs.h | 1 - include/linux/nfs_page.h | 1 - 7 files changed, 5 insertions(+), 2 deletions(-) diff --git a/fs/nfs/blocklayout/blocklayout.c b/fs/nfs/blocklayout/blocklayout.c index d54a141a89b3..ddf56ec1ae3c 100644 --- a/fs/nfs/blocklayout/blocklayout.c +++ b/fs/nfs/blocklayout/blocklayout.c @@ -34,6 +34,7 @@ #include #include #include +#include #include /* struct bio */ #include diff --git a/fs/nfs/nfs42proc.c b/fs/nfs/nfs42proc.c index ab86246fc364..75048e9702a8 100644 --- a/fs/nfs/nfs42proc.c +++ b/fs/nfs/nfs42proc.c @@ -3,6 +3,7 @@ * Copyright (c) 2014 Anna Schumaker */ #include +#include #include #include #include diff --git a/fs/nfs/nfstrace.h b/fs/nfs/nfstrace.h index 4ada21f4eebd..d0b02af15c15 100644 --- a/fs/nfs/nfstrace.h +++ b/fs/nfs/nfstrace.h @@ -9,6 +9,7 @@ #define _TRACE_NFS_H #include +#include #include #include diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c index 7715e2bd5871..ec7976409101 100644 --- a/fs/nfs/pnfs.c +++ b/fs/nfs/pnfs.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include "internal.h" #include "pnfs.h" diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index 50c07561e31f..2e2e6ef479c5 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c @@ -35,6 +35,7 @@ #include #include #include +#include #include #include #include diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h index ec17e602c979..8782d66a31b5 100644 --- a/include/linux/nfs_fs.h +++ b/include/linux/nfs_fs.h @@ -21,7 +21,6 @@ #include #include -#include #include #include #include diff --git a/include/linux/nfs_page.h b/include/linux/nfs_page.h index 4b9a35dbc062..e11f65342074 100644 --- a/include/linux/nfs_page.h +++ b/include/linux/nfs_page.h @@ -12,7 +12,6 @@ #include -#include #include #include #include -- cgit v1.2.3 From e02cb91d4644dfff593146f89e70d2008cc6ac16 Mon Sep 17 00:00:00 2001 From: "Matthew Wilcox (Oracle)" Date: Thu, 13 Aug 2026 23:07:14 -0400 Subject: ksm: Remove pagemap.h include ksm.h doesn't need pagemap.h itself, nor do any files rely on it being implicitly included through this path. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/ksm.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/ksm.h b/include/linux/ksm.h index d39d0d5483a2..edfa67017560 100644 --- a/include/linux/ksm.h +++ b/include/linux/ksm.h @@ -10,7 +10,6 @@ #include #include -#include #include #include -- cgit v1.2.3