Merge tag 'for-linus-hexagon-6.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/bcain/linux

Pull hexagon updates from Brian Cain:

- Move kernel prototypes out of uapi header to internal header

- Fix to address an unbalanced spinlock

- Miscellaneous patches to fix static checks

- Update bcain@quicinc.com->brian.cain@oss.qualcomm.com

* tag 'for-linus-hexagon-6.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/bcain/linux:
MAINTAINERS: Update my email address
hexagon: Fix unbalanced spinlock in die()
hexagon: Fix warning comparing pointer to 0
hexagon: Move kernel prototypes out of uapi/asm/setup.h header
hexagon: time: Remove redundant null check for resource
hexagon: fix using plain integer as NULL pointer warning in cmpxchg

+31 -18
+2
.mailmap
··· 142 142 Boris Brezillon <bbrezillon@kernel.org> <boris.brezillon@free-electrons.com> 143 143 Brendan Higgins <brendan.higgins@linux.dev> <brendanhiggins@google.com> 144 144 Brian Avery <b.avery@hp.com> 145 + Brian Cain <bcain@kernel.org> <brian.cain@oss.qualcomm.com> 146 + Brian Cain <bcain@kernel.org> <bcain@quicinc.com> 145 147 Brian King <brking@us.ibm.com> 146 148 Brian Silverman <bsilver16384@gmail.com> <brian.silverman@bluerivertech.com> 147 149 Bryan Tan <bryan-bt.tan@broadcom.com> <bryantan@vmware.com>
+1 -1
MAINTAINERS
··· 19453 19453 F: include/uapi/misc/fastrpc.h 19454 19454 19455 19455 QUALCOMM HEXAGON ARCHITECTURE 19456 - M: Brian Cain <bcain@quicinc.com> 19456 + M: Brian Cain <brian.cain@oss.qualcomm.com> 19457 19457 L: linux-hexagon@vger.kernel.org 19458 19458 S: Supported 19459 19459 T: git git://git.kernel.org/pub/scm/linux/kernel/git/bcain/linux.git
+1 -1
arch/hexagon/include/asm/cmpxchg.h
··· 56 56 __typeof__(ptr) __ptr = (ptr); \ 57 57 __typeof__(*(ptr)) __old = (old); \ 58 58 __typeof__(*(ptr)) __new = (new); \ 59 - __typeof__(*(ptr)) __oldval = 0; \ 59 + __typeof__(*(ptr)) __oldval = (__typeof__(*(ptr))) 0; \ 60 60 \ 61 61 asm volatile( \ 62 62 "1: %0 = memw_locked(%1);\n" \
+20
arch/hexagon/include/asm/setup.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0-only */ 2 + /* 3 + * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. 4 + * 5 + * This program is free software; you can redistribute it and/or modify 6 + * it under the terms of the GNU General Public License version 2 and 7 + * only version 2 as published by the Free Software Foundation. 8 + */ 9 + 10 + #ifndef _ASM_HEXAGON_SETUP_H 11 + #define _ASM_HEXAGON_SETUP_H 12 + 13 + #include <linux/init.h> 14 + #include <uapi/asm/setup.h> 15 + 16 + extern char external_cmdline_buffer; 17 + 18 + void __init setup_arch_memory(void); 19 + 20 + #endif
+2 -12
arch/hexagon/include/uapi/asm/setup.h
··· 17 17 * 02110-1301, USA. 18 18 */ 19 19 20 - #ifndef _ASM_SETUP_H 21 - #define _ASM_SETUP_H 22 - 23 - #ifdef __KERNEL__ 24 - #include <linux/init.h> 25 - #else 26 - #define __init 27 - #endif 20 + #ifndef _UAPI_ASM_HEXAGON_SETUP_H 21 + #define _UAPI_ASM_HEXAGON_SETUP_H 28 22 29 23 #include <asm-generic/setup.h> 30 - 31 - extern char external_cmdline_buffer; 32 - 33 - void __init setup_arch_memory(void); 34 24 35 25 #endif
+1 -2
arch/hexagon/kernel/time.c
··· 170 170 171 171 ce_dev->cpumask = cpu_all_mask; 172 172 173 - if (!resource) 174 - resource = rtos_timer_device.resource; 173 + resource = rtos_timer_device.resource; 175 174 176 175 /* ioremap here means this has to run later, after paging init */ 177 176 rtos_timer = ioremap(resource->start, resource_size(resource));
+4 -2
arch/hexagon/kernel/traps.c
··· 135 135 } 136 136 137 137 /* Attempt to continue past exception. */ 138 - if (0 == newfp) { 138 + if (!newfp) { 139 139 struct pt_regs *regs = (struct pt_regs *) (((void *)fp) 140 140 + 8); 141 141 ··· 195 195 printk(KERN_EMERG "Oops: %s[#%d]:\n", str, ++die.counter); 196 196 197 197 if (notify_die(DIE_OOPS, str, regs, err, pt_cause(regs), SIGSEGV) == 198 - NOTIFY_STOP) 198 + NOTIFY_STOP) { 199 + spin_unlock_irq(&die.lock); 199 200 return 1; 201 + } 200 202 201 203 print_modules(); 202 204 show_regs(regs);