android_kernel_motorola_sm6375/arch
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Randy Dunlap 5c215ea574 ARM: 9182/1: mmu: fix returns from early_param() and __setup() functions
commit 7b83299e5b9385943a857d59e15cba270df20d7e upstream.

early_param() handlers should return 0 on success.
__setup() handlers should return 1 on success, i.e., the parameter
has been handled. A return of 0 would cause the "option=value" string
to be added to init's environment strings, polluting it.

../arch/arm/mm/mmu.c: In function 'test_early_cachepolicy':
../arch/arm/mm/mmu.c:215:1: error: no return statement in function returning non-void [-Werror=return-type]
../arch/arm/mm/mmu.c: In function 'test_noalign_setup':
../arch/arm/mm/mmu.c:221:1: error: no return statement in function returning non-void [-Werror=return-type]

Fixes: b849a60e09 ("ARM: make cr_alignment read-only #ifndef CONFIG_CPU_CP15")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: Igor Zhbanov <i.zhbanov@omprussia.ru>
Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: linux-arm-kernel@lists.infradead.org
Cc: patches@armlinux.org.uk
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-03-08 19:07:49 +01:00
..
alpha
arc
arm ARM: 9182/1: mmu: fix returns from early_param() and __setup() functions 2022-03-08 19:07:49 +01:00
arm64 arm64: dts: rockchip: Switch RK3399-Gru DP to SPDIF output 2022-03-08 19:07:49 +01:00
c6x
csky perf: Protect perf_guest_cbs with RCU 2022-01-20 09:19:18 +01:00
h8300
hexagon
ia64 ia64: ensure proper NUMA distance and possible map initialization 2022-03-08 19:07:48 +01:00
m68k
microblaze
mips MIPS: Octeon: Fix build errors using clang 2022-01-27 09:19:48 +01:00
nds32 perf: Protect perf_guest_cbs with RCU 2022-01-20 09:19:18 +01:00
nios2
openrisc
parisc parisc/unaligned: Fix ldw() and stw() unalignment handlers 2022-03-02 11:41:01 +01:00
powerpc powerpc/lib/sstep: fix 'ptesync' build error 2022-02-23 11:59:58 +01:00
riscv riscv: fix build with binutils 2.38 2022-02-16 12:52:49 +01:00
s390 s390/hypfs: include z/VM guests with access control group set 2022-02-01 17:24:33 +01:00
sh
sparc
um um: registers: Rename function names to avoid conflicts and build problems 2022-01-27 09:19:45 +01:00
unicore32
x86 x86/fpu: Correct pkru/xstate inconsistency 2022-03-02 11:41:03 +01:00
xtensa
.gitignore
Kconfig