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

drm/radeon/radeon_legacy_encoders: Move 'radeon_add_legacy_encoder's prototype to shared location

Fixes the following W=1 kernel build warning(s):

drivers/gpu/drm/radeon/radeon_legacy_encoders.c:1746:1: warning: no previous prototype for ‘radeon_add_legacy_encoder’ [-Wmissing-prototypes]
1746 | radeon_add_legacy_encoder(struct drm_device *dev, uint32_t encoder_enum, uint32_t supported_device)
| ^~~~~~~~~~~~~~~~~~~~~~~~~

Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: "Christian König" <christian.koenig@amd.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Cc: amd-gfx@lists.freedesktop.org
Cc: dri-devel@lists.freedesktop.org
Cc: linux-media@vger.kernel.org
Cc: linaro-mm-sig@lists.linaro.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Lee Jones and committed by
Alex Deucher
7ddfba01 1ae79be1

+4 -10
+1 -5
drivers/gpu/drm/radeon/radeon_atombios.c
··· 35 35 #include "atom-bits.h" 36 36 #include "radeon_asic.h" 37 37 #include "radeon_atombios.h" 38 + #include "radeon_legacy_encoders.h" 38 39 39 40 extern void 40 41 radeon_add_atom_encoder(struct drm_device *dev, uint32_t encoder_enum, 41 42 uint32_t supported_device, u16 caps); 42 - 43 - /* from radeon_legacy_encoder.c */ 44 - extern void 45 - radeon_add_legacy_encoder(struct drm_device *dev, uint32_t encoder_enum, 46 - uint32_t supported_device); 47 43 48 44 union atom_supported_devices { 49 45 struct _ATOM_SUPPORTED_DEVICES_INFO info;
+1 -5
drivers/gpu/drm/radeon/radeon_combios.c
··· 31 31 #include <drm/radeon_drm.h> 32 32 33 33 #include "radeon.h" 34 + #include "radeon_legacy_encoders.h" 34 35 #include "atom.h" 35 36 36 37 #ifdef CONFIG_PPC_PMAC ··· 40 39 #include <asm/pmac_feature.h> 41 40 #include <asm/prom.h> 42 41 #endif /* CONFIG_PPC_PMAC */ 43 - 44 - /* from radeon_legacy_encoder.c */ 45 - extern void 46 - radeon_add_legacy_encoder(struct drm_device *dev, uint32_t encoder_enum, 47 - uint32_t supported_device); 48 42 49 43 /* old legacy ATI BIOS routines */ 50 44
+2
drivers/gpu/drm/radeon/radeon_legacy_encoders.h
··· 30 30 31 31 void radeon_legacy_backlight_init(struct radeon_encoder *radeon_encoder, 32 32 struct drm_connector *drm_connector); 33 + void radeon_add_legacy_encoder(struct drm_device *dev, uint32_t encoder_enum, 34 + uint32_t supported_device); 33 35 34 36 #endif /* __RADEON_LEGACY_ENCODERS_H__ */