linux/mm/kmsan
Alexander Potapenko 62a9bbf2e9 kmsan: silence -Wmissing-prototypes warnings
When building the kernel with W=1, the compiler reports numerous warnings
about the missing prototypes for KMSAN instrumentation hooks.

Because these functions are not supposed to be called explicitly by the
kernel code (calls to them are emitted by the compiler), they do not have
to be declared in the headers.  Instead, we add forward declarations right
before the definitions to silence the warnings produced by
-Wmissing-prototypes.

Link: https://lkml.kernel.org/r/20230112103147.382416-1-glider@google.com
Signed-off-by: Alexander Potapenko <glider@google.com>
Reported-by: Vlastimil Babka <vbabka@suse.cz>
Suggested-by: Marco Elver <elver@google.com>
Reviewed-by: Marco Elver <elver@google.com>
Reported-by: kernel test robot <lkp@intel.com>
  Link: https://lore.kernel.org/lkml/202301020356.dFruA4I5-lkp@intel.com/T/
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2023-02-02 22:33:05 -08:00
..
core.c kmsan: handle task creation and exiting 2022-10-03 14:03:20 -07:00
hooks.c kmsan: export kmsan_handle_urb 2022-12-21 14:31:52 -08:00
init.c init: kmsan: call KMSAN initialization routines 2022-10-03 14:03:21 -07:00
instrumentation.c kmsan: silence -Wmissing-prototypes warnings 2023-02-02 22:33:05 -08:00
kmsan.h kmsan: core: kmsan_in_runtime() should return true in NMI context 2022-11-08 15:57:24 -08:00
kmsan_test.c kmsan: include linux/vmalloc.h 2022-12-21 14:31:51 -08:00
Makefile kmsan: add tests for KMSAN 2022-10-03 14:03:22 -07:00
report.c kmsan: add KMSAN runtime core 2022-10-03 14:03:19 -07:00
shadow.c mm: kmsan: export kmsan_copy_page_meta() 2022-10-28 13:37:22 -07:00