drm/amdgpu: Fix warnings in gfxhub_v2_0.c
authorSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Fri, 30 Jun 2023 10:43:55 +0000 (16:13 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 10 Jul 2023 13:02:36 +0000 (09:02 -0400)
commit0e2b8507c446e24a76e403e0845c49cd8d86862c
tree1f022628fe3009030d1425fe3765f8e9486e3ce6
parent67769b7cdd7e1b20059ee19a8e906b1854f9b467
drm/amdgpu: Fix warnings in gfxhub_v2_0.c

Fix the below checkpatch warnings:

WARNING: static const char * array should probably be static const char * const
+static const char *gfxhub_client_ids[] = {

WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
+       unsigned i;

WARNING: Missing a blank line after declarations
+       u32 tmp;
+       tmp = RREG32_SOC15(GC, 0, mmGCVM_L2_PROTECTION_FAULT_CNTL);

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: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c