Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3984528rdh; Tue, 28 Nov 2023 08:46:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IEezPJLtlc4vcCs/EbGliZ/VxQ0vPbWOIvCn+74lui5WS6u+WBk9rovHSdBasfM0K4s0UCh X-Received: by 2002:a17:902:9898:b0:1cf:ce79:8900 with SMTP id s24-20020a170902989800b001cfce798900mr7219579plp.22.1701189975371; Tue, 28 Nov 2023 08:46:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701189975; cv=none; d=google.com; s=arc-20160816; b=sm26mahdstemOn0Kty1/OO+G8H0nn6QAUZIBJein9ECs911WyGWWSYJFw34FskX2Xb +i5mBYWLRXJrA82XOoLpKHIwBZ1PHC7e3Q5Z286g5Du4ikpA0sbSIKFmLzxZ2BlKOCMW Q8Ngx+ryZ5m1HEDw6BN8uRv6Uo8fx8wk0ISenfmzBPVhb++fa/gYsA2kym69hPy/gDaP vwKpFyDT59aiMkXNcfVi4RqoBthqBXPEwhkFd0gNU7IvqoaiSv4+pYgBVP94p9NMnQwn TQuvThn5lkb6iT24pdY2YZYw9C1ZXmJpzvSTtWTnJvmBwf+5Waud3nHZOwxJXc0yIr9T hGDQ== 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 :dkim-signature; bh=ahP72vGF/z2SVVNy+HP+Vo4YpFZClknMh1TjcUEInCw=; fh=u8rLQsUjk/DQ68o09SM+wx8FxqDFcT3zeQdKot9Eyy4=; b=qaDAqBf7T7dEliF+GkW+VOrg84RvdJi1czI1Qm9i2QAaK9dDnBDwaVKdtjWtv1CLqD ZOE5LbUHmNuVJ/XIHJ4faPfo0+lkf1xhA9/Prgv8R7wGLqPmQYB0UXbSlvLL2W6IeCVd eLgdMBIiuoVHA38z87zufqTP6T2f5cg/r4R8N7heoJokH7En0V96F1VLpGRU3bJBeBds STpOoM77hUGrazzGiDhHwP7LW1jPQLjDD9H3EdU/hIJENhY3iIKWVI8vsMtNSIJ441Ny khPV/jvOWi31+z95m3K2ynoQWzWS3ZBM727lW6Y2eoju1x7L5FnAbGdSuO13+YRDCVE9 C08A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=izBVUVjB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id c4-20020a170902724400b001c36018fdaasi12391368pll.219.2023.11.28.08.46.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 08:46:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=izBVUVjB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id C21D0807C64D; Tue, 28 Nov 2023 08:45:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229567AbjK1Qp3 (ORCPT + 99 others); Tue, 28 Nov 2023 11:45:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229716AbjK1Qp2 (ORCPT ); Tue, 28 Nov 2023 11:45:28 -0500 Received: from mail-vs1-xe2a.google.com (mail-vs1-xe2a.google.com [IPv6:2607:f8b0:4864:20::e2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74791D62 for ; Tue, 28 Nov 2023 08:45:34 -0800 (PST) Received: by mail-vs1-xe2a.google.com with SMTP id ada2fe7eead31-4629afba9acso1777451137.2 for ; Tue, 28 Nov 2023 08:45:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1701189933; x=1701794733; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ahP72vGF/z2SVVNy+HP+Vo4YpFZClknMh1TjcUEInCw=; b=izBVUVjBf3tbpYQjLw1BnM6Sm4Q+C0/VLgEAgzcZn2PEwVoEmNWNvis2jUP6vEcJbC zdx/DwtbvMfpM9KvX3fw69dZevxMPhawFv+5PBDx74rd+uSHqIqK5PHwBGwsk4/n2wp2 oZ7RleBkToH4kkvgyJ84sGe/zHR8Z39TLWyHgkG/6OkaQfptUoYRWls9EHSGF5VyQgFx BYUvv7u7YOGayd3zdULN12V6627fMrXAwVFxVvOzb0Brbp77TdP8/J0g7bYBLhaMscB5 T6ifRLywafr7FU7uYV6mprwj88ZgN5YTQp7eRFEenD1eKS9VmApZ4KdM5Cgu9ZVID6+M XTUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701189933; x=1701794733; 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=ahP72vGF/z2SVVNy+HP+Vo4YpFZClknMh1TjcUEInCw=; b=AZ0gQ81M+ki5AmqyRAvZoqVQ0Hy9SmW1AuFJBC4tY/WvUnq84elt8W7a/8bwcmAa1p ygtK1HZ9rGdVYAVlc6U4AHptQLtxJk1UBXOGQ/GX+tj3HzjsdvlaC6Vd7iQQiSe22OVL SSq1+C5QSrO7XiEZ2BJCOC+0ZmJ3dd4+hNOJWpI/bHuUi+EMlp2dpFUBVOw157zaAUl7 qRqmkybBHkQwvH4OykXVO0qn3uCPlYTaS5tXy99FhREAeBJ52X23B+HWGZbM9plZFAYC 4AarBUKU0Uz4iAp1gIzrGY/PW3QgqM9ZsA2Izr0v40wqj5fCN7KoIqdk4TqAyFWfmYdO TPVw== X-Gm-Message-State: AOJu0YxUpBAEYoZhwacTyKlH2KdCVvCBzlRQz90ZeiUTdZCihPTvgrlc rKpMc5+JA3K4DcudFdJxdrZ1vFSA9YW2eIgNipPjEQ== X-Received: by 2002:a05:6102:1611:b0:462:aaf0:7c98 with SMTP id cu17-20020a056102161100b00462aaf07c98mr11387095vsb.19.1701189933242; Tue, 28 Nov 2023 08:45:33 -0800 (PST) MIME-Version: 1.0 References: <20231127193716.63143-1-brgl@bgdev.pl> In-Reply-To: <20231127193716.63143-1-brgl@bgdev.pl> From: Bartosz Golaszewski Date: Tue, 28 Nov 2023 17:45:22 +0100 Message-ID: Subject: Re: [PATCH 1/2] gpio: sysfs: fix forward declaration of struct gpio_device To: Linus Walleij , Andy Shevchenko , Kent Gibson Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 28 Nov 2023 08:45:44 -0800 (PST) On Mon, Nov 27, 2023 at 8:37=E2=80=AFPM Bartosz Golaszewski = wrote: > > From: Bartosz Golaszewski > > The forward declaration for struct gpio_device should be provided for > both branches of the #ifdef. > > Fixes: 08a149c40bdb ("gpiolib: Clean up headers") > Signed-off-by: Bartosz Golaszewski > --- > drivers/gpio/gpiolib-sysfs.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpio/gpiolib-sysfs.h b/drivers/gpio/gpiolib-sysfs.h > index 0f213bdb4732..b794b396d6a5 100644 > --- a/drivers/gpio/gpiolib-sysfs.h > +++ b/drivers/gpio/gpiolib-sysfs.h > @@ -3,10 +3,10 @@ > #ifndef GPIOLIB_SYSFS_H > #define GPIOLIB_SYSFS_H > > -#ifdef CONFIG_GPIO_SYSFS > - > struct gpio_device; > > +#ifdef CONFIG_GPIO_SYSFS > + > int gpiochip_sysfs_register(struct gpio_device *gdev); > void gpiochip_sysfs_unregister(struct gpio_device *gdev); > > -- > 2.40.1 > I applied this. I'll make patch 2/2 part of the upcoming locking rework. Bart