Skip to content

Commit fdc95df

Browse files
srishanmalexdeucher
authored andcommitted
drm/radeon: Fix missing prototypes in radeon_atpx_handler.c
Fixes the following gcc with W=1: drivers/gpu/drm/radeon/radeon_atpx_handler.c:64:6: warning: no previous prototype for ‘radeon_has_atpx’ [-Wmissing-prototypes] 64 | bool 4(void) { | ^~~~~~~~~~~~~~~ drivers/gpu/drm/radeon/radeon_atpx_handler.c:68:6: warning: no previous prototype for ‘radeon_has_atpx_dgpu_power_cntl’ [-Wmissing-prototypes] 68 | bool radeon_has_atpx_dgpu_power_cntl(void) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/radeon/radeon_atpx_handler.c:72:6: warning: no previous prototype for ‘radeon_is_atpx_hybrid’ [-Wmissing-prototypes] 72 | bool radeon_is_atpx_hybrid(void) { | ^~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/radeon/radeon_atpx_handler.c:77:6: warning: no previous prototype for ‘radeon_atpx_dgpu_req_power_for_displays’ [-Wmissing-prototypes] 77 | bool radeon_atpx_dgpu_req_power_for_displays(void) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/radeon/radeon_atpx_handler.c:596:6: warning: no previous prototype for ‘radeon_register_atpx_handler’ [-Wmissing-prototypes] 596 | void radeon_register_atpx_handler(void) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/radeon/radeon_atpx_handler.c:614:6: warning: no previous prototype for ‘radeon_unregister_atpx_handler’ [-Wmissing-prototypes] 614 | void radeon_unregister_atpx_handler(void) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/radeon/radeon_atpx_handler.c:159: warning: expecting prototype for radeon_atpx_validate_functions(). Prototype was for radeon_atpx_validate() instead Cc: Christian König <christian.koenig@amd.com> Cc: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 71344a7 commit fdc95df

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

drivers/gpu/drm/radeon/radeon_acpi.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,4 +453,13 @@ struct acpi_bus_event;
453453
* BYTE - number of active lanes
454454
*/
455455

456+
#if defined(CONFIG_VGA_SWITCHEROO)
457+
void radeon_register_atpx_handler(void);
458+
void radeon_unregister_atpx_handler(void);
459+
bool radeon_has_atpx_dgpu_power_cntl(void);
460+
bool radeon_is_atpx_hybrid(void);
461+
bool radeon_has_atpx(void);
462+
bool radeon_atpx_dgpu_req_power_for_displays(void);
463+
#endif
464+
456465
#endif

drivers/gpu/drm/radeon/radeon_atpx_handler.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ static void radeon_atpx_parse_functions(struct radeon_atpx_functions *f, u32 mas
147147
}
148148

149149
/**
150-
* radeon_atpx_validate_functions - validate ATPX functions
150+
* radeon_atpx_validate() - validate ATPX functions
151151
*
152152
* @atpx: radeon atpx struct
153153
*

0 commit comments

Comments
 (0)