Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5282411img; Wed, 27 Mar 2019 05:47:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqz10M/udFDEvyzBGE2dM2Bi4ITgkrMva8egy+blMujQdYHja2N/eJ6qDoB1RS59/Za/cviW X-Received: by 2002:a65:51c3:: with SMTP id i3mr33681795pgq.45.1553690879198; Wed, 27 Mar 2019 05:47:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553690879; cv=none; d=google.com; s=arc-20160816; b=KiUahab3l43NIGXaqwYjoJ8jZubp3xnqpHZmxcShhHMfomMxSGJjbF0FgPZlxJPVCM DAlq5qSScIHnBKg4IHk9pzdMhL/DzV+MOBGkBqtsVGRYgRNByqeFtd0aixHRmUodrd06 BN+SuYoznAqGtKKYwBQ0qw+SR6B9tagWU0ED7NAhp6lLnffLKDV8ELPbOPdpjcVflOQ9 hgxBTWF500XQmXJ0TwvgRCXYVJDjgxNjxxiMsOcztTrcn0dpB4UvWmecaYoeYfwAOh5Q r5eX2pLgMB/Rxs3iyP5z43TapiSCYoOELA/79UJoJUPFnk0jkD1ea6s9lZyD589NH6tP ZWig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Zqpb986ER4KVb7r2OGjiNsBO356U0EwxANkcb6zBG3M=; b=T9+X3ja7KPPbTl0lL4X2lVK60gpN3cIc8jZw81NiMVEAQdxsyyxk44Ny2PwjBFGatm WN6ng0PyPqXPZ89jWWbHkX3q4TN5bBYERm35wqVBxKsqSlsRZSwQWXBRTORQTaQ8LYVq 6vWvX5tU3ORSQqlf20DnQZB326JzjMEuwrkVtZNHC+GqrJDv5z+QXcSepGmSAZNRBe98 zmm7HKSZ2kZzU00g5B6Y1l3LhhhPNeCQCUmcyIMPNHCKMy5w99BkyD4kOTbcahJ4IfXO bw/WIaPxzLf4LWkwMks68dxOwcEKilpul4EvVeAabwkNtq86uK4FYQ29r0QddAKGJx65 JOWQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2si5471123pgh.499.2019.03.27.05.47.43; Wed, 27 Mar 2019 05:47:59 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728444AbfC0Mq6 (ORCPT + 99 others); Wed, 27 Mar 2019 08:46:58 -0400 Received: from mga12.intel.com ([192.55.52.136]:34229 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726241AbfC0Mq6 (ORCPT ); Wed, 27 Mar 2019 08:46:58 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Mar 2019 05:46:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,276,1549958400"; d="scan'208";a="218008761" Received: from rbhardw1-mobl.gar.corp.intel.com (HELO [10.252.64.67]) ([10.252.64.67]) by orsmga001.jf.intel.com with ESMTP; 27 Mar 2019 05:46:55 -0700 Subject: Re: [PATCH] platform/x86: intel_pmc_core: Mark local function static To: Guenter Roeck , Rajneesh Bhardwaj Cc: Vishwanath Somayaji , Darren Hart , Andy Shevchenko , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org References: <1553632152-18888-1-git-send-email-linux@roeck-us.net> From: "Bhardwaj, Rajneesh" Message-ID: <4554bd3e-fabb-44aa-fc82-52ec9cbf9b2c@linux.intel.com> Date: Wed, 27 Mar 2019 18:16:54 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.0 MIME-Version: 1.0 In-Reply-To: <1553632152-18888-1-git-send-email-linux@roeck-us.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > 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;