diff options
| author | Arnd Bergmann <[email protected]> | 2021-09-27 12:20:41 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-09-29 21:30:00 +0000 |
| commit | 0069a2273837f199cb93d539a64daeba072a5a2a (patch) | |
| tree | 28c43c7c823796a18a5583a7d65de3830349151d /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
| parent | drm/amdkfd: fix resource_size.cocci warnings (diff) | |
| download | kernel-0069a2273837f199cb93d539a64daeba072a5a2a.tar.gz kernel-0069a2273837f199cb93d539a64daeba072a5a2a.zip | |
gpu: amd: replace open-coded offsetof() with builtin
The two AMD drivers have their own custom offsetof() implementation
that now triggers a warning with recent versions of clang:
drivers/gpu/drm/radeon/radeon_atombios.c:133:14: error: performing pointer subtraction with a null pointer has undefined behavior [-Werror,-Wnull-pointer-subtraction]
Change all the instances to use the normal offsetof() provided
by the kernel that does not have this problem.
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions
