diff options
| author | Yi Wang <[email protected]> | 2019-10-07 00:58:12 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2019-10-07 22:47:19 +0000 |
| commit | 758b8db4a56ab03eca4ecbfa7fa641ed30fb2a90 (patch) | |
| tree | 50516392ab105a7433b46f4cefbf31d79ab5bd2a /mm/sparse.c | |
| parent | writeback: fix use-after-free in finish_writeback_work() (diff) | |
| download | kernel-758b8db4a56ab03eca4ecbfa7fa641ed30fb2a90.tar.gz kernel-758b8db4a56ab03eca4ecbfa7fa641ed30fb2a90.zip | |
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/[email protected]
Signed-off-by: Yi Wang <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'mm/sparse.c')
| -rw-r--r-- | mm/sparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/sparse.c b/mm/sparse.c index bf32de9e666b..f6891c1992b1 100644 --- a/mm/sparse.c +++ b/mm/sparse.c @@ -219,7 +219,7 @@ static inline unsigned long first_present_section_nr(void) return next_present_section_nr(-1); } -void subsection_mask_set(unsigned long *map, unsigned long pfn, +static void subsection_mask_set(unsigned long *map, unsigned long pfn, unsigned long nr_pages) { int idx = subsection_map_index(pfn); |
