From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 26CA3C433EF for ; Tue, 12 Oct 2021 21:53:04 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E384460E78 for ; Tue, 12 Oct 2021 21:53:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E384460E78 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BE46E6E9E5; Tue, 12 Oct 2021 21:52:58 +0000 (UTC) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0279A6E57A; Tue, 12 Oct 2021 21:52:56 +0000 (UTC) X-IronPort-AV: E=McAfee;i="6200,9189,10135"; a="288152671" X-IronPort-AV: E=Sophos;i="5.85,368,1624345200"; d="scan'208";a="288152671" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Oct 2021 14:52:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,368,1624345200"; d="scan'208";a="659280302" Received: from lkp-server02.sh.intel.com (HELO 08b2c502c3de) ([10.239.97.151]) by orsmga005.jf.intel.com with ESMTP; 12 Oct 2021 14:52:51 -0700 Received: from kbuild by 08b2c502c3de with local (Exim 4.92) (envelope-from ) id 1maPha-0003wK-Vh; Tue, 12 Oct 2021 21:52:50 +0000 Date: Wed, 13 Oct 2021 05:52:33 +0800 From: kernel test robot To: Vlastimil Babka , Andrew Morton Cc: kbuild-all@lists.01.org, Linux Memory Management List , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, kasan-dev@googlegroups.com, Vlastimil Babka , Dmitry Vyukov , Marco Elver , Vijayanand Jitta Message-ID: <20211012215233.GA41525@800d2291961c> References: <20211012090621.1357-1-vbabka@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211012090621.1357-1-vbabka@suse.cz> X-Patchwork-Hint: ignore User-Agent: Mutt/1.10.1 (2018-07-13) Subject: [Intel-gfx] [RFC PATCH] lib/stackdepot: stack_depot_init_mutex can be static X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" lib/stackdepot.c:150:1: warning: symbol 'stack_depot_init_mutex' was not declared. 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;