aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorSrinivasan Shanmugam <[email protected]>2023-09-03 06:05:48 +0000
committerAlex Deucher <[email protected]>2023-09-06 18:34:11 +0000
commit9b70a1d4141369486561166aa864b8911ddec2dc (patch)
tree1a549f7a963540a09de748d6e9500591ba45cabb /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parentamdgpu/pm: Optimize emit_clock_levels for aldebaran - part 3 (diff)
downloadkernel-9b70a1d4141369486561166aa864b8911ddec2dc.tar.gz
kernel-9b70a1d4141369486561166aa864b8911ddec2dc.zip
drm/amdgpu: Declare array with strings as pointers constant
This warning is for the declaration of a static array, and it is recommended to declare it as type "static const char * const" instead of "static const char *". an array pointer declared as type "static const char *" can point to a different character constant because the pointer is mutable. However, if it is declared as type "static const char * const", the pointer will point to an immutable character constant, preventing it from being modified which can better ensure the safety and stability of the program. Fixes the below: WARNING: static const char * array should probably be static const char * const Cc: Christian König <[email protected]> Cc: Alex Deucher <[email protected]> Cc: "Pan, Xinhui" <[email protected]> Signed-off-by: Srinivasan Shanmugam <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
0 files changed, 0 insertions, 0 deletions