s390-traps-only-define-is_valid_bugaddr-under-config_generic_bug.patch removed from -mm tree
The quilt patch titled
Subject: s390/traps: only define is_valid_bugaddr() under CONFIG_GENERIC_BUG
has been removed from the -mm tree. Its filename was
s390-traps-only-define-is_valid_bugaddr-under-config_generic_bug.patch
This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Nathan Chancellor <[email protected]>
Subject: s390/traps: only define is_valid_bugaddr() under CONFIG_GENERIC_BUG
Date: Thu, 30 Nov 2023 17:22:33 -0700
When building with -Wmissing-prototypes without CONFIG_GENERIC_BUG, there is a warning about a missing prototype for is_valid_bugaddr():
arch/s390/kernel/traps.c:46:5: warning: no previous prototype for 'is_valid_bugaddr' [-Wmissing-prototypes]
46 | int is_valid_bugaddr(unsigned long addr)
| ^~~~~~~~~~~~~~~~
The prototype is only declared with CONFIG_GENERIC_BUG, so only define the function under the same condition to clear up the warning, which matches other architectures.
---
arch/s390/kernel/traps.c | 2 ++ 1 file changed, 2 insertions(+)
arch/s390/kernel/traps.c renamed from arch/s390/kernel/traps.c~s390-traps-only-define-is_valid_bugaddr-under-config_generic_bug +2 -0
@@ -43,10 +43,12 @@ static inline void __user *get_trap_ip(sreturn (void __user *) (address - (regs->int_code >>16 )); } +#ifdef CONFIG_GENERIC_BUG int is_valid_bugaddr (unsigned long addr) {return 1 ; } +#endif void do_report_trap (struct pt_regs *regs,int si_signo,int si_code,char *str) {
_
Patches currently in -mm which might be from [email protected] are
buffer-fix-grow_buffers-for-block-size-page_size-fix.patch