Searched hist:"75 ae84c89b136a5c0193ab7064b03cddfcebba39" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_process.c | diff 75ae84c89b136a5c0193ab7064b03cddfcebba39 Wed Jun 16 09:02:18 CDT 2021 Philip Yang <Philip.Yang@amd.com> drm/amdkfd: add helper function for kfd sysfs create
No functionality change. Modify kfd_sysfs_create_file to use kobject as parameter, so it becomes common helper function to remove duplicate code and will simplify new kfd sysfs file create in future.
Move pr_warn to helper function if sysfs file create failed. Set helper function as void return because caller doesn't use the helper function return value.
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>
|