From: Heiko Carstens Date: Tue, 19 May 2026 06:20:40 +0000 (+0200) Subject: s390/debug: Remove s390dbf_sysctl_header variable X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=3f90f58eb7979a3145a65071f597942e7cbc04e5;p=thirdparty%2Flinux.git s390/debug: Remove s390dbf_sysctl_header variable allmodconfig with clang W=1 points out an unused global variable: arch/s390/kernel/debug.c:1237:33: error: variable 's390dbf_sysctl_header' set but not used [-Werror,-Wunused-but-set-global] Just remove the variable. There is no point in adding error handling for a failing register_sysctl() call. Reviewed-by: Christian Borntraeger Signed-off-by: Heiko Carstens Signed-off-by: Alexander Gordeev --- diff --git a/arch/s390/kernel/debug.c b/arch/s390/kernel/debug.c index 7bc403d081fac..dbf430f479bdf 100644 --- a/arch/s390/kernel/debug.c +++ b/arch/s390/kernel/debug.c @@ -1234,8 +1234,6 @@ static const struct ctl_table s390dbf_table[] = { }, }; -static struct ctl_table_header *s390dbf_sysctl_header; - /** * debug_stop_all() - stops the debug feature if stopping is allowed. * @@ -1825,7 +1823,7 @@ EXPORT_SYMBOL(debug_sprintf_format_fn); */ static int __init debug_init(void) { - s390dbf_sysctl_header = register_sysctl("s390dbf", s390dbf_table); + register_sysctl("s390dbf", s390dbf_table); mutex_lock(&debug_mutex); debug_debugfs_root_entry = debugfs_create_dir(DEBUG_DIR_ROOT, NULL); initialized = 1;