Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp20992638rwd; Thu, 29 Jun 2023 09:29:28 -0700 (PDT) X-Google-Smtp-Source: APBJJlGhlToyfCi7S4mTdBgfyNuP2Pr6hEhszh2G+owczwBinoZPOwuS93tPqKPl15q7osj2mdvJ X-Received: by 2002:a17:902:ced1:b0:1b8:5bd0:fe12 with SMTP id d17-20020a170902ced100b001b85bd0fe12mr1747789plg.16.1688056167761; Thu, 29 Jun 2023 09:29:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688056167; cv=none; d=google.com; s=arc-20160816; b=gxVQnApKXMn1ZJN2zStccdomC7hjbUQaszaAJtCdh3jZgiiwlu5Mp/GXT8kMgvgmtQ Z7refgbRi5PVA8Mo7lp2MNFuUcPYATzUcN4Rgb+qe9l9+et0+KSsTJok4RCPStBV2L2E 1zThJrOiNyL732glHmDlgsTpyoKR9/2+GWW1VN+UUDqvSoV4TLlbz3J7WA10meDqGz/k p2pAG6gvY2CIZUBfnHOWoyMJW2U4NL0rIxdSHrtuVzgVdCxVgYZ88cTp2qVP/8UR9qAg YeSodlUAKiWVwHB3CxL14W6WJ5JC0O9auMuX5Qjk8d8NPNNslkrN6Ono1jxKdEUvhAl9 LSXQ== 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=1OtoxNFjlCqcGUYIdC7BZM9ne6IDhzKXqINtng/IXn0=; fh=JAvnUjSL5n0Y2/J9SomLB3Mpn4RMDDJuZqv2phWtjbA=; b=AUV7la68BQawaE/Bc5DTWij4lrAOASpIRQsJLNDW7S1BnjFoYbCTfpoZJlxDQ8+qJK EBdHttvzDVxPsBVZ6Q8SxDul4nCtnkfEpV5xrhVfqTl2IQUKLdI0SQUnU4NLaZD0H7QO i49UUa7YiHzhX17Y7M4UA4imW9Tnz77Ek+c1UWhcvZzGTU4Or+pSjf58OhVi1Lkav2Wa f+qNpkPUf7IlOhSQ6Xk6MyuD99zZgmvzAqERVHF8odOVtGi3wHcdUTiL1iupV5tAgJ6F CeJb0+AkcBXd1gEXavFlFOnHdI71gDbVFLkB+ANIAri9xbgZSAxhUXgTqfZBhSYMfTlq 4Chg== 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 k7-20020a170902c40700b001b546795669si11147292plk.391.2023.06.29.09.29.14; Thu, 29 Jun 2023 09:29:27 -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 S231974AbjF2QHI convert rfc822-to-8bit (ORCPT + 99 others); Thu, 29 Jun 2023 12:07:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbjF2QHG (ORCPT ); Thu, 29 Jun 2023 12:07:06 -0400 Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8ADB9E; Thu, 29 Jun 2023 09:07:05 -0700 (PDT) Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-98502b12fd4so21919866b.1; Thu, 29 Jun 2023 09:07:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688054824; x=1690646824; 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=9xfZ/TTJf1ZjgTOZZ4dAslTfGuQT8e+I59Ry3r/mWbg=; b=DHC0ItaunOYyYiLiXT9d+ZU2Bsumj+biUGQnF5bHbxubDZhcqlztNcXp3iuPbIUSlm 2zVnfK+r7YeFjg9rXqFNLHNE5XS1BNrpjUsDCbGelQiiW+zPb+CEfDhVmdWEP8BnK+Bv XzXwJfIKxCMlxLlrMIKBS8BnfDnfnIfBfOxAaHP+x8hRoge1DXXxo6dBNB+Go8xFPLNb ZbU80++txJxNr1INtpeuYvWIkGUZbVAydWdZWh0HCvJ3bun53OOOyQKp9q2eqaXIc5mO +Phnurq3S+z6Fp3y1HoQs97nA/E158WwYNVk8WfHqc/Ea6/oISRCE1raahZYvfEdJPx0 fUgA== X-Gm-Message-State: AC+VfDyx/MwxYpoyvlh20HKu/jUx0vpKaiDTqSDsRCC7DtvoUSe4avG2 YLprZruo5pldZ65WJ2rOOa3xreH6H/g/pJFSyY4Os61q X-Received: by 2002:a17:906:7a45:b0:988:8e7a:d953 with SMTP id i5-20020a1709067a4500b009888e7ad953mr2397442ejo.1.1688054824132; Thu, 29 Jun 2023 09:07:04 -0700 (PDT) MIME-Version: 1.0 References: <20230616165034.3630141-1-michal.wilczynski@intel.com> <20230616165034.3630141-8-michal.wilczynski@intel.com> In-Reply-To: <20230616165034.3630141-8-michal.wilczynski@intel.com> From: "Rafael J. Wysocki" Date: Thu, 29 Jun 2023 18:06:53 +0200 Message-ID: Subject: Re: [PATCH v5 07/10] acpi/nfit: Move acpi_nfit_notify() before acpi_nfit_add() To: Michal Wilczynski Cc: linux-acpi@vger.kernel.org, rafael@kernel.org, dan.j.williams@intel.com, vishal.l.verma@intel.com, lenb@kernel.org, dave.jiang@intel.com, ira.weiny@intel.com, rui.zhang@intel.com, linux-kernel@vger.kernel.org, nvdimm@lists.linux.dev 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_H2,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 Fri, Jun 16, 2023 at 6:51 PM Michal Wilczynski wrote: > > To use new style of installing event handlers acpi_nfit_notify() needs > to be known inside acpi_nfit_add(). Move acpi_nfit_notify() upwards in > the file, so it can be used inside acpi_nfit_add(). > > Signed-off-by: Michal Wilczynski > --- > drivers/acpi/nfit/core.c | 14 +++++++------- > 1 file changed, 7 insertions(+), 7 deletions(-) > > diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c > index 07204d482968..aff79cbc2190 100644 > --- a/drivers/acpi/nfit/core.c > +++ b/drivers/acpi/nfit/core.c > @@ -3312,6 +3312,13 @@ void acpi_nfit_shutdown(void *data) > } > EXPORT_SYMBOL_GPL(acpi_nfit_shutdown); > > +static void acpi_nfit_notify(struct acpi_device *adev, u32 event) > +{ > + device_lock(&adev->dev); > + __acpi_nfit_notify(&adev->dev, adev->handle, event); > + device_unlock(&adev->dev); > +} > + > static int acpi_nfit_add(struct acpi_device *adev) > { > struct acpi_buffer buf = { ACPI_ALLOCATE_BUFFER, NULL }; > @@ -3446,13 +3453,6 @@ void __acpi_nfit_notify(struct device *dev, acpi_handle handle, u32 event) > } > EXPORT_SYMBOL_GPL(__acpi_nfit_notify); > > -static void acpi_nfit_notify(struct acpi_device *adev, u32 event) > -{ > - device_lock(&adev->dev); > - __acpi_nfit_notify(&adev->dev, adev->handle, event); > - device_unlock(&adev->dev); > -} > - > static const struct acpi_device_id acpi_nfit_ids[] = { > { "ACPI0012", 0 }, > { "", 0 }, > -- Please fold this patch into the next one. By itself, it is an artificial change IMV.