Revision 8c89ecf5c13b0504018c5045896a0b78d5d811e6 authored by Alexander Potapenko on 11 January 2023, 10:50:12 UTC, committed by Alexander Potapenko on 07 February 2023, 09:50:25 UTC
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.

Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/lkml/202301020356.dFruA4I5-lkp@intel.com/T/
Reported-by: Vlastimil Babka <vbabka@suse.cz>
Suggested-by: Marco Elver <elver@google.com>
Signed-off-by: Alexander Potapenko <glider@google.com>
1 parent 8b0ffea
History
File Mode Size
ac97
ali5451
asihpi
au88x0
aw2
ca0106
cs46xx
cs5535audio
ctxfi
echoaudio
emu10k1
hda
ice1712
korg1212
lola
lx6464es
mixart
nm256
oxygen
pcxhr
riptide
rme9652
trident
vx222
ymfpci
Kconfig -rw-r--r-- 25.4 KB
Makefile -rw-r--r-- 2.2 KB
ad1889.c -rw-r--r-- 23.1 KB
ad1889.h -rw-r--r-- 7.9 KB
ak4531_codec.c -rw-r--r-- 16.3 KB
als300.c -rw-r--r-- 19.7 KB
als4000.c -rw-r--r-- 29.2 KB
atiixp.c -rw-r--r-- 43.2 KB
atiixp_modem.c -rw-r--r-- 33.3 KB
azt3328.c -rw-r--r-- 79.8 KB
azt3328.h -rw-r--r-- 15.5 KB
bt87x.c -rw-r--r-- 27.8 KB
cmipci.c -rw-r--r-- 99.0 KB
cs4281.c -rw-r--r-- 61.6 KB
cs5530.c -rw-r--r-- 5.5 KB
ens1370.c -rw-r--r-- 75.6 KB
ens1371.c -rw-r--r-- 38 bytes
es1938.c -rw-r--r-- 53.2 KB
es1968.c -rw-r--r-- 76.7 KB
fm801.c -rw-r--r-- 40.2 KB
intel8x0.c -rw-r--r-- 87.6 KB
intel8x0m.c -rw-r--r-- 34.6 KB
maestro3.c -rw-r--r-- 79.9 KB
rme32.c -rw-r--r-- 55.7 KB
rme96.c -rw-r--r-- 69.3 KB
sis7019.c -rw-r--r-- 37.8 KB
sis7019.h -rw-r--r-- 12.7 KB
sonicvibes.c -rw-r--r-- 48.6 KB
via82xx.c -rw-r--r-- 74.9 KB
via82xx_modem.c -rw-r--r-- 32.2 KB

back to top