* [PATCH 3/2] shmem: Fix W=1 build warnings with CONFIG_SHMEM=n
@ 2023-02-06 19:08 Matthew Wilcox (Oracle)
0 siblings, 0 replies; only message in thread
From: Matthew Wilcox (Oracle) @ 2023-02-06 19:08 UTC (permalink / raw)
To: akpm, hughd, willy, markhemm, rientjes, surenb, shakeelb, mhocko,
vbabka, quic_pkondeti
Cc: linux-mm, linux-kernel, Charan Teja Kalla
With W=1, all these functions have no prototypes so the
compiler emits warnings.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
---
mm/shmem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/shmem.c b/mm/shmem.c
index d333deddc2b9..b01249e5c827 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -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>
--
2.35.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-02-06 19:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-06 19:08 [PATCH 3/2] shmem: Fix W=1 build warnings with CONFIG_SHMEM=n Matthew Wilcox (Oracle)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox