diff options
| author | Andy Lutomirski <[email protected]> | 2017-02-20 16:56:12 +0000 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2017-02-21 10:48:56 +0000 |
| commit | 8c2e41f7ae1234c192ef497472ad306227c77c03 (patch) | |
| tree | 4960eb70e39c81d6e23fb5c413315235dd339d1e /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | x86/kvm/vmx: Get rid of segment_base() on 64-bit kernels (diff) | |
| download | kernel-8c2e41f7ae1234c192ef497472ad306227c77c03.tar.gz kernel-8c2e41f7ae1234c192ef497472ad306227c77c03.zip | |
x86/kvm/vmx: Simplify segment_base()
Use actual pointer types for pointers (instead of unsigned long) and
replace hardcoded constants with the appropriate self-documenting
macros.
The function is still a bit messy, but this seems a lot better than
before to me.
This is mostly borrowed from a patch by Thomas Garnier.
Cc: Thomas Garnier <[email protected]>
Cc: Jim Mattson <[email protected]>
Cc: Radim Krčmář <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Signed-off-by: Andy Lutomirski <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions
