linux/arch/powerpc/include/asm
Christophe Leroy 3b1f7a4697 powerpc/mm: Fix return type of pgd_val()
Commit 6b0e82791b ("powerpc/e500: switch to 64 bits PGD on 85xx
(32 bits)") switched PGD entries to 64 bits, but pgd_val() returns
an unsigned long which is 32 bits on PPC32. This is not a problem
for regular PMD entries because the upper part is always NULL, but
when PMD entries are leaf they contain 64 bits values, so pgd_val()
must return an unsigned long long instead of an unsigned long.

Also change the condition to CONFIG_PPC_85xx instead of CONFIG_PPC_E500
as the change was meant for 32 bits only. Allthough this should be
harmless on PPC64, it generates a warning with pgd_ERROR print.

Fixes: 6b0e82791b ("powerpc/e500: switch to 64 bits PGD on 85xx (32 bits)")
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/45f8fdf298ec3df7573b66d21b03a5cda92e2cb1.1724313510.git.christophe.leroy@csgroup.eu
2024-08-22 22:52:38 +10:00
..
book3s powerpc/64s: use contiguous PMD/PUD instead of HUGEPD 2024-07-12 15:52:19 -07:00
nohash powerpc/mm: Fix return type of pgd_val() 2024-08-22 22:52:38 +10:00
vdso
8xx_immap.h
Kbuild
accounting.h
archrandom.h
asm-compat.h
asm-const.h
asm-offsets.h
asm-prototypes.h
asm.h
async_tx.h
atomic.h
backlight.h
barrier.h
bitops.h
bootx.h
bpf_perf_event.h
btext.h
bug.h
cache.h
cacheflush.h powerpc: Replace CONFIG_4xx with CONFIG_44x 2024-06-28 22:28:48 +10:00
cell-pmu.h
cell-regs.h
checksum.h
clocksource.h
cmpxchg.h
code-patching-asm.h
code-patching.h
compat.h
context_tracking.h
copro.h
cpm.h
cpm1.h
cpm2.h
cpu_has_feature.h powerpc: Check only single values are passed to CPU/MMU feature checks 2024-07-11 17:31:55 +10:00
cpu_setup.h
cpufeature.h
cpuidle.h
cputable.h powerpc: Remove core support for 40x 2024-06-28 22:28:47 +10:00
cputhreads.h
cputime.h
crashdump-ppc64.h
current.h
dbdma.h
dbell.h
dcr-generic.h
dcr-mmio.h
dcr-native.h
dcr-regs.h
dcr.h
debug.h
delay.h
device.h
disassemble.h
dma-direct.h
dma.h
drmem.h
dt_cpu_ftrs.h
dtl.h
edac.h
eeh.h powerpc/eeh: Fix spelling of the word "auxillary" and update comment 2024-05-08 00:16:02 +10:00
eeh_event.h
ehv_pic.h
elf.h
elfnote.h
emergency-restart.h
emulated_ops.h
epapr_hcalls.h
exception-64e.h
exception-64s.h
exec.h
extable.h
fadump-internal.h powerpc/fadump: setup additional parameters for dump capture kernel 2024-05-10 16:36:10 +10:00
fadump.h powerpc/fadump: pass additional parameters when fadump is active 2024-05-10 16:36:10 +10:00
feature-fixups.h
firmware.h
fixmap.h
floppy.h
fpu.h powerpc: implement ARCH_HAS_KERNEL_FPU_SUPPORT 2024-05-19 14:36:18 -07:00
fsl_gtm.h
fsl_hcalls.h
fsl_lbc.h
fsl_pamu_stash.h
fsl_pm.h
ftrace.h function_graph: Everyone uses HAVE_FUNCTION_GRAPH_RET_ADDR_PTR, remove it 2024-06-11 11:18:24 -04:00
futex.h
grackle.h
guest-state-buffer.h KVM: PPC: Book3S HV nestedv2: Add DPDES support in helper library for Guest state buffer 2024-06-06 22:38:10 +10:00
hardirq.h
head-64.h
heathrow.h
highmem.h
hmi.h
hugetlb.h powerpc/mm: remove hugepd leftovers 2024-07-12 15:52:19 -07:00
hvcall.h powerpc/pseries: Enforce hcall result buffer validity and size 2024-04-29 23:51:16 +10:00
hvconsole.h
hvcserver.h
hvsi.h
hw_breakpoint.h
hw_irq.h powerpc/4xx: Remove CONFIG_BOOKE_OR_40x 2024-06-28 22:28:48 +10:00
hydra.h
i8259.h
ibmebus.h
icswx.h
idle.h
imc-pmu.h
immap_cpm2.h
inst.h
interrupt.h
io-defs.h
io-workarounds.h
io.h powerpc: Fix typos 2024-05-08 00:21:30 +10:00
io_event_irq.h
iommu.h powerpc/iommu: Reimplement the iommu_table_group_ops for pSeries 2024-06-28 17:03:40 +10:00
ipic.h
irq.h powerpc/4xx: Remove CONFIG_BOOKE_OR_40x 2024-06-28 22:28:48 +10:00
irq_work.h
irqflags.h
isa-bridge.h
jump_label.h
kasan.h powerpc: use CONFIG_EXECMEM instead of CONFIG_MODULES where appropriate 2024-05-14 00:31:44 -07:00
kdebug.h
kdump.h
kexec.h powerpc/kexec_file: fix extra size calculation for kexec FDT 2024-06-17 22:48:45 +10:00
kexec_ranges.h powerpc/crash: add crash memory hotplug support 2024-04-23 15:00:04 +10:00
keylargo.h
kfence.h powerpc/64s/radix/kfence: map __kfence_pool at page granularity 2024-07-04 21:55:18 +10:00
kgdb.h
kprobes.h
kup.h powerpc/4xx: Remove CONFIG_BOOKE_OR_40x 2024-06-28 22:28:48 +10:00
kvm_asm.h
kvm_book3s.h KVM: PPC: Book3S HV nestedv2: Add DPDES support in helper library for Guest state buffer 2024-06-06 22:38:10 +10:00
kvm_book3s_32.h
kvm_book3s_64.h KVM: PPC: Book3S HV nestedv2: Add support for reading VPA counters for pseries guests 2024-06-03 22:06:28 +10:00
kvm_book3s_asm.h
kvm_book3s_uvmem.h
kvm_booke.h
kvm_booke_hv_asm.h
kvm_fpu.h
kvm_guest.h
kvm_host.h ARM: 2024-07-20 12:41:03 -07:00
kvm_para.h
kvm_ppc.h
libata-portmap.h
linkage.h
livepatch.h
local.h
lppaca.h KVM: PPC: Book3S HV nestedv2: Add support for reading VPA counters for pseries guests 2024-06-03 22:06:28 +10:00
lv1call.h
machdep.h
macio.h
mc146818rtc.h
mce.h
mediabay.h
mem_encrypt.h
membarrier.h
mman.h
mmiowb.h
mmu.h powerpc: Check only single values are passed to CPU/MMU feature checks 2024-07-11 17:31:55 +10:00
mmu_context.h
mmzone.h
module.h powerpc/module: Remove arch specific module bug stuff 2024-05-03 20:46:51 +10:00
module.lds.h
mpc5xxx.h
mpc6xx.h
mpc52xx.h
mpc52xx_psc.h
mpc85xx.h
mpc5121.h
mpic.h
mpic_msgr.h
mpic_timer.h
msi_bitmap.h
nmi.h
nvram.h
ohare.h
opal-api.h powerpc: Fix typos 2024-05-08 00:21:30 +10:00
opal.h
paca.h
page.h powerpc/mm: remove hugepd leftovers 2024-07-12 15:52:19 -07:00
page_32.h
page_64.h
papr-sysparm.h
paravirt.h
paravirt_api_clock.h
parport.h
pasemi_dma.h
pci-bridge.h
pci.h
percpu.h
perf_event.h
perf_event_fsl_emb.h
perf_event_server.h powerpc/perf: Set cpumode flags using sample address 2024-06-17 22:47:16 +10:00
pgalloc.h
pgtable-be-types.h powerpc/mm: remove hugepd leftovers 2024-07-12 15:52:19 -07:00
pgtable-masks.h
pgtable-types.h powerpc/mm: Fix return type of pgd_val() 2024-08-22 22:52:38 +10:00
pgtable.h powerpc/8xx: rework support for 8M pages using contiguous PTE entries 2024-07-12 15:52:17 -07:00
pkeys.h
plpar_wrappers.h powerpc/pseries: Remove unused cede related functions 2024-06-03 12:39:12 +10:00
plpks.h powerpc/pseries: make max polling consistent for longer H_CALLs 2024-04-22 23:37:51 +10:00
pmac_feature.h powerpc: Fix typos 2024-05-08 00:21:30 +10:00
pmac_low_i2c.h
pmac_pfunc.h
pmc.h
pmi.h
pnv-ocxl.h
pnv-pci.h
powernv.h
ppc-opcode.h powerpc64/bpf: jit support for signed division and modulo 2024-07-11 15:40:21 +10:00
ppc-pci.h
ppc4xx.h
ppc_asm.h powerpc: Replace CONFIG_4xx with CONFIG_44x 2024-06-28 22:28:48 +10:00
probes.h
processor.h powerpc/4xx: Remove CONFIG_BOOKE_OR_40x 2024-06-28 22:28:48 +10:00
prom.h
ps3.h driver core: have match() callback in struct bus_type take a const * 2024-07-03 15:16:54 +02:00
ps3av.h
ps3gpu.h
ps3stor.h
pte-walk.h
ptrace.h powerpc/4xx: Remove CONFIG_BOOKE_OR_40x 2024-06-28 22:28:48 +10:00
qspinlock.h
qspinlock_types.h
reg.h powerpc/4xx: Remove CONFIG_BOOKE_OR_40x 2024-06-28 22:28:48 +10:00
reg_8xx.h
reg_booke.h powerpc: Remove core support for 40x 2024-06-28 22:28:47 +10:00
reg_fsl_emb.h
rheap.h
rio.h
rtas-types.h
rtas-work-area.h
rtas.h
runlatch.h
seccomp.h
sections.h
secure_boot.h
security_features.h
secvar.h
serial.h
set_memory.h
setjmp.h
setup.h
sfp-machine.h
shmparam.h
signal.h
simple_spinlock.h
simple_spinlock_types.h
smp.h
smu.h
sparsemem.h
spinlock.h
spinlock_types.h
spu.h
spu_csa.h
spu_info.h
spu_priv1.h
sstep.h
stackprotector.h
stacktrace.h
static_call.h
string.h
svm.h
swab.h
swiotlb.h
switch_to.h
synch.h
syscall.h
syscall_wrapper.h
syscalls.h
syscalls_32.h
task_size_32.h
task_size_64.h
tce.h
thread_info.h
time.h powerpc: Remove core support for 40x 2024-06-28 22:28:47 +10:00
timex.h
tlb.h
tlbflush.h
tm.h
topology.h powerpc/topology: Check if a core is online 2024-08-13 10:32:17 +10:00
trace.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
trace_clock.h
tsi108.h
tsi108_irq.h
tsi108_pci.h
types.h
uaccess.h powerpc/uaccess: Use YZ asm constraint for ld 2024-05-30 22:57:27 +10:00
udbg.h powerpc: Remove core support for 40x 2024-06-28 22:28:47 +10:00
uic.h
ultravisor-api.h
ultravisor.h
uninorth.h powerpc: Fix typos 2024-05-08 00:21:30 +10:00
unistd.h clone3: drop __ARCH_WANT_SYS_CLONE3 macro 2024-07-10 14:23:38 +02:00
uprobes.h
user.h
vas.h
vdso.h
vdso_datapage.h
vermagic.h
vga.h
video.h arch: Rename fbdev header and source files 2024-05-03 17:07:50 +02:00
vio.h driver core: have match() callback in struct bus_type take a const * 2024-07-03 15:16:54 +02:00
vmalloc.h
vphn.h
word-at-a-time.h
xics.h
xive-regs.h
xive.h
xmon.h
xor.h
xor_altivec.h