summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/xarray.py
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2025-09-11 11:49:08 +0200
committerChristian Brauner <brauner@kernel.org>2025-09-15 14:28:37 +0200
commit84f1766bdba5a6394618a45b34a320f336b02d95 (patch)
treeaa017359ede561af217351db4f22067d46aeb134 /scripts/gdb/linux/xarray.py
parentaf67f4c1cd0730810521ef4bc194c21ac3683d97 (diff)
initrd: Fix unused variable warning in rd_load_image() on s390
The local variables 'rotator' and 'rotate' (used for the progress indicator) aren't used on s390. Building the kernel with W=1 generates the following warning: init/do_mounts_rd.c:192:17: warning: variable 'rotate' set but not used [-Wunused-but-set-variable] 192 | unsigned short rotate = 0; | ^ 1 warning generated. Remove the preprocessor directives and use the IS_ENABLED(CONFIG_S390) macro instead, allowing the compiler to optimize away unused variables and avoid the warning on s390. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/xarray.py')
0 files changed, 0 insertions, 0 deletions