Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp4301272rdb; Thu, 28 Dec 2023 18:08:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IFA/HIIQqY+U0FQFJtrqjli97qiGgU3NxdzcDWtoUgaVliOSHxqvQxsOvSfP9wt68BdCZB4 X-Received: by 2002:a05:6808:3013:b0:3bb:e06a:f107 with SMTP id ay19-20020a056808301300b003bbe06af107mr357807oib.52.1703815718406; Thu, 28 Dec 2023 18:08:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703815718; cv=none; d=google.com; s=arc-20160816; b=IWP0ekFQ/KK9l7bkn7FvHu5rOv1z+pP7tOGk06EyjoiS5qSu7tPHZUH6+ebXY4TciO 3CrOv94eA9eDardkfZ0e9D5TaWNTE7IjSBBPgaonfFf66zZe/T4g8nfDZo9dOoXOCtBt zIpGWTi5jvlKkmBZcF7FlPabvtwHHghpqVeFTcukSQMmuyXHb9fjpg8uLPnQLtGjcpnA tSu54L15GYRQKU32LdQL5byFdIl/3tEsz6zBfxyuS95J4OGEsSvAZqKTNoTzaPtXaCjv /k0KmXAiVtC0WSHNnMd62hyVkFqM61KbNnmQFkTklKvWIRzRddNQiJM82g7htXkUhc5q 0D/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=quvKFl2umLwavKH/8cPxmUdEbN4oEC0NlC7yH68oWH4=; fh=Hu4BrfNRet+vIbfL9dAhxa55xEllnQN7V/PsanxCcGE=; b=lGXxq5sIoDrtc6Gr9b/BJVk7n2Y5wI0FGwTPn/7cNORndJnh1ALOwKfHGrThZkQf2r 9UKmL+KnjwLY9bf4CsNagbaJKzpO/MkBD6Rpi9BHOpzxNtHrXoNdjcJ6KZF35/QTaOkO ejZp36+uuKRrwrtU0WSrZ3OjfNAbBSBbCcsLLJFPq4+rFEcArSOzN467u/0G+94ejm+U ELotjgWM7xYYpp/J55GAkSi+72ln8QOSW6gUDj5F5QOVhditdX6hGeVhchKKMG+9V3/u lLECal9sq5zv7j6p4mbGlJAeZiA3UqtLmwtvsAEtvQoy7nvFytz6zL8Q94zfCjQkbAeU 3c9Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-12909-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12909-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id n8-20020a0cdc88000000b0067f8f1666c5si16325816qvk.430.2023.12.28.18.08.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 18:08:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12909-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-12909-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12909-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2A0201C22000 for ; Fri, 29 Dec 2023 02:08:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5798517C4; Fri, 29 Dec 2023 02:08:31 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org 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: 8bit 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 ‘lnl_d3_fixup’. Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7811 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/intel/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 = { * 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); -- 2.20.1.7.g153144c