Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3082180rwd; Mon, 22 May 2023 08:24:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4bko3rtPlMyVnd6QbKB9ALs6u/eDDXWD6ITkEkZqrugre196WkCqehIEwUSxE2v2vQpDm2 X-Received: by 2002:a05:6a20:3c89:b0:10b:764b:a942 with SMTP id b9-20020a056a203c8900b0010b764ba942mr4742995pzj.11.1684769051494; Mon, 22 May 2023 08:24:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684769051; cv=none; d=google.com; s=arc-20160816; b=ycPNQTO2+U4gZmHNB4+/bdtMyrSvgXBAVXQwowB+TAWmZU9ndKAZ5ok4Q1YicRV2I8 jpLeg/KDFOur/mWsAQuN9nruj89dv85lfeqmfSKd51GVK989oCthD49p135hAShG2op1 4TGcfV0mgNbDzfHzxrjCizmviiM1yoGT9EyCKngh8vWSJnmvwweCi9xkIgWDjsxizbx8 GkAUYIsVW8WP2uX5ZObASdugD1+Q+fptU+JjghOgbv00jvhQr6P6mJ84wAqSSy/iiIQC rnEEx1+7RG6KC5ynHL5y1Xmf057LiBhuKNj+amS474I0Y4yUHA9WdLOiqLg5udd2lG2u J0TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=umnm6VBKBu9NBHXEAeq0K82NcWEW4TgeGWv7k3tHZhI=; b=kfFxjlsoMubX8C+DgVrKmUxxIPVnIABiqKmCuIdCefH4rbTvo1ioEfXs6URwcr0ETf PUZzF4lkwqFBq9BYXvPBB+f5VsHhDkN6uqRjDkZhrQjtcbongUAk2QrYXoOebTKsJ1gy 6ppRtSxSgJKOTMSp2MfG/LqjWcZArrw9OloYfoAUzb1RDsKkufTmRdUwJ4kiCkGM8ZGl Z3U3qg5h4swpOzBmJjoMIqSHMKCKZGAMxDGJv7iO2dMmGphPYT5Yn109BelS0BfsAKVK 3j0GR0LZjjSeaGH4ZY6uqkOdWt+o+guzWe0b/x4oy7ntZRhPNqtLML0xkxMe3nij3Dd8 eosQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gKwN5VMs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k70-20020a638449000000b00536b4c4b695si4853632pgd.136.2023.05.22.08.23.58; Mon, 22 May 2023 08:24:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gKwN5VMs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234412AbjEVPWw (ORCPT + 99 others); Mon, 22 May 2023 11:22:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234419AbjEVPWt (ORCPT ); Mon, 22 May 2023 11:22:49 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD71A118; Mon, 22 May 2023 08:22:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1684768959; x=1716304959; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=IQ2+8qfjoJ5i8IamNG6HFwxGEud7KiyzPsQbHf9j/Pc=; b=gKwN5VMs9HA4I3lHjPLwtbgLH6/Gf2sjn+KwUSMI8KJbn2E8IehzCRoh qjPFRIxcQS1Pihj4Hy5bhnz0BzJ5yJFKte/fV7w7qLpopcY4YPgipRSya 9+Surqdl0wLW7m5xvC1nzZE5Ygxvdo5Bxo7cy3zDvhRIstv5/Mom/6yNW 7DdMsV1J+pg4nIrclk50Xom+J+86Vml4ip1G26EZmtV8dkVJD2dMMvnsC wmn3L/FBsCKiCq6pvMvkdQuEUgL+r9krbok63JCskBjdJ3sgZxgaKumZT gwx2dmDutu2DZtOvDDo4fPsycikWFw77M4tKB01st+7dLTPjGQzLHfi/5 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10718"; a="381182120" X-IronPort-AV: E=Sophos;i="6.00,184,1681196400"; d="scan'208";a="381182120" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 May 2023 08:22:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10718"; a="703554951" X-IronPort-AV: E=Sophos;i="6.00,184,1681196400"; d="scan'208";a="703554951" Received: from djiang5-mobl3.amr.corp.intel.com (HELO [10.213.173.219]) ([10.213.173.219]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 May 2023 08:22:26 -0700 Message-ID: <780579b5-3900-da14-3acd-a4d24e02e4ba@intel.com> Date: Mon, 22 May 2023 08:22:26 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.10.0 Subject: Re: [PATCH 1/3] acpi: nfit: add declaration in a local header Content-Language: en-US To: Arnd Bergmann , Dan Williams , Vishal Verma , Ira Weiny , "Rafael J. Wysocki" Cc: Arnd Bergmann , Len Brown , nvdimm@lists.linux.dev, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230516201415.556858-1-arnd@kernel.org> From: Dave Jiang In-Reply-To: <20230516201415.556858-1-arnd@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/16/23 1:14 PM, Arnd Bergmann wrote: > From: Arnd Bergmann > > The nfit_intel_shutdown_status() function has a __weak defintion > in nfit.c and an override in acpi_nfit_test.c for testing > purposes. This works without an extern declaration, but causes > a W=1 build warning: > > drivers/acpi/nfit/core.c:1717:13: error: no previous prototype for 'nfit_intel_shutdown_status' [-Werror=missing-prototypes] > > Add a declaration in a header that gets included from both > sides to shut up the warning and ensure that the prototypes > actually match. > > Signed-off-by: Arnd Bergmann Reviewed-by: Dave Jiang > --- > drivers/acpi/nfit/nfit.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/acpi/nfit/nfit.h b/drivers/acpi/nfit/nfit.h > index 6023ad61831a..573bc0de2990 100644 > --- a/drivers/acpi/nfit/nfit.h > +++ b/drivers/acpi/nfit/nfit.h > @@ -347,4 +347,6 @@ int acpi_nfit_ctl(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm, > void acpi_nfit_desc_init(struct acpi_nfit_desc *acpi_desc, struct device *dev); > bool intel_fwa_supported(struct nvdimm_bus *nvdimm_bus); > extern struct device_attribute dev_attr_firmware_activate_noidle; > +void nfit_intel_shutdown_status(struct nfit_mem *nfit_mem); > + > #endif /* __NFIT_H__ */