Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3340495rdh; Mon, 27 Nov 2023 11:38:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IHyPMs2BCRIlp004wO8L7qkUkfyFzW+zxZaMz9149WO+eG5utFkJt6iQ8o9JhIq42Bx6Xr0 X-Received: by 2002:a05:6808:6084:b0:3b6:dc6f:271f with SMTP id de4-20020a056808608400b003b6dc6f271fmr14561473oib.18.1701113906986; Mon, 27 Nov 2023 11:38:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701113906; cv=none; d=google.com; s=arc-20160816; b=qhyrw2j/l0OJt7cZBbrSm7PqRDDh/Mk2dF/qn4tEHV1osDBq1AwK0tvjnRP1Hr2CYc iqhS3e9v9+Ax8eUEftme0tztykUxBgncvMHDjTMu/QpA6txbUhOCzyNbTTA4PM3UxSCr DIWVVX8A7s4iH1NyfSoxG1YTgMj2MOLmorKsX4I/jt/no619TDJ2RyJWD3MbZ7zbK/0N mME7uz/3i49LVjLKhVu85Ec54BZ8PgvXqUPZ4cf6w2b6WkU9JotCEa+8+XUxPcb7B84r ZnpHfxO7gW4Ut8RpUTSv3caySTg5JJtNhypsyZD9BZqJCYpdmmGt4qj+ovS00Mo8gSRB lAuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=a+3yw4Nx5iHvqkKWy1CrBMmo9SCrgAxb4KbqilKfXTc=; fh=u8rLQsUjk/DQ68o09SM+wx8FxqDFcT3zeQdKot9Eyy4=; b=K+5uXI4bWxISarkhzuK6W9KP9JTfcPfLjS3KHZyVaRftDFhUb54LRGzsPoYcsZ8hxv L0tADb0uKhu32N5JHUjZuta0N35R+0mqFIT4KsGkZ0FOxWjEARFmE0jNWpIvxGuqyZx2 CmHmw7IX3E5n1HxPSR2MZgcVldqtgF46B2d6DNerg6fdvNIGloDEuMs6nyET1ka11XMR NPN/gdjwAwt8BWJX+PldnPbLzsHuIN+VJbfepI1+D4baT46NNJzL6WIYY+sYfO7RnA9l 8Jwl8Mgqr4cQK1j+6FN9YK9mzLeYBLLOAKDAdLpEGAjWtcOw7j10gVJJQ6zTLa4q3OqN Xrgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=1FAJSW24; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id s17-20020a635251000000b005bd85b32495si10444037pgl.685.2023.11.27.11.38.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 11:38:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=1FAJSW24; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 6BBFA8067A56; Mon, 27 Nov 2023 11:38:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232893AbjK0Th4 (ORCPT + 99 others); Mon, 27 Nov 2023 14:37:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233152AbjK0Thj (ORCPT ); Mon, 27 Nov 2023 14:37:39 -0500 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D76CF1BE1 for ; Mon, 27 Nov 2023 11:37:24 -0800 (PST) Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2c88750e7d1so56281391fa.3 for ; Mon, 27 Nov 2023 11:37:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1701113843; x=1701718643; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=a+3yw4Nx5iHvqkKWy1CrBMmo9SCrgAxb4KbqilKfXTc=; b=1FAJSW24j7EAyvMc3oIynht23LHRkt4oybLWbnNGXBio2EwOklgJrlCco+adX8H1Pg qJMDUyhG6vUlIDOxpAQ9E+rMeGaprfPSaqOqbL1Pbm7WrFjBkmvHvoa5AHqMMrj/BIc6 bIJDD1qbU8BLTZTCgMfn1pxOtQLM3B3Q6fhbNmGp2S0yfhafTOqVOlL7eYieBUbSPE4S ICS/H57xjoffY5LVXXNhKWoqy1d5mDj/HTlhqU0Os7LbY038mOt5Sj20QCRgqCGU/WZY xDPr/BdCcNVmaNIiCL+qi2g2rFGEaPHmUSBfU0lGOSMeNokwKCMkZMT9TdxCmsmdgAFF WtEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701113843; x=1701718643; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=a+3yw4Nx5iHvqkKWy1CrBMmo9SCrgAxb4KbqilKfXTc=; b=WkeY01c54yQ2vGA0RZb85O/AYw5YKKrnbq7m03qXVYRzH5fF+Py4A4PqORVodVI+pF Jc/VKpfbEJGbL7ArxB/14LqdyOUspQN8FWlqQ+QR58fLVcqZiHgKUiKzEpL8/FzrG/nB cDUIarZL6Z90yNlYl7sMS0L6y5AWzxN0jnnMA2aPHnVq3b1qvIK0/qFl8WxXZIz5hrQf Q8HQEKV/f0nKCuM/YeEb9OtpDarnwEE329BNVwZF6HSAj7XR8qNxX+Y3hW/RCArR4TH6 Y+GABNyK/tJmqLcxV441q+BisLOLKdYYPQY9ndB4tPjneF4Y2U3Cgtsw1HhYn7103brU quBA== X-Gm-Message-State: AOJu0YzKiEG2Mt/K6z3CRNkUVYApj/NSs1HbZiDJcuuB35NQxGZzqqHv z9xgNEjxnER4655NEHJS/oD6qg== X-Received: by 2002:a2e:5007:0:b0:2c9:9968:2d4c with SMTP id e7-20020a2e5007000000b002c999682d4cmr5138406ljb.9.1701113842849; Mon, 27 Nov 2023 11:37:22 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:bf33:77c7:8131:5e64]) by smtp.gmail.com with ESMTPSA id l6-20020a05600c4f0600b0040b3632e993sm15016610wmq.46.2023.11.27.11.37.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 11:37:22 -0800 (PST) From: Bartosz Golaszewski To: Linus Walleij , Andy Shevchenko , Kent Gibson Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 1/2] gpio: sysfs: fix forward declaration of struct gpio_device Date: Mon, 27 Nov 2023 20:37:15 +0100 Message-Id: <20231127193716.63143-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,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 agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Mon, 27 Nov 2023 11:38:24 -0800 (PST) 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