linux/arch/powerpc/platforms/cell
Rohan McLure 8640de0dee powerpc: Use common syscall handler type
Cause syscall handlers to be typed as follows when called indirectly
throughout the kernel. This is to allow for better type checking.

typedef long (*syscall_fn)(unsigned long, unsigned long, unsigned long,
                           unsigned long, unsigned long, unsigned long);

Since both 32 and 64-bit abis allow for at least the first six
machine-word length parameters to a function to be passed by registers,
even handlers which admit fewer than six parameters may be viewed as
having the above type.

Coercing syscalls to syscall_fn requires a cast to void* to avoid
-Wcast-function-type.

Fixup comparisons in VDSO to avoid pointer-integer comparison. Introduce
explicit cast on systems with SPUs.

Signed-off-by: Rohan McLure <rmclure@linux.ibm.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220921065605.1051927-19-rmclure@linux.ibm.com
2022-09-28 19:22:09 +10:00
..
spufs powerpc/spufs: remove orphan declarations from spufs.h 2022-09-15 22:55:45 +10:00
axon_msi.c powerpc/cell/axon_msi: Fix refcount leak in setup_msi_msg_address 2022-08-01 22:21:18 +10:00
cbe_powerbutton.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
cbe_regs.c powerpc/cell: Add missing of_node_put()s in cbe_regs.c 2022-09-05 17:28:26 +10:00
cbe_thermal.c powerpc: Remove asm/prom.h from all files that don't need it 2022-05-08 22:15:04 +10:00
cell.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 118 2019-05-24 17:39:02 +02:00
cpufreq_spudemand.c cpufreq: Register governors at core_initcall 2020-07-02 13:03:30 +02:00
interrupt.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
interrupt.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
iommu.c powerpc/cell: Add missing of_node_put() in iommu.c 2022-09-05 17:28:26 +10:00
Kconfig powerpc/64s: Make hash MMU support configurable 2021-12-09 22:40:24 +11:00
Makefile arch: powerpc: Stop building and using oprofile 2021-01-29 10:05:51 +05:30
pervasive.c powerpc: Remove asm/prom.h from all files that don't need it 2022-05-08 22:15:04 +10:00
pervasive.h powerpc/cell: tidy up pervasive declarations 2021-02-09 00:02:11 +11:00
pmu.c powerpc: Add missing linux/{of.h,irqdomain.h} include directives 2021-06-10 13:09:16 +01:00
ras.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
ras.h powerpc: convert interrupt handlers to use wrappers 2021-02-09 00:02:12 +11:00
setup.c powerpc/cell: Add missing of_node_put()s 2022-09-05 17:28:26 +10:00
smp.c powerpc: Remove asm/prom.h from all files that don't need it 2022-05-08 22:15:04 +10:00
spider-pci.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
spider-pic.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
spu_base.c powerpc: Remove asm/prom.h from all files that don't need it 2022-05-08 22:15:04 +10:00
spu_callbacks.c powerpc: Use common syscall handler type 2022-09-28 19:22:09 +10:00
spu_manage.c powerpc/cell: Add missing of_node_put()s 2022-09-05 17:28:26 +10:00
spu_priv1_mmio.c powerpc: Remove asm/prom.h from all files that don't need it 2022-05-08 22:15:04 +10:00
spu_priv1_mmio.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 167 2019-05-30 11:26:39 -07:00
spu_syscalls.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 153 2019-05-30 11:26:32 -07:00