diff options
| author | Lee Jones <[email protected]> | 2020-06-26 14:05:19 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-06-29 18:45:52 +0200 |
| commit | f049c545465de225d0ceb036b2dd08c5cfd31344 (patch) | |
| tree | fb2ec39af8d6c6cac54a09f76b8d9644343431b7 /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | 3caf1b48397f2de0dab88d5b2daf002159ed30bd (diff) | |
misc: lkdtm: bugs: At least try to use popuated variable
The result may not be intereresting, but not using a set variable
is bad form and causes W=1 kernel builds to complain.
Fixes the following W=1 warning(s):
drivers/misc/lkdtm/bugs.c: In function ‘lkdtm_STACK_GUARD_PAGE_LEADING’:
drivers/misc/lkdtm/bugs.c:331:25: warning: variable ‘byte’ set but not used [-Wunused-but-set-variable]
331 | volatile unsigned char byte;
| ^~~~
drivers/misc/lkdtm/bugs.c: In function ‘lkdtm_STACK_GUARD_PAGE_TRAILING’:
drivers/misc/lkdtm/bugs.c:345:25: warning: variable ‘byte’ set but not used [-Wunused-but-set-variable]
345 | volatile unsigned char byte;
| ^~~~
Cc: Kees Cook <[email protected]>
Acked-by: Kees Cook <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions