From: Matthew Wilcox (Oracle) Date: Mon, 6 Feb 2023 19:08:50 +0000 (+0000) Subject: shmem: fix W=1 build warnings with CONFIG_SHMEM=n X-Git-Tag: v6.6.17~5460^2~98 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5ff2121a3336a63aa7060cd71534d39dfb1cd2d1;p=platform%2Fkernel%2Flinux-rpi.git shmem: fix W=1 build warnings with CONFIG_SHMEM=n With W=1 and CONFIG_SHMEM=n, shmem.c functions have no prototypes so the compiler emits warnings. Link: https://lkml.kernel.org/r/20230206190850.4054983-1-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) Cc: Mark Hemment Cc: Charan Teja Kalla Cc: David Rientjes Cc: Hugh Dickins Cc: Michal Hocko Cc: Pavankumar Kondeti Cc: Shakeel Butt Cc: Suren Baghdasaryan Cc: Vlastimil Babka Signed-off-by: Andrew Morton --- diff --git a/mm/shmem.c b/mm/shmem.c index be6bdd3..577b383 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include @@ -58,7 +59,6 @@ static struct vfsmount *shm_mnt; #include #include #include -#include #include #include #include