All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] parisc: Include stringify.h to avoid build error in crypto/api.c
@ 2021-11-16 12:40 Helge Deller
  2021-11-16 12:40 ` [PATCH 2/4] parisc: Increase FRAME_WARN to 4096 on parisc Helge Deller
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Helge Deller @ 2021-11-16 12:40 UTC (permalink / raw)
  To: linux-parisc; +Cc: James Bottomley, John David Anglin

Include <linux/stringify.h> to avoid this build error:
 arch/parisc/include/asm/jump_label.h: error: expected ':' before '__stringify'
 arch/parisc/include/asm/jump_label.h: error: label 'l_yes' defined but not used [-Werror=unused-label]

Signed-off-by: Helge Deller <deller@gmx.de>
---
 arch/parisc/include/asm/jump_label.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/parisc/include/asm/jump_label.h b/arch/parisc/include/asm/jump_label.h
index 7efb1aa2f7f8..af2a598bc0f8 100644
--- a/arch/parisc/include/asm/jump_label.h
+++ b/arch/parisc/include/asm/jump_label.h
@@ -5,6 +5,7 @@
 #ifndef __ASSEMBLY__

 #include <linux/types.h>
+#include <linux/stringify.h>
 #include <asm/assembly.h>

 #define JUMP_LABEL_NOP_SIZE 4
--
2.31.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/4] parisc: Increase FRAME_WARN to 4096 on parisc
  2021-11-16 12:40 [PATCH 1/4] parisc: Include stringify.h to avoid build error in crypto/api.c Helge Deller
@ 2021-11-16 12:40 ` Helge Deller
  2021-11-16 12:40 ` [PATCH 3/4] parisc: Wire up futex_waitv Helge Deller
  2021-11-16 12:40 ` [PATCH 4/4] parisc: Move assembler related defines below the __ASSEMBLY__ umbrella Helge Deller
  2 siblings, 0 replies; 4+ messages in thread
From: Helge Deller @ 2021-11-16 12:40 UTC (permalink / raw)
  To: linux-parisc; +Cc: James Bottomley, John David Anglin

PA-RISC uses a much bigger frame size for functions than other
architectures. So increase it to 4096 to silence lots of warnings.

Signed-off-by: Helge Deller <deller@gmx.de>
---
 lib/Kconfig.debug | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 9ef7ce18b4f5..4fd34095c369 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -346,8 +346,9 @@ config FRAME_WARN
 	int "Warn for stack frames larger than"
 	range 0 8192
 	default 2048 if GCC_PLUGIN_LATENT_ENTROPY
-	default 1536 if (!64BIT && (PARISC || XTENSA))
-	default 1024 if (!64BIT && !PARISC)
+	default 4096 if PARISC
+	default 1536 if (!64BIT && XTENSA)
+	default 1024 if !64BIT
 	default 2048 if 64BIT
 	help
 	  Tell gcc to warn at build time for stack frames larger than this.
--
2.31.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 3/4] parisc: Wire up futex_waitv
  2021-11-16 12:40 [PATCH 1/4] parisc: Include stringify.h to avoid build error in crypto/api.c Helge Deller
  2021-11-16 12:40 ` [PATCH 2/4] parisc: Increase FRAME_WARN to 4096 on parisc Helge Deller
@ 2021-11-16 12:40 ` Helge Deller
  2021-11-16 12:40 ` [PATCH 4/4] parisc: Move assembler related defines below the __ASSEMBLY__ umbrella Helge Deller
  2 siblings, 0 replies; 4+ messages in thread
From: Helge Deller @ 2021-11-16 12:40 UTC (permalink / raw)
  To: linux-parisc; +Cc: James Bottomley, John David Anglin

Signed-off-by: Helge Deller <deller@gmx.de>
---
 arch/parisc/kernel/syscalls/syscall.tbl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/parisc/kernel/syscalls/syscall.tbl b/arch/parisc/kernel/syscalls/syscall.tbl
index bf751e0732b7..358c00000755 100644
--- a/arch/parisc/kernel/syscalls/syscall.tbl
+++ b/arch/parisc/kernel/syscalls/syscall.tbl
@@ -446,3 +446,4 @@
 446	common	landlock_restrict_self		sys_landlock_restrict_self
 # 447 reserved for memfd_secret
 448	common	process_mrelease		sys_process_mrelease
+449	common	futex_waitv			sys_futex_waitv
--
2.31.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 4/4] parisc: Move assembler related defines below the __ASSEMBLY__ umbrella
  2021-11-16 12:40 [PATCH 1/4] parisc: Include stringify.h to avoid build error in crypto/api.c Helge Deller
  2021-11-16 12:40 ` [PATCH 2/4] parisc: Increase FRAME_WARN to 4096 on parisc Helge Deller
  2021-11-16 12:40 ` [PATCH 3/4] parisc: Wire up futex_waitv Helge Deller
@ 2021-11-16 12:40 ` Helge Deller
  2 siblings, 0 replies; 4+ messages in thread
From: Helge Deller @ 2021-11-16 12:40 UTC (permalink / raw)
  To: linux-parisc; +Cc: James Bottomley, John David Anglin

Building allmodconfig generates some errors in the gpu/drm/msm
(MSM/snapdragon) drivers, because there a conflicting COND() define is
used as well. Although those drivers aren't relevant for parisc, they
are nevertheless compiled when CONFIG_COMPILE_TEST is defined.

The parisc COND() define is only used for assembly statements. So we can
simply move it including the other mnemonics inside the #ifdef
__ASSEMBLY__ part to avoid this conflict.

Signed-off-by: Helge Deller <deller@gmx.de>
---
 arch/parisc/include/asm/assembly.h | 44 ++++++++++++++++--------------
 1 file changed, 24 insertions(+), 20 deletions(-)

diff --git a/arch/parisc/include/asm/assembly.h b/arch/parisc/include/asm/assembly.h
index 7085df079702..39e7985086f9 100644
--- a/arch/parisc/include/asm/assembly.h
+++ b/arch/parisc/include/asm/assembly.h
@@ -3,38 +3,19 @@
  * Copyright (C) 1999 Hewlett-Packard (Frank Rowand)
  * Copyright (C) 1999 Philipp Rumpf <prumpf@tux.org>
  * Copyright (C) 1999 SuSE GmbH
+ * Copyright (C) 2021 Helge Deller <deller@gmx.de>
  */

 #ifndef _PARISC_ASSEMBLY_H
 #define _PARISC_ASSEMBLY_H

-#define CALLEE_FLOAT_FRAME_SIZE	80
-
 #ifdef CONFIG_64BIT
-#define LDREG	ldd
-#define STREG	std
-#define LDREGX  ldd,s
-#define LDREGM	ldd,mb
-#define STREGM	std,ma
-#define SHRREG	shrd
-#define SHLREG	shld
-#define ANDCM   andcm,*
-#define	COND(x)	* ## x
 #define RP_OFFSET	16
 #define FRAME_SIZE	128
 #define CALLEE_REG_FRAME_SIZE	144
 #define REG_SZ		8
 #define ASM_ULONG_INSN	.dword
 #else	/* CONFIG_64BIT */
-#define LDREG	ldw
-#define STREG	stw
-#define LDREGX  ldwx,s
-#define LDREGM	ldwm
-#define STREGM	stwm
-#define SHRREG	shr
-#define SHLREG	shlw
-#define ANDCM   andcm
-#define COND(x)	x
 #define RP_OFFSET	20
 #define FRAME_SIZE	64
 #define CALLEE_REG_FRAME_SIZE	128
@@ -45,6 +26,7 @@
 /* Frame alignment for 32- and 64-bit */
 #define FRAME_ALIGN     64

+#define CALLEE_FLOAT_FRAME_SIZE	80
 #define CALLEE_SAVE_FRAME_SIZE (CALLEE_REG_FRAME_SIZE + CALLEE_FLOAT_FRAME_SIZE)

 #ifdef CONFIG_PA20
@@ -67,6 +49,28 @@

 #ifdef __ASSEMBLY__

+#ifdef CONFIG_64BIT
+#define LDREG	ldd
+#define STREG	std
+#define LDREGX  ldd,s
+#define LDREGM	ldd,mb
+#define STREGM	std,ma
+#define SHRREG	shrd
+#define SHLREG	shld
+#define ANDCM   andcm,*
+#define	COND(x)	* ## x
+#else	/* CONFIG_64BIT */
+#define LDREG	ldw
+#define STREG	stw
+#define LDREGX  ldwx,s
+#define LDREGM	ldwm
+#define STREGM	stwm
+#define SHRREG	shr
+#define SHLREG	shlw
+#define ANDCM   andcm
+#define COND(x)	x
+#endif
+
 #ifdef CONFIG_64BIT
 /* the 64-bit pa gnu assembler unfortunately defaults to .level 1.1 or 2.0 so
  * work around that for now... */
--
2.31.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-11-16 12:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-16 12:40 [PATCH 1/4] parisc: Include stringify.h to avoid build error in crypto/api.c Helge Deller
2021-11-16 12:40 ` [PATCH 2/4] parisc: Increase FRAME_WARN to 4096 on parisc Helge Deller
2021-11-16 12:40 ` [PATCH 3/4] parisc: Wire up futex_waitv Helge Deller
2021-11-16 12:40 ` [PATCH 4/4] parisc: Move assembler related defines below the __ASSEMBLY__ umbrella Helge Deller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.