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 X-Spam-Level: X-Spam-Status: No, score=-15.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0AF92C433F5 for ; Fri, 3 Sep 2021 15:20:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E8FA9610E5 for ; Fri, 3 Sep 2021 15:20:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349603AbhICPVs (ORCPT ); Fri, 3 Sep 2021 11:21:48 -0400 Received: from mga04.intel.com ([192.55.52.120]:55051 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349648AbhICPVk (ORCPT ); Fri, 3 Sep 2021 11:21:40 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10096"; a="217587983" X-IronPort-AV: E=Sophos;i="5.85,265,1624345200"; d="scan'208";a="217587983" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Sep 2021 08:20:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,265,1624345200"; d="scan'208";a="467979065" Received: from lkp-server01.sh.intel.com (HELO 2115029a3e5c) ([10.239.97.150]) by orsmga007.jf.intel.com with ESMTP; 03 Sep 2021 08:20:31 -0700 Received: from kbuild by 2115029a3e5c with local (Exim 4.92) (envelope-from ) id 1mMAzW-0000Zv-HR; Fri, 03 Sep 2021 15:20:30 +0000 Date: Fri, 3 Sep 2021 23:19:41 +0800 From: kernel test robot To: Kajol Jain , mpe@ellerman.id.au, linuxppc-dev@lists.ozlabs.org, nvdimm@lists.linux.dev, linux-kernel@vger.kernel.org, peterz@infradead.org, dan.j.williams@intel.com, ira.weiny@intel.com, vishal.l.verma@intel.com Cc: kbuild-all@lists.01.org, maddy@linux.ibm.com, santosh@fossix.org Subject: [RFC PATCH] drivers/nvdimm: nvdimm_pmu_free_hotplug_memory() can be static Message-ID: <20210903151941.GA23182@a0af9ae1a611> References: <20210903050914.273525-3-kjain@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210903050914.273525-3-kjain@linux.ibm.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 drivers/nvdimm/nd_perf.c:159:6: warning: symbol 'nvdimm_pmu_free_hotplug_memory' was not declared. Should it be static? Reported-by: kernel test robot Signed-off-by: kernel test robot --- nd_perf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvdimm/nd_perf.c b/drivers/nvdimm/nd_perf.c index 4c49d1bc2a3c6..b129e5e702d59 100644 --- a/drivers/nvdimm/nd_perf.c +++ b/drivers/nvdimm/nd_perf.c @@ -156,7 +156,7 @@ static int nvdimm_pmu_cpu_hotplug_init(struct nvdimm_pmu *nd_pmu) return 0; } -void nvdimm_pmu_free_hotplug_memory(struct nvdimm_pmu *nd_pmu) +static void nvdimm_pmu_free_hotplug_memory(struct nvdimm_pmu *nd_pmu) { cpuhp_state_remove_instance_nocalls(nd_pmu->cpuhp_state, &nd_pmu->node); cpuhp_remove_multi_state(nd_pmu->cpuhp_state);