headers: separate linux/mod_devicetable.h from linux/platform_device.h
At over 4000 #includes, <linux/platform_device.h> is the 9th most #included header file in the Linux kernel. It does not need <linux/mod_devicetable.h>, so drop that header and explicitly add <linux/mod_devicetable.h> to source files that need it. 4146 #include <linux/platform_device.h> After this patch, there are 225 files that use <linux/mod_devicetable.h>, for a reduction of around 3900 times that <linux/mod_devicetable.h> does not have to be read & parsed. 225 #include <linux/mod_devicetable.h> This patch was build-tested on 20 different arch-es. It also makes these drivers SubmitChecklist#1 compliant. Signed-off-by:Randy Dunlap <rdunlap@infradead.org> Reported-by: kbuild test robot <lkp@intel.com> # drivers/media/platform/vimc/ Reported-by: kbuild test robot <lkp@intel.com> # drivers/pinctrl/pinctrl-u300.c Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
- arch/arm/mach-mmp/sram.c 1 addition, 0 deletionsarch/arm/mach-mmp/sram.c
- drivers/ata/pata_imx.c 1 addition, 0 deletionsdrivers/ata/pata_imx.c
- drivers/ata/pata_samsung_cf.c 1 addition, 0 deletionsdrivers/ata/pata_samsung_cf.c
- drivers/auxdisplay/hd44780.c 1 addition, 0 deletionsdrivers/auxdisplay/hd44780.c
- drivers/char/hw_random/atmel-rng.c 1 addition, 0 deletionsdrivers/char/hw_random/atmel-rng.c
- drivers/char/hw_random/exynos-trng.c 1 addition, 0 deletionsdrivers/char/hw_random/exynos-trng.c
- drivers/char/hw_random/imx-rngc.c 1 addition, 0 deletionsdrivers/char/hw_random/imx-rngc.c
- drivers/char/hw_random/powernv-rng.c 1 addition, 0 deletionsdrivers/char/hw_random/powernv-rng.c
- drivers/crypto/mediatek/mtk-platform.c 1 addition, 0 deletionsdrivers/crypto/mediatek/mtk-platform.c
- drivers/crypto/qce/core.c 1 addition, 0 deletionsdrivers/crypto/qce/core.c
- drivers/crypto/stm32/stm32_crc32.c 1 addition, 0 deletionsdrivers/crypto/stm32/stm32_crc32.c
- drivers/crypto/ux500/cryp/cryp_core.c 1 addition, 0 deletionsdrivers/crypto/ux500/cryp/cryp_core.c
- drivers/crypto/ux500/hash/hash_core.c 1 addition, 0 deletionsdrivers/crypto/ux500/hash/hash_core.c
- drivers/devfreq/tegra-devfreq.c 1 addition, 0 deletionsdrivers/devfreq/tegra-devfreq.c
- drivers/dma/ep93xx_dma.c 1 addition, 0 deletionsdrivers/dma/ep93xx_dma.c
- drivers/dma/s3c24xx-dma.c 1 addition, 0 deletionsdrivers/dma/s3c24xx-dma.c
- drivers/extcon/extcon-intel-cht-wc.c 1 addition, 0 deletionsdrivers/extcon/extcon-intel-cht-wc.c
- drivers/extcon/extcon-qcom-spmi-misc.c 1 addition, 0 deletionsdrivers/extcon/extcon-qcom-spmi-misc.c
- drivers/gpu/drm/mediatek/mtk_cec.c 1 addition, 0 deletionsdrivers/gpu/drm/mediatek/mtk_cec.c
- drivers/gpu/drm/sun4i/sun6i_drc.c 1 addition, 0 deletionsdrivers/gpu/drm/sun4i/sun6i_drc.c
Loading
Please register or sign in to comment