diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2022-09-30 17:42:46 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-10-05 08:30:39 +0200 |
commit | 4ef08098b6d21b20eea76233ede13dc0142e3fab (patch) | |
tree | 70f75910725258a2bedc275c7a71c7338ec44773 /arch/arm/cpu/mmu-common.h | |
parent | f644f8d80a59407d44fcdd0ced7f3c956d24b849 (diff) | |
download | barebox-4ef08098b6d21b20eea76233ede13dc0142e3fab.tar.gz barebox-4ef08098b6d21b20eea76233ede13dc0142e3fab.tar.xz |
include: move panic() prototype to <printk.h>
The panic declaration in <linux/kernel.h> is out of place and unexpected
as it's not a Linux kernel. printf() and printk() are defined in
<printk.h>, so move it there too. Most files making use of panic(), pull
it in via <common.h>, so we only need to adjust two headers for the
new location.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20220930154247.756577-1-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/cpu/mmu-common.h')
-rw-r--r-- | arch/arm/cpu/mmu-common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/cpu/mmu-common.h b/arch/arm/cpu/mmu-common.h index c9ea2c1228..7a69122ee6 100644 --- a/arch/arm/cpu/mmu-common.h +++ b/arch/arm/cpu/mmu-common.h @@ -3,6 +3,7 @@ #ifndef __ARM_MMU_COMMON_H #define __ARM_MMU_COMMON_H +#include <printk.h> #include <linux/types.h> #include <linux/ioport.h> #include <linux/kernel.h> |