lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20230804085216.550-1-guozihua@huawei.com>
Date:   Fri, 4 Aug 2023 16:52:16 +0800
From:   GUO Zihua <guozihua@...wei.com>
To:     <keescook@...omium.org>
CC:     <linux-kernel@...r.kernel.org>
Subject: [PATCH -next] scftorture: Make torture_type static

torture_type is not referred elsewhere, so make it static.

This resolves sparse warning:
  warning: symbol 'torture_type' was not declared. Should it be static?

Signed-off-by: GUO Zihua <guozihua@...wei.com>
---
 kernel/scftorture.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/scftorture.c b/kernel/scftorture.c
index 5d113aa59e77..b92da02d0293 100644
--- a/kernel/scftorture.c
+++ b/kernel/scftorture.c
@@ -67,7 +67,7 @@ torture_param(int, weight_many_wait, -1, "Testing weight for multi-CPU operation
 torture_param(int, weight_all, -1, "Testing weight for all-CPU no-wait operations.");
 torture_param(int, weight_all_wait, -1, "Testing weight for all-CPU operations.");
 
-char *torture_type = "";
+static char *torture_type = "";
 
 #ifdef MODULE
 # define SCFTORT_SHUTDOWN 0
-- 
2.17.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ