From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.171 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796446582; b=ubU+2C1IfKmaOQbFIq4HEZlsnNUnIQB3aMAqdwrCYCOfdpr4NyR71MQtf5UALK3jkT6Q 2VeKiSl0GWGcEW04JyIwuAj/qeraRI09tRB262Wfmqdx2qoRI8H3gitSoqL/zZctUf52p gjrebimjUULMHNOcGHpnUJpEEfoyLd5p+elRZ8A3j+YZDlrPOwtfel/6n9kp0CJApYwcp 94P00L/zrQSBC6WjuRqh+7Ef9X1fm4BRmfsbLSqSJ4xy+GZtoI0JYOthQfbTPfnFsuc1e If1JSMk03jnCGwyNHpAmIgaVEcVofmQNebdhuuLF6aTN7tIwLAvRnAKUGbAh1NdPCiQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796446582; 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=4+cfqCzTJAv7Vn4WsxAVrOgTWucTMEM714wijubH763EZ/pvy4WwXvne6yYKTrVHVka1 XL2KXvj47bMfazYZ8sCnus5q+kRpppGEZ6mOsZ7NIpo1Vy6R8Jgqbhc3X1L37Fd940Srt dJUL5dL2OjmZ8kGD+cfNDRPba2OsiYb1q/U2wXeUEYDe+qJzoD4r3ufsjToCx8/WHzZbn 32ASjAedDrgCdmIH61C3F06VkhqYEHWpNHo4kBXiXwB/H7nTTMdTTMeEd9A2+VDOThJMP Nrn8Cj3bdkCpvmEI/ut/cCnmEb2mpI5cIITt5hIheZ9d61Kp0YAee7LXPAjA0Ui3kJQ== 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.171 Received: from mail-dy1-f171.google.com (mail-dy1-f171.google.com [74.125.82.171]) (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 8A35E606A322 for ; Sat, 5 Dec 2026 04:56:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8A35E606A322 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-f171.google.com with SMTP id 5a478bee46e88-3874cf36e63so2283795eec.0 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=zA54Fblcefk/DmNewFwHdBBFLF3fcHeHeKUexEGFJkzqJwqi+XLow3uKHDMZfUU8J7 z1CNylsGUEnqPYH6Lezih2bcQeJBiw1kvyN3Cjvt52m8PwjiHowYQOSyWR3Lv8WFQEJt YtbgSaUyjg/tcGSNddFWi3zdkhrvDMONZDDNs+PqYifhCuKa6iDk+v14TVeWMa82AP0y LE0HEEIY4LUzncH849J+5o2Yi8+KrI1VT8MAx+0InvLCXrT/7W/dRfXgv5gmk+3p8Ojc EV5EKHpGnlGRd8Sc0bdhYR34nWzGW3iti3PBcVKMk/5fXOt0QJh49Nv+F7UJjvE+m6y5 RVSA== X-Gm-Message-State: AB4q+uFRchfFo5FEjLheQMvcFILP3OjuKgKmUWmzG2VejbRon252nPFJ 6n/wmSLvguVuyO5ZDchk5xAdNGMjcXDEovp3U1jqjfhBjlhhj414tu4j+KBs/oGW X-Gm-Gg: AZFdTZclwjg4aF9kAv/jhfJi9wIo99iQurINYLrYLZf3t/Y8cDgzG9BmbACAOrZd7x0 U/Mgf/J3vkig7RvnXOkQJq1sjh2I7+hWW4E3N8bvqBDwngVtADBU6rjuUTN1niB+W3HUz14v7qZ 1f1oi+o/c3pWjSJ1smLi7Kgiy+MxMgx2pn0YSXb5EHYnTv3UKrKmBaGkS0pdHG+xXx5w9UIYEjl 3apwJcR4aA6zhu0PR/1tGVdI6qfdXTU379tS1dko5X6aKRB8pQvBWL/khFrQ8ldOngFwRVkKJpS lxA+7j+YAST9JWLeB6saupQlPanFqTNooGwDdmEXHPSwOhEf1YUBTX79bZq2oJi6vmmATrk8X/3 8HE5a+a1Ig70fy98MhuwGyBlhufaA/xHNaBtvCsQualw67dWX0FtOTFp1Bt4STd0nx3YReo6kRY +tmiDRPOl/GZH1hZitQjjuaziVafxqmkO6fDPq6GXHT9ZfMruFlCCssRMn7bYXEeFOJqFUxFkOt UXc0qMFXaU/gzsnRulm67sBc1DTFDdhxKAVQXGZz4ohsBzhJYWu3nQDm+Z9QF7n4aQ3QNB6NoMN yxZCYevyq8lOSRJ6iGFTIsDRKXz5wULWOMMy7ZfBsp84NPJaPKOcYH+nFCQzh8bJr8OobiLBsUY = 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: stable@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