From patchwork Thu Jan 25 08:16:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 191895 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2553:b0:103:945f:af90 with SMTP id p19csp1491871dyi; Thu, 25 Jan 2024 00:17:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IEsG6Te1kt+31X2HmnPw2ISgx2yj70q46xpUBVxdX4SpoEAjxxo3PxKz25Ofh7+KoMGOeDb X-Received: by 2002:a05:6214:cca:b0:686:ace9:bd36 with SMTP id 10-20020a0562140cca00b00686ace9bd36mr581420qvx.124.1706170647619; Thu, 25 Jan 2024 00:17:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706170647; cv=pass; d=google.com; s=arc-20160816; b=eUaE/DTNVZBVks5PtZnspPCxwfcgPscpsYnFVsv0X/PsYKHfZlLMKd8niOdXovczeB G2OAjJUGCiZYSVmHb56Q17YVSWQjZ8ua2cBvwR9a2sUIdyuORci4V+hjohiitvxjOIfm FbmLMPShzyPShlKcYeUBR0W7CymhxMejrIMn1Hv3ySmRXXebBajJ11LelxlChNmftn4p Xasemj11RbqrObWERACB/Wiadmbod6qybn1z2cQ3l8VwssiHFsjDkZuAdIBQSiZ+kfIv Lzc7ORt8danC23eaM55vCe6D8e3w/AGyCZC4Te4R1aGbWIDWqWZ0h2+3J3/O506vP/V+ 86fQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=yokV3KsZTLtR361FMJ3GYZw7aKtxmjchO95DV9+f45k=; fh=KLweH7OOQhtFNcDcmFIY0x8ZxnOVpLHm1euCe99lOhk=; b=hRgSvWfWqxfkS0nBms3NAnTdflWt+dJWUG6ofJ/IF8iP5mzMQFA+iG5W9lpGyjTpO5 qfV5jNXwwwtQl3n0yyo1ZYRO/BLyuqMyrVcLlxWqQrzpOt3KeCTJdPanP/8S6Zrvu/rE ylSzRQ4j/lL5W3jkmadrxJBlMQ5TYD9nxvcPQXoh9DSe5uG1aM3S36LKciYKXTFumRsG Mgj60tuh2Pv/FD5xhkNldGBxJbdPL/erXBm3Ix3r8aEUVrhcY946IeHvaKzd80/pAvy+ B0V2hxw/jIpB8aJDyYTu2+qHFlRg5uA5V5Y//8ve7OGo2nJXtvHx+W8DatNExQ9686kj BgRA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VFzjg4ew; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-38151-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38151-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id w1-20020a0cdf81000000b0067f2a3fa7a2si12188617qvl.559.2024.01.25.00.17.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 00:17:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38151-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VFzjg4ew; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-38151-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38151-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 49DEB1C21E1D for ; Thu, 25 Jan 2024 08:17:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 850B11B5B1; Thu, 25 Jan 2024 08:16:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="VFzjg4ew" Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) (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 54D5D1759D for ; Thu, 25 Jan 2024 08:16:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706170570; cv=none; b=d5AU7pGqSyK1Cx75wZ0KbBpDGjF6u7OHy7S2h79ZnIpkIrtOE5XnXI93hN37lICFKrYLp7oXrSotF3xRHVjN+7EprdrY1+dhgMF5qBhwUaoq6dQi36fGo3elJvBxaFifxoQl2vzS9mYkd7bosZhtF7+EBSGafm4KwysffkB71z8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706170570; c=relaxed/simple; bh=jaCgGOlshk2nOQ0HEUZD7VFYGGtzHGKiLMGwEMepQWk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=oPdSlokJ1rkF6zksmm1G5/QtTzRrN0MhCMC8/uDEO32Vm3Ie0T9kINX2tYla3jiAr8xFz/u2DW97PUfHHxSWg3mP6wUvMCzvdVQuidFiQIBJJMQTMPFlHXQGGCFjO4KnGcW4UaOXGh6e7lcFVKE8qCI2mfsx7d/OTl/jMGIWIGE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=VFzjg4ew; arc=none smtp.client-ip=209.85.208.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-55a354a65afso5626817a12.0 for ; Thu, 25 Jan 2024 00:16:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706170567; x=1706775367; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=yokV3KsZTLtR361FMJ3GYZw7aKtxmjchO95DV9+f45k=; b=VFzjg4ewYsvCIbtOR68R7mS8Bs5iXNZniys8SPrtfw5rKF9nEZw5bKlWICe1dl+Iww Cbm0mgVudul0cRA8VkNUf1unJj61sXYe4cRmhqfAzpAETPyZcHENWiNE+8hielh576bD 3l4ZRVe511R0hmC/BoiiBI+jVIM+YCirsI9vAz6ccAGbfvprftZY8yJBS2Kgakq7gZH2 80DbrwK8JsYtkm9K3HOIXuNOParrClx/rKuz7gyHoxj8mTuUIoCinsH3bBIwMda9Pix/ /PXdAcusxwlly+rveUr0QjclAFArGb69qJC7kuvUVF59cmX1IkqtOf0VQ/arxFd7ssGm eKzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706170567; x=1706775367; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yokV3KsZTLtR361FMJ3GYZw7aKtxmjchO95DV9+f45k=; b=nyzhHpotZDV0msEsyMaU9wBRP35eMtiD77xkqyTThA3xkmwlxNS8HmQ/9WxvFw9iWl NPS5PkOKOh77j3wR42w08hL9BWzjMUQbH8brnU2t+uKqJOELmNJZumAZqvad4TXV/bCV WWvtMtE1yqw9tuEM68rUmALpdEi0LX9VkOkCNd/5fNdfL/IHvo7PrUoq/KZHe1ttIYgt xcC9ytauLBF4tFe+Mi3C/bQEoDaBSOeGXPLN0JqXGlXG1Seg2v62dZjVlYPiuRJsC9Po nbdJaVFmM+a5cY6crspf8f4XCYHnVkzNPeIENHf3zEVVKLh4SrOTWxkLEXZTQYuyVQ2W momg== X-Gm-Message-State: AOJu0YyywyMtRFPuwC0YV3L+xeyX5mSCOHCa5/CvjnVaDVU1ohF+AzMc TfVOoGhU3/wTaphVqdpXiRB6eALjtnLt6dyBrOzaIDnNuqiazvaVLEEESvgnyuk= X-Received: by 2002:a05:6402:1d55:b0:55c:661b:7fd3 with SMTP id dz21-20020a0564021d5500b0055c661b7fd3mr379652edb.70.1706170567639; Thu, 25 Jan 2024 00:16:07 -0800 (PST) Received: from krzk-bin.. ([178.197.215.66]) by smtp.gmail.com with ESMTPSA id f21-20020a056402195500b0055c63205052sm3410210edz.37.2024.01.25.00.16.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 00:16:07 -0800 (PST) From: Krzysztof Kozlowski To: Linus Walleij , Bartosz Golaszewski , Peter Rosin , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , stable@vger.kernel.org, kernel test robot , Philipp Zabel Subject: [PATCH 3/3] gpiolib: add gpio_device_get_label() stub for !GPIOLIB Date: Thu, 25 Jan 2024 09:16:01 +0100 Message-Id: <20240125081601.118051-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240125081601.118051-1-krzysztof.kozlowski@linaro.org> References: <20240125081601.118051-1-krzysztof.kozlowski@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789049593058882522 X-GMAIL-MSGID: 1789049593058882522 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/ --- 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_device *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) {