Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp26383rdb; Thu, 25 Jan 2024 07:18:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IGhPd9oY4D/Ct1O3CY9GIcpmi9ckvY2tyzf+X9BIU4sUptemVVDYSiGnNuIwgrN/KnTYnjG X-Received: by 2002:a17:90b:2404:b0:28e:1d11:e0dc with SMTP id nr4-20020a17090b240400b0028e1d11e0dcmr761635pjb.2.1706195926719; Thu, 25 Jan 2024 07:18:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706195926; cv=pass; d=google.com; s=arc-20160816; b=GyA1biTnejup8N258MbtYzRDWeOSPHSjtIY+eZf6cXe7RbLsfdgCl2JnYrg6X8QNnZ m70QOhCTkQksqgyg9W8tgIRlutTPxJByYyx+YrO67q3tVRkiHY7rAoyjq/tBp0OPt4L0 JTv8jOZFIvao+IF7q7f6+qi7okm9LKT1qxTn38sQUTlYb4rUpAzE0IjIq8Yxt+tVxqRP w72B2OpJp0lukXv4fyXNiGfMMjLOzyx5xKaepabYymw756Zx01BMguuD9nLYnUjhNkRE dc0lWy3gJWGBBguCnZBojy8mQU6DjiJAl3+VJW6fpAOsIaNQZyq7xRiNaaY8613xBq7M ZDZw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=4yl5XDxNSx+scno4sOmOPamPnwehic8cqjKIJbS0TL4=; fh=QeZ+vqyAFoTN1nWBti7URuqWiO2j740pAQezY/pHoek=; b=LPDMSTm+nZwjYFC2LCfH95NKV5J7jL7Xza22T4UlMUUHEP3d/UhTttbFVZVumx05ze W2QC6kzSLRAemJB3T3YKM6zSP9Q/uS6qCBmhKTMdUjY1+srEdnhCUT5ry8MmN6RvChms 9aQ90f6yKNzx4l45P1W1rdWm4WrO5I8l6VxDP46JYPKBHu5uE2OlIGLpshuV8hUMHgMl RkmvY6xvGlEPtpeGzt8Y/4Jgo5wtsxYrlaQyUl2Z2nAyiuAoHxpQmcSA5nG2FiqPrReC g5LOfL36ZEg2b1AEm+XVMNfzh09opk/DwJU4vTmgxiVTwc+vJli4h+Z/0UDsi3mu05dO CdrA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=X58mvdCB; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-38233-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38233-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id j12-20020a17090aeb0c00b0028e7059780bsi1457454pjz.24.2024.01.25.07.18.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 07:18:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38233-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=X58mvdCB; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-38233-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38233-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id CF1D2B266D4 for ; Thu, 25 Jan 2024 09:09:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C7A31D55C; Thu, 25 Jan 2024 09:05:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="X58mvdCB" Received: from mail-vk1-f181.google.com (mail-vk1-f181.google.com [209.85.221.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4C83A1F619 for ; Thu, 25 Jan 2024 09:05:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706173504; cv=none; b=uZXlv9Qko7ziQ2VeKR+cEjv84W1zMAnLvJwgRemz8oeALur7iSejpWD9/Nimi2jLl5v3NDEX3KH3C6R+MisuqqGwq4h3GpIK1SjfsI5neasNezH+G0Qiab7+JqgP0X9jgPDLGP/ohvxPUcIYZJ5E4EBoBUKH4i4qej/t2DfsIx4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706173504; c=relaxed/simple; bh=lipnMpwPco9x7KCIoob4tS30Jg6ddwgaMbgOVw0YoI8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=kK3dO3lgaRXKXJyWbvWaxDmpsSc2zaoAlVSSzOkcMawMXFe/2+lw4KWUtdQPeHlpzdrBasjqMuUQqVdXC7ShGb1AgF9J2qMmSZpKmhmQc+uBjBFs0+R2Iz6g1DyDE/SPW47gdR9pq0EqFA0pCmVoOXIJBRykl1LV8lRJmR/Bkdg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=X58mvdCB; arc=none smtp.client-ip=209.85.221.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Received: by mail-vk1-f181.google.com with SMTP id 71dfb90a1353d-4bd80b41cbdso160143e0c.3 for ; Thu, 25 Jan 2024 01:05:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1706173502; x=1706778302; 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=4yl5XDxNSx+scno4sOmOPamPnwehic8cqjKIJbS0TL4=; b=X58mvdCBymraHkwlYwZdQgnCmM5TcvsWU0IzAKvOzAbQ3OhtaN86Aulmefn9szzPTD bTm3OcgAThKYs2HZPOD8Yyc95gRTA1RnV1KHDcxV1rwSaAEtSHy6thgM+xukd900Hlzb QSWG0WXKqM9hUd9l1OpeAqsA+F/JbXpDQ3ksnriZm96kN0ZHuChkMkXIxdHLv4AwEiHZ OgkjEHL9wEo0B9WE1N+sgaPlZ6eTADiO3N8c9i3FjPFsU4jprdAPSCOLE3lzGTWD0oen +APs74LPXe9uwheyzn/StMJ2eUcpSJxUZ2qxRctdNoh6f/7o+6aAjYRgK90VUKT9TAxs t2ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706173502; x=1706778302; 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=4yl5XDxNSx+scno4sOmOPamPnwehic8cqjKIJbS0TL4=; b=Bn+vyraOBrvjXB/ddzUsd4Q2D/XnXfSDwMZ8eblN63U1npcHOkbyyOfIebrylbi5mV 5jCdBw0qMvO5sPwZ1uHGCMxVyA9vzRKsXVMtF+FHobvGod7ln0B5NbCNF9jb+XM2XZoN 6lmmTeX0VV1KG0zGhJPIIMwUzNOIjKSMmS1rNdyDM/MOsyZrqJNZyiJH6DvE84AO8EQd Bbur3yIkB+VgcXWEqnMI1Q+FtCURWHqlGQq+q4CpKN1iD/2gB8mqA/5QZghOJL1Tq8E/ /S9cImTD+2Z9zLA+tEad7y+EGmUzf5PyGxPnT40rytYWWIUC4hzTim+z2t1gvs6UoDdk M+Pw== X-Gm-Message-State: AOJu0Yx36ekIemrNNHjz7Mt/pbtIYeShp6zE/lRt7/UHM6QNdwkORjVh 9hw9bz7tsoiyiulHVYIUlas+H7WqzWrpbhUFTocugo1cdsAXCySuco/GRMlq0tVV7SFPfKmDVm9 VGDmXn6HUJsg5N4U26JL1rHmk8GzDLWXgS6ID4w== X-Received: by 2002:a05:6122:71f:b0:4b7:a77c:d133 with SMTP id 31-20020a056122071f00b004b7a77cd133mr385418vki.11.1706173502163; Thu, 25 Jan 2024 01:05:02 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240125081601.118051-1-krzysztof.kozlowski@linaro.org> <20240125081601.118051-3-krzysztof.kozlowski@linaro.org> In-Reply-To: <20240125081601.118051-3-krzysztof.kozlowski@linaro.org> From: Bartosz Golaszewski Date: Thu, 25 Jan 2024 10:04:51 +0100 Message-ID: Subject: Re: [PATCH 3/3] gpiolib: add gpio_device_get_label() stub for !GPIOLIB To: Krzysztof Kozlowski Cc: Linus Walleij , Peter Rosin , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, kernel test robot , Philipp Zabel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jan 25, 2024 at 9:16=E2=80=AFAM Krzysztof Kozlowski wrote: > > Add empty stub of gpio_device_get_label() when GPIOLIB is not enabled. > > Cc: > Fixes: d1f7728259ef ("gpiolib: provide gpio_device_get_label()") > Suggested-by: kernel test robot > Signed-off-by: Krzysztof Kozlowski > > --- > > Cc: Philipp Zabel > > Reset framework will need it: > https://lore.kernel.org/oe-kbuild-all/202401250958.YksQmnWj-lkp@intel.com= / And I suppose you'll want an immutable branch for that? Bart > --- > include/linux/gpio/driver.h | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h > index c1df7698edb0..7f75c9a51874 100644 > --- a/include/linux/gpio/driver.h > +++ b/include/linux/gpio/driver.h > @@ -831,6 +831,12 @@ static inline int gpio_device_get_base(struct gpio_d= evice *gdev) > return -ENODEV; > } > > +static inline const char *gpio_device_get_label(struct gpio_device *gdev= ) > +{ > + WARN_ON(1); > + return NULL; > +} > + > static inline int gpiochip_lock_as_irq(struct gpio_chip *gc, > unsigned int offset) > { > -- > 2.34.1 >