From b5132cadc775261022f0e462d60436fb0993c4f6 Mon Sep 17 00:00:00 2001 From: Andrew Boie Date: Wed, 1 Feb 2012 16:30:52 -0800 Subject: [PATCH] pvr_debugfs: Fix inline function declaration This fixes a compilation error if CONFIG_DEBUG_FS isn't enabled. Signed-off-by: Andrew Boie Signed-off-by: Kirill A. Shutemov --- drivers/staging/mrst/pvr/pvr_debugfs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/mrst/pvr/pvr_debugfs.h b/drivers/staging/mrst/pvr/pvr_debugfs.h index 00c14f5..98c91fd 100644 --- a/drivers/staging/mrst/pvr/pvr_debugfs.h +++ b/drivers/staging/mrst/pvr/pvr_debugfs.h @@ -6,7 +6,8 @@ void pvr_debugfs_hwrec_create_snapshot(PVRSRV_DEVICE_NODE *dev_node); int pvr_debugfs_init(void); void pvr_debugfs_cleanup(void); #else -void pvr_debugfs_hwrec_create_snapshot(PVRSRV_DEVICE_NODE *dev_node) +static inline void pvr_debugfs_hwrec_create_snapshot( + PVRSRV_DEVICE_NODE *dev_node) { } static inline int pvr_debugfs_init(void) -- 2.7.4