diff options
| author | Geert Uytterhoeven <[email protected]> | 2022-01-31 13:26:20 +0000 |
|---|---|---|
| committer | Palmer Dabbelt <[email protected]> | 2022-02-14 20:27:38 +0000 |
| commit | 12f4a665cc3568328728e46c3162873b5b69cd27 (patch) | |
| tree | a094e398faaf8bb171303d8753fed50744d1ef36 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | |
| parent | riscv: fix build with binutils 2.38 (diff) | |
| download | kernel-12f4a665cc3568328728e46c3162873b5b69cd27.tar.gz kernel-12f4a665cc3568328728e46c3162873b5b69cd27.zip | |
RISC-V: Fix hartid mask handling for hartid 31 and up
Jessica reports that using "1 << hartid" causes undefined behavior for
hartid 31 and up.
Fix this by using the BIT() helper instead of an explicit shift.
Reported-by: Jessica Clarke <[email protected]>
Fixes: 26fb751ca37846c9 ("RISC-V: Do not use cpumask data structure for hartid bitmap")
Signed-off-by: Geert Uytterhoeven <[email protected]>
Reviewed-by: Atish Patra <[email protected]>
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions
