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

drm/radeon/si_dpm: Move 'si_mc_load_microcode()'s prototype to shared header

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

drivers/gpu/drm/radeon/si.c:1570:5: warning: no previous prototype for ‘si_mc_load_microcode’ [-Wmissing-prototypes]

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: amd-gfx@lists.freedesktop.org
Cc: dri-devel@lists.freedesktop.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
d93a3c27 e6a29196

+33 -1
+1
drivers/gpu/drm/radeon/si.c
··· 39 39 #include "radeon_audio.h" 40 40 #include "radeon_ucode.h" 41 41 #include "si_blit_shaders.h" 42 + #include "si.h" 42 43 #include "sid.h" 43 44 44 45
+31
drivers/gpu/drm/radeon/si.h
··· 1 + /* si.h -- Private header for radeon driver -*- linux-c -*- 2 + * 3 + * Copyright 2011 Advanced Micro Devices, Inc. 4 + * 5 + * Permission is hereby granted, free of charge, to any person obtaining a 6 + * copy of this software and associated documentation files (the "Software"), 7 + * to deal in the Software without restriction, including without limitation 8 + * the rights to use, copy, modify, merge, publish, distribute, sublicense, 9 + * and/or sell copies of the Software, and to permit persons to whom the 10 + * Software is furnished to do so, subject to the following conditions: 11 + * 12 + * The above copyright notice and this permission notice shall be included in 13 + * all copies or substantial portions of the Software. 14 + * 15 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18 + * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 19 + * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 20 + * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 21 + * OTHER DEALINGS IN THE SOFTWARE. 22 + */ 23 + 24 + #ifndef __SI_H__ 25 + #define __SI_H__ 26 + 27 + struct radeon_device; 28 + 29 + int si_mc_load_microcode(struct radeon_device *rdev); 30 + 31 + #endif /* __SI_H__ */
+1 -1
drivers/gpu/drm/radeon/si_dpm.c
··· 32 32 #include "radeon_asic.h" 33 33 #include "ni_dpm.h" 34 34 #include "si_dpm.h" 35 + #include "si.h" 35 36 #include "sid.h" 36 37 37 38 #define MC_CG_ARB_FREQ_F0 0x0a ··· 1722 1721 1723 1722 struct evergreen_power_info *evergreen_get_pi(struct radeon_device *rdev); 1724 1723 1725 - extern int si_mc_load_microcode(struct radeon_device *rdev); 1726 1724 extern void vce_v1_0_enable_mgcg(struct radeon_device *rdev, bool enable); 1727 1725 1728 1726 static int si_populate_voltage_value(struct radeon_device *rdev,