Skip to contentSkip to conversation

shmem: Fix W=1 build warnings with CONFIG_SHMEM=n

PATCH Matthew Wilcox (Oracle) 1 participant 1 message Feb 6, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

With W=1, all these functions have no prototypes so the compiler emits warnings.

---
 mm/shmem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/shmem.c +1 -1
index d333deddc2b9..b01249e5c827 100644
@@ -33,6 +33,7 @@
 #include <linux/random.h>
 #include <linux/sched/signal.h>
 #include <linux/export.h>
+#include <linux/shmem_fs.h>
 #include <linux/swap.h>
 #include <linux/uio.h>
 #include <linux/hugetlb.h>
@@ -58,7 +59,6 @@ static struct vfsmount *shm_mnt;
 #include <linux/string.h>
 #include <linux/slab.h>
 #include <linux/backing-dev.h>
-#include <linux/shmem_fs.h>
 #include <linux/writeback.h>
 #include <linux/pagevec.h>
 #include <linux/percpu_counter.h>
Signature · 1 line
2.35.1