Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1002932lql; Tue, 12 Mar 2024 04:54:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV1y/ULQVQOENm75NlqEcC4iOx33Liu/KZcUrnYsNabxFqthqsvYdfoAI7ft1G75JenoW+8ZycsCpTHwMjY15J+WGIsSYVWit0S/PpCPQ== X-Google-Smtp-Source: AGHT+IG9zMf5yGw5dJIAh3dRwv6qL9Q/DdrYCAHJOJwaI4z+YIHWcr+2jxJY/s6/RBMkZaw2Nu3i X-Received: by 2002:a05:6a00:3d55:b0:6e5:e41f:fe4e with SMTP id lp21-20020a056a003d5500b006e5e41ffe4emr151104pfb.4.1710244493098; Tue, 12 Mar 2024 04:54:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710244493; cv=pass; d=google.com; s=arc-20160816; b=EsF5N7asKLnIGiQ1k+xo0NwdOfDXFcYfBEq0m2ljTtEpTg+dLYrtjS7iAptOOZgSGb e5IyP0UML/FY8hnC6IyCgvI+q4hGdut5SFUKr2tStGLii8JGwZSZmRaYqzmvZCSpwUOw Hya4bl+7Lxjb6PYP9LUo3M+2hXKrZOP4EKdL8rpIfy8pkBATHV6a8DsHJHqOVA6gte3V RM86ct4CisyC+1O8NbgR3tDrlJ3xOlYys0sRXR1ruwhiNXz8NMz7MIfFbUIlWl01MgCF AVedNu3OcRrh+1q/CQo126Mc1c04ZEegJx8cOL06ZRszs77bzP6ImjAAC6jjc9XC7dMA sXLw== 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=eMwYwf+PTcyKjP2X2O2hHD0nhv74Ka6ysivHG8C+zE0=; fh=5OJw/DeM61Lj4rXLDgEMeYFxQNg5l3TqdDlZ7IAv8Bw=; b=O5pKDT2Irn8yOhonhn6XASqGf51VBo4Qwc6m3MnUXQh97oQlIZxuRxDvDKjgcsWaZm ModVyCbENpSB9wFzpEdZAD72tB0oj8SjdrbMNW9QPQAROviMKD1lBuc1Ss+2PTiImbrF LMRslwBLsx9bQiqPwN2koLkwlncyU+6BMGFkn2+s8uPTzVf0fBOGQpb/gCubw3fVTx+D oY9bOAZ3gGPOc7DA3sOoSrDPrCjZMPIEyaamrfaxWLVPODJo5G7Qt3HCn+6Rh14sFKaU DrGC8i/sh6/yGslCCUhecJEU+pfwUcKdYDfLV6mE4EpLyaY1qSm2ljFTRUureGq/B3/K 57Qg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mPjj+hWl; 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-100196-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100196-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h129-20020a625387000000b006e6880bdccbsi5009613pfb.388.2024.03.12.04.54.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 04:54:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-100196-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mPjj+hWl; 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-100196-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100196-linux.lists.archive=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B85152815EF for ; Tue, 12 Mar 2024 11:54:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3913A79DC3; Tue, 12 Mar 2024 11:54:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="mPjj+hWl" Received: from mail-yw1-f169.google.com (mail-yw1-f169.google.com [209.85.128.169]) (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 C754179B84 for ; Tue, 12 Mar 2024 11:54:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710244482; cv=none; b=MHgvM5ayVfr9ZoN5h5JDa59Oxm+3/CsUBXs7m2ggeirRliWZdoQyoeQVqCLWHA0fv+Eh1V1RI9eAgOs4UY7mgJR/FqbHQI+fQrj3K67jnjwyOAsXrH/uZpqX6Xdx/3eBt9W9vE9KF48NWVySOurhGU3NqPNphpB5+mn2wLIUyrU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710244482; c=relaxed/simple; bh=eMwYwf+PTcyKjP2X2O2hHD0nhv74Ka6ysivHG8C+zE0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=mUbF+om2a+pTdYg5HXjicU7H5k372yXWswYUuKxqtWqw2wqouB8suLdWBJv0oirULhDDDSYqan4x+YKPIrOmTzhTJuNzSL6f6kpDcYhPtjsFZG0QXPnbrQQH5VeRGeGN6c6jJaV54RqcV06/Uqi6yj1oBMc1fEbrLwE4EuLKIwQ= 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=mPjj+hWl; arc=none smtp.client-ip=209.85.128.169 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-yw1-f169.google.com with SMTP id 00721157ae682-60a15449303so27331907b3.0 for ; Tue, 12 Mar 2024 04:54:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710244480; x=1710849280; 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=eMwYwf+PTcyKjP2X2O2hHD0nhv74Ka6ysivHG8C+zE0=; b=mPjj+hWlYuhKR+4vteF9Elv034cB57JLdGwADmCiCSeyN3ECW9RaGxlBRtPAswzQRR o/xEOoXLNHrGq/ZoJWfSsoDAcufjOy/R5w6TNDeT5rrgbMMTIAp39PNjWkUCZegjoIa4 3Lvg3ZQ2Dr9uU/iAQO6YiJFONjFrUYm3EHK69NUJaniKE571QwzlEQwHspwbF8SUjAwK SxZnRA4L99WUrzxbYCa9ImftOh4f0Uct6NQ9RedrBhSUFaj/o+wRLrwQikhicA2NnINR WK3Lce39LuMR5RNrO4pW5r/5JwhlsE6WwhQqsRKGfpVMOrCZmHz+lo3OyWE4txQxud2I K8QQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710244480; x=1710849280; 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=eMwYwf+PTcyKjP2X2O2hHD0nhv74Ka6ysivHG8C+zE0=; b=lqYk8Ujm5y/rtEhkpTHqf1YQQEksACLIsZnEMFmLRyz1V3JdFbYUXXmZaUvnbNt2IX XxghOup+bB+gjghhFYTRoq4uh+JPnyefsic27Nm0NDQvcLwnngvvnGJFlVwpL+L8Ymaj p73qN0xqYCtnl4f/lyRLyvdPpWtBmqgDCD9HtTr9wrKhKr1nPPNPP/x2sDLq7oZ+gnhZ 6RMINJ8OSS9rsqEsmWeLSAjwDeCsvRaulcb6vPB/J9J2e6keNpTMVHXFVg83l2+/UsPC PhI+RGwMjm1pvTi1Khd5JHdswx6f7cCBWggaVEaYDpLJmpEcGmbitYwOnXmKJ4aAsPUG OUlg== X-Forwarded-Encrypted: i=1; AJvYcCXITTJ/7KpYtHfTox9pP5SBdLg4+4oelr2knV3l6x/Cuyibp6UY31SNiIu93sfR5b8VNOBldLs0+VzozBmEcSRqVNcnoJzx57fZYoJ2 X-Gm-Message-State: AOJu0YypT0NiKVSTLJz6e6vZdfacyr0UAYp5IBcJSgsBUhw0Qetu77rn I+p3XMbYAqm8Swx7NERxBRtmfYAkgCuA1hCjcZFgrp24UxiL70wCAZgNZAh2T9y0CPFZ25nPu/g j7XkxZkG7rWoOs5FGmxQtANwiiw9vbawrbGlGQw== X-Received: by 2002:a25:ef12:0:b0:dc7:2401:df4e with SMTP id g18-20020a25ef12000000b00dc72401df4emr5307ybd.39.1710244479820; Tue, 12 Mar 2024 04:54:39 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240311133223.3429428-1-max.kellermann@ionos.com> In-Reply-To: <20240311133223.3429428-1-max.kellermann@ionos.com> From: Linus Walleij Date: Tue, 12 Mar 2024 12:54:28 +0100 Message-ID: Subject: Re: [PATCH] drivers/gpio/nomadik: move dummy nmk_gpio_dbg_show_one() to header To: Max Kellermann Cc: brgl@bgdev.pl, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Mar 11, 2024 at 2:32=E2=80=AFPM Max Kellermann wrote: > When `CONFIG_DEBUG_FS` is disabled, nmk_gpio_dbg_show_one() is an > empty dummy function; this however triggers a `-Wmissing-prototypes` > warning and later a linker error because the function is also used by > drivers/pinctrl/nomadik/pinctrl-nomadik.c, therefore it needs to be > non-static. > > To allow both sources to access this dummy function, this patch moves > it to the header, adding the `#ifdef CONFIG_DEBUG_FS` there as well. > > Signed-off-by: Max Kellermann I made a patch myself yesterday and applied, but I like your patch more so I took out my patch and put in yours instead. Thanks! Yours, Linus Walleij