diff options
| author | Uros Bizjak <ubizjak@gmail.com> | 2024-08-19 11:33:13 +0300 |
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2024-08-25 17:07:51 +0300 |
| commit | b51207dc02ec3aeaa849e419f79055d7334845b6 (patch) | |
| tree | 4479ee4bbdc05ae093d90199a0bd2ed3f53b88bd /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 7678a53a1688e3d03337ca884b284c6e7b060ec5 (diff) | |
| download | linux-b51207dc02ec3aeaa849e419f79055d7334845b6.tar.xz | |
x86/boot/64: Strip percpu address space when setting up GDT descriptors
init_per_cpu_var() returns a pointer in the percpu address space while
rip_rel_ptr() expects a pointer in the generic address space.
When strict address space checks are enabled, GCC's named address space
checks fail:
asm.h:124:63: error: passing argument 1 of 'rip_rel_ptr' from
pointer to non-enclosed address space
Add a explicit cast to remove address space of the returned pointer.
Fixes: 11e36b0f7c21 ("x86/boot/64: Load the final kernel GDT during early boot directly, remove startup_gdt[]")
Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20240819083334.148536-1-ubizjak@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
