linux/drivers/gpu/drm/amd/pm
Arnd Bergmann 0069a22738 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 <arnd@arndb.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2021-09-29 17:30:00 -04:00
..
inc drm/amdgpu: add manual sclk/vddc setting support for cyan skilfish(v3) 2021-09-14 15:39:40 -04:00
powerplay gpu: amd: replace open-coded offsetof() with builtin 2021-09-29 17:30:00 -04:00
swsmu drm/amd/pm: fix runpm hang when amdgpu loaded prior to sound driver 2021-09-23 15:17:28 -04:00
amdgpu_dpm.c drm/amd/pm: unify the interface for power gating 2021-04-09 16:46:46 -04:00
amdgpu_pm.c drm/amd/amdgpu: Enable some sysnodes for guest smi 2021-09-14 15:36:06 -04:00
Makefile drm/amd/swsmu: add aldebaran smu13 ip support (v3) 2021-03-23 22:54:24 -04:00