]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mvebu: Mark return_to_bootrom() as a noreturn function
authorPali Rohár <pali@kernel.org>
Fri, 23 Jul 2021 09:14:24 +0000 (11:14 +0200)
committerStefan Roese <sr@denx.de>
Sat, 31 Jul 2021 07:49:32 +0000 (09:49 +0200)
This function does not return, so add the appropriate compiler flag.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
Reviewed-by: Chris Packham <judge.packham@gmail.com>
Tested-by: Chris Packham <judge.packham@gmail.com>
arch/arm/mach-mvebu/include/mach/cpu.h

index 52473ade7a727c727b7353a5bf36e5ab221675b0..79858858c2591b08cf1f44734e2cffcb97d5fe5b 100644 (file)
@@ -142,7 +142,7 @@ int mvebu_mbus_probe(struct mbus_win windows[], int count);
 int mvebu_soc_family(void);
 u32 mvebu_get_nand_clock(void);
 
-void return_to_bootrom(void);
+void __noreturn return_to_bootrom(void);
 
 #ifndef CONFIG_DM_MMC
 int mv_sdh_init(unsigned long regbase, u32 max_clk, u32 min_clk, u32 quirks);