]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Add format attribute to kfd_smi_event_add
authorPhilip Yang <Philip.Yang@amd.com>
Fri, 4 Mar 2022 14:33:27 +0000 (09:33 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Mar 2022 19:59:59 +0000 (14:59 -0500)
commitea98f3204690257005ece64ce7f131ed8c0c35ac
treea8da55dfb798997df999c9a66f6428ad1747b065
parent76b6a0adce3dc5a870f226bd8ed43050fa882cc7
drm/amdkfd: Add format attribute to kfd_smi_event_add

To enable compiler type-checked against the format string in callers.

All warnings (new ones prefixed by >>):

>> warning: function 'kfd_smi_event_add' might be a candidate for
'gnu_printf' format attribute [-Wsuggest-attribute=format]

Fixes: 1f9e787819eb ("drm/amdkfd: Add SMI add event helper")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_smi_events.c