From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B1B62C2BBCA for ; Fri, 28 Jun 2024 05:18:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:To:From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=X9WoXzkzLULCld7QZX4tVDfOoCFDD8QTCpQy/bJja8g=; b=yVHYBFA0MPVP/5dmnQDs8avZut 3uH/SkAyGWbXHhB9Ixt48bRTjVhNR/xWb5gYf/th6jtX0ypoKe96sK360pO9zRfA3gB0SUVNAurbL j0DZNG6pJmUl6N6NH2bnkD0wYSTWt5nh+dl3zkXaBUuATbToHaxuQR93SliEmf5XybTlZivLOZzny ChcP+orvb4oQKL4djnuCNt42TBWPNY5BaBOT2SGPnlAMUyC3YruRu5kiX1czP3qsCozatisGuzDE0 +urV+4Z1bPJ61PxlpWJQbeSwT0Iw3Ne590quydEPczQAGDZYFgyiNEHCryq6+Q1hQIdjZdTVPaT9l kz0VeMVg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sN3zp-0000000CawA-26ht; Fri, 28 Jun 2024 05:18:05 +0000 Received: from mout-p-202.mailbox.org ([2001:67c:2050:0:465::202]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sN3zf-0000000CasD-1mAv; Fri, 28 Jun 2024 05:17:57 +0000 Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4W9Nwv3S4yz9sSy; Fri, 28 Jun 2024 07:17:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1719551855; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=X9WoXzkzLULCld7QZX4tVDfOoCFDD8QTCpQy/bJja8g=; b=OvPDBzci31szDCv+ZLShy4h+Gf8i+ehuXqnF+ZYgJLNSXnua+ACX2eTMlACrAwlivTmgcr HyovWrcGXOEaBiZJ/N5Zk2yFQz8z3clY8Jh3V3zDjBSfocDpCa4upvuiTEWYyi0noNp9xV A+yuPr/teUBK4carJaMXGFw1O5ar/HnHTpHJmjPr1/+QYvVAm48uhB4yYEyMflKyfM/bfu Vpgb+uIsxZckpiMGq8Ly86Ha+bcLakA+tPmK7o0wUu1M8G5I3+jCTkn/VuDz+YrR0PyJ/Z ZktqZiXBat+hHasNOESALpEuydG7IGSEZKAn9htrRyP26NsBGpdbAubtxlUKNQ== From: Alexander Stein To: florian.fainelli@broadcom.com, bcm-kernel-feedback-list@broadcom.com, gregkh@linuxfoundation.org, umang.jain@ideasonboard.com, wahrenst@gmx.net, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Bernhard =?ISO-8859-1?Q?Rosenkr=E4nzer?= Subject: Re: [PATCH] staging: vchiq_debugfs: Fix build if CONFIG_DEBUG_FS is not set Date: Fri, 28 Jun 2024 07:17:30 +0200 Message-ID: <5807549.DvuYhMxLoT@kongar> In-Reply-To: <20240627124419.2498642-1-bero@baylibre.com> References: <20240627124419.2498642-1-bero@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-MBO-RS-META: wcg1h9ybmy8r418qgsneaa856uy6o7ut X-MBO-RS-ID: 997eb622df03333c934 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240627_221755_617839_636A02FE X-CRM114-Status: GOOD ( 13.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Bernhard, Am Donnerstag, 27. Juni 2024, 14:44:19 MESZ schrieb Bernhard Rosenkr=C3=A4n= zer: > Commit 42a2f6664e18 ("staging: vc04_services: Move global g_state to > vchiq_state") adds a parameter to vchiq_debugfs_init, but leaves the > dummy implementation in the !CONFIG_DEBUG_FS case untouched, causing a > compile time error. >=20 > Fixes: c3552ab19aeb ("staging: vchiq_debugfs: Fix NPD in vchiq_dump_state= ") > Signed-off-by: Bernhard Rosenkr=C3=A4nzer > --- > .../staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debu= gfs.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c > index 1f74d0bb33bae..d5f7f61c56269 100644 > --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c > +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c > @@ -138,7 +138,7 @@ void vchiq_debugfs_deinit(void) > =20 > #else /* CONFIG_DEBUG_FS */ > =20 > -void vchiq_debugfs_init(void) > +void vchiq_debugfs_init(struct vchiq_state *state) > { > } > =20 How about encapsulating the code inside if (IS_ENABLED(CONFIG_DEBUG_FS)) and remove the #ifdef CONFIG_DEBUG_FS alltogether? AFAIK this will do a compile test even if CONFIG_DEBUG_FS is unset. Best regards, Alexander