From patchwork Tue Mar 1 03:28:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kernel test robot X-Patchwork-Id: 12764025 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id D5081C433EF for ; Tue, 1 Mar 2022 03:29:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3EC418D0002; Mon, 28 Feb 2022 22:29:51 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 39A6D8D0001; Mon, 28 Feb 2022 22:29:51 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 289A78D0002; Mon, 28 Feb 2022 22:29:51 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.27]) by kanga.kvack.org (Postfix) with ESMTP id 160E08D0001 for ; Mon, 28 Feb 2022 22:29:51 -0500 (EST) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay12.hostedemail.com (Postfix) with ESMTP id CCE3F120656 for ; Tue, 1 Mar 2022 03:29:50 +0000 (UTC) X-FDA: 79194388140.07.D4A0A5C Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by imf16.hostedemail.com (Postfix) with ESMTP id 995C3180009 for ; Tue, 1 Mar 2022 03:29:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646105389; x=1677641389; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=sb+osfrcvZS2El/NBGqKsGRy9fYRkfIxjpOnZRPdc4M=; b=Gz8jQ5LNt3j7RY3QkLGSkxJiuByg0PAxASwO81PRcQPHjxqKxo5bt1b6 efsIFXzOOL9ug74iDaGjD1Hf77XdNljLSBrs1bbym2vwPYGZZONRZZpX2 xJ9MhtUBduz8fV5uQs1wT5Yb+4ac+OPlCXGco84vqREup2Al89/wnjTWb Xd438rmiXDluyUkaXizYW217ck0zqt+cy1Q2V3zfSAyS6V1QfYkFLB1+U N9P5eeQF31W+udqW9blEtp5PUpyDaAKGCsrDjjbmb31tHgk/GE+kUdfFZ bVUUdmfWiOKlqY5bgD7ahQj5zpH/o4LoZEdqP6zLaBX9RxOfciAxOWnXp g==; X-IronPort-AV: E=McAfee;i="6200,9189,10272"; a="250628651" X-IronPort-AV: E=Sophos;i="5.90,144,1643702400"; d="scan'208";a="250628651" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Feb 2022 19:29:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,144,1643702400"; d="scan'208";a="575559283" Received: from lkp-server01.sh.intel.com (HELO 788b1cd46f0d) ([10.239.97.150]) by orsmga001.jf.intel.com with ESMTP; 28 Feb 2022 19:29:46 -0800 Received: from kbuild by 788b1cd46f0d with local (Exim 4.92) (envelope-from ) id 1nOtCr-00083t-LN; Tue, 01 Mar 2022 03:29:45 +0000 Date: Tue, 1 Mar 2022 11:28:54 +0800 From: kernel test robot To: Daniel Lezcano Cc: kbuild-all@lists.01.org, Linux Memory Management List , Ulf Hansson , "Rafael J. Wysocki" , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH linux-next] powercap/drivers/dtpm: dtpm_node_callback[] can be static Message-ID: <20220301032854.GA65991@baa819af95e9> References: <202203011104.TkmvSjFD-lkp@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <202203011104.TkmvSjFD-lkp@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 995C3180009 X-Rspam-User: Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Gz8jQ5LN; spf=none (imf16.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.93) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Stat-Signature: qnycsbmkzayb4j1jo37bpak9sp5r95qu X-HE-Tag: 1646105389-635728 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: drivers/powercap/dtpm.c:525:22: warning: symbol 'dtpm_node_callback' was not declared. Should it be static? Fixes: 3759ec678e89 ("powercap/drivers/dtpm: Add hierarchy creation") Reported-by: kernel test robot Signed-off-by: kernel test robot --- drivers/powercap/dtpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/powercap/dtpm.c b/drivers/powercap/dtpm.c index 414826a1509b6..6d890d8cf9169 100644 --- a/drivers/powercap/dtpm.c +++ b/drivers/powercap/dtpm.c @@ -522,7 +522,7 @@ static struct dtpm *dtpm_setup_dt(const struct dtpm_node *hierarchy, typedef struct dtpm * (*dtpm_node_callback_t)(const struct dtpm_node *, struct dtpm *); -dtpm_node_callback_t dtpm_node_callback[] = { +static dtpm_node_callback_t dtpm_node_callback[] = { [DTPM_NODE_VIRTUAL] = dtpm_setup_virtual, [DTPM_NODE_DT] = dtpm_setup_dt, };