Kbuild: Disable the -Wformat-security gcc flag

Some distributions have enabled the gcc flag -Wformat-security by default.
This results in a number of warnings about format arguments to functions,
sometimes in cases where fixing the warning is not likely to actually fix a
bug. Instead of hand patching a dozens of places (possibly more) that produce
warnings that get ignored anyway we just turn off the flag in the Makefile.

Signed-off-by: Floris Kraak <randakar@gmail.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>

authored by Floris Kraak and committed by Sam Ravnborg a8735821 7a6b1f1c

+2 -1
+2 -1
Makefile
··· 344 345 KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ 346 -fno-strict-aliasing -fno-common \ 347 - -Werror-implicit-function-declaration 348 KBUILD_AFLAGS := -D__ASSEMBLY__ 349 350 # Read KERNELRELEASE from include/config/kernel.release (if it exists)
··· 344 345 KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ 346 -fno-strict-aliasing -fno-common \ 347 + -Werror-implicit-function-declaration \ 348 + -Wno-format-security 349 KBUILD_AFLAGS := -D__ASSEMBLY__ 350 351 # Read KERNELRELEASE from include/config/kernel.release (if it exists)