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 0F176C433F5 for ; Thu, 18 Nov 2021 00:25:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CFB2F61BCF for ; Thu, 18 Nov 2021 00:25:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241902AbhKRA21 (ORCPT ); Wed, 17 Nov 2021 19:28:27 -0500 Received: from mga04.intel.com ([192.55.52.120]:51121 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233316AbhKRA2Z (ORCPT ); Wed, 17 Nov 2021 19:28:25 -0500 X-IronPort-AV: E=McAfee;i="6200,9189,10171"; a="232806778" X-IronPort-AV: E=Sophos;i="5.87,243,1631602800"; d="scan'208";a="232806778" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Nov 2021 16:25:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,243,1631602800"; d="scan'208";a="672602111" Received: from lkp-server02.sh.intel.com (HELO c20d8bc80006) ([10.239.97.151]) by orsmga005.jf.intel.com with ESMTP; 17 Nov 2021 16:25:24 -0800 Received: from kbuild by c20d8bc80006 with local (Exim 4.92) (envelope-from ) id 1mnVEx-0002QU-Rx; Thu, 18 Nov 2021 00:25:23 +0000 Date: Thu, 18 Nov 2021 08:25:01 +0800 From: kernel test robot To: James Morse Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH morse] x86/resctrl: domain_list_lock can be static Message-ID: <20211118002501.GA74802@df6979b0ca98> References: <202111180817.XpCUE0hP-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202111180817.XpCUE0hP-lkp@intel.com> X-Patchwork-Hint: ignore User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org arch/x86/kernel/cpu/resctrl/core.c:34:1: warning: symbol 'domain_list_lock' was not declared. Should it be static? Fixes: 63dc771f7240 ("x86/resctrl: Split arch and fs resctrl locks") Reported-by: kernel test robot Signed-off-by: kernel test robot --- core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/resctrl/core.c b/arch/x86/kernel/cpu/resctrl/core.c index ae5d9e2d20b3b2..439078c4a676b3 100644 --- a/arch/x86/kernel/cpu/resctrl/core.c +++ b/arch/x86/kernel/cpu/resctrl/core.c @@ -31,7 +31,7 @@ * The rdt_resource's domain list is updated when this happens. The domain * list is protected by cpuhp as a rwlock, writers also take this mutex. */ -DEFINE_MUTEX(domain_list_lock); +static DEFINE_MUTEX(domain_list_lock); /* * The cached resctrl_pqr_state is strictly per CPU and can never be