From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.180 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796446581; b=hPO7OWa9Ur130J7nVJhE6PBNsv4Q2NipAl5vV2lGL6i4XHraX/RjLtFRNjtWkITXIDti uT1rTCPifPf6rQdkU9ZuYgm+AVzZR1TXwzF3hamXlcJdSxsslkx0rDRtGefeza5iCxz+k kORBvViYoU8BeAPfYXQuIBC+4/6Z4BBt7GvtiWwBa23Yo+wnl3pzRdHlEVLrg0Nw6LWwc irzLE55GFdEq72x2r1EAhoKlTgmuRLVLMznsbN4oaOxp5UFQTC+PXyFgK3tfGEF6igBW9 +MT4CqUWFYF9rXAHmMxNGx9/qhM+vVacHdgJZ/z95iNCZshS/G4Z2oAUFwB8f08+YwQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796446581; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject: Date:Message-ID:X-Mailer:MIME-Version:Content-Transfer-Encoding; bh=PG1HHnUq08cMV0Zzhs9cehnM/H+utOl62vSS98hgZVQ=; b=l71+fmNmbox7do/6VL2K2INKO3N+2R+r0FtfVEx9Fc55r0H11F6LPF9ngkQUn0q0bs1H CIDM/LzkXNRPH9tvNNihTFq1P7sRxcxDSOvI1nu8//Uvwm4AnejYJAcdLsII1koQKVpn1 hz8Yz3q3EZQ2i4VniluTaoOF/5pJELP5V2TUlpx7rvvJ6zVUeAA4C0sUjvK0ndnjJ8PCk tPcw284vHDh2cQlDqmmNmRKOP56JYS2QWyxhJNSwgC5OjvLo95HnJ3tNn91bGWZjb+gev 4MiERIkyhNLwynJ/tZDY0uHAyIzfIIABosiRycCHznlVpMxL+R6bUhvGDCwuSinzrpg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=Rs8jFj7D; arc=none smtp.remote-ip=74.125.82.180 Received: from mail-dy1-f180.google.com (mail-dy1-f180.google.com [74.125.82.180]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8F148606A32D for ; Sat, 5 Dec 2026 04:56:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8F148606A32D Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=Rs8jFj7D Received: by mail-dy1-f180.google.com with SMTP id 5a478bee46e88-38699cf08dfso2216005eec.1 for ; Fri, 04 Dec 2026 20:56:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796446580; x=1797051380; 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:content-type; bh=PG1HHnUq08cMV0Zzhs9cehnM/H+utOl62vSS98hgZVQ=; b=Rs8jFj7DX+g6+xz3LMYFRfpZbKwKrNulaTHK8TMWFQpq6VJXhfJHxjScp2ZsrQscEs p0WabEGPk/nRpI1MEER1vEAfGHRcA1+vJik4XhAOGmDCNkCzXMWWwahxFWdRXW9lNwNe SEZc+7vhVe85WrCE7yAOWuo23Q18zYPpuH+DbPf+sIm5fsfBmvYK2K0Cz0qkK2fd6VAN Zx2/suM0KW1Pz1OSdoEaiL8szvqL03aH2Rw6ZodxjK/wju4rfM6hiwtdscijvhdhrLPS mpqANEspVJ0ecxziZhthOyu72gFmxcM48qRjRzhaECq82vGYYd5gglN+oaZ/j+tOKKFY I0HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796446580; x=1797051380; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=PG1HHnUq08cMV0Zzhs9cehnM/H+utOl62vSS98hgZVQ=; b=yvzcTZVfQ/VpnhiqiguunAm6riVpDP+0AkRDWSlnYNz/NQYwzDH/pqWphsICh09mzo S62+29xko1g54cbAk4GXsPd04IEq7CvMnzUwJuSD3YpN17uBTQ27SIOFudOdWgp/0odN 5H8uEUlBXX1gr7+xs23EcuB2cYrTxopCqr6g1ryYiEVLjY8o7YJOPSDWjRTijXQ2+ZXU f3SB+ruAe/EYPDeDKfw9yOOxfnaQSI0ZYA8jTvHunfhswk8TpnE0Bd0qH+NheU2bru+C CftWsxrU20f7YGgLGBay721tmloHLJrM/o74A5btpk1t9N9RnLCemYl1Sc1Vi7RKZTuT INDg== X-Gm-Message-State: AB4q+uEXKDZ0vmucDWwKTgVyaUmjNpyOeiXWRLI2i2C1zetSSDcKsIE/ gVChEp6NWwcXPUydkq3Du5cID9av321nC47i2NMKwBdWzO7lPsh4P0L0 X-Gm-Gg: AZFdTZdFP+p3C7sk3jMJOhj81TRIadwuW6BKCWUPL7r5Rpysm/SWG7uFZZ8Llw4HQe6 jmwygsC/GolefNX8Ml8nlWBsVkxfUngD5dD5ptDhOZy7iUsrC1K9IwROJmXQx6DTeo4k2h70UA2 tDonjnFpf1s/hxQcXiPw5cIfels9lV0cGvrZ2j2pEsY8A4jA9woHDWiZ38JIt3DQnNXZWlerjbF tTAaPNQDpdDAUAGjLzOEf6r3sNpnHQ+u5zRiV6i6sqCayZ9VJXNikkH6Cxfa0s3UR4ywbQ1z2se pP9TxiTydZ2w54zkgRoQW2I+yZk+4xoRExtT/E866iA78gK9U5mVaCmwDXdRNPjrcUUYjM86Oaj 6jNZjlpGsZZFO9Wqt23ozrWYglbs6S8jhgqSq/UshwqNeDeGIKggsNy5oYz1A/kYsN/NT4xDMio 15KLq/QvPEi0DLiHIXZJgOanyUOVeiqAxQ1v1j4Zb1W19IpRO2g+mGTMb2gRJxVcz7xEhWj8w8k VOrvreBcr3w4TEjIOSWi1W3MD5bPs0T9nfEafgH0SGEBHLWRn/6jJE3n4MYG06vvi6OIPKDU8kQ CgTwnjj6n4rhlD/Uvkixg/rW9s+mYHRRU7hmmwAYsFNQGbBXZk5kiz+bY6OyWtQdGOlLflXlAkg = X-Received: by 2002:a05:7301:1699:b0:387:51ce:d2df with SMTP id 5a478bee46e88-38752162e08mr5074110eec.26.1796446580451; Fri, 04 Dec 2026 20:56:20 -0800 (PST) Received: from pragnesh-TP14s5AMD.. ([2405:201:1007:22d6:1cf:1668:1084:6d8e]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3875207a50fsm13415445eec.1.2026.12.04.20.56.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 20:56:19 -0800 (PST) From: pg.radadia@gmail.com To: stable@vger.kernel.org Cc: linux-gpio@vger.kernel.org, linus.walleij@linaro.org, brgl@bgdev.pl, pragnesh Subject: [PATCH] pinctrl: core: include linux/gpio/driver.h Date: Sat, 5 Dec 2026 10:25:35 +0530 Message-ID: <20261205045535.86130-1-pg.radadia@gmail.com> X-Mailer: git-send-email 2.43.0 X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: pragnesh The 6.6.y backport of commit 45d2055b0067 ("pinctrl: remove pinctrl_gpio_direction_output()") changed pinctrl_gpio_direction_input() and pinctrl_gpio_direction_output() to take a struct gpio_chip and access gc->base. Unlike mainline, however, it did not include , which is where struct gpio_chip is defined. drivers/pinctrl/core.c only includes ../gpio/gpiolib.h when CONFIG_GPIOLIB is enabled, and that header is what used to pull in the definition of struct gpio_chip. With CONFIG_PINCTRL=y and CONFIG_GPIOLIB=n the build now fails: CC drivers/pinctrl/core.o drivers/pinctrl/core.c: In function 'pinctrl_gpio_direction_input': drivers/pinctrl/core.c:886:41: error: invalid use of undefined type 'struct gpio_chip' 886 | return pinctrl_gpio_direction(gc->base + offset, true); | ^~ drivers/pinctrl/core.c: In function 'pinctrl_gpio_direction_output': drivers/pinctrl/core.c:901:41: error: invalid use of undefined type 'struct gpio_chip' 901 | return pinctrl_gpio_direction(gc->base + offset, false); | ^~ drivers/pinctrl/core.c:887:1: error: control reaches end of non-void function [-Werror=return-type] drivers/pinctrl/core.c:902:1: error: control reaches end of non-void function [-Werror=return-type] Include unconditionally, matching mainline since commit ec963d04ca86 ("pinctrl: provide new GPIO-to-pinctrl glue helpers"). The matching prerequisite was not part of the 6.6.y backport. Fixes: f53dd26462b8 ("pinctrl: remove pinctrl_gpio_direction_output()") Link: https://bugzilla.kernel.org/show_bug.cgi?id=222122 Cc: stable@vger.kernel.org Signed-off-by: pragnesh --- drivers/pinctrl/core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c index f8d084f9f..66dbefcb5 100644 --- a/drivers/pinctrl/core.c +++ b/drivers/pinctrl/core.c @@ -23,6 +23,8 @@ #include #include +#include + #include #include #include -- 2.43.0