drm/debugfs: Add inline to drm_debugfs_dev_init() to suppres -Wunused-function
Subsystems (2)
PATCH 1/1 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.
--- include/drm/drm_drv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/drm/drm_drv.h +1 -1
@@ -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
---
base-commit: 8e455145d8f163aefa6b9cc29478e0a9f82276e6
change-id: 20230901-debugfs-fix-unused-function-warning-9ebbecbd6a5a
Best regards,
Signature · 1 line
Arthur Grillo <[email protected]>
Hi Arthur,
Quoted 7 lines · Arthur Grillo
When
CONFIG_DEBUG_FSis not set -Wunused-function warnings appear, make the static function inline to suppress that.
Andi
Quoted 7 lines · Arthur Grillo
When
CONFIG_DEBUG_FSis not set -Wunused-function warnings appear, make the static function inline to suppress that.
Best Regards,
- Maíra
Quoted 23 lines
--- include/drm/drm_drv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/drm/drm_drv.h +1
-2@@ -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 ---base-commit:
8e455145d8f163aefa6b9cc29478e0a9f82276e6
change-id: 20230901-debugfs-fix-unused-function-warning-9ebbecbd6a5aBest regards,
Maira Canal
AppliedHi Arthur,
Quoted 7 lines · Arthur Grillo
When
CONFIG_DEBUG_FSis not set -Wunused-function warnings appear, make the static function inline to suppress that.
Applied to drm-misc/drm-misc-next!
Thanks!
- Maíra
Quoted 23 lines
--- include/drm/drm_drv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/drm/drm_drv.h +1
-2@@ -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 ---base-commit:
8e455145d8f163aefa6b9cc29478e0a9f82276e6
change-id: 20230901-debugfs-fix-unused-function-warning-9ebbecbd6a5aBest regards,