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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20231122105336.256919-1-ben.dooks@codethink.co.uk>
Date:   Wed, 22 Nov 2023 10:53:36 +0000
From:   Ben Dooks <ben.dooks@...ethink.co.uk>
To:     linux-kernel@...r.kernel.org
Cc:     peterz@...radead.org, mingo@...hat.com, will@...nel.org,
        longman@...hat.com, boqun.feng@...il.com,
        Ben Dooks <ben.dooks@...ethink.co.uk>
Subject: [PATCH] lockdep: make variable check_consistency static

The variable check_consistency is not used outside of this
file so make it static to fix the following sparse warning:

kernel/locking/lockdep.c:1148:5: warning: symbol 'check_consistency' was not declared. Should it be static?

Signed-off-by: Ben Dooks <ben.dooks@...ethink.co.uk>
---
 kernel/locking/lockdep.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c
index e85b5ad3e206..73aeee69ebd1 100644
--- a/kernel/locking/lockdep.c
+++ b/kernel/locking/lockdep.c
@@ -1145,7 +1145,7 @@ static bool __check_data_structures(void)
 	return true;
 }
 
-int check_consistency = 0;
+static int check_consistency = 0;
 module_param(check_consistency, int, 0644);
 
 static void check_data_structures(void)
-- 
2.37.2.352.g3c44437643

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ