commit | 62a9bbf2e999b9dca148bd342ab7a29fcf0cb120 | [log] [tgz] |
---|---|---|
author | Alexander Potapenko <[email protected]> | Thu Jan 12 11:31:47 2023 +0100 |
committer | Andrew Morton <[email protected]> | Thu Feb 02 22:33:05 2023 -0800 |
tree | 8683aac874be7968b0ad08c970484d5c48d7d182 | |
parent | a8265cd917a63c0a1e13caf07e9a0a024480372b [diff] |
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/[email protected] Signed-off-by: Alexander Potapenko <[email protected]> Reported-by: Vlastimil Babka <[email protected]> Suggested-by: Marco Elver <[email protected]> Reviewed-by: Marco Elver <[email protected]> Reported-by: kernel test robot <[email protected]> Link: https://lore.kernel.org/lkml/[email protected]/T/ Cc: Dmitry Vyukov <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Peter Zijlstra <[email protected]> Signed-off-by: Andrew Morton <[email protected]>