aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_printf.c
diff options
context:
space:
mode:
authorRandy Dunlap <[email protected]>2021-09-07 22:42:02 +0000
committerLinus Torvalds <[email protected]>2021-09-08 16:44:42 +0000
commit49832c819ab85b33b7a2a1429c8d067e82be2977 (patch)
tree48d5058e061742f7bb404f4c7f90f3ef2e449a2e /lib/test_printf.c
parentMerge tag 'pci-v5.15-changes' of git://git.kernel.org/pub/scm/linux/kernel/gi... (diff)
downloadkernel-49832c819ab85b33b7a2a1429c8d067e82be2977.tar.gz
kernel-49832c819ab85b33b7a2a1429c8d067e82be2977.zip
Makefile: use -Wno-main in the full kernel tree
When using gcc (SUSE Linux) 7.5.0 (on openSUSE 15.3), I see a build warning: kernel/trace/trace_osnoise.c: In function 'start_kthread': kernel/trace/trace_osnoise.c:1461:8: warning: 'main' is usually a function [-Wmain] void *main = osnoise_main; ^~~~ Quieten that warning by using "-Wno-main". It's OK to use "main" as a declaration name in the kernel. Build-tested on most ARCHes. [ v2: only do it for gcc, since clang doesn't have that particular warning ] Signed-off-by: Randy Dunlap <[email protected]> Link: https://lore.kernel.org/lkml/[email protected]/ Suggested-by: Steven Rostedt <[email protected]> Suggested-by: Linus Torvalds <[email protected]> Cc: Daniel Bristot de Oliveira <[email protected]> Cc: Masahiro Yamada <[email protected]> Cc: Michal Marek <[email protected]> Cc: [email protected] Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/test_printf.c')
0 files changed, 0 insertions, 0 deletions