checkpatch.pl: Make common.h check boarder
Subsystems (9)
PATCH 1/7 checkpatch.pl: Make common.h check boarder
At this point in time we should not add common.h to any new files, so make checkpatch.pl complain.
---
Cc: Simon Glass <[email protected]>
This causes a bunch of patman tests, for checkpatch, to now fail and I don't really understand why, at all. And that was before I added a test for the new error, which I had hoped would clear up the problem.
--- scripts/checkpatch.pl | 8 +++++++- tools/patman/test_checkpatch.py | 7 ++++++- 2 files changed, 13 insertions(+), 2 deletions(-)
scripts/checkpatch.pl +7 -1
@@ -2636,12 +2636,18 @@ sub u_boot_line { "All CONFIG symbols are managed by Kconfig\n" . $herecurr); } - # Don't put common.h and dm.h in header files + # Don't put dm.h in header files if ($realfile =~ /\.h$/ && $rawline =~ /^\+#include\s*<(common|dm)\.h>*/) { ERROR("BARRED_INCLUDE_IN_HDR", "Avoid including common.h and dm.h in header files\n" . $herecurr); } + # Don't add common.h to files + if ($rawline =~ /^\+#include\s*<(common|dm)\.h>*/) { + ERROR("BARRED_INCLUDE_COMMON_H", + "Do not add common.h to files\n" . $herecurr); + } + # Do not disable fdt / initrd relocation if ($rawline =~ /^\+.*(fdt|initrd)_high=0xffffffff/) { ERROR("DISABLE_FDT_OR_INITRD_RELOC",
tools/patman/test_checkpatch.py +6 -1
@@ -401,10 +401,15 @@ index 0000000..2234c87 def test_barred_include_in_hdr(self): """Test for using a barred include in a header file""" pm = PatchMaker() - #pm.add_line('include/myfile.h', '#include <common.h>') pm.add_line('include/myfile.h', '#include <dm.h>') self.check_single_message(pm, 'BARRED_INCLUDE_IN_HDR', 'error') + def test_barred_include_common_h(self): + """Test for adding common.h to a file""" + pm = PatchMaker() + pm.add_line('include/myfile.h', '#include <common.h>') + self.check_single_message(pm, 'BARRED_INCLUDE_COMMON_H', 'error') + def test_config_is_enabled_config(self): """Test for accidental CONFIG_IS_ENABLED(CONFIG_*) calls""" pm = PatchMaker()
Signature · 1 line
2.34.1
PATCH 2/7 include: Add <linux/types.h> in a few places
These files references a number of types that are defined in <linux/types.h> (and so forth), so include it here rather than rely on indirect inclusion.
---
Cc: Simon Glass <[email protected]>
--- include/bootstage.h | 1 + include/cache.h | 2 ++ include/cpu.h | 2 ++ 3 files changed, 5 insertions(+)
include/bootstage.h +1 -0
@@ -11,6 +11,7 @@#ifndef _BOOTSTAGE_H#define _BOOTSTAGE_H +#include <linux/types.h> #include <linux/kconfig.h> /* Flags for each bootstage record */
include/cache.h +2 -0
@@ -6,6 +6,8 @@#ifndef __CACHE_H#define __CACHE_H +#include <linux/types.h> +struct udevice ;/*
include/cpu.h +2 -0
@@ -7,6 +7,8 @@#ifndef __CPU_H#define __CPU_H +#include <linux/types.h> +struct udevice ;/**
Signature · 1 line
2.34.1
Re: [PATCH 2/7] include: Add <linux/types.h> in a few places
Quoted 5 lines · Tom Rini
These files references a number of types that are defined in <
linux/types.h> (and so forth), so include it here rather than rely on indirect inclusion.
Quoted 9 lines
Signed-off-by Tom Rini <[email protected]>---
Cc: Simon Glass <[email protected]>--- include/bootstage.h | 1 + include/cache.h | 2 ++ include/cpu.h | 2 ++ 3 files changed, 5 insertions(+)
Re: [PATCH 2/7] include: Add <linux/types.h> in a few places
In reply to Tom RiniQuoted 6 lines · Tom Rini
These files references a number of types that are defined in <
linux/types.h> (and so forth), so include it here rather than rely on indirect inclusion.Signed-off-by Tom Rini <[email protected]>Reviewed-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 1 line
Tom
PATCH 3/7 arc: Remove common.h usage
In reply to Tom RiniWe can remove common.h from most cases of the code here, and only a few places need an additional header instead.
---
Cc: Alexey Brodkin <[email protected]>
Cc: Eugeniy Paltsev <[email protected]>
Cc: [email protected]
--- arch/arc/lib/bootm.c | 1 - arch/arc/lib/cache.c | 1 - arch/arc/lib/cpu.c | 1 - arch/arc/lib/init_helpers.c | 1 - arch/arc/lib/interrupts.c | 2 +- arch/arc/lib/relocate.c | 1 - arch/arc/lib/reset.c | 1 - board/abilis/tb100/tb100.c | 1 - board/synopsys/axs10x/axs10x.c | 1 - board/synopsys/emsdp/emsdp.c | 1 - board/synopsys/hsdk/clk-lib.h | 1 - board/synopsys/hsdk/env-lib.c | 2 ++ board/synopsys/hsdk/env-lib.h | 1 - board/synopsys/hsdk/hsdk.c | 1 - board/synopsys/iot_devkit/iot_devkit.c | 1 - board/synopsys/nsim/nsim.c | 1 - 16 files changed, 3 insertions(+), 15 deletions(-)
arch/arc/lib/bootm.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved. */ -#include <common.h> #include <bootstage.h> #include <env.h> #include <image.h>
arch/arc/lib/cache.c +0 -1
@@ -4,7 +4,6 @@*/ #include <config.h> -#include <common.h> #include <cpu_func.h> #include <asm/global_data.h> #include <linux/bitops.h>
arch/arc/lib/cpu.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2013-2014, 2018 Synopsys, Inc. All rights reserved. */ -#include <common.h> #include <clock_legacy.h> #include <init.h> #include <malloc.h>
arch/arc/lib/init_helpers.c +0 -1
@@ -5,7 +5,6 @@#include <init.h> #include <asm/cache.h> -#include <common.h> int init_cache_f_r (void ) {
arch/arc/lib/interrupts.c +1 -1
@@ -3,8 +3,8 @@* Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved. */ -#include <common.h> #include <irq_func.h> +#include <vsprintf.h> #include <asm/arcregs.h> #include <asm/ptrace.h>
arch/arc/lib/relocate.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved. */ -#include <common.h> #include <elf.h> #include <log.h> #include <asm/sections.h>
arch/arc/lib/reset.c +0 -1
@@ -4,7 +4,6 @@*/ #include <command.h> -#include <common.h> #include <cpu_func.h> __weak void reset_cpu (void )
board/abilis/tb100/tb100.c +0 -1
@@ -3,7 +3,6 @@* (C) Copyright 2014 Pierrick Hascoet, Abilis Systems */ -#include <common.h> #include <cpu_func.h> #include <net.h> #include <netdev.h>
board/synopsys/axs10x/axs10x.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved. */ -#include <common.h> #include <cpu_func.h> #include <dwmmc.h> #include <init.h>
board/synopsys/emsdp/emsdp.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2018 Synopsys, Inc. All rights reserved. */ -#include <common.h> #include <command.h> #include <cpu_func.h> #include <dwmmc.h>
board/synopsys/hsdk/clk-lib.h +0 -1
@@ -7,7 +7,6 @@#ifndef __BOARD_CLK_LIB_H#define __BOARD_CLK_LIB_H -#include <common.h> #include <linux/bitops.h> enum clk_ctl_ops {
board/synopsys/hsdk/env-lib.c +2 -0
@@ -7,6 +7,8 @@#include "env-lib.h" #include <env.h> #include <log.h> +#include <vsprintf.h> +#include <linux/errno.h> #include <linux/printk.h> #define MAX_CMD_LEN 25
board/synopsys/hsdk/env-lib.h +0 -1
@@ -7,7 +7,6 @@#ifndef __BOARD_ENV_LIB_H#define __BOARD_ENV_LIB_H -#include <common.h> #include <config.h> #include <linux/kernel.h>
board/synopsys/hsdk/hsdk.c +0 -1
@@ -4,7 +4,6 @@* Author: Eugeniy Paltsev <[email protected]> */ -#include <common.h> #include <command.h> #include <config.h> #include <cpu_func.h>
board/synopsys/iot_devkit/iot_devkit.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2018 Synopsys, Inc. All rights reserved. */ -#include <common.h> #include <cpu_func.h> #include <init.h> #include <malloc.h>
board/synopsys/nsim/nsim.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2020 Synopsys, Inc. All rights reserved. */ -#include <common.h> #include <init.h> #include <dm/device.h> #include <virtio_types.h>
Signature · 1 line
2.34.1
Re: [PATCH 3/7] arc: Remove common.h usage
Hi Tom,
Quoted 18 lines
We can remove
common.hfrom most cases of the code here, and only a few places need an additional header instead.Signed-off-by Tom Rini <[email protected]>---
Cc: Alexey Brodkin <[email protected]>
Cc: Eugeniy Paltsev <[email protected]>
Cc: [email protected]--- arch/arc/lib/bootm.c | 1 - arch/arc/lib/cache.c | 1 - arch/arc/lib/cpu.c | 1 - arch/arc/lib/init_helpers.c | 1 - arch/arc/lib/interrupts.c | 2 +- arch/arc/lib/relocate.c | 1 - arch/arc/lib/reset.c | 1 - board/abilis/tb100/tb100.c | 1 - board/synopsys/axs10x/axs10x.c | 1 -
Quoted 8 lines
board/synopsys/emsdp/emsdp.c | 1 - board/synopsys/hsdk/clk-lib.h | 1 - board/synopsys/hsdk/env-lib.c | 2 ++ board/synopsys/hsdk/env-lib.h | 1 - board/synopsys/hsdk/hsdk.c | 1 - board/synopsys/iot_devkit/iot_devkit.c | 1 - board/synopsys/nsim/nsim.c | 1 - 16 files changed, 3 insertions(+), 15 deletions(-)
Thanks for the improvement!
Re: [PATCH 3/7] arc: Remove common.h usage
In reply to Tom RiniQuoted 5 lines · Tom Rini
We can remove
common.hfrom most cases of the code here, and only a few places need an additional header instead.Signed-off-by Tom Rini <[email protected]>Acked-by Alexey Brodkin <[email protected]>
Applied to u-boot/master, thanks!
Signature · 1 line
Tom
PATCH 4/7 m68k: Remove common.h usage
In reply to Tom RiniWe can remove common.h from most cases of the code here, and only a few places need an additional header instead.
---
Cc: Angelo Dureghello <[email protected]>
--- arch/m68k/cpu/mcf523x/cpu.c | 1 - arch/m68k/cpu/mcf523x/cpu_init.c | 1 - arch/m68k/cpu/mcf523x/interrupts.c | 1 - arch/m68k/cpu/mcf523x/speed.c | 1 - arch/m68k/cpu/mcf52x2/cpu.c | 1 - arch/m68k/cpu/mcf52x2/cpu_init.c | 3 +-- arch/m68k/cpu/mcf52x2/interrupts.c | 1 - arch/m68k/cpu/mcf52x2/speed.c | 1 - arch/m68k/cpu/mcf530x/cpu.c | 1 - arch/m68k/cpu/mcf530x/cpu_init.c | 1 - arch/m68k/cpu/mcf530x/interrupts.c | 1 - arch/m68k/cpu/mcf530x/speed.c | 1 - arch/m68k/cpu/mcf532x/cpu.c | 1 - arch/m68k/cpu/mcf532x/cpu_init.c | 1 - arch/m68k/cpu/mcf532x/interrupts.c | 1 - arch/m68k/cpu/mcf532x/speed.c | 1 - arch/m68k/cpu/mcf5445x/cpu.c | 1 - arch/m68k/cpu/mcf5445x/cpu_init.c | 1 - arch/m68k/cpu/mcf5445x/dspi.c | 1 - arch/m68k/cpu/mcf5445x/interrupts.c | 1 - arch/m68k/cpu/mcf5445x/speed.c | 1 - arch/m68k/cpu/mcf5445x/start.S | 1 - arch/m68k/include/asm/immap.h | 1 + arch/m68k/include/asm/immap_520x.h | 1 + arch/m68k/include/asm/immap_5235.h | 1 + arch/m68k/include/asm/immap_5272.h | 1 + arch/m68k/include/asm/immap_5275.h | 1 + arch/m68k/include/asm/immap_5282.h | 1 + arch/m68k/include/asm/immap_5301x.h | 1 + arch/m68k/include/asm/immap_5307.h | 2 ++ arch/m68k/include/asm/immap_5329.h | 1 + arch/m68k/include/asm/immap_5441x.h | 1 + arch/m68k/lib/bdinfo.c | 3 ++- arch/m68k/lib/bootm.c | 1 - arch/m68k/lib/cache.c | 2 +- arch/m68k/lib/fec.c | 2 +- arch/m68k/lib/interrupts.c | 2 +- arch/m68k/lib/time.c | 1 - arch/m68k/lib/traps.c | 1 - 39 files changed, 17 insertions(+), 30 deletions(-)
arch/m68k/cpu/mcf523x/cpu.c +0 -1
@@ -8,7 +8,6 @@* TsiChung Liew ([email protected]) */ -#include <common.h> #include <init.h> #include <net.h> #include <vsprintf.h>
arch/m68k/cpu/mcf523x/cpu_init.c +0 -1
@@ -8,7 +8,6 @@* TsiChung Liew ([email protected]) */ -#include <common.h> #include <cpu_func.h> #include <init.h> #include <watchdog.h>
arch/m68k/cpu/mcf523x/interrupts.c +0 -1
@@ -6,7 +6,6 @@*/ /* CPU specific interrupt routine */ -#include <common.h> #include <irq_func.h> #include <asm/immap.h> #include <asm/io.h>
arch/m68k/cpu/mcf523x/speed.c +0 -1
@@ -8,7 +8,6 @@* TsiChung Liew ([email protected]) */ -#include <common.h> #include <clock_legacy.h> #include <asm/global_data.h> #include <asm/processor.h>
arch/m68k/cpu/mcf52x2/cpu.c +0 -1
@@ -13,7 +13,6 @@* Copyright (C) 2012 Freescale Semiconductor, Inc. All Rights Reserved. */ -#include <common.h> #include <init.h> #include <net.h> #include <vsprintf.h>
arch/m68k/cpu/mcf52x2/cpu_init.c +1 -2
@@ -17,7 +17,7 @@* Copyright (C) 2008 Arthur Shipkowski ([email protected]) */ -#include <common.h> +#include <config.h> #include <cpu_func.h> #include <init.h> #include <watchdog.h>
@@ -25,7 +25,6 @@#include <asm/io.h> #if defined(CONFIG_CMD_NET ) -#include <config.h> #include <net.h> #include <asm/fec.h> #endif
arch/m68k/cpu/mcf52x2/interrupts.c +0 -1
@@ -7,7 +7,6 @@* TsiChung Liew ([email protected]) */ -#include <common.h> #include <irq_func.h> #include <watchdog.h> #include <asm/processor.h>
arch/m68k/cpu/mcf52x2/speed.c +0 -1
@@ -7,7 +7,6 @@* Hayden Fraser ([email protected]) */ -#include <common.h> #include <clock_legacy.h> #include <asm/global_data.h> #include <asm/processor.h>
arch/m68k/cpu/mcf530x/cpu.c +0 -1
@@ -4,7 +4,6 @@* */ -#include <common.h> #include <command.h> #include <init.h> #include <vsprintf.h>
arch/m68k/cpu/mcf530x/cpu_init.c +0 -1
@@ -4,7 +4,6 @@* */ -#include <common.h> #include <cpu_func.h> #include <init.h> #include <watchdog.h>
arch/m68k/cpu/mcf530x/interrupts.c +0 -1
@@ -4,7 +4,6 @@* */ -#include <common.h> #include <irq_func.h> #include <asm/immap.h> #include <asm/io.h>
arch/m68k/cpu/mcf530x/speed.c +0 -1
@@ -4,7 +4,6 @@* */ -#include <common.h> #include <clock_legacy.h> #include <asm/global_data.h> #include <asm/processor.h>
arch/m68k/cpu/mcf532x/cpu.c +0 -1
@@ -8,7 +8,6 @@* TsiChung Liew ([email protected]) */ -#include <common.h> #include <init.h> #include <net.h> #include <vsprintf.h>
arch/m68k/cpu/mcf532x/cpu_init.c +0 -1
@@ -8,7 +8,6 @@* TsiChung Liew ([email protected]) */ -#include <common.h> #include <cpu_func.h> #include <init.h> #include <watchdog.h>
arch/m68k/cpu/mcf532x/interrupts.c +0 -1
@@ -6,7 +6,6 @@*/ /* CPU specific interrupt routine */ -#include <common.h> #include <irq_func.h> #include <asm/immap.h> #include <asm/io.h>
arch/m68k/cpu/mcf532x/speed.c +0 -1
@@ -8,7 +8,6 @@* TsiChung Liew ([email protected]) */ -#include <common.h> #include <clock_legacy.h> #include <asm/global_data.h> #include <asm/processor.h>
arch/m68k/cpu/mcf5445x/cpu.c +0 -1
@@ -8,7 +8,6 @@* TsiChung Liew ([email protected]) */ -#include <common.h> #include <init.h> #include <net.h> #include <vsprintf.h>
arch/m68k/cpu/mcf5445x/cpu_init.c +0 -1
@@ -8,7 +8,6 @@* TsiChung Liew ([email protected]) */ -#include <common.h> #include <cpu_func.h> #include <init.h> #include <watchdog.h>
arch/m68k/cpu/mcf5445x/dspi.c +0 -1
@@ -6,7 +6,6 @@* CPU specific dspi routines */ -#include <common.h> #include <asm/immap.h> #include <asm/io.h>
arch/m68k/cpu/mcf5445x/interrupts.c +0 -1
@@ -9,7 +9,6 @@*/ /* CPU specific interrupt routine */ -#include <common.h> #include <irq_func.h> #include <asm/immap.h> #include <asm/io.h>
arch/m68k/cpu/mcf5445x/speed.c +0 -1
@@ -5,7 +5,6 @@* TsiChung Liew ([email protected]) */ -#include <common.h> #include <clock_legacy.h> #include <asm/global_data.h> #include <asm/processor.h>
arch/m68k/cpu/mcf5445x/start.S +0 -1
@@ -7,7 +7,6 @@ * TsiChung Liew ([email protected]) */ -#include <common.h> #include <asm-offsets.h> #include <config.h> #include <asm/cache.h>
arch/m68k/include/asm/immap.h +1 -0
@@ -9,6 +9,7 @@#ifndef __IMMAP_H#define __IMMAP_H +#include <config.h> #if defined(CONFIG_MCF520x)#include <asm/immap_520x.h> #include <asm/m520x.h>
arch/m68k/include/asm/immap_520x.h +1 -0
@@ -36,6 +36,7 @@#define MMAP_GPIO (CFG_SYS_MBAR + 0x000A4000)#define MMAP_SDRAM (CFG_SYS_MBAR + 0x000A8000) +#include <linux/types.h> #include <asm/coldfire/crossbar.h> #include <asm/coldfire/edma.h> #include <asm/coldfire/eport.h>
arch/m68k/include/asm/immap_5235.h +1 -0
@@ -46,6 +46,7 @@#define MMAP_ETPU (CFG_SYS_MBAR + 0x001D0000)#define MMAP_CAN2 (CFG_SYS_MBAR + 0x001F0000) +#include <linux/types.h> #include <asm/coldfire/eport.h> #include <asm/coldfire/flexbus.h> #include <asm/coldfire/flexcan.h>
arch/m68k/include/asm/immap_5272.h +1 -0
@@ -27,6 +27,7 @@#define MMAP_FEC (CFG_SYS_MBAR + 0x00000840)#define MMAP_USB (CFG_SYS_MBAR + 0x00001000) +#include <linux/types.h> #include <asm/coldfire/pwm.h> /* System configuration registers */
arch/m68k/include/asm/immap_5275.h +1 -0
@@ -49,6 +49,7 @@#define MMAP_USB (CFG_SYS_MBAR + 0x001C0000)#define MMAP_PWM0 (CFG_SYS_MBAR + 0x001D0000) +#include <linux/types.h> #include <asm/coldfire/eport.h> #include <asm/coldfire/flexbus.h> #include <asm/coldfire/intctrl.h>
arch/m68k/include/asm/immap_5282.h +1 -0
@@ -45,6 +45,7 @@#define MMAP_CFMC (CFG_SYS_MBAR + 0x001D0000)#define MMAP_CFMMEM (CFG_SYS_MBAR + 0x04000000) +#include <linux/types.h> #include <asm/coldfire/eport.h> #include <asm/coldfire/flexbus.h> #include <asm/coldfire/flexcan.h>
arch/m68k/include/asm/immap_5301x.h +1 -0
@@ -50,6 +50,7 @@#define MMAP_IIM (CFG_SYS_MBAR + 0x000C8000)#define MMAP_ESDHC (CFG_SYS_MBAR + 0x000CC000) +#include <linux/types.h> #include <asm/coldfire/crossbar.h> #include <asm/coldfire/dspi.h> #include <asm/coldfire/edma.h>
arch/m68k/include/asm/immap_5307.h +2 -0
@@ -17,6 +17,8 @@#define MMAP_UART1 (CFG_SYS_MBAR + 0x00000200)#define MMAP_GPIO (CFG_SYS_MBAR + 0x00000244) +#include <linux/types.h> + typedef struct sim { u8 rsr; u8 sypcr;
arch/m68k/include/asm/immap_5329.h +1 -0
@@ -51,6 +51,7 @@#define MMAP_SSI 0xFC0BC000#define MMAP_PLL 0xFC0C0000 +#include <linux/types.h> #include <asm/coldfire/crossbar.h> #include <asm/coldfire/edma.h> #include <asm/coldfire/eport.h>
arch/m68k/include/asm/immap_5441x.h +1 -0
@@ -76,6 +76,7 @@#define MMAP_CCM 0xEC090000#define MMAP_GPIO 0xEC094000 +#include <linux/types.h> #include <asm/coldfire/crossbar.h> #include <asm/coldfire/dspi.h> #include <asm/coldfire/edma.h>
arch/m68k/lib/bdinfo.c +2 -1
@@ -6,8 +6,9 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> +#include <config.h> #include <init.h> +#include <asm/u-boot.h> #include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR ;
arch/m68k/lib/bootm.c +0 -1
@@ -4,7 +4,6 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <bootstage.h> #include <command.h> #include <env.h>
arch/m68k/lib/cache.c +1 -1
@@ -4,7 +4,7 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> +#include <config.h> #include <cpu_func.h> #include <asm/immap.h> #include <asm/cache.h>
arch/m68k/lib/fec.c +1 -1
@@ -3,8 +3,8 @@* (C) 2019 Angelo Dureghello <[email protected]> */ -#include <common.h> #include <asm/global_data.h> +#include <linux/errno.h> #include <linux/libfdt.h> #include <fdt_support.h>
arch/m68k/lib/interrupts.c +1 -1
@@ -7,7 +7,7 @@* TsiChung Liew ([email protected]) */ -#include <common.h> +#include <stdio.h> #include <irq_func.h> #include <watchdog.h> #include <asm/processor.h>
arch/m68k/lib/time.c +0 -1
@@ -6,7 +6,6 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <init.h> #include <irq_func.h> #include <time.h>
arch/m68k/lib/traps.c +0 -1
@@ -7,7 +7,6 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <init.h> #include <watchdog.h> #include <command.h>
Signature · 1 line
2.34.1
Re: [PATCH 4/7] m68k: Remove common.h usage
Hi Tom,
Quoted 40 lines · Tom Rini
We can remove
common.hfrom most cases of the code here, and only a few places need an additional header instead.Signed-off-by Tom Rini <[email protected]>---
Cc: Angelo Dureghello <[email protected]>--- arch/m68k/cpu/mcf523x/cpu.c | 1 - arch/m68k/cpu/mcf523x/cpu_init.c | 1 - arch/m68k/cpu/mcf523x/interrupts.c | 1 - arch/m68k/cpu/mcf523x/speed.c | 1 - arch/m68k/cpu/mcf52x2/cpu.c | 1 - arch/m68k/cpu/mcf52x2/cpu_init.c | 3 +-- arch/m68k/cpu/mcf52x2/interrupts.c | 1 - arch/m68k/cpu/mcf52x2/speed.c | 1 - arch/m68k/cpu/mcf530x/cpu.c | 1 - arch/m68k/cpu/mcf530x/cpu_init.c | 1 - arch/m68k/cpu/mcf530x/interrupts.c | 1 - arch/m68k/cpu/mcf530x/speed.c | 1 - arch/m68k/cpu/mcf532x/cpu.c | 1 - arch/m68k/cpu/mcf532x/cpu_init.c | 1 - arch/m68k/cpu/mcf532x/interrupts.c | 1 - arch/m68k/cpu/mcf532x/speed.c | 1 - arch/m68k/cpu/mcf5445x/cpu.c | 1 - arch/m68k/cpu/mcf5445x/cpu_init.c | 1 - arch/m68k/cpu/mcf5445x/dspi.c | 1 - arch/m68k/cpu/mcf5445x/interrupts.c | 1 - arch/m68k/cpu/mcf5445x/speed.c | 1 - arch/m68k/cpu/mcf5445x/start.S | 1 - arch/m68k/include/asm/immap.h | 1 + arch/m68k/include/asm/immap_520x.h | 1 + arch/m68k/include/asm/immap_5235.h | 1 + arch/m68k/include/asm/immap_5272.h | 1 + arch/m68k/include/asm/immap_5275.h | 1 + arch/m68k/include/asm/immap_5282.h | 1 + arch/m68k/include/asm/immap_5301x.h | 1 + arch/m68k/include/asm/immap_5307.h | 2 ++ arch/m68k/include/asm/immap_5329.h | 1 + arch/m68k/include/asm/immap_5441x.h | 1 +
Quoted 8 lines
arch/m68k/lib/bdinfo.c | 3 ++- arch/m68k/lib/bootm.c | 1 - arch/m68k/lib/cache.c | 2 +- arch/m68k/lib/fec.c | 2 +- arch/m68k/lib/interrupts.c | 2 +- arch/m68k/lib/time.c | 1 - arch/m68k/lib/traps.c | 1 - 39 files changed, 17 insertions(+), 30 deletions(-)
I just wondered what we do about '#ifdef CFG_...' which presumably is not included without common.h ? How does that work?
Regards,
Simon
Re: [PATCH 4/7] m68k: Remove common.h usage
Quoted 52 lines · Simon Glass
Hi Tom,
Quoted 40 lines · Tom Rini
We can remove
common.hfrom most cases of the code here, and only a few places need an additional header instead.Signed-off-by Tom Rini <[email protected]>---
Cc: Angelo Dureghello <[email protected]>--- arch/m68k/cpu/mcf523x/cpu.c | 1 - arch/m68k/cpu/mcf523x/cpu_init.c | 1 - arch/m68k/cpu/mcf523x/interrupts.c | 1 - arch/m68k/cpu/mcf523x/speed.c | 1 - arch/m68k/cpu/mcf52x2/cpu.c | 1 - arch/m68k/cpu/mcf52x2/cpu_init.c | 3 +-- arch/m68k/cpu/mcf52x2/interrupts.c | 1 - arch/m68k/cpu/mcf52x2/speed.c | 1 - arch/m68k/cpu/mcf530x/cpu.c | 1 - arch/m68k/cpu/mcf530x/cpu_init.c | 1 - arch/m68k/cpu/mcf530x/interrupts.c | 1 - arch/m68k/cpu/mcf530x/speed.c | 1 - arch/m68k/cpu/mcf532x/cpu.c | 1 - arch/m68k/cpu/mcf532x/cpu_init.c | 1 - arch/m68k/cpu/mcf532x/interrupts.c | 1 - arch/m68k/cpu/mcf532x/speed.c | 1 - arch/m68k/cpu/mcf5445x/cpu.c | 1 - arch/m68k/cpu/mcf5445x/cpu_init.c | 1 - arch/m68k/cpu/mcf5445x/dspi.c | 1 - arch/m68k/cpu/mcf5445x/interrupts.c | 1 - arch/m68k/cpu/mcf5445x/speed.c | 1 - arch/m68k/cpu/mcf5445x/start.S | 1 - arch/m68k/include/asm/immap.h | 1 + arch/m68k/include/asm/immap_520x.h | 1 + arch/m68k/include/asm/immap_5235.h | 1 + arch/m68k/include/asm/immap_5272.h | 1 + arch/m68k/include/asm/immap_5275.h | 1 + arch/m68k/include/asm/immap_5282.h | 1 + arch/m68k/include/asm/immap_5301x.h | 1 + arch/m68k/include/asm/immap_5307.h | 2 ++ arch/m68k/include/asm/immap_5329.h | 1 + arch/m68k/include/asm/immap_5441x.h | 1 +Quoted 8 lines
arch/m68k/lib/bdinfo.c | 3 ++- arch/m68k/lib/bootm.c | 1 - arch/m68k/lib/cache.c | 2 +- arch/m68k/lib/fec.c | 2 +- arch/m68k/lib/interrupts.c | 2 +- arch/m68k/lib/time.c | 1 - arch/m68k/lib/traps.c | 1 - 39 files changed, 17 insertions(+), 30 deletions(-)
Quoted 2 lines
I just wondered what we do about '#ifdef
CFG_...' which presumably is not included withoutcommon.h? How does that work?
The first header in common.h is config.h which is where many CFG_... instances are.
Signature · 1 line
Tom
Re: [PATCH 4/7] m68k: Remove common.h usage
Hi Tom,
Quoted 54 lines · Tom Rini
Quoted 52 lines · Simon Glass
Hi Tom,
Quoted 48 lines · Tom Rini
We can remove
common.hfrom most cases of the code here, and only a few places need an additional header instead.Signed-off-by Tom Rini <[email protected]>---
Cc: Angelo Dureghello <[email protected]>--- arch/m68k/cpu/mcf523x/cpu.c | 1 - arch/m68k/cpu/mcf523x/cpu_init.c | 1 - arch/m68k/cpu/mcf523x/interrupts.c | 1 - arch/m68k/cpu/mcf523x/speed.c | 1 - arch/m68k/cpu/mcf52x2/cpu.c | 1 - arch/m68k/cpu/mcf52x2/cpu_init.c | 3 +-- arch/m68k/cpu/mcf52x2/interrupts.c | 1 - arch/m68k/cpu/mcf52x2/speed.c | 1 - arch/m68k/cpu/mcf530x/cpu.c | 1 - arch/m68k/cpu/mcf530x/cpu_init.c | 1 - arch/m68k/cpu/mcf530x/interrupts.c | 1 - arch/m68k/cpu/mcf530x/speed.c | 1 - arch/m68k/cpu/mcf532x/cpu.c | 1 - arch/m68k/cpu/mcf532x/cpu_init.c | 1 - arch/m68k/cpu/mcf532x/interrupts.c | 1 - arch/m68k/cpu/mcf532x/speed.c | 1 - arch/m68k/cpu/mcf5445x/cpu.c | 1 - arch/m68k/cpu/mcf5445x/cpu_init.c | 1 - arch/m68k/cpu/mcf5445x/dspi.c | 1 - arch/m68k/cpu/mcf5445x/interrupts.c | 1 - arch/m68k/cpu/mcf5445x/speed.c | 1 - arch/m68k/cpu/mcf5445x/start.S | 1 - arch/m68k/include/asm/immap.h | 1 + arch/m68k/include/asm/immap_520x.h | 1 + arch/m68k/include/asm/immap_5235.h | 1 + arch/m68k/include/asm/immap_5272.h | 1 + arch/m68k/include/asm/immap_5275.h | 1 + arch/m68k/include/asm/immap_5282.h | 1 + arch/m68k/include/asm/immap_5301x.h | 1 + arch/m68k/include/asm/immap_5307.h | 2 ++ arch/m68k/include/asm/immap_5329.h | 1 + arch/m68k/include/asm/immap_5441x.h | 1 + arch/m68k/lib/bdinfo.c | 3 ++- arch/m68k/lib/bootm.c | 1 - arch/m68k/lib/cache.c | 2 +- arch/m68k/lib/fec.c | 2 +- arch/m68k/lib/interrupts.c | 2 +- arch/m68k/lib/time.c | 1 - arch/m68k/lib/traps.c | 1 - 39 files changed, 17 insertions(+), 30 deletions(-)
Quoted 5 lines
Quoted 2 lines
I just wondered what we do about '#ifdef
CFG_...' which presumably is not included withoutcommon.h? How does that work?The first header in
common.hisconfig.hwhich is where manyCFG_... instances are.
OK, so that comes later...
Regards,
Simon
Re: [PATCH 4/7] m68k: Remove common.h usage
In reply to Tom RiniHi Tom,
Quoted 39 lines · Tom Rini
We can remove
common.hfrom most cases of the code here, and only a few places need an additional header instead.Signed-off-by Tom Rini <[email protected]>---
Cc: Angelo Dureghello <[email protected]>--- arch/m68k/cpu/mcf523x/cpu.c | 1 - arch/m68k/cpu/mcf523x/cpu_init.c | 1 - arch/m68k/cpu/mcf523x/interrupts.c | 1 - arch/m68k/cpu/mcf523x/speed.c | 1 - arch/m68k/cpu/mcf52x2/cpu.c | 1 - arch/m68k/cpu/mcf52x2/cpu_init.c | 3 +-- arch/m68k/cpu/mcf52x2/interrupts.c | 1 - arch/m68k/cpu/mcf52x2/speed.c | 1 - arch/m68k/cpu/mcf530x/cpu.c | 1 - arch/m68k/cpu/mcf530x/cpu_init.c | 1 - arch/m68k/cpu/mcf530x/interrupts.c | 1 - arch/m68k/cpu/mcf530x/speed.c | 1 - arch/m68k/cpu/mcf532x/cpu.c | 1 - arch/m68k/cpu/mcf532x/cpu_init.c | 1 - arch/m68k/cpu/mcf532x/interrupts.c | 1 - arch/m68k/cpu/mcf532x/speed.c | 1 - arch/m68k/cpu/mcf5445x/cpu.c | 1 - arch/m68k/cpu/mcf5445x/cpu_init.c | 1 - arch/m68k/cpu/mcf5445x/dspi.c | 1 - arch/m68k/cpu/mcf5445x/interrupts.c | 1 - arch/m68k/cpu/mcf5445x/speed.c | 1 - arch/m68k/cpu/mcf5445x/start.S | 1 - arch/m68k/include/asm/immap.h | 1 + arch/m68k/include/asm/immap_520x.h | 1 + arch/m68k/include/asm/immap_5235.h | 1 + arch/m68k/include/asm/immap_5272.h | 1 + arch/m68k/include/asm/immap_5275.h | 1 + arch/m68k/include/asm/immap_5282.h | 1 + arch/m68k/include/asm/immap_5301x.h | 1 + arch/m68k/include/asm/immap_5307.h | 2 ++ arch/m68k/include/asm/immap_5329.h | 1 + arch/m68k/include/asm/immap_5441x.h | 1 +
Quoted 9 lines
arch/m68k/lib/bdinfo.c | 3 ++- arch/m68k/lib/bootm.c | 1 - arch/m68k/lib/cache.c | 2 +- arch/m68k/lib/fec.c | 2 +- arch/m68k/lib/interrupts.c | 2 +- arch/m68k/lib/time.c | 1 - arch/m68k/lib/traps.c | 1 - 39 files changed, 17 insertions(+), 30 deletions(-)
building for mcf5307 i get this error
In file included from arch/m68k/lib/bootm.c:7:include/bootstage.h:225:1: error: unknown type name 'ulong'; did you mean 'long'?
225 | ulong timer_get_boot_us(void);
| ^~~~~regards,
Signature · 3 lines
Angelo Dureghello w: www.kernel-space.org e: [email protected]
Re: [PATCH 4/7] m68k: Remove common.h usage
Quoted 53 lines · Angelo Dureghello
Hi Tom,
Quoted 39 lines · Tom Rini
We can remove
common.hfrom most cases of the code here, and only a few places need an additional header instead.Signed-off-by Tom Rini <[email protected]>---
Cc: Angelo Dureghello <[email protected]>--- arch/m68k/cpu/mcf523x/cpu.c | 1 - arch/m68k/cpu/mcf523x/cpu_init.c | 1 - arch/m68k/cpu/mcf523x/interrupts.c | 1 - arch/m68k/cpu/mcf523x/speed.c | 1 - arch/m68k/cpu/mcf52x2/cpu.c | 1 - arch/m68k/cpu/mcf52x2/cpu_init.c | 3 +-- arch/m68k/cpu/mcf52x2/interrupts.c | 1 - arch/m68k/cpu/mcf52x2/speed.c | 1 - arch/m68k/cpu/mcf530x/cpu.c | 1 - arch/m68k/cpu/mcf530x/cpu_init.c | 1 - arch/m68k/cpu/mcf530x/interrupts.c | 1 - arch/m68k/cpu/mcf530x/speed.c | 1 - arch/m68k/cpu/mcf532x/cpu.c | 1 - arch/m68k/cpu/mcf532x/cpu_init.c | 1 - arch/m68k/cpu/mcf532x/interrupts.c | 1 - arch/m68k/cpu/mcf532x/speed.c | 1 - arch/m68k/cpu/mcf5445x/cpu.c | 1 - arch/m68k/cpu/mcf5445x/cpu_init.c | 1 - arch/m68k/cpu/mcf5445x/dspi.c | 1 - arch/m68k/cpu/mcf5445x/interrupts.c | 1 - arch/m68k/cpu/mcf5445x/speed.c | 1 - arch/m68k/cpu/mcf5445x/start.S | 1 - arch/m68k/include/asm/immap.h | 1 + arch/m68k/include/asm/immap_520x.h | 1 + arch/m68k/include/asm/immap_5235.h | 1 + arch/m68k/include/asm/immap_5272.h | 1 + arch/m68k/include/asm/immap_5275.h | 1 + arch/m68k/include/asm/immap_5282.h | 1 + arch/m68k/include/asm/immap_5301x.h | 1 + arch/m68k/include/asm/immap_5307.h | 2 ++ arch/m68k/include/asm/immap_5329.h | 1 + arch/m68k/include/asm/immap_5441x.h | 1 +Quoted 9 lines
arch/m68k/lib/bdinfo.c | 3 ++- arch/m68k/lib/bootm.c | 1 - arch/m68k/lib/cache.c | 2 +- arch/m68k/lib/fec.c | 2 +- arch/m68k/lib/interrupts.c | 2 +- arch/m68k/lib/time.c | 1 - arch/m68k/lib/traps.c | 1 - 39 files changed, 17 insertions(+), 30 deletions(-)
Quoted 7 lines
building for mcf5307 i get this error
In file included from
arch/m68k/lib/bootm.c:7:include/bootstage.h:225:1: error: unknown type name 'ulong'; did you mean 'long'?225 | ulong timer_get_boot_us(void); | ^~~~~
Did you apply the whole series? The first few patches fix some global issues.
Signature · 1 line
Tom
Angelo Dureghello
Acked-byRe: [PATCH 4/7] m68k: Remove common.h usage
Hi Tom,
sorry, applied all now, it works, i can boot properly.
Thanks.
Quoted 65 lines · Tom Rini
Quoted 53 lines · Angelo Dureghello
Hi Tom,
Quoted 39 lines · Tom Rini
We can remove
common.hfrom most cases of the code here, and only a few places need an additional header instead.Signed-off-by Tom Rini <[email protected]>---
Cc: Angelo Dureghello <[email protected]>--- arch/m68k/cpu/mcf523x/cpu.c | 1 - arch/m68k/cpu/mcf523x/cpu_init.c | 1 - arch/m68k/cpu/mcf523x/interrupts.c | 1 - arch/m68k/cpu/mcf523x/speed.c | 1 - arch/m68k/cpu/mcf52x2/cpu.c | 1 - arch/m68k/cpu/mcf52x2/cpu_init.c | 3 +-- arch/m68k/cpu/mcf52x2/interrupts.c | 1 - arch/m68k/cpu/mcf52x2/speed.c | 1 - arch/m68k/cpu/mcf530x/cpu.c | 1 - arch/m68k/cpu/mcf530x/cpu_init.c | 1 - arch/m68k/cpu/mcf530x/interrupts.c | 1 - arch/m68k/cpu/mcf530x/speed.c | 1 - arch/m68k/cpu/mcf532x/cpu.c | 1 - arch/m68k/cpu/mcf532x/cpu_init.c | 1 - arch/m68k/cpu/mcf532x/interrupts.c | 1 - arch/m68k/cpu/mcf532x/speed.c | 1 - arch/m68k/cpu/mcf5445x/cpu.c | 1 - arch/m68k/cpu/mcf5445x/cpu_init.c | 1 - arch/m68k/cpu/mcf5445x/dspi.c | 1 - arch/m68k/cpu/mcf5445x/interrupts.c | 1 - arch/m68k/cpu/mcf5445x/speed.c | 1 - arch/m68k/cpu/mcf5445x/start.S | 1 - arch/m68k/include/asm/immap.h | 1 + arch/m68k/include/asm/immap_520x.h | 1 + arch/m68k/include/asm/immap_5235.h | 1 + arch/m68k/include/asm/immap_5272.h | 1 + arch/m68k/include/asm/immap_5275.h | 1 + arch/m68k/include/asm/immap_5282.h | 1 + arch/m68k/include/asm/immap_5301x.h | 1 + arch/m68k/include/asm/immap_5307.h | 2 ++ arch/m68k/include/asm/immap_5329.h | 1 + arch/m68k/include/asm/immap_5441x.h | 1 +Quoted 9 lines
arch/m68k/lib/bdinfo.c | 3 ++- arch/m68k/lib/bootm.c | 1 - arch/m68k/lib/cache.c | 2 +- arch/m68k/lib/fec.c | 2 +- arch/m68k/lib/interrupts.c | 2 +- arch/m68k/lib/time.c | 1 - arch/m68k/lib/traps.c | 1 - 39 files changed, 17 insertions(+), 30 deletions(-)Quoted 7 lines
building for mcf5307 i get this error
In file included from
arch/m68k/lib/bootm.c:7:include/bootstage.h:225:1: error: unknown type name 'ulong'; did you mean 'long'?225 | ulong timer_get_boot_us(void); | ^~~~~Did you apply the whole series? The first few patches fix some global issues.
Signature · 3 lines
Angelo Dureghello w: www.kernel-space.org e: [email protected]
Re: [PATCH 4/7] m68k: Remove common.h usage
In reply to Tom RiniQuoted 5 lines · Tom Rini
We can remove
common.hfrom most cases of the code here, and only a few places need an additional header instead.Signed-off-by Tom Rini <[email protected]>
Applied to u-boot/master, thanks!
Signature · 1 line
Tom
PATCH 5/7 microblaze: Remove common.h usage
In reply to Tom RiniWe can remove common.h from most cases of the code here, and only a few places need an additional header instead.
---
Cc: Michal Simek <[email protected]>
--- arch/microblaze/cpu/cache.c | 1 - arch/microblaze/cpu/cpuinfo.c | 1 - arch/microblaze/cpu/exception.c | 2 +- arch/microblaze/cpu/interrupts.c | 3 ++- arch/microblaze/cpu/pvr.c | 1 - arch/microblaze/cpu/relocate.c | 3 ++- arch/microblaze/cpu/spl.c | 1 - arch/microblaze/include/asm/cpuinfo.h | 2 ++ arch/microblaze/lib/bootm.c | 1 - board/xilinx/microblaze-generic/microblaze-generic.c | 1 - 10 files changed, 7 insertions(+), 9 deletions(-)
arch/microblaze/cpu/cache.c +0 -1
@@ -5,7 +5,6 @@* Michal SIMEK <[email protected]> */ -#include <common.h> #include <cpu_func.h> #include <asm/asm.h> #include <asm/cache.h>
arch/microblaze/cpu/cpuinfo.c +0 -1
@@ -2,7 +2,6 @@/* * Copyright (C) 2022, Ovidiu Panait <[email protected]> */ -#include <common.h> #include <asm/cpuinfo.h> #include <asm/global_data.h>
arch/microblaze/cpu/exception.c +1 -1
@@ -5,8 +5,8 @@* Michal SIMEK <[email protected]> */ -#include <common.h> #include <hang.h> +#include <stdio.h> #include <asm/asm.h> void _hw_exception_handler (void )
arch/microblaze/cpu/interrupts.c +2 -1
@@ -7,7 +7,8 @@* Yasushi SHOJI <[email protected]> */ -#include <common.h> +#include <log.h> +#include <vsprintf.h> #include <asm/asm.h> void enable_interrupts (void )
arch/microblaze/cpu/pvr.c +0 -1
@@ -2,7 +2,6 @@/* * Copyright (C) 2022, Ovidiu Panait <[email protected]> */ -#include <common.h> #include <asm/asm.h> #include <asm/pvr.h>
arch/microblaze/cpu/relocate.c +2 -1
@@ -4,8 +4,9 @@* Michal Simek <[email protected]> */ -#include <common.h> #include <elf.h> +#include <log.h> +#include <linux/types.h> #define R_MICROBLAZE_NONE 0#define R_MICROBLAZE_32 1
arch/microblaze/cpu/spl.c +0 -1
@@ -5,7 +5,6 @@* Michal Simek <[email protected]> */ -#include <common.h> #include <command.h> #include <image.h> #include <log.h>
arch/microblaze/include/asm/cpuinfo.h +2 -0
@@ -6,6 +6,8 @@#ifndef __ASM_MICROBLAZE_CPUINFO_H#define __ASM_MICROBLAZE_CPUINFO_H +#include <linux/types.h> +/** * struct microblaze_cpuinfo - CPU info for microblaze processor core. *
arch/microblaze/lib/bootm.c +0 -1
@@ -7,7 +7,6 @@* Yasushi SHOJI <[email protected]> */ -#include <common.h> #include <bootstage.h> #include <command.h> #include <cpu_func.h>
board/xilinx/microblaze-generic/microblaze-generic.c +0 -1
@@ -10,7 +10,6 @@* header files */ -#include <common.h> #include <config.h> #include <env.h> #include <init.h>
Signature · 1 line
2.34.1
Re: [PATCH 5/7] microblaze: Remove common.h usage
Quoted 140 lines · Tom Rini
We can remove
common.hfrom most cases of the code here, and only a few places need an additional header instead.Signed-off-by Tom Rini <[email protected]>---
Cc: Michal Simek <[email protected]>--- arch/microblaze/cpu/cache.c | 1 - arch/microblaze/cpu/cpuinfo.c | 1 - arch/microblaze/cpu/exception.c | 2 +- arch/microblaze/cpu/interrupts.c | 3 ++- arch/microblaze/cpu/pvr.c | 1 - arch/microblaze/cpu/relocate.c | 3 ++- arch/microblaze/cpu/spl.c | 1 - arch/microblaze/include/asm/cpuinfo.h | 2 ++ arch/microblaze/lib/bootm.c | 1 - board/xilinx/microblaze-generic/microblaze-generic.c | 1 - 10 files changed, 7 insertions(+), 9 deletions(-)arch/microblaze/cpu/cache.c +0
-1@@ -5,7 +5,6 @@* Michal SIMEK <[email protected]> */ -#include <common.h> #include <cpu_func.h> #include <asm/asm.h> #include <asm/cache.h> arch/microblaze/cpu/cpuinfo.c +0
-1@@ -2,7 +2,6 @@/* * Copyright (C) 2022, Ovidiu Panait <[email protected]> */ -#include <common.h> #include <asm/cpuinfo.h> #include <asm/global_data.h> arch/microblaze/cpu/exception.c +1
-1@@ -5,8 +5,8 @@* Michal SIMEK <[email protected]> */ -#include <common.h> #include <hang.h> +#include <stdio.h> #include <asm/asm.h> void _hw_exception_handler (void )arch/microblaze/cpu/interrupts.c +2
-1@@ -7,7 +7,8 @@* Yasushi SHOJI <[email protected]> */ -#include <common.h> +#include <log.h> +#include <vsprintf.h> #include <asm/asm.h> void enable_interrupts (void )arch/microblaze/cpu/pvr.c +0
-1@@ -2,7 +2,6 @@/* * Copyright (C) 2022, Ovidiu Panait <[email protected]> */ -#include <common.h> #include <asm/asm.h> #include <asm/pvr.h> arch/microblaze/cpu/relocate.c +2
-1@@ -4,8 +4,9 @@* Michal Simek <[email protected]> */ -#include <common.h> #include <elf.h> +#include <log.h> +#include <linux/types.h> #define R_MICROBLAZE_NONE 0#define R_MICROBLAZE_32 1arch/microblaze/cpu/spl.c +0
-1@@ -5,7 +5,6 @@* Michal Simek <[email protected]> */ -#include <common.h> #include <command.h> #include <image.h> #include <log.h> arch/microblaze/include/asm/cpuinfo.h +2
-0@@ -6,6 +6,8 @@#ifndef __ASM_MICROBLAZE_CPUINFO_H#define __ASM_MICROBLAZE_CPUINFO_H +#include <linux/types.h> +/** * struct microblaze_cpuinfo - CPU info for microblaze processor core. * arch/microblaze/lib/bootm.c +0
-1@@ -7,7 +7,6 @@* Yasushi SHOJI <[email protected]> */ -#include <common.h> #include <bootstage.h> #include <command.h> #include <cpu_func.h> board/xilinx/microblaze-generic/microblaze-generic.c +0
-0
board/xilinx/microblaze-generic/microblaze-generic.c line 15
Quoted 7 lines
board/xilinx/microblaze-generic/microblaze-generic.c +0
-1@@ -10,7 +10,6 @@* header files */ -#include <common.h> #include <config.h> #include <env.h> #include <init.h>
I build it and no problem seen that's why.
If you want me to take it via my tree please let me know but I expect you will take it directly.
Thanks,
Michal
Re: [PATCH 5/7] microblaze: Remove common.h usage
In reply to Tom RiniQuoted 5 lines · Tom Rini
We can remove
common.hfrom most cases of the code here, and only a few places need an additional header instead.Signed-off-by Tom Rini <[email protected]>Acked-by Michal Simek <[email protected]>
Applied to u-boot/master, thanks!
Signature · 1 line
Tom
PATCH 6/7 mips: Remove common.h usage
In reply to Tom RiniWe can remove common.h from most cases of the code here, and only a few places need an additional header instead.
---
Cc: Daniel Schwierzeck <[email protected]>
--- arch/mips/cpu/cpu.c | 1 - arch/mips/cpu/interrupts.c | 1 - arch/mips/cpu/time.c | 1 - arch/mips/include/asm/cacheops.h | 1 + arch/mips/lib/boot.c | 1 - arch/mips/lib/bootm.c | 1 - arch/mips/lib/cache.c | 1 - arch/mips/lib/reloc.c | 1 - arch/mips/lib/spl.c | 1 - arch/mips/lib/stack.c | 1 - arch/mips/lib/traps.c | 3 ++- arch/mips/mach-ath79/ar933x/clk.c | 1 - arch/mips/mach-ath79/ar933x/ddr.c | 1 - arch/mips/mach-ath79/ar934x/clk.c | 1 - arch/mips/mach-ath79/ar934x/cpu.c | 2 -- arch/mips/mach-ath79/ar934x/ddr.c | 1 - arch/mips/mach-ath79/cpu.c | 1 - arch/mips/mach-ath79/dram.c | 1 - arch/mips/mach-ath79/qca953x/clk.c | 1 - arch/mips/mach-ath79/qca953x/ddr.c | 1 - arch/mips/mach-ath79/qca956x/clk.c | 1 - arch/mips/mach-ath79/qca956x/cpu.c | 2 -- arch/mips/mach-ath79/qca956x/ddr.c | 1 - arch/mips/mach-ath79/reset.c | 1 - arch/mips/mach-bmips/dram.c | 1 - arch/mips/mach-jz47xx/jz4780/gpio.c | 1 - arch/mips/mach-jz47xx/jz4780/jz4780.c | 1 - arch/mips/mach-jz47xx/jz4780/pll.c | 1 - arch/mips/mach-jz47xx/jz4780/reset.c | 1 - arch/mips/mach-jz47xx/jz4780/sdram.c | 1 - arch/mips/mach-jz47xx/jz4780/timer.c | 1 - arch/mips/mach-mscc/cpu.c | 1 - arch/mips/mach-mscc/dram.c | 1 - arch/mips/mach-mscc/gpio.c | 1 - arch/mips/mach-mscc/include/mach/ddr.h | 1 + arch/mips/mach-mscc/phy.c | 1 - arch/mips/mach-mscc/reset.c | 2 -- arch/mips/mach-mtmips/cpu.c | 1 - arch/mips/mach-mtmips/ddr_cal.c | 1 - arch/mips/mach-mtmips/ddr_init.c | 1 - arch/mips/mach-mtmips/mt7628/ddr.c | 1 - arch/mips/mach-mtmips/mt7628/init.c | 1 - arch/mips/mach-mtmips/mt7628/serial.c | 1 - arch/mips/mach-mtmips/spl.c | 1 - arch/mips/mach-pic32/cpu.c | 1 - arch/mips/mach-pic32/reset.c | 1 - 46 files changed, 4 insertions(+), 47 deletions(-)
arch/mips/cpu/cpu.c +0 -1
@@ -4,7 +4,6 @@* Wolfgang Denk, DENX Software Engineering, <[email protected]> */ -#include <common.h> #include <command.h> #include <init.h> #include <linux/compiler.h>
arch/mips/cpu/interrupts.c +0 -1
@@ -4,7 +4,6 @@* Wolfgang Denk, DENX Software Engineering, <[email protected]> */ -#include <common.h> #include <irq_func.h> int interrupt_init (void )
arch/mips/cpu/time.c +0 -1
@@ -4,7 +4,6 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <time.h> #include <asm/mipsregs.h>
arch/mips/include/asm/cacheops.h +1 -0
@@ -11,6 +11,7 @@#include <asm/cache.h> #ifndef __ASSEMBLY__ +#include <linux/types.h> static inline void mips_cache (int op,const volatile void *addr) {
arch/mips/lib/boot.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2020 Stefan Roese <[email protected]> */ -#include <common.h> #include <command.h> #include <cpu_func.h> #include <asm/global_data.h>
arch/mips/lib/bootm.c +0 -1
@@ -4,7 +4,6 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <bootstage.h> #include <env.h> #include <image.h>
arch/mips/lib/cache.c +0 -1
@@ -4,7 +4,6 @@* Wolfgang Denk, DENX Software Engineering, <[email protected]> */ -#include <common.h> #include <cpu_func.h> #include <malloc.h> #include <asm/cache.h>
arch/mips/lib/reloc.c +0 -1
@@ -26,7 +26,6 @@* terminating R_MIPS_NONE reloc includes no offset. */ -#include <common.h> #include <cpu_func.h> #include <init.h> #include <asm/relocs.h>
arch/mips/lib/spl.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2020 Stefan Roese <[email protected]> */ -#include <common.h> #include <cpu_func.h> #include <log.h> #include <spl.h>
arch/mips/lib/stack.c +0 -1
@@ -1,6 +1,5 @@// SPDX-License-Identifier: GPL-2.0+ -#include <common.h> #include <init.h> #include <log.h> #include <asm/global_data.h>
arch/mips/lib/traps.c +2 -1
@@ -10,9 +10,9 @@* Copyright (C) 2014, Imagination Technologies Ltd. */ -#include <common.h> #include <asm/global_data.h> #include <asm/ptrace.h> +#include <config.h> #include <cpu_func.h> #include <hang.h> #include <init.h>
@@ -20,6 +20,7 @@#include <asm/mipsregs.h> #include <asm/addrspace.h> #include <asm/system.h> +#include <asm/u-boot.h> DECLARE_GLOBAL_DATA_PTR ;
arch/mips/mach-ath79/ar933x/clk.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2015-2016 Wills Wang <[email protected]> */ -#include <common.h> #include <clock_legacy.h> #include <asm/global_data.h> #include <asm/io.h>
arch/mips/mach-ath79/ar933x/ddr.c +0 -1
@@ -4,7 +4,6 @@* Based on Atheros LSDK/QSDK */ -#include <common.h> #include <asm/io.h> #include <asm/addrspace.h> #include <asm/types.h>
arch/mips/mach-ath79/ar934x/clk.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2016 Marek Vasut <[email protected]> */ -#include <common.h> #include <clock_legacy.h> #include <command.h> #include <hang.h>
arch/mips/mach-ath79/ar934x/cpu.c +0 -2
@@ -3,7 +3,5 @@* Copyright (C) 2016 Marek Vasut <[email protected]> */ -#include <common.h> -/* The lowlevel_init() is not needed on AR934x */ void lowlevel_init (void ) {}
arch/mips/mach-ath79/ar934x/ddr.c +0 -1
@@ -5,7 +5,6 @@* Based on RAM init sequence by Piotr Dymacz <[email protected]> */ -#include <common.h> #include <asm/global_data.h> #include <asm/io.h> #include <asm/addrspace.h>
arch/mips/mach-ath79/cpu.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2015-2016 Wills Wang <[email protected]> */ -#include <common.h> #include <init.h> #include <asm/io.h> #include <asm/addrspace.h>
arch/mips/mach-ath79/dram.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2015-2016 Wills Wang <[email protected]> */ -#include <common.h> #include <init.h> #include <asm/global_data.h> #include <linux/sizes.h>
arch/mips/mach-ath79/qca953x/clk.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2015-2016 Wills Wang <[email protected]> */ -#include <common.h> #include <clock_legacy.h> #include <asm/global_data.h> #include <asm/io.h>
arch/mips/mach-ath79/qca953x/ddr.c +0 -1
@@ -4,7 +4,6 @@* Based on Atheros LSDK/QSDK */ -#include <common.h> #include <asm/io.h> #include <asm/addrspace.h> #include <asm/types.h>
arch/mips/mach-ath79/qca956x/clk.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2019 Rosy Song <[email protected]> */ -#include <common.h> #include <clock_legacy.h> #include <log.h> #include <asm/global_data.h>
arch/mips/mach-ath79/qca956x/cpu.c +0 -2
@@ -3,7 +3,5 @@* Copyright (C) 2019 Rosy Song <[email protected]> */ -#include <common.h> -/* The lowlevel_init() is not needed on QCA956X */ void lowlevel_init (void ) {}
arch/mips/mach-ath79/qca956x/ddr.c +0 -1
@@ -5,7 +5,6 @@* Based on QSDK */ -#include <common.h> #include <asm/global_data.h> #include <asm/io.h> #include <asm/addrspace.h>
arch/mips/mach-ath79/reset.c +0 -1
@@ -4,7 +4,6 @@* Copyright (C) 2018-2019 Rosy Song <[email protected]> */ -#include <common.h> #include <linux/bitops.h> #include <linux/delay.h> #include <linux/errno.h>
arch/mips/mach-bmips/dram.c +0 -1
@@ -4,7 +4,6 @@* Copyright (C) 2017 Álvaro Fernández Rojas <[email protected]> */ -#include <common.h> #include <init.h> #include <log.h> #include <ram.h>
arch/mips/mach-jz47xx/jz4780/gpio.c +0 -1
@@ -1,7 +1,6 @@// SPDX-License-Identifier: GPL-2.0+ #include <config.h> -#include <common.h> #include <asm/io.h> #include <linux/bitops.h> #include <mach/jz4780.h>
arch/mips/mach-jz47xx/jz4780/jz4780.c +0 -1
@@ -7,7 +7,6 @@*/ #include <config.h> -#include <common.h> #include <cpu_func.h> #include <hang.h> #include <image.h>
arch/mips/mach-jz47xx/jz4780/pll.c +0 -1
@@ -7,7 +7,6 @@*/ #include <config.h> -#include <common.h> #include <asm/io.h> #include <linux/bitops.h> #include <linux/delay.h>
arch/mips/mach-jz47xx/jz4780/reset.c +0 -1
@@ -7,7 +7,6 @@*/ #include <config.h> -#include <common.h> #include <asm/io.h> #include <linux/bitops.h> #include <mach/jz4780.h>
arch/mips/mach-jz47xx/jz4780/sdram.c +0 -1
@@ -9,7 +9,6 @@* Copyright (c) 2006-2013 Ingenic Semiconductor */ -#include <common.h> #include <hang.h> #include <init.h> #include <asm/io.h>
arch/mips/mach-jz47xx/jz4780/timer.c +0 -1
@@ -7,7 +7,6 @@*/ #include <config.h> -#include <common.h> #include <div64.h> #include <init.h> #include <irq_func.h>
arch/mips/mach-mscc/cpu.c +0 -1
@@ -3,7 +3,6 @@* Copyright (c) 2018 Microsemi Corporation */ -#include <common.h> #include <init.h> #include <asm/global_data.h> #include <linux/bitops.h>
arch/mips/mach-mscc/dram.c +0 -1
@@ -3,7 +3,6 @@* Copyright (c) 2018 Microsemi Corporation */ -#include <common.h> #include <init.h> #include <asm/global_data.h>
arch/mips/mach-mscc/gpio.c +0 -1
@@ -3,7 +3,6 @@* Copyright (c) 2018 Microsemi Corporation */ -#include <common.h> #include <asm/io.h> #include <linux/bitops.h>
arch/mips/mach-mscc/include/mach/ddr.h +1 -0
@@ -6,6 +6,7 @@#ifndef __ASM_MACH_DDR_H#define __ASM_MACH_DDR_H +#include <config.h> #include <asm/cacheops.h> #include <asm/io.h> #include <asm/reboot.h>
arch/mips/mach-mscc/phy.c +0 -1
@@ -3,7 +3,6 @@* Copyright (c) 2018 Microsemi Corporation */ -#include <common.h> #include <log.h> #include <asm/io.h>
arch/mips/mach-mscc/reset.c +0 -2
@@ -3,8 +3,6 @@* Copyright (c) 2018 Microsemi Corporation */ -#include <common.h> -#include <asm/sections.h> #include <asm/io.h>
arch/mips/mach-mtmips/cpu.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2018 Stefan Roese <[email protected]> */ -#include <common.h> #include <event.h> #include <init.h> #include <malloc.h>
arch/mips/mach-mtmips/ddr_cal.c +0 -1
@@ -5,7 +5,6 @@* Author: Weijie Gao <[email protected]> */ -#include <common.h> #include <asm/addrspace.h> #include <asm/cacheops.h> #include <asm/global_data.h>
arch/mips/mach-mtmips/ddr_init.c +0 -1
@@ -5,7 +5,6 @@* Author: Weijie Gao <[email protected]> */ -#include <common.h> #include <linux/bitops.h> #include <linux/delay.h> #include <linux/io.h>
arch/mips/mach-mtmips/mt7628/ddr.c +0 -1
@@ -5,7 +5,6 @@* Author: Weijie Gao <[email protected]> */ -#include <common.h> #include <asm/addrspace.h> #include <asm/global_data.h> #include <linux/bitops.h>
arch/mips/mach-mtmips/mt7628/init.c +0 -1
@@ -5,7 +5,6 @@* Author: Weijie Gao <[email protected]> */ -#include <common.h> #include <clk.h> #include <dm.h> #include <asm/global_data.h>
arch/mips/mach-mtmips/mt7628/serial.c +0 -1
@@ -5,7 +5,6 @@* Author: Weijie Gao <[email protected]> */ -#include <common.h> #include <asm/io.h> #include "mt7628.h"
arch/mips/mach-mtmips/spl.c +0 -1
@@ -5,7 +5,6 @@* Author: Weijie Gao <[email protected]> */ -#include <common.h> #include <init.h> #include <spl.h> #include <asm/sections.h>
arch/mips/mach-pic32/cpu.c +0 -1
@@ -4,7 +4,6 @@* Purna Chandra Mandal <[email protected]> * */ -#include <common.h> #include <clk.h> #include <dm.h> #include <event.h>
arch/mips/mach-pic32/reset.c +0 -1
@@ -4,7 +4,6 @@* */ -#include <common.h> #include <asm/io.h> #include <mach/pic32.h>
Signature · 1 line
2.34.1
Re: [PATCH 6/7] mips: Remove common.h usage
Quoted 4 lines · Tom Rini
We can remove
common.hfrom most cases of the code here, and only a few places need an additional header instead.Signed-off-by Tom Rini <[email protected]>
Applied to u-boot/master, thanks!
Signature · 1 line
Tom
PATCH 7/7 riscv: Remove common.h usage
In reply to Tom RiniWe can remove common.h from most cases of the code here, and only a few places need an additional header instead.
---
Cc: Rick Chen <[email protected]>
Cc: Leo <[email protected]>
--- arch/riscv/cpu/andesv5/cache.c | 1 - arch/riscv/cpu/andesv5/cpu.c | 1 - arch/riscv/cpu/andesv5/spl.c | 1 - arch/riscv/cpu/cpu.c | 1 - arch/riscv/cpu/fu540/dram.c | 1 - arch/riscv/cpu/fu740/dram.c | 1 - arch/riscv/cpu/generic/cpu.c | 1 - arch/riscv/cpu/generic/dram.c | 1 - arch/riscv/cpu/jh7110/dram.c | 1 - arch/riscv/cpu/jh7110/spl.c | 1 - arch/riscv/cpu/mtrap.S | 1 - arch/riscv/cpu/start.S | 1 - arch/riscv/include/asm/arch-andes/csr.h | 1 + arch/riscv/include/asm/arch-jh7110/eeprom.h | 2 ++ arch/riscv/include/asm/dma-mapping.h | 1 - arch/riscv/include/asm/smp.h | 2 ++ arch/riscv/lib/aclint_ipi.c | 1 - arch/riscv/lib/andes_plicsw.c | 1 - arch/riscv/lib/asm-offsets.c | 1 - arch/riscv/lib/boot.c | 3 +-- arch/riscv/lib/bootm.c | 1 - arch/riscv/lib/cache.c | 1 - arch/riscv/lib/fdt_fixup.c | 1 - arch/riscv/lib/image.c | 1 - arch/riscv/lib/interrupts.c | 1 - arch/riscv/lib/reset.c | 1 - arch/riscv/lib/sbi.c | 2 +- arch/riscv/lib/sbi_ipi.c | 1 - arch/riscv/lib/sifive_cache.c | 2 +- arch/riscv/lib/smp.c | 1 - arch/riscv/lib/spl.c | 1 - board/AndesTech/ae350/ae350.c | 2 +- board/sifive/unmatched/hifive-platform-i2c-eeprom.c | 1 - board/sifive/unmatched/unmatched.c | 1 - 34 files changed, 9 insertions(+), 32 deletions(-)
arch/riscv/cpu/andesv5/cache.c +0 -1
@@ -6,7 +6,6 @@#include <asm/csr.h> #include <asm/asm.h> -#include <common.h> #include <cache.h> #include <cpu_func.h> #include <dm.h>
arch/riscv/cpu/andesv5/cpu.c +0 -1
@@ -5,7 +5,6 @@*/ /* CPU specific code */ -#include <common.h> #include <cpu_func.h> #include <irq_func.h> #include <asm/cache.h>
arch/riscv/cpu/andesv5/spl.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2023 Andes Technology Corporation * Rick Chen, Andes Technology Corporation <[email protected]> */ -#include <common.h> #include <cpu_func.h> #include <hang.h> #include <init.h>
arch/riscv/cpu/cpu.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2018, Bin Meng <[email protected]> */ -#include <common.h> #include <cpu.h> #include <dm.h> #include <dm/lists.h>
arch/riscv/cpu/fu540/dram.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2018, Bin Meng <[email protected]> */ -#include <common.h> #include <fdtdec.h> #include <init.h> #include <asm/global_data.h>
arch/riscv/cpu/fu740/dram.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2018, Bin Meng <[email protected]> */ -#include <common.h> #include <fdtdec.h> #include <init.h> #include <linux/sizes.h>
arch/riscv/cpu/generic/cpu.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2018, Bin Meng <[email protected]> */ -#include <common.h> #include <irq_func.h> #include <asm/cache.h>
arch/riscv/cpu/generic/dram.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2018, Bin Meng <[email protected]> */ -#include <common.h> #include <fdtdec.h> #include <init.h> #include <asm/global_data.h>
arch/riscv/cpu/jh7110/dram.c +0 -1
@@ -4,7 +4,6 @@* Author: Yanhong Wang <[email protected]> */ -#include <common.h> #include <fdtdec.h> #include <init.h> #include <linux/sizes.h>
arch/riscv/cpu/jh7110/spl.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2022 StarFive Technology Co., Ltd. * Author: Yanhong Wang<[email protected]> */ -#include <common.h> #include <asm/arch/eeprom.h> #include <asm/csr.h> #include <asm/sections.h>
arch/riscv/cpu/mtrap.S +0 -1
@@ -11,7 +11,6 @@ * Copyright (C) 2018, Bin Meng <[email protected]> */ -#include <common.h> #include <asm/encoding.h> #ifdef CONFIG_32BIT
arch/riscv/cpu/start.S +0 -1
@@ -11,7 +11,6 @@ #include <asm-offsets.h> #include <config.h> -#include <common.h> #include <elf.h> #include <system-constants.h> #include <asm/encoding.h>
arch/riscv/include/asm/arch-andes/csr.h +1 -0
@@ -7,6 +7,7 @@#define _ASM_ANDES_CSR_H#include <asm/asm.h> +#include <linux/bitops.h> #include <linux/const.h> #define CSR_MCACHE_CTL 0x7ca
arch/riscv/include/asm/arch-jh7110/eeprom.h +2 -0
@@ -7,6 +7,8 @@#ifndef _ASM_RISCV_EEPROM_H#define _ASM_RISCV_EEPROM_H +#include <linux/types.h> +u8 get_pcb_revision_from_eeprom (void );u32 get_ddr_size_from_eeprom (void );
arch/riscv/include/asm/dma-mapping.h +0 -1
@@ -9,7 +9,6 @@#ifndef __ASM_RISCV_DMA_MAPPING_H#define __ASM_RISCV_DMA_MAPPING_H -#include <common.h> #include <linux/types.h> #include <asm/cache.h> #include <cpu_func.h>
arch/riscv/include/asm/smp.h +2 -0
@@ -7,6 +7,8 @@#ifndef _ASM_RISCV_SMP_H#define _ASM_RISCV_SMP_H +#include <linux/types.h> +/** * struct ipi_data - Inter-processor interrupt (IPI) data structure *
arch/riscv/lib/aclint_ipi.c +0 -1
@@ -8,7 +8,6 @@* associated with software and timer interrupts. */ -#include <common.h> #include <dm.h> #include <regmap.h> #include <syscon.h>
arch/riscv/lib/andes_plicsw.c +0 -1
@@ -8,7 +8,6 @@* similar to RISC-V PLIC. */ -#include <common.h> #include <dm.h> #include <asm/global_data.h> #include <dm/device-internal.h>
arch/riscv/lib/asm-offsets.c +0 -1
@@ -8,7 +8,6 @@* assembly language modules. */ -#include <common.h> #include <asm/global_data.h> #include <linux/kbuild.h>
arch/riscv/lib/boot.c +1 -2
@@ -4,8 +4,7 @@* Rick Chen, Andes Technology Corporation <[email protected]> */ -#include <common.h> -#include <command.h> +#include <asm/u-boot.h> unsigned long do_go_exec (ulong (*entry)(int ,char *const []),int argc,char *const argv[])
arch/riscv/lib/bootm.c +0 -1
@@ -6,7 +6,6 @@* Rick Chen, Andes Technology Corporation <[email protected]> */ -#include <common.h> #include <bootstage.h> #include <command.h> #include <dm.h>
arch/riscv/lib/cache.c +0 -1
@@ -4,7 +4,6 @@* Rick Chen, Andes Technology Corporation <[email protected]> */ -#include <common.h> #include <cpu_func.h> void invalidate_icache_all (void )
arch/riscv/lib/fdt_fixup.c +0 -1
@@ -6,7 +6,6 @@#define LOG_CATEGORY LOGC_ARCH -#include <common.h> #include <fdt_support.h> #include <log.h> #include <mapmem.h>
arch/riscv/lib/image.c +0 -1
@@ -6,7 +6,6 @@* Based on arm/lib/image.c */ -#include <common.h> #include <image.h> #include <mapmem.h> #include <errno.h>
arch/riscv/lib/interrupts.c +0 -1
@@ -10,7 +10,6 @@*/ #include <linux/compat.h> -#include <common.h> #include <efi_loader.h> #include <hang.h> #include <irq_func.h>
arch/riscv/lib/reset.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2018, Bin Meng <[email protected]> */ -#include <common.h> #include <command.h> #include <hang.h>
arch/riscv/lib/sbi.c +1 -1
@@ -7,7 +7,7 @@* Taken from Linux arch/riscv/kernel/sbi.c */ -#include <common.h> +#include <errno.h> #include <asm/encoding.h> #include <asm/sbi.h>
arch/riscv/lib/sbi_ipi.c +0 -1
@@ -4,7 +4,6 @@* Lukas Auer <[email protected]> */ -#include <common.h> #include <asm/encoding.h> #include <asm/sbi.h>
arch/riscv/lib/sifive_cache.c +1 -1
@@ -3,9 +3,9 @@* Copyright (C) 2021 SiFive, Inc */ -#include <common.h> #include <cache.h> #include <cpu_func.h> +#include <log.h> #include <dm.h> void enable_caches (void )
arch/riscv/lib/smp.c +0 -1
@@ -4,7 +4,6 @@* Lukas Auer <[email protected]> */ -#include <common.h> #include <cpu_func.h> #include <dm.h> #include <asm/barrier.h>
arch/riscv/lib/spl.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2019 Fraunhofer AISEC, * Lukas Auer <[email protected]> */ -#include <common.h> #include <cpu_func.h> #include <hang.h> #include <init.h>
board/AndesTech/ae350/ae350.c +1 -1
@@ -4,7 +4,7 @@* Rick Chen, Andes Technology Corporation <[email protected]> */ -#include <common.h> +#include <config.h> #include <cpu_func.h> #include <flash.h> #include <image.h>
board/sifive/unmatched/hifive-platform-i2c-eeprom.c +0 -1
@@ -9,7 +9,6 @@* Timur Tabi ([email protected]) */ -#include <common.h> #include <command.h> #include <env.h> #include <i2c.h>
board/sifive/unmatched/unmatched.c +0 -1
@@ -6,7 +6,6 @@* Pragnesh Patel <[email protected]> */ -#include <common.h> #include <cpu_func.h> #include <dm.h> #include <asm/sections.h>
Signature · 1 line
2.34.1
A message that is not in the archive (sent off-list or not yet received): SEZPR03MB8064C345D63766D2E86B2184C1D2A@SEZPR03MB8064.apcprd03.prod.outlook.com
Rick Chen
Reviewed-byRe: [PATCH 7/7] riscv: Remove common.h usage
Quoted 6 lines
From: Tom Rini <[email protected]>
Sent: Friday, October 13, 2023 7:04 AM
To: [email protected]
Cc: Rick Jian-Zhi Chen(陳建志) <[email protected]>; Leo Yu-Chi Liang(梁育齊) <[email protected]>
Subject: [PATCH 7/7] riscv: Removecommon.husage
Quoted 7 lines
We can remove
common.hfrom most cases of the code here, and only a few places need an additional header instead.Signed-off-by Tom Rini <[email protected]>---
Cc: Rick Chen <[email protected]>
Cc: Leo <[email protected]>
---
Re: [PATCH 7/7] riscv: Remove common.h usage
In reply to Tom RiniQuoted 5 lines · Tom Rini
We can remove
common.hfrom most cases of the code here, and only a few places need an additional header instead.Signed-off-by Tom Rini <[email protected]>Reviewed-by Rick Chen <[email protected]>
Applied to u-boot/master, thanks!
Signature · 1 line
Tom
Quoted 8 lines · Tom Rini
At this point in time we should not add
common.hto any new files, so make checkpatch.pl complain.Signed-off-by Tom Rini <[email protected]>---
Cc: Simon Glass <[email protected]>
Quoted 7 lines
This causes a bunch of patman tests, for checkpatch, to now fail and I don't really understand why, at all. And that was before I added a test for the new error, which I had hoped would clear up the problem.
--- scripts/checkpatch.pl | 8 +++++++- tools/patman/test_checkpatch.py | 7 ++++++- 2 files changed, 13 insertions(+), 2 deletions(-)
Quoted 17 lines · Simon Glass
Quoted 8 lines · Tom Rini
At this point in time we should not add
common.hto any new files, so make checkpatch.pl complain.Signed-off-by Tom Rini <[email protected]>---
Cc: Simon Glass <[email protected]>Quoted 7 lines
This causes a bunch of patman tests, for checkpatch, to now fail and I don't really understand why, at all. And that was before I added a test for the new error, which I had hoped would clear up the problem.
--- scripts/checkpatch.pl | 8 +++++++- tools/patman/test_checkpatch.py | 7 ++++++- 2 files changed, 13 insertions(+), 2 deletions(-)
Quoted 1 line
Reviewed-by Simon Glass <[email protected]>
It can't be reviewed, as I can't actually apply it, as it causes CI to fail as patman tests now fail, and I don't know why.
Signature · 1 line
Tom
Hi Tom,
Quoted 19 lines · Tom Rini
Quoted 17 lines · Simon Glass
Quoted 15 lines · Tom Rini
At this point in time we should not add
common.hto any new files, so make checkpatch.pl complain.Signed-off-by Tom Rini <[email protected]>---
Cc: Simon Glass <[email protected]>This causes a bunch of patman tests, for checkpatch, to now fail and I don't really understand why, at all. And that was before I added a test for the new error, which I had hoped would clear up the problem.
--- scripts/checkpatch.pl | 8 +++++++- tools/patman/test_checkpatch.py | 7 ++++++- 2 files changed, 13 insertions(+), 2 deletions(-)
Quoted 4 lines
Quoted 1 line
Reviewed-by Simon Glass <[email protected]>It can't be reviewed, as I can't actually apply it, as it causes CI to fail as patman tests now fail, and I don't know why.
Well the code looks OK to me. I will take a look.
Regards,
Simon