From: Bernhard Rosenkränzer Date: Thu, 27 Jun 2024 12:44:19 +0000 (+0200) Subject: staging: vchiq_debugfs: Fix build if CONFIG_DEBUG_FS is not set X-Git-Tag: dma-mapping-6.11-2024-07-19~39^2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=fcdd7b7bda3c21d1ba1247419e4a1eb8e2d0bfbb;p=users%2Fhch%2Fdma-mapping.git staging: vchiq_debugfs: Fix build if CONFIG_DEBUG_FS is not set 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 Reviewed-by: Stefan Wahren Link: https://lore.kernel.org/r/20240627124419.2498642-1-bero@baylibre.com Signed-off-by: Greg Kroah-Hartman --- 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 1f74d0bb33ba..d5f7f61c5626 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) { }