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

drm/radeon/radeon_pm: Move 'radeon_pm_acpi_event_handler' prototype into shared header

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

drivers/gpu/drm/radeon/radeon_pm.c:74:6: warning: no previous prototype for ‘radeon_pm_acpi_event_handler’ [-Wmissing-prototypes]
74 | void radeon_pm_acpi_event_handler(struct radeon_device *rdev)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

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
bb29f896 a9f9851f

+31 -2
+1 -2
drivers/gpu/drm/radeon/radeon_acpi.c
··· 36 36 #include "atom.h" 37 37 #include "radeon.h" 38 38 #include "radeon_acpi.h" 39 + #include "radeon_pm.h" 39 40 40 41 #if defined(CONFIG_VGA_SWITCHEROO) 41 42 bool radeon_atpx_dgpu_req_power_for_displays(void); ··· 45 44 #endif 46 45 47 46 #define ACPI_AC_CLASS "ac_adapter" 48 - 49 - extern void radeon_pm_acpi_event_handler(struct radeon_device *rdev); 50 47 51 48 struct atif_verify_interface { 52 49 u16 size; /* structure size in bytes (includes size field) */
+1
drivers/gpu/drm/radeon/radeon_pm.c
··· 33 33 #include "avivod.h" 34 34 #include "r600_dpm.h" 35 35 #include "radeon.h" 36 + #include "radeon_pm.h" 36 37 37 38 #define RADEON_IDLE_LOOP_MS 100 38 39 #define RADEON_RECLOCK_DELAY_MS 200
+29
drivers/gpu/drm/radeon/radeon_pm.h
··· 1 + /* radeon_pm.h -- Private header for radeon driver -*- linux-c -*- 2 + * 3 + * Permission is hereby granted, free of charge, to any person obtaining a 4 + * copy of this software and associated documentation files (the "Software"), 5 + * to deal in the Software without restriction, including without limitation 6 + * the rights to use, copy, modify, merge, publish, distribute, sublicense, 7 + * and/or sell copies of the Software, and to permit persons to whom the 8 + * Software is furnished to do so, subject to the following conditions: 9 + * 10 + * The above copyright notice and this permission notice (including the next 11 + * paragraph) shall be included in all copies or substantial portions of the 12 + * Software. 13 + * 14 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17 + * PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 18 + * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19 + * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20 + * DEALINGS IN THE SOFTWARE. 21 + * 22 + */ 23 + 24 + #ifndef __RADEON_PM_H__ 25 + #define __RADEON_PM_H__ 26 + 27 + void radeon_pm_acpi_event_handler(struct radeon_device *rdev); 28 + 29 + #endif /* __RADEON_PM_H__ */