diff options
author | Matthias Kaehlcke <mka@chromium.org> | 2017-07-07 00:39:23 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-07-07 01:24:33 +0200 |
commit | d73d3c9f698c5e474e58acbaba87a1f134772747 (patch) | |
tree | 71b68397612562ec45a1a76b454fc417a021dc3b /mm/mprotect.c | |
parent | powerpc/mm/hugetlb: add support for 1G huge pages (diff) | |
download | linux-d73d3c9f698c5e474e58acbaba87a1f134772747.tar.xz linux-d73d3c9f698c5e474e58acbaba87a1f134772747.zip |
mm/page_alloc.c: mark bad_range() and meminit_pfn_in_nid() as __maybe_unused
The functions are not used in some configurations. Adding the attribute
fixes the following warnings when building with clang:
mm/page_alloc.c:409:19: error: function 'bad_range' is not needed and
will not be emitted [-Werror,-Wunneeded-internal-declaration]
mm/page_alloc.c:1106:30: error: unused function 'meminit_pfn_in_nid'
[-Werror,-Wunused-function]
Link: http://lkml.kernel.org/r/20170518182030.165633-1-mka@chromium.org
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Mel Gorman <mgorman@techsingularity.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mprotect.c')
0 files changed, 0 insertions, 0 deletions