treewide: Add missing includes masked by cgroup -> bpf dependency
authorJakub Kicinski <kuba@kernel.org>
Thu, 2 Dec 2021 20:34:00 +0000 (12:34 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 3 Dec 2021 18:58:13 +0000 (10:58 -0800)
cgroup.h (therefore swap.h, therefore half of the universe)
includes bpf.h which in turn includes module.h and slab.h.
Since we're about to get rid of that dependency we need
to clean things up.

v2: drop the cpu.h include from cacheinfo.h, it's not necessary
and it makes riscv sensitive to ordering of include files.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Krzysztof WilczyƄski <kw@linux.com>
Acked-by: Peter Chen <peter.chen@kernel.org>
Acked-by: SeongJae Park <sj@kernel.org>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/all/20211120035253.72074-1-kuba@kernel.org/
Link: https://lore.kernel.org/all/20211120165528.197359-1-kuba@kernel.org/
Link: https://lore.kernel.org/bpf/20211202203400.1208663-1-kuba@kernel.org
18 files changed:
block/fops.c
drivers/gpu/drm/drm_gem_shmem_helper.c
drivers/gpu/drm/i915/gt/intel_gtt.c
drivers/gpu/drm/i915/i915_request.c
drivers/gpu/drm/lima/lima_device.c
drivers/gpu/drm/msm/msm_gem_shrinker.c
drivers/gpu/drm/ttm/ttm_tt.c
drivers/net/ethernet/huawei/hinic/hinic_sriov.c
drivers/net/ethernet/marvell/octeontx2/nic/otx2_ptp.c
drivers/pci/controller/dwc/pci-exynos.c
drivers/pci/controller/dwc/pcie-qcom-ep.c
drivers/usb/cdns3/host.c
include/linux/cacheinfo.h
include/linux/device/driver.h
include/linux/filter.h
mm/damon/vaddr.c
mm/memory_hotplug.c
mm/swap_slots.c

index ad732a36f9b303f7cb202eea48c00a488e800417..3cb1e81929bc6d8a97e465f2dded07fdd3701a8a 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/falloc.h>
 #include <linux/suspend.h>
 #include <linux/fs.h>
+#include <linux/module.h>
 #include "blk.h"
 
 static inline struct inode *bdev_file_inode(struct file *file)
index 7b9f69f21f1eda7491f230a3be176aacce3d34e9..bca0de92802efa29892a631026589043dbf88ff1 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/shmem_fs.h>
 #include <linux/slab.h>
 #include <linux/vmalloc.h>
+#include <linux/module.h>
 
 #ifdef CONFIG_X86
 #include <asm/set_memory.h>
index 67d14afa66237a26f553c8d3265074fe63387812..b67f620c3d93cd1b6e85dacee3216a869f3e4ed1 100644 (file)
@@ -6,6 +6,7 @@
 #include <linux/slab.h> /* fault-inject.h is not standalone! */
 
 #include <linux/fault-inject.h>
+#include <linux/sched/mm.h>
 
 #include "gem/i915_gem_lmem.h"
 #include "i915_trace.h"
index 820a1f38b271e095ffbe17bf1294582110c1312b..89cccefeea635344e7ae045a87d3d7f03efbd9d2 100644 (file)
@@ -29,6 +29,7 @@
 #include <linux/sched.h>
 #include <linux/sched/clock.h>
 #include <linux/sched/signal.h>
+#include <linux/sched/mm.h>
 
 #include "gem/i915_gem_context.h"
 #include "gt/intel_breadcrumbs.h"
index 65fdca366e41f00d940f13a0865234fc47df5595..f74f8048af8f2c5551ae384871a9418d1347929b 100644 (file)
@@ -4,6 +4,7 @@
 #include <linux/regulator/consumer.h>
 #include <linux/reset.h>
 #include <linux/clk.h>
+#include <linux/slab.h>
 #include <linux/dma-mapping.h>
 #include <linux/platform_device.h>
 
index 4a1420b05e978fb2bcd618e0bde05171b080655d..086dacf2f26a74120f015a4d5f1ed93b9e0fdc1b 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <linux/vmalloc.h>
+#include <linux/sched/mm.h>
 
 #include "msm_drv.h"
 #include "msm_gem.h"
index 7e83c00a3f48926b56519902599ed966e4c379d4..79c870a3bef8d5399d000aca435b32d55ebd56bc 100644 (file)
@@ -34,6 +34,7 @@
 #include <linux/sched.h>
 #include <linux/shmem_fs.h>
 #include <linux/file.h>
+#include <linux/module.h>
 #include <drm/drm_cache.h>
 #include <drm/ttm/ttm_bo_driver.h>
 
index a78c398bf5b25688759be25f5fda981befbae336..01e7d3c0b68ed3020afeee4bb7df8da6794f8b0a 100644 (file)
@@ -8,6 +8,7 @@
 #include <linux/interrupt.h>
 #include <linux/etherdevice.h>
 #include <linux/netdevice.h>
+#include <linux/module.h>
 
 #include "hinic_hw_dev.h"
 #include "hinic_dev.h"
index 0ef68fdd1f26bf4e80f62da41c0dd8e9471da228..61c20907315f4d7cfe86e19f927954c1dbc5bc40 100644 (file)
@@ -5,6 +5,8 @@
  *
  */
 
+#include <linux/module.h>
+
 #include "otx2_common.h"
 #include "otx2_ptp.h"
 
index c24dab383654b00a126e0b2f9e6185e47a6f42f4..722dacdd5a17f8135f110077ab519c424b60163b 100644 (file)
@@ -19,6 +19,7 @@
 #include <linux/platform_device.h>
 #include <linux/phy/phy.h>
 #include <linux/regulator/consumer.h>
+#include <linux/module.h>
 
 #include "pcie-designware.h"
 
index 7b17da2f9b3f8d9ddf2c713cce3cad45a46dde1d..cfe66bf04c1d38ba5dbbe8cb6f7772ca2e996a61 100644 (file)
@@ -18,6 +18,7 @@
 #include <linux/pm_domain.h>
 #include <linux/regmap.h>
 #include <linux/reset.h>
+#include <linux/module.h>
 
 #include "pcie-designware.h"
 
index 84dadfa726aa6a816283b610ff258e0d2b53990a..9643b905e2d8b38da465ff48028d23274be0a0c5 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include <linux/platform_device.h>
+#include <linux/slab.h>
 #include "core.h"
 #include "drd.h"
 #include "host-export.h"
index 2f909ed084c63e5e2dc429306eade714b93ba868..4ff37cb763ae2a243385ac0580e07574ff7546a8 100644 (file)
@@ -3,7 +3,6 @@
 #define _LINUX_CACHEINFO_H
 
 #include <linux/bitops.h>
-#include <linux/cpu.h>
 #include <linux/cpumask.h>
 #include <linux/smp.h>
 
index a498ebcf49933d309fff25b724d1a9244b807b3d..15e7c5e15d629545a757752bf61ffd26c8f24f4b 100644 (file)
@@ -18,6 +18,7 @@
 #include <linux/klist.h>
 #include <linux/pm.h>
 #include <linux/device/bus.h>
+#include <linux/module.h>
 
 /**
  * enum probe_type - device driver probe type to try
index 534f678ca50fa39f886c03f70207f13d0e1adb58..7f1e88e3e2b5445ac4c3d5c3c8bab6d4d6f15b04 100644 (file)
@@ -6,6 +6,7 @@
 #define __LINUX_FILTER_H__
 
 #include <linux/atomic.h>
+#include <linux/bpf.h>
 #include <linux/refcount.h>
 #include <linux/compat.h>
 #include <linux/skbuff.h>
@@ -26,7 +27,6 @@
 
 #include <asm/byteorder.h>
 #include <uapi/linux/filter.h>
-#include <uapi/linux/bpf.h>
 
 struct sk_buff;
 struct sock;
index 35fe49080ee99636f045d3f8c785319947eadf4f..47f47f60440eba07be6d22dff65cc8cef6742b5b 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/mmu_notifier.h>
 #include <linux/page_idle.h>
 #include <linux/pagewalk.h>
+#include <linux/sched/mm.h>
 
 #include "prmtv-common.h"
 
index 852041f6be418c317db8a40c94cf21d501ba9cb3..2a9627dc784c31072f39527f0a52953f72257aff 100644 (file)
@@ -35,6 +35,7 @@
 #include <linux/memblock.h>
 #include <linux/compaction.h>
 #include <linux/rmap.h>
+#include <linux/module.h>
 
 #include <asm/tlbflush.h>
 
index 16f706c55d925900bd6932177fba221ea3f8f56f..2b553184058372e09e2d1b34576c65606bc6c65f 100644 (file)
@@ -30,6 +30,7 @@
 #include <linux/swap_slots.h>
 #include <linux/cpu.h>
 #include <linux/cpumask.h>
+#include <linux/slab.h>
 #include <linux/vmalloc.h>
 #include <linux/mutex.h>
 #include <linux/mm.h>