* [PATCH] staging: vchiq_debugfs: Fix build if CONFIG_DEBUG_FS is not set
@ 2024-06-27 12:44 Bernhard Rosenkränzer
2024-06-27 13:34 ` Stefan Wahren
2024-06-28 5:17 ` Alexander Stein
0 siblings, 2 replies; 3+ messages in thread
From: Bernhard Rosenkränzer @ 2024-06-27 12:44 UTC (permalink / raw)
To: florian.fainelli, bcm-kernel-feedback-list, gregkh, umang.jain,
wahrenst, linux-rpi-kernel, linux-arm-kernel, linux-staging,
linux-kernel
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.
Fixes: c3552ab19aeb ("staging: vchiq_debugfs: Fix NPD in vchiq_dump_state")
Signed-off-by: Bernhard Rosenkränzer <bero@baylibre.com>
---
.../staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.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)
#else /* CONFIG_DEBUG_FS */
-void vchiq_debugfs_init(void)
+void vchiq_debugfs_init(struct vchiq_state *state)
{
}
--
2.45.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] staging: vchiq_debugfs: Fix build if CONFIG_DEBUG_FS is not set
2024-06-27 12:44 [PATCH] staging: vchiq_debugfs: Fix build if CONFIG_DEBUG_FS is not set Bernhard Rosenkränzer
@ 2024-06-27 13:34 ` Stefan Wahren
2024-06-28 5:17 ` Alexander Stein
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Wahren @ 2024-06-27 13:34 UTC (permalink / raw)
To: Bernhard Rosenkränzer, florian.fainelli,
bcm-kernel-feedback-list, gregkh, umang.jain, linux-rpi-kernel,
linux-arm-kernel, linux-staging, linux-kernel
Am 27.06.24 um 14:44 schrieb Bernhard Rosenkränzer:
> 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.
>
> Fixes: c3552ab19aeb ("staging: vchiq_debugfs: Fix NPD in vchiq_dump_state")
> Signed-off-by: Bernhard Rosenkränzer <bero@baylibre.com>
Oh dear, thanks for fixing
Reviewed-by: Stefan Wahren <wahrenst@gmx.net>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] staging: vchiq_debugfs: Fix build if CONFIG_DEBUG_FS is not set
2024-06-27 12:44 [PATCH] staging: vchiq_debugfs: Fix build if CONFIG_DEBUG_FS is not set Bernhard Rosenkränzer
2024-06-27 13:34 ` Stefan Wahren
@ 2024-06-28 5:17 ` Alexander Stein
1 sibling, 0 replies; 3+ messages in thread
From: Alexander Stein @ 2024-06-28 5:17 UTC (permalink / raw)
To: florian.fainelli, bcm-kernel-feedback-list, gregkh, umang.jain,
wahrenst, linux-rpi-kernel, linux-arm-kernel, linux-staging,
linux-kernel, Bernhard Rosenkränzer
Hi Bernhard,
Am Donnerstag, 27. Juni 2024, 14:44:19 MESZ schrieb Bernhard Rosenkränzer:
> 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.
>
> Fixes: c3552ab19aeb ("staging: vchiq_debugfs: Fix NPD in vchiq_dump_state")
> Signed-off-by: Bernhard Rosenkränzer <bero@baylibre.com>
> ---
> .../staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.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)
>
> #else /* CONFIG_DEBUG_FS */
>
> -void vchiq_debugfs_init(void)
> +void vchiq_debugfs_init(struct vchiq_state *state)
> {
> }
>
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-06-28 5:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-27 12:44 [PATCH] staging: vchiq_debugfs: Fix build if CONFIG_DEBUG_FS is not set Bernhard Rosenkränzer
2024-06-27 13:34 ` Stefan Wahren
2024-06-28 5:17 ` Alexander Stein
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).