aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
diff options
context:
space:
mode:
authorPasha Tatashin <[email protected]>2025-05-09 06:29:27 +0000
committerAndrew Morton <[email protected]>2025-05-21 17:48:23 +0000
commit90eb270d8eb46c2d54a13b938643fbc9cf56eaea (patch)
treedc39f22f78094ff51c5943a3d1698806347a9066 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
parentfork: clean-up ifdef logic around stack allocation (diff)
downloadkernel-90eb270d8eb46c2d54a13b938643fbc9cf56eaea.tar.gz
kernel-90eb270d8eb46c2d54a13b938643fbc9cf56eaea.zip
fork: clean-up naming of vm_stack/vm_struct variables in vmap stacks code
There are two data types: "struct vm_struct" and "struct vm_stack" that have the same local variable names: vm_stack, or vm, or s, which makes the code confusing to read. Change the code so the naming is consistent: struct vm_struct is always called vm_area struct vm_stack is always called vm_stack One change altering vfree(vm_stack) to vfree(vm_area->addr) may look like a semantic change but it is not: vm_area->addr points to the vm_stack. This was done to improve readability. [[email protected]: rebased and added new users of the variable names, address review comments] Link: https://lore.kernel.org/[email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Pasha Tatashin <[email protected]> Signed-off-by: Linus Walleij <[email protected]> Acked-by: Mike Rapoport (Microsoft) <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions