Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4637403img; Tue, 26 Mar 2019 13:30:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqy2+JtLkIYwjtPjYxW9XTtX/1eBuHuG1rAq2HWb1DmHr4wbfYBoZNZBnVQSbn1+g3tB4wN0 X-Received: by 2002:a65:5b47:: with SMTP id y7mr30784186pgr.449.1553632211995; Tue, 26 Mar 2019 13:30:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553632211; cv=none; d=google.com; s=arc-20160816; b=brY0mQfFe/9teVQghzeu33loxFa6edCC+DK3vthdbxo0naDPgRHXIFA4ivFpGzbRgI nR60Viu0Vbdx+CdvzT0Lko11MuAr2FK/ej02x0SDAbUvcYORj4F3x82oW4SW0q2WyZWp ZkKjcX4Tbzd7Yq2aaY+QiSkjt0Zsds+OpYX9uKoHwb+SipJBljrWcbraO5tJ3zZoVubu 0TVrMlOswFjewgeMpYjs+pg0X8jjq85jppTsEhwKY+r0ftWU5TpG49g3BDRlZtoxcofU tEqoAheJlBNZ+BP3MrB1XjKXTBs9Y1HPrmA3xDnXiog8H3zZ49hXFChH6BxJhucFgYJR ZF8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=CcDCttWQQRDFnDGuctKlblg/7Ea1ohw3g/GU0uxyTOE=; b=QeTiOh7exh7ZpNYRP2cjPKxagBH2ZS0HThRPffOpAuVEva329ddw06aJXvFW5SKOdC oV+b4iUGlot8Yuhy8o91neXgxXYT1dqOPfLsFGG/vGgjhN6s1xl5Xobm94SmiY0PwPtO gRQFlAmBrjcIjeJQXm/aoI08ysx4kcftV6r8oz7BkMmC/pKn7R3QKGwzTDZqh04B8hM+ m8z1FATXuXiJy/syRZ7oeZUVCr8O5/1NkBaOWVPHgxTZVb35BSpWSOSOaolgtj+vCz56 aIC26zpnpMJweQIToUZhBQd8X25AwZI23luLj2gUACanlNIN/uSOWWz7DYzYz1K6jDlx S0kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=FXq6lIz9; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l14si16819280pfj.112.2019.03.26.13.29.54; Tue, 26 Mar 2019 13:30:11 -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=fail header.i=@gmail.com header.s=20161025 header.b=FXq6lIz9; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732623AbfCZU3Q (ORCPT + 99 others); Tue, 26 Mar 2019 16:29:16 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:40679 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731617AbfCZU3Q (ORCPT ); Tue, 26 Mar 2019 16:29:16 -0400 Received: by mail-pf1-f196.google.com with SMTP id c207so8601300pfc.7; Tue, 26 Mar 2019 13:29:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=CcDCttWQQRDFnDGuctKlblg/7Ea1ohw3g/GU0uxyTOE=; b=FXq6lIz99Mam0RoeP8qISwnQAqGIozaOBfNn0sGdjRySvPV2zLaGxq9oq6VdixmR7N geb9f6zO+f5ivmven2kSFQISnUOUARovoTYuzYUoGC6Lyrmfi5qDgV5maSBXrWGUQv89 Z78TfzoBNAuWIUxZPs1GwJSXy1RtY5yx/wiSKEURZH9PzBTvpwbSVAgVWLQkpviez3vc H3B7Gq3qtZSD/uD239edUWHRE0Zr8zVwyWOmf+sYXaONz+z0xhMI/iQNTlulU8AVPKQ+ zZTg5d+xHLlbJ61g5H95BUQZl0TZf1aEbyOUCoHFcfNUWzeFHFXAUw3A7HiLHDDZOp8W OoJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=CcDCttWQQRDFnDGuctKlblg/7Ea1ohw3g/GU0uxyTOE=; b=dHEkToxG39YjjXK7Dml/NshjyfVmJN39Jd5EC6l6ntbWjvu7QbNozfiS4MPXn85yNa iz3pw96ZWbwhIt1wiVhI+Uzkk+hGTT/yb3pDtMzf4xEUW0SGDaYqjiEJOj6uAQvkWYVU Lmrn9OE1cQse+tY+Fz3d2GoBex6BgIpoWqrHBjjBp6YB7qZOgzEaEtBwnIT8mYNVX0Wg 9lPSQKOaOz8hcwCwaW732pylksNTf5PrxiDnCfD+3ibru96saNvw/CzU4WZ9OSBT22Gz VcKAKzbsbonD8BE5A4YZX+EMDpSG2KREGqUeYyl3gFDK5HgqWS8xUBj111JLSIOxmoe9 jigg== X-Gm-Message-State: APjAAAVOBKeHWVbm8eDBan+vM+4HTXl3Kc837kOJUTiQXkdOEV1dl+rX sJLjIhDP9GyfPNqlfuYJ7Xk= X-Received: by 2002:a62:55c7:: with SMTP id j190mr30767413pfb.226.1553632155568; Tue, 26 Mar 2019 13:29:15 -0700 (PDT) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id e13sm35613527pgb.37.2019.03.26.13.29.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Mar 2019 13:29:14 -0700 (PDT) From: Guenter Roeck To: Rajneesh Bhardwaj Cc: Vishwanath Somayaji , Darren Hart , Andy Shevchenko , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Guenter Roeck , Rajneesh Bhardwaj Subject: [PATCH] platform/x86: intel_pmc_core: Mark local function static Date: Tue, 26 Mar 2019 13:29:12 -0700 Message-Id: <1553632152-18888-1-git-send-email-linux@roeck-us.net> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 0day reports: drivers/platform/x86/intel_pmc_core.c:833:5: sparse: symbol 'quirk_xtal_ignore' was not declared. Should it be static? 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; -- 2.7.4