aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorAmer Al Shanawany <[email protected]>2024-04-22 13:16:59 +0000
committerShuah Khan <[email protected]>2024-05-08 22:48:13 +0000
commit051f2226a545a07b5d21b5c9d8626ddd483c68a5 (patch)
treec237b343a0c7a8e1b0eb2399b7354030924108c5 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentselftests: kselftest_deps: fix l5_test() empty variable (diff)
downloadkernel-051f2226a545a07b5d21b5c9d8626ddd483c68a5.tar.gz
kernel-051f2226a545a07b5d21b5c9d8626ddd483c68a5.zip
selftests: filesystems: add missing stddef header
fix compiler warning and errors when compiling statmount test. gcc 12.3 (Ubuntu 12.3.0-1ubuntu1~22.04) statmount_test.c:572:24: warning: implicit declaration of function ‘offsetof’ [-Wimplicit-function-declaration] 572 | #define str_off(memb) (offsetof(struct statmount, memb) / sizeof(uint32_t)) | ^~~~~~~~ statmount_test.c:598:51: note: in expansion of macro ‘str_off’ 598 | test_statmount_string(STATMOUNT_MNT_ROOT, str_off(mnt_root), "mount root"); | ^~~~~~~ statmount_test.c:18:1: note: ‘offsetof’ is defined in header ‘<stddef.h>’; did you forget to ‘#include <stddef.h>’? 17 | #include "../../kselftest.h" +++ |+#include <stddef.h> Signed-off-by: Amer Al Shanawany <[email protected]> Reviewed-by: Muhammad Usama Anjum <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions