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

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 <lohita.mudimela@amd.com>
Signed-off-by: Revalla Hari Krishna <Harikrishna.Revalla@amd.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Revalla Hari Krishna and committed by
Alex Deucher
90eacfb7 d3a450ae

+2 -2
+1 -1
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer_debug.c
··· 46 46 #include "clk_mgr.h" 47 47 48 48 __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, ...) 50 50 { 51 51 int ret_vsnprintf; 52 52 unsigned int chars_printed;
+1 -1
drivers/gpu/drm/amd/display/dc/dm_services.h
··· 143 143 unsigned int delay_between_poll_us, unsigned int time_out_num_tries, 144 144 const char *func_name, int line); 145 145 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, ...); 147 147 148 148 /* These macros need to be used with soc15 registers in order to retrieve 149 149 * the actual offset.