]> git.baikalelectronics.ru Git - kernel.git/commit
mm: fix -Wmissing-prototypes warnings
authorYi Wang <wang.yi59@zte.com.cn>
Mon, 7 Oct 2019 00:58:12 +0000 (17:58 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 7 Oct 2019 22:47:19 +0000 (15:47 -0700)
commit37724cdfde5ce58fb7f00a3f28959b8235305045
tree50516392ab105a7433b46f4cefbf31d79ab5bd2a
parentd06ea00cb62ea0ec5406e6490f09ef76c8e9cd7e
mm: fix -Wmissing-prototypes warnings

We get two warnings when build kernel W=1:

  mm/shuffle.c:36:12: warning: no previous prototype for `shuffle_show' [-Wmissing-prototypes]
  mm/sparse.c:220:6: warning: no previous prototype for `subsection_mask_set' [-Wmissing-prototypes]

Make the functions static to fix this.

Link: http://lkml.kernel.org/r/1566978161-7293-1-git-send-email-wang.yi59@zte.com.cn
Signed-off-by: Yi Wang <wang.yi59@zte.com.cn>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/shuffle.c
mm/sparse.c