diff options
| author | WangYuli <[email protected]> | 2024-07-31 04:10:40 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-08-13 14:25:49 +0000 |
| commit | 0cee47cde41e22712c034ae961076067d4ac13a0 (patch) | |
| tree | 05dd3aae1977a2643c81c16faf8ba6601e5d7e3c /drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | |
| parent | drm/amdgpu/jpeg4: properly set atomics vmid field (diff) | |
| download | kernel-0cee47cde41e22712c034ae961076067d4ac13a0.tar.gz kernel-0cee47cde41e22712c034ae961076067d4ac13a0.zip | |
drm/amd/amdgpu: Properly tune the size of struct
The struct assertion is failed because sparse cannot parse
`#pragma pack(push, 1)` and `#pragma pack(pop)` correctly.
GCC's output is still 1-byte-aligned. No harm to memory layout.
The error can be filtered out by sparse-diff, but sometimes
multiple lines queezed into one, making the sparse-diff thinks
its a new error. I'm trying to aviod this by fixing errors.
Link: https://lore.kernel.org/all/[email protected]/
Link: https://lore.kernel.org/all/[email protected]/
Fixes: 1721bc1b2afa ("drm/amdgpu: Update VF2PF interface")
Cc: Dan Carpenter <[email protected]>
Cc: wenlunpeng <[email protected]>
Reported-by: Su Hui <[email protected]>
Signed-off-by: WangYuli <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c')
0 files changed, 0 insertions, 0 deletions
