lkdtm/bugs: Make huge and ignored static
Subsystems (2)
PATCH 1/1 lkdtm/bugs: Make huge and ignored static
huge and ignored is not referred elsewhere, so make them static.
This resolves sparse warnings:
warning: symbol 'huge' was not declared. Should it be static?
warning: symbol 'ignored' was not declared. Should it be static?
Signed-off-by GUO Zihua <[email protected]>
--- drivers/misc/lkdtm/bugs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/misc/lkdtm/bugs.c +2 -2
@@ -273,8 +273,8 @@ static void lkdtm_HUNG_TASK(void)schedule (); } -volatile unsigned int huge =INT_MAX -2 ; -volatile unsigned int ignored; +static const volatile unsigned int huge =INT_MAX -2 ; +static volatile unsigned int ignored;static void lkdtm_OVERFLOW_SIGNED (void ) {
Signature · 1 line
2.17.1