summaryrefslogtreecommitdiff
path: root/drivers/platform
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2026-08-11 14:51:44 -0400
committerMatthew Wilcox (Oracle) <willy@infradead.org>2026-08-25 15:12:26 -0400
commit372c1254a10712f04cc47fa96b6627b58f091eb6 (patch)
tree681099a0fc1f2a0edd82baf4d0070732bf64a163 /drivers/platform
parent5046db841c50ae0945d7f3e9f6e0815491a1f189 (diff)
downloadlinux-next-372c1254a10712f04cc47fa96b6627b58f091eb6.tar.gz
linux-next-372c1254a10712f04cc47fa96b6627b58f091eb6.zip
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) <willy@infradead.org>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/arm64/huawei-gaokun-ec.c1
-rw-r--r--drivers/platform/arm64/lenovo-yoga-c630.c2
-rw-r--r--drivers/platform/x86/intel/int3472/clk_and_regulator.c1
3 files changed, 3 insertions, 1 deletions
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 <linux/hwmon.h>
#include <linux/hwmon-sysfs.h>
#include <linux/i2c.h>
+#include <linux/interrupt.h>
#include <linux/input.h>
#include <linux/notifier.h>
#include <linux/module.h>
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 <linux/device.h>
#include <linux/err.h>
#include <linux/i2c.h>
-#include <linux/irqreturn.h>
+#include <linux/interrupt.h>
#include <linux/lockdep.h>
#include <linux/module.h>
#include <linux/mutex.h>
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 <linux/platform_data/x86/int3472.h>
#include <linux/regulator/driver.h>
#include <linux/slab.h>
+#include <linux/string_helpers.h>
/*
* 82c0d13a-78c5-4244-9bb1-eb8b539a8d11