Skip to content

Commit 90eacfb

Browse files
Revalla Hari Krishnaalexdeucher
authored andcommitted
drm/amd/display: Change parameters to fix certain compiler errors
[Why] String literals must be assigned to const char pointers. [How] By adding const keyword to fix compilation errors. Reviewed-by: Lohita Mudimela <[email protected]> Signed-off-by: Revalla Hari Krishna <[email protected]> Signed-off-by: Hamza Mahfooz <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent d3a450a commit 90eacfb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer_debug.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
#include "clk_mgr.h"
4747

4848
__printf(3, 4)
49-
unsigned int snprintf_count(char *pbuf, unsigned int bufsize, char *fmt, ...)
49+
unsigned int snprintf_count(char *pbuf, unsigned int bufsize, const char *fmt, ...)
5050
{
5151
int ret_vsnprintf;
5252
unsigned int chars_printed;

drivers/gpu/drm/amd/display/dc/dm_services.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ void generic_reg_wait(const struct dc_context *ctx,
143143
unsigned int delay_between_poll_us, unsigned int time_out_num_tries,
144144
const char *func_name, int line);
145145

146-
unsigned int snprintf_count(char *pBuf, unsigned int bufSize, char *fmt, ...);
146+
unsigned int snprintf_count(char *pBuf, unsigned int bufSize, const char *fmt, ...);
147147

148148
/* These macros need to be used with soc15 registers in order to retrieve
149149
* the actual offset.

0 commit comments

Comments
 (0)