Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5935308rwd; Mon, 5 Jun 2023 10:26:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5lkFzSHe0tYZQwxjTH/PBpPqBWphcs2QrVl4MGQWNQWb/w/Y7P6CRTv6h4103tQ78VyFpo X-Received: by 2002:a05:6a20:a12c:b0:104:873:c3be with SMTP id q44-20020a056a20a12c00b001040873c3bemr7705868pzk.12.1685986018713; Mon, 05 Jun 2023 10:26:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685986018; cv=none; d=google.com; s=arc-20160816; b=gpxNRifLvmQu6Ysn/YH1AkFmJfoA9EoA3+fVQalxAiQHTDXVk/OAghI8sCoh8q0ynT vh0YMU3vQrgBvuVZmPWFeMUlTfh31ma2KglgKLBe5W6PW+T4YBqtDjRSUkrSs9u3mP+f 9qEmhbForgojo/9Y3wc6RhZI9c1i4kXUWR5abJdAXZY/nwatx/vGPhQ7zZu0zeSVQpNY 2AuPnlj+yxmNGWNj5tQXGvfv+9wzLa3b2CFnKBQ9onOQg+2gXqT2eQzIZe7mPxActPxg F12jjFlUi4x0+EIrt3abIs4QiPi7IiW2dfqRnWSHNdTZP2MKr6mWg4o4+7nsmMh+tx+X J3Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=84GpqjxvmIKQvApmwNoE883bTnWBnpnEheFdQi9yZ3U=; b=plvZceRa0Q8A1/jHIRiuUsyVkZ6Q6l9QxOvOqqgmWMrXi9sau+hbWvMMTWvBNY5cpc dJFmnuXJNgWoZc5t5xZZoA8RlOoq6EbX9/7n7s0bvttmP5ESuaae+z5hq26gnlB8bw7e TTQKtNzH7+LQJA/oSFiO/owxPzjB1EdDh/Snz1nsaGnE6hrBR0lEL/2+Zz9HCOHyvfOl Bra9iTf4Zd7yKf0na9AXhK0UvSTdO7ZzfHRylrGEr7dP7ml+NJ1c7+JfYmAKqbxbR0nT GOt2h2F6gQmIfTZyCYNlaXsbNRc8FmAYgcgY+WEAO+jHqwhGZAhlYPihMF+in9Okxj2H eyXw== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a18-20020aa794b2000000b0064cce871b49si4212646pfl.137.2023.06.05.10.26.45; Mon, 05 Jun 2023 10:26:58 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235308AbjFERIP convert rfc822-to-8bit (ORCPT + 99 others); Mon, 5 Jun 2023 13:08:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235358AbjFERIG (ORCPT ); Mon, 5 Jun 2023 13:08:06 -0400 Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9359118; Mon, 5 Jun 2023 10:07:57 -0700 (PDT) Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-977fae250easo12103366b.1; Mon, 05 Jun 2023 10:07:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685984876; x=1688576876; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HZGakePAKwplYG/llAo4FkXZmbuykUNqGGuE67aJlhQ=; b=KTpptja4t1+u8XTBddwp9PinJ+O4rVQoO5vWUOVOR1abYPyI4G7uHQ0SVxLKFXB+E2 kRoDK9UemuyRf5MMhvlSTeJ/prK51BR7IbaDWmbErgXSl0BKGz1lLqgAlcwIO1hHcVAd gZuKQO+XTGt0M4fOA8WkCgdJhHB9wWX/gms4XyB2NgzPSgwC/fuo02GQOuZ851BPOLwQ ZI2CmPBHkAaCr9A4e7/s8zoSc+Z7ukn0GNSleM6UsuBCqMWYM2m+sZ9qPWzzlTGn/18s WuQtKbhwgWYuUpdCBVvTviTk3eFlwfRmD46Ob/7WHw1iY4sfuLC9le3IZfg3uNiBxuRI VzCg== X-Gm-Message-State: AC+VfDx6AQ4dnDDFs5EIfkdCpaU1+GvPDOZiLsoUkFHFhzO9Bts76CqW FhtLK3/BN4cWJXsOiL2VXwYbYg6tsZw3C8i+IxA= X-Received: by 2002:a17:906:778a:b0:977:ead3:c91 with SMTP id s10-20020a170906778a00b00977ead30c91mr1215071ejm.1.1685984875965; Mon, 05 Jun 2023 10:07:55 -0700 (PDT) MIME-Version: 1.0 References: <20230516201415.556858-1-arnd@kernel.org> <780579b5-3900-da14-3acd-a4d24e02e4ba@intel.com> In-Reply-To: <780579b5-3900-da14-3acd-a4d24e02e4ba@intel.com> From: "Rafael J. Wysocki" Date: Mon, 5 Jun 2023 19:07:44 +0200 Message-ID: Subject: Re: [PATCH 1/3] acpi: nfit: add declaration in a local header To: Dave Jiang , Arnd Bergmann Cc: Dan Williams , Vishal Verma , Ira Weiny , "Rafael J. Wysocki" , Arnd Bergmann , Len Brown , nvdimm@lists.linux.dev, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Mon, May 22, 2023 at 5:22 PM Dave Jiang wrote: > > > > 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 Applied as 6.5 material, thanks! > > --- > > 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__ */