projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4a0fbd
)
drm/debugfs: Add inline to drm_debugfs_dev_init() to suppres -Wunused-function
author
Arthur Grillo
<arthurgrillo@riseup.net>
Fri, 1 Sep 2023 18:05:50 +0000
(15:05 -0300)
committer
Maíra Canal
<mairacanal@riseup.net>
Fri, 8 Sep 2023 20:23:31 +0000
(17:23 -0300)
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
include/drm/drm_drv.h
patch
|
blob
|
blame
|
history
diff --git
a/include/drm/drm_drv.h
b/include/drm/drm_drv.h
index 9850fe73b7395afddf6181f8b40701553013df49..e2640dc64e081cc9c82f4c15db3da40bfd26c6fe 100644
(file)
--- a/
include/drm/drm_drv.h
+++ b/
include/drm/drm_drv.h
@@
-584,7
+584,7
@@
static inline bool drm_firmware_drivers_only(void)
#if defined(CONFIG_DEBUG_FS)
void drm_debugfs_dev_init(struct drm_device *dev, struct dentry *root);
#else
-static void drm_debugfs_dev_init(struct drm_device *dev, struct dentry *root)
+static
inline
void drm_debugfs_dev_init(struct drm_device *dev, struct dentry *root)
{
}
#endif