Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/radeon/radeon_device: remove unused function

We get 2 warnings when building kernel with W=1:
drivers/gpu/drm/radeon/radeon_device.c:1961:5: warning: no previous prototype for 'radeon_debugfs_init' [-Wmissing-prototypes]
drivers/gpu/drm/radeon/radeon_device.c:1966:6: warning: no previous prototype for 'radeon_debugfs_cleanup' [-Wmissing-prototypes]

In fact, these functions are dummy, but can be removed,
so this patch removes them.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Baoyou Xie and committed by
Alex Deucher
0aa3e2d0 9f31a0b0

-20
-11
drivers/gpu/drm/radeon/radeon_device.c
··· 1958 1958 } 1959 1959 #endif 1960 1960 } 1961 - 1962 - #if defined(CONFIG_DEBUG_FS) 1963 - int radeon_debugfs_init(struct drm_minor *minor) 1964 - { 1965 - return 0; 1966 - } 1967 - 1968 - void radeon_debugfs_cleanup(struct drm_minor *minor) 1969 - { 1970 - } 1971 - #endif
-9
drivers/gpu/drm/radeon/radeon_drv.c
··· 155 155 extern long radeon_kms_compat_ioctl(struct file *filp, unsigned int cmd, 156 156 unsigned long arg); 157 157 158 - #if defined(CONFIG_DEBUG_FS) 159 - int radeon_debugfs_init(struct drm_minor *minor); 160 - void radeon_debugfs_cleanup(struct drm_minor *minor); 161 - #endif 162 - 163 158 /* atpx handler */ 164 159 #if defined(CONFIG_VGA_SWITCHEROO) 165 160 void radeon_register_atpx_handler(void); ··· 545 550 .disable_vblank = radeon_disable_vblank_kms, 546 551 .get_vblank_timestamp = radeon_get_vblank_timestamp_kms, 547 552 .get_scanout_position = radeon_get_crtc_scanoutpos, 548 - #if defined(CONFIG_DEBUG_FS) 549 - .debugfs_init = radeon_debugfs_init, 550 - .debugfs_cleanup = radeon_debugfs_cleanup, 551 - #endif 552 553 .irq_preinstall = radeon_driver_irq_preinstall_kms, 553 554 .irq_postinstall = radeon_driver_irq_postinstall_kms, 554 555 .irq_uninstall = radeon_driver_irq_uninstall_kms,