diff options
| author | Vincent Guittot <[email protected]> | 2024-04-25 07:37:09 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2024-05-15 08:22:16 +0000 |
| commit | e5bc44e47c531860be96ac615314b1ab23d5aa2b (patch) | |
| tree | 6ca9bf7461a4050a0b5b6b6e3c6626759122ca8f /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | Merge tag 'x86-irq-2024-05-12' of git://git.kernel.org/pub/scm/linux/kernel/g... (diff) | |
| download | kernel-e5bc44e47c531860be96ac615314b1ab23d5aa2b.tar.gz kernel-e5bc44e47c531860be96ac615314b1ab23d5aa2b.zip | |
arch/topology: Fix variable naming to avoid shadowing
Using 'hw_pressure' for local variable name is confusing in regard to the
per-CPU 'hw_pressure' variable that uses the same name:
include/linux/arch_topology.h:DECLARE_PER_CPU(unsigned long, hw_pressure);
... which puts it into a global scope for all code that includes
<linux/topology.h>, shadowing the local variable.
Rename it to avoid compiler confusion & Sparse warnings.
[ mingo: Expanded the changelog. ]
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Vincent Guittot <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Reviewed-by: Lukasz Luba <[email protected]>
Reviewed-by: Konrad Dybcio <[email protected]>
Acked-by: Sudeep Holla <[email protected]>
Cc: Linus Torvalds <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Fixes: d4dbc991714e ("sched/cpufreq: Rename arch_update_thermal_pressure() => arch_update_hw_pressure()")
Tested-by: Konrad Dybcio <[email protected]> # QC SM8550 QRD
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
