Content-Type: multipart/mixed; boundary="===============5100964111445146169==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [RFC PATCH] lib/stackdepot: stack_depot_init_mutex can be static Date: Wed, 13 Oct 2021 05:52:33 +0800 Message-ID: <20211012215233.GA41525@800d2291961c> In-Reply-To: <20211012090621.1357-1-vbabka@suse.cz> List-Id: --===============5100964111445146169== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable lib/stackdepot.c:150:1: warning: symbol 'stack_depot_init_mutex' was not de= clared. Should it be static? Reported-by: kernel test robot Signed-off-by: kernel test robot --- stackdepot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stackdepot.c b/lib/stackdepot.c index 9bb5333bf02f61..89b67aef9b320b 100644 --- a/lib/stackdepot.c +++ b/lib/stackdepot.c @@ -147,7 +147,7 @@ static struct stack_record *depot_alloc_stack(unsigned = long *entries, int size, #define STACK_HASH_MASK (STACK_HASH_SIZE - 1) #define STACK_HASH_SEED 0x9747b28c = -DEFINE_MUTEX(stack_depot_init_mutex); +static DEFINE_MUTEX(stack_depot_init_mutex); static bool stack_depot_disable; static struct stack_record **stack_table; =20 --===============5100964111445146169==--