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

drm/amdgpu: Make amdgpu_mn functions inline

Unused amdgpu_mn functions threw warnings for every file that includes
amdgpu.h. It makes sense to inline this amdgpu_mn stubs to avoid the warning.

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Cc: stable@vger.kernel.org

authored by

Harry Wentland and committed by
Alex Deucher
1d1106b0 6ef68c17

+2 -2
+2 -2
drivers/gpu/drm/amd/amdgpu/amdgpu.h
··· 1752 1752 int amdgpu_mn_register(struct amdgpu_bo *bo, unsigned long addr); 1753 1753 void amdgpu_mn_unregister(struct amdgpu_bo *bo); 1754 1754 #else 1755 - static int amdgpu_mn_register(struct amdgpu_bo *bo, unsigned long addr) 1755 + static inline int amdgpu_mn_register(struct amdgpu_bo *bo, unsigned long addr) 1756 1756 { 1757 1757 return -ENODEV; 1758 1758 } 1759 - static void amdgpu_mn_unregister(struct amdgpu_bo *bo) {} 1759 + static inline void amdgpu_mn_unregister(struct amdgpu_bo *bo) {} 1760 1760 #endif 1761 1761 1762 1762 /*