Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

treewide: Add missing includes masked by cgroup -> bpf dependency

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/ # v1
Link: https://lore.kernel.org/all/20211120165528.197359-1-kuba@kernel.org/ # cacheinfo discussion
Link: https://lore.kernel.org/bpf/20211202203400.1208663-1-kuba@kernel.org

authored by

Jakub Kicinski and committed by
Alexei Starovoitov
8581fd40 7d9b3ad4

+18 -2
+1
block/fops.c
··· 15 15 #include <linux/falloc.h> 16 16 #include <linux/suspend.h> 17 17 #include <linux/fs.h> 18 + #include <linux/module.h> 18 19 #include "blk.h" 19 20 20 21 static inline struct inode *bdev_file_inode(struct file *file)
+1
drivers/gpu/drm/drm_gem_shmem_helper.c
··· 9 9 #include <linux/shmem_fs.h> 10 10 #include <linux/slab.h> 11 11 #include <linux/vmalloc.h> 12 + #include <linux/module.h> 12 13 13 14 #ifdef CONFIG_X86 14 15 #include <asm/set_memory.h>
+1
drivers/gpu/drm/i915/gt/intel_gtt.c
··· 6 6 #include <linux/slab.h> /* fault-inject.h is not standalone! */ 7 7 8 8 #include <linux/fault-inject.h> 9 + #include <linux/sched/mm.h> 9 10 10 11 #include "gem/i915_gem_lmem.h" 11 12 #include "i915_trace.h"
+1
drivers/gpu/drm/i915/i915_request.c
··· 29 29 #include <linux/sched.h> 30 30 #include <linux/sched/clock.h> 31 31 #include <linux/sched/signal.h> 32 + #include <linux/sched/mm.h> 32 33 33 34 #include "gem/i915_gem_context.h" 34 35 #include "gt/intel_breadcrumbs.h"
+1
drivers/gpu/drm/lima/lima_device.c
··· 4 4 #include <linux/regulator/consumer.h> 5 5 #include <linux/reset.h> 6 6 #include <linux/clk.h> 7 + #include <linux/slab.h> 7 8 #include <linux/dma-mapping.h> 8 9 #include <linux/platform_device.h> 9 10
+1
drivers/gpu/drm/msm/msm_gem_shrinker.c
··· 5 5 */ 6 6 7 7 #include <linux/vmalloc.h> 8 + #include <linux/sched/mm.h> 8 9 9 10 #include "msm_drv.h" 10 11 #include "msm_gem.h"
+1
drivers/gpu/drm/ttm/ttm_tt.c
··· 34 34 #include <linux/sched.h> 35 35 #include <linux/shmem_fs.h> 36 36 #include <linux/file.h> 37 + #include <linux/module.h> 37 38 #include <drm/drm_cache.h> 38 39 #include <drm/ttm/ttm_bo_driver.h> 39 40
+1
drivers/net/ethernet/huawei/hinic/hinic_sriov.c
··· 8 8 #include <linux/interrupt.h> 9 9 #include <linux/etherdevice.h> 10 10 #include <linux/netdevice.h> 11 + #include <linux/module.h> 11 12 12 13 #include "hinic_hw_dev.h" 13 14 #include "hinic_dev.h"
+2
drivers/net/ethernet/marvell/octeontx2/nic/otx2_ptp.c
··· 5 5 * 6 6 */ 7 7 8 + #include <linux/module.h> 9 + 8 10 #include "otx2_common.h" 9 11 #include "otx2_ptp.h" 10 12
+1
drivers/pci/controller/dwc/pci-exynos.c
··· 19 19 #include <linux/platform_device.h> 20 20 #include <linux/phy/phy.h> 21 21 #include <linux/regulator/consumer.h> 22 + #include <linux/module.h> 22 23 23 24 #include "pcie-designware.h" 24 25
+1
drivers/pci/controller/dwc/pcie-qcom-ep.c
··· 18 18 #include <linux/pm_domain.h> 19 19 #include <linux/regmap.h> 20 20 #include <linux/reset.h> 21 + #include <linux/module.h> 21 22 22 23 #include "pcie-designware.h" 23 24
+1
drivers/usb/cdns3/host.c
··· 10 10 */ 11 11 12 12 #include <linux/platform_device.h> 13 + #include <linux/slab.h> 13 14 #include "core.h" 14 15 #include "drd.h" 15 16 #include "host-export.h"
-1
include/linux/cacheinfo.h
··· 3 3 #define _LINUX_CACHEINFO_H 4 4 5 5 #include <linux/bitops.h> 6 - #include <linux/cpu.h> 7 6 #include <linux/cpumask.h> 8 7 #include <linux/smp.h> 9 8
+1
include/linux/device/driver.h
··· 18 18 #include <linux/klist.h> 19 19 #include <linux/pm.h> 20 20 #include <linux/device/bus.h> 21 + #include <linux/module.h> 21 22 22 23 /** 23 24 * enum probe_type - device driver probe type to try
+1 -1
include/linux/filter.h
··· 6 6 #define __LINUX_FILTER_H__ 7 7 8 8 #include <linux/atomic.h> 9 + #include <linux/bpf.h> 9 10 #include <linux/refcount.h> 10 11 #include <linux/compat.h> 11 12 #include <linux/skbuff.h> ··· 27 26 28 27 #include <asm/byteorder.h> 29 28 #include <uapi/linux/filter.h> 30 - #include <uapi/linux/bpf.h> 31 29 32 30 struct sk_buff; 33 31 struct sock;
+1
mm/damon/vaddr.c
··· 13 13 #include <linux/mmu_notifier.h> 14 14 #include <linux/page_idle.h> 15 15 #include <linux/pagewalk.h> 16 + #include <linux/sched/mm.h> 16 17 17 18 #include "prmtv-common.h" 18 19
+1
mm/memory_hotplug.c
··· 35 35 #include <linux/memblock.h> 36 36 #include <linux/compaction.h> 37 37 #include <linux/rmap.h> 38 + #include <linux/module.h> 38 39 39 40 #include <asm/tlbflush.h> 40 41
+1
mm/swap_slots.c
··· 30 30 #include <linux/swap_slots.h> 31 31 #include <linux/cpu.h> 32 32 #include <linux/cpumask.h> 33 + #include <linux/slab.h> 33 34 #include <linux/vmalloc.h> 34 35 #include <linux/mutex.h> 35 36 #include <linux/mm.h>