From nobody Fri Dec 26 21:34:37 2025 Received: from out30-111.freemail.mail.aliyun.com (out30-111.freemail.mail.aliyun.com [115.124.30.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4DF32137F; Fri, 29 Dec 2023 02:08:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R271e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045192;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0VzPxWSp_1703815688; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VzPxWSp_1703815688) by smtp.aliyun-inc.com; Fri, 29 Dec 2023 10:08:19 +0800 From: Jiapeng Chong To: irenic.rajneesh@gmail.com Cc: david.e.box@intel.com, hdegoede@redhat.com, ilpo.jarvinen@linux.intel.com, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] platform/x86/intel/pmc: make lnl_d3_fixup static Date: Fri, 29 Dec 2023 10:08:08 +0800 Message-Id: <20231229020808.55840-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The lnl_d3_fixup are not used outside the file lnl.c, so the modification is defined as static. drivers/platform/x86/intel/pmc/lnl.c:503:6: warning: no previous prototype = for =E2=80=98lnl_d3_fixup=E2=80=99. Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=3D7811 Signed-off-by: Jiapeng Chong --- drivers/platform/x86/intel/pmc/lnl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/intel/pmc/lnl.c b/drivers/platform/x86/in= tel/pmc/lnl.c index 88b35931f5df..f18fdc68fd94 100644 --- a/drivers/platform/x86/intel/pmc/lnl.c +++ b/drivers/platform/x86/intel/pmc/lnl.c @@ -500,7 +500,7 @@ const struct pmc_reg_map lnl_socm_reg_map =3D { * Set power state of select devices that do not have drivers to D3 * so that they do not block Package C entry. */ -void lnl_d3_fixup(void) +static void lnl_d3_fixup(void) { pmc_core_set_device_d3(LNL_IPU_PCI_DEV); pmc_core_set_device_d3(LNL_NPU_PCI_DEV); --=20 2.20.1.7.g153144c