Skip to content

Commit b88c168

Browse files
Grillo-0mairacanal
authored andcommitted
drm/debugfs: Add inline to drm_debugfs_dev_init() to suppres -Wunused-function
When CONFIG_DEBUG_FS is not set -Wunused-function warnings appear, make the static function inline to suppress that. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202309012114.T8Vlfaf8-lkp@intel.com/ Closes: https://lore.kernel.org/oe-kbuild-all/202309012131.FeakBzEj-lkp@intel.com/ Signed-off-by: Arthur Grillo <arthurgrillo@riseup.net> Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com> Reviewed-by: Maíra Canal <mairacanal@riseup.net> Signed-off-by: Maíra Canal <mairacanal@riseup.net> Link: https://patchwork.freedesktop.org/patch/msgid/20230901-debugfs-fix-unused-function-warning-v1-1-161dd0902975@riseup.net
1 parent e4a0fbd commit b88c168

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/drm/drm_drv.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ static inline bool drm_firmware_drivers_only(void)
584584
#if defined(CONFIG_DEBUG_FS)
585585
void drm_debugfs_dev_init(struct drm_device *dev, struct dentry *root);
586586
#else
587-
static void drm_debugfs_dev_init(struct drm_device *dev, struct dentry *root)
587+
static inline void drm_debugfs_dev_init(struct drm_device *dev, struct dentry *root)
588588
{
589589
}
590590
#endif

0 commit comments

Comments
 (0)