]> Git Repo - J-linux.git/commit
ARM: 9182/1: mmu: fix returns from early_param() and __setup() functions
authorRandy Dunlap <[email protected]>
Wed, 23 Feb 2022 19:46:35 +0000 (20:46 +0100)
committerRussell King (Oracle) <[email protected]>
Mon, 28 Feb 2022 13:57:32 +0000 (13:57 +0000)
commit7b83299e5b9385943a857d59e15cba270df20d7e
treea475da73e365df2a8a23b37ded76ba0657c2e1b7
parent11c57c3ba94da74c3446924260e34e0b1950b5d7
ARM: 9182/1: mmu: fix returns from early_param() and __setup() functions

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: b849a60e0903 ("ARM: make cr_alignment read-only #ifndef CONFIG_CPU_CP15")
Signed-off-by: Randy Dunlap <[email protected]>
Reported-by: Igor Zhbanov <[email protected]>
Cc: Uwe Kleine-König <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Russell King (Oracle) <[email protected]>
arch/arm/mm/mmu.c
This page took 0.047391 seconds and 4 git commands to generate.