From 4b689a0267c5d9d18e1e29e41ebc2da0a37e9ebe Mon Sep 17 00:00:00 2001 From: Helge Deller Date: Fri, 22 Mar 2024 11:33:41 +0100 Subject: parisc: Drop FUNC_MANY_ARGS parameter This parameter was intended to make sure that the compiler saves registers on the stack and prevents possible register corruption. But this isn't needed and doesn't help, so just remove it. Signed-off-by: Helge Deller --- src/parisc/parisc.c | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/src/parisc/parisc.c b/src/parisc/parisc.c index 4317460..1a0c97e 100644 --- a/src/parisc/parisc.c +++ b/src/parisc/parisc.c @@ -1118,12 +1118,7 @@ void iodc_log_call(unsigned int *arg, const char *func) } } -#define FUNC_MANY_ARGS , \ - int a0, int a1, int a2, int a3, int a4, int a5, int a6, \ - int a7, int a8, int a9, int a10, int a11, int a12 - - -int __VISIBLE parisc_iodc_ENTRY_IO(unsigned int *arg FUNC_MANY_ARGS) +int __VISIBLE parisc_iodc_ENTRY_IO(unsigned int *arg) { unsigned long hpa = COMPAT_VAL(ARG0); unsigned long option = ARG1; @@ -1238,7 +1233,7 @@ int __VISIBLE parisc_iodc_ENTRY_IO(unsigned int *arg FUNC_MANY_ARGS) } -int __VISIBLE parisc_iodc_ENTRY_INIT(unsigned int *arg FUNC_MANY_ARGS) +int __VISIBLE parisc_iodc_ENTRY_INIT(unsigned int *arg) { unsigned long hpa = COMPAT_VAL(ARG0); unsigned long option = ARG1; @@ -1282,20 +1277,20 @@ int __VISIBLE parisc_iodc_ENTRY_INIT(unsigned int *arg FUNC_MANY_ARGS) return PDC_BAD_OPTION; } -int __VISIBLE parisc_iodc_ENTRY_SPA(unsigned int *arg FUNC_MANY_ARGS) +int __VISIBLE parisc_iodc_ENTRY_SPA(unsigned int *arg) { iodc_log_call(arg, __FUNCTION__); return PDC_BAD_OPTION; } -int __VISIBLE parisc_iodc_ENTRY_CONFIG(unsigned int *arg FUNC_MANY_ARGS) +int __VISIBLE parisc_iodc_ENTRY_CONFIG(unsigned int *arg) { iodc_log_call(arg, __FUNCTION__); // BUG_ON(1); return PDC_BAD_OPTION; } -int __VISIBLE parisc_iodc_ENTRY_TEST(unsigned int *arg FUNC_MANY_ARGS) +int __VISIBLE parisc_iodc_ENTRY_TEST(unsigned int *arg) { unsigned long hpa = COMPAT_VAL(ARG0); unsigned long option = ARG1; @@ -1325,7 +1320,7 @@ int __VISIBLE parisc_iodc_ENTRY_TEST(unsigned int *arg FUNC_MANY_ARGS) return PDC_BAD_OPTION; } -int __VISIBLE parisc_iodc_ENTRY_TLB(unsigned int *arg FUNC_MANY_ARGS) +int __VISIBLE parisc_iodc_ENTRY_TLB(unsigned int *arg) { unsigned long option = ARG1; unsigned int *result = (unsigned int *)ARG4; @@ -2369,7 +2364,7 @@ static int pdc_pat_mem(unsigned long *arg) } -int __VISIBLE parisc_pdc_entry(unsigned long *arg FUNC_MANY_ARGS) +int __VISIBLE parisc_pdc_entry(unsigned long *arg) { unsigned long proc = ARG0; unsigned long option = ARG1; -- cgit v1.1