Messages in this thread Patch in this message | | | From | GUO Zihua <> | Subject | [PATCH -next] lkdtm/bugs: Make huge and ignored static | Date | Fri, 4 Aug 2023 16:49:02 +0800 |
| |
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 <guozihua@huawei.com> --- drivers/misc/lkdtm/bugs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/misc/lkdtm/bugs.c b/drivers/misc/lkdtm/bugs.c index 3c95600ab2f7..9b0310e0b923 100644 --- a/drivers/misc/lkdtm/bugs.c +++ b/drivers/misc/lkdtm/bugs.c @@ -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) { -- 2.17.1
| |