Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp341625yba; Fri, 5 Apr 2019 07:46:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqz+OP5OEK6Ykff3kdQ3wFDfkCyqC5FYgCyFxJjxxoIUtwbqKHWjcZulrKs5GhSyMI/2BG7P X-Received: by 2002:a5e:df07:: with SMTP id f7mr8930771ioq.166.1554475595377; Fri, 05 Apr 2019 07:46:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554475595; cv=none; d=google.com; s=arc-20160816; b=jUnTxznNP1f7R7uIBNMpnovzgH49GGBCbiYhnE6HZ6dVS/LeqE2XyM0vvz2Au+SwHt k135MPP8QzD4BPFhmmx1uEEbpGbguIXZj70OmX+7SCvzrufj5aQKo4M3D6LPj0l4ojFW QvHrvzZ43vSu3UpqPW8cc+G7aCNFpPhp8/a0E29k+OYwDT4zJnOH2/bSi+q6pM8B+jDo 2o4F+xjx6X7j1uSawJIKetaJOgjMLpHeRDrtNCC6XnucNjF1fxNZM12nYs21Y7KklbRT OcY+Is4xRcMgcrThYk3fiyonNk25CfUJlAu7Ta5JCIZ1G+NSw4BYDLpiaIuwZCePZ03o oV6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ZSobiwhSicZO2v13qvj2ulj+R9mnYfza+QmYpFGujDk=; b=LVjpnr/AY2PwuFvqnbiF4GjOp98E0YCuwpdVtl0iCJ4zPgxBCITW+l2FVaL0i38GnA Hq26PdiXpjtC45n/H9Yq552PDOloVdGKtBvB7lVZy21A/UfC/wnZLapjd2MG1r5x/Fbr CtZ+JenVKPsapo5sQHqENiy2j33YI5zoAY6sBWh5KgDK/Qa/5nqSECYqqJygvYfx15Xj AC91Mk4ccPtHzDwj1RWrmlnjA9fRMmQ3ekuaZwvJJzqx+gmK1tctjIdJglmeiwmZJrCZ GG6R079JturP4KBZuwcXfF9et+B7WtE28uyY96ybcQfr+LYNv988fJhIB+5MsW1bJ6MF Pe2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TgcKz7Iv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m71si1314312itb.75.2019.04.05.07.46.21; Fri, 05 Apr 2019 07:46:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TgcKz7Iv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731140AbfDEOpq (ORCPT + 99 others); Fri, 5 Apr 2019 10:45:46 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:37024 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726291AbfDEOpq (ORCPT ); Fri, 5 Apr 2019 10:45:46 -0400 Received: by mail-pl1-f193.google.com with SMTP id w23so3154898ply.4; Fri, 05 Apr 2019 07:45:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZSobiwhSicZO2v13qvj2ulj+R9mnYfza+QmYpFGujDk=; b=TgcKz7IvrJ8TBMTktTpFfLRls8tozIbD1zCJ0l4ea9JZSBI5iwWn49ziNrzQ7Po7o+ ry4t7GsjdvIAwgeJHXW+c/PjZsWk4xaF3VU6zyECAoz6seqpFUelZGiSUVfoRIdPg7dr z2i9Oc6Vf0y4ggPXhMG6jymLD2MEmMu25KnxFmLLGNCQt6wsAVJj2AGF7HmJD9kBOou9 MqNxCWVhmEjJI7xpFJHqmjpQfdmV6BOjhUAN2kBF62vj8581c0zQlNx/m1F+fa6TwIro 26IvHcBm9GYGGS+N1DL+SeJ3FK6FLk/ky1gFeCCtVHuFerH6Z32f2BzHXQGnAd4AV4pI CZDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZSobiwhSicZO2v13qvj2ulj+R9mnYfza+QmYpFGujDk=; b=Ku5Gyu/q/GTn2UYerwGS/cwzykPz6yn3/USv2sBI53u48+IESzBE4Pqp13HyKoMkrv 6md4dX7wCKTYgOq+ceuYbEXfXajPzLx5oWI+KQ3VIvHi7Qzpq/mG2vGGIrNnF15pkGsD zkM9sF13T6fRPQpGs8DINTGGflDR1IVGvEBgv87lg1krzA90OO/AcfBmuAwhUw2/Jghx 8S9FttmjeMrl9A8YHel7lnTJsCItNv1Y0Air5ObhyqT3gblDZqtCn1noQaz/Ckn+sfkB WPo2M3ORdKYyr0rZL7JaI8WztJkPEmsB6bAJarXPpDLjc9iD6E3mJb6IQxFOlyOvvHSm Qirg== X-Gm-Message-State: APjAAAUIalsGL2JjRkrURugdW7WbRZXHNCVIoodckRfNpcvEl/65K7HJ Kc5ksdw9y36KcgBfqGt/23kiv1upZzwm+YlqHg8= X-Received: by 2002:a17:902:6b8c:: with SMTP id p12mr13024961plk.282.1554475545611; Fri, 05 Apr 2019 07:45:45 -0700 (PDT) MIME-Version: 1.0 References: <1553632152-18888-1-git-send-email-linux@roeck-us.net> <4554bd3e-fabb-44aa-fc82-52ec9cbf9b2c@linux.intel.com> In-Reply-To: <4554bd3e-fabb-44aa-fc82-52ec9cbf9b2c@linux.intel.com> From: Andy Shevchenko Date: Fri, 5 Apr 2019 17:45:32 +0300 Message-ID: Subject: Re: [PATCH] platform/x86: intel_pmc_core: Mark local function static To: "Bhardwaj, Rajneesh" Cc: Guenter Roeck , Rajneesh Bhardwaj , Vishwanath Somayaji , Darren Hart , Andy Shevchenko , Platform Driver , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 27, 2019 at 2:47 PM Bhardwaj, Rajneesh wrote: > > > On 27-Mar-19 1:59 AM, Guenter Roeck wrote: > > 0day reports: > > > > drivers/platform/x86/intel_pmc_core.c:833:5: sparse: > > symbol 'quirk_xtal_ignore' was not declared. Should it be static? > > Looks good to me. Please, give a corresponding tag. Meanwhile I will apply it to my review and testing queue for robots to play with, thanks! > > > Mark the function static since it is indeed only called locally. > > > > Cc: Rajneesh Bhardwaj > > Fixes: 238f9c11351f ("platform/x86: intel_pmc_core: Quirk to ignore XTAL shutdown") > > Signed-off-by: Guenter Roeck > > --- > > drivers/platform/x86/intel_pmc_core.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/platform/x86/intel_pmc_core.c b/drivers/platform/x86/intel_pmc_core.c > > index f2c621b55f49..9908d233305e 100644 > > --- a/drivers/platform/x86/intel_pmc_core.c > > +++ b/drivers/platform/x86/intel_pmc_core.c > > @@ -828,7 +828,7 @@ static const struct pci_device_id pmc_pci_ids[] = { > > * the platform BIOS enforces 24Mhx Crystal to shutdown > > * before PMC can assert SLP_S0#. > > */ > > -int quirk_xtal_ignore(const struct dmi_system_id *id) > > +static int quirk_xtal_ignore(const struct dmi_system_id *id) > > { > > struct pmc_dev *pmcdev = &pmc; > > u32 value; -- With Best Regards, Andy Shevchenko