[U-Boot] [PATCH v3 4/7] malloc_f: remove redundant defalut values of CONFIG_SYS_MALLOC_F_LEN

Robert Baldyga r.baldyga at samsung.com
Tue Mar 24 07:15:12 CET 2015


On 03/19/2015 11:42 AM, Masahiro Yamada wrote:
> The default value of CONFIG_SYS_MALLOC_F_LEN is defined by ./Kconfig
> as 0x400.  Each defconfig or Kconfig need not repeat the same value.
> 
> Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
> Acked-by: Stephen Warren <swarren at wwwdotorg.org>

Acked-by: Robert Baldyga <r.baldyga at samsung.com>

> ---
> 
> Changes in v2: None
> 
>  arch/arm/cpu/armv7/exynos/Kconfig         | 3 ---
>  arch/arm/cpu/armv7/omap3/Kconfig          | 3 ---
>  arch/arm/mach-uniphier/Kconfig            | 3 ---
>  board/amcc/canyonlands/Kconfig            | 4 ----
>  board/ti/am335x/Kconfig                   | 3 ---
>  configs/Linksprite_pcDuino3_fdt_defconfig | 1 -
>  configs/am335x_igep0033_defconfig         | 1 -
>  configs/cm_fx6_defconfig                  | 1 -
>  configs/cm_t335_defconfig                 | 1 -
>  configs/gwventana_defconfig               | 1 -
>  configs/mx6dlsabreauto_defconfig          | 1 -
>  configs/mx6qsabreauto_defconfig           | 1 -
>  configs/mx6qsabresd_defconfig             | 1 -
>  configs/mx6sxsabresd_defconfig            | 1 -
>  configs/nokia_rx51_defconfig              | 1 -
>  configs/pcm051_rev1_defconfig             | 1 -
>  configs/pcm051_rev3_defconfig             | 1 -
>  configs/pengwyn_defconfig                 | 1 -
>  configs/pepper_defconfig                  | 1 -
>  configs/rpi_2_defconfig                   | 1 -
>  configs/rpi_defconfig                     | 1 -
>  configs/s5p_goni_defconfig                | 1 -
>  configs/sandbox_defconfig                 | 1 -
>  configs/smdkc100_defconfig                | 1 -
>  configs/snapper9260_defconfig             | 1 -
>  configs/snapper9g20_defconfig             | 1 -
>  26 files changed, 37 deletions(-)
> 
> diff --git a/arch/arm/cpu/armv7/exynos/Kconfig b/arch/arm/cpu/armv7/exynos/Kconfig
> index eb86a7f..9e47ed3 100644
> --- a/arch/arm/cpu/armv7/exynos/Kconfig
> +++ b/arch/arm/cpu/armv7/exynos/Kconfig
> @@ -83,9 +83,6 @@ config DM_GPIO
>  config SYS_MALLOC_F
>  	default y
>  
> -config SYS_MALLOC_F_LEN
> -	default 0x400
> -
>  source "board/samsung/smdkv310/Kconfig"
>  source "board/samsung/trats/Kconfig"
>  source "board/samsung/universal_c210/Kconfig"
> diff --git a/arch/arm/cpu/armv7/omap3/Kconfig b/arch/arm/cpu/armv7/omap3/Kconfig
> index 65da6e2..aa2ff46 100644
> --- a/arch/arm/cpu/armv7/omap3/Kconfig
> +++ b/arch/arm/cpu/armv7/omap3/Kconfig
> @@ -109,9 +109,6 @@ config DM_SERIAL
>  config SYS_MALLOC_F
>  	default y if DM
>  
> -config SYS_MALLOC_F_LEN
> -	default 0x400 if DM
> -
>  config SYS_SOC
>  	default "omap3"
>  
> diff --git a/arch/arm/mach-uniphier/Kconfig b/arch/arm/mach-uniphier/Kconfig
> index 8335685..b6dc75f 100644
> --- a/arch/arm/mach-uniphier/Kconfig
> +++ b/arch/arm/mach-uniphier/Kconfig
> @@ -51,9 +51,6 @@ endchoice
>  config SYS_MALLOC_F
>  	default y
>  
> -config SYS_MALLOC_F_LEN
> -	default 0x400
> -
>  config CMD_PINMON
>  	bool "Enable boot mode pins monitor command"
>  	default y
> diff --git a/board/amcc/canyonlands/Kconfig b/board/amcc/canyonlands/Kconfig
> index 848e08f..c0dbd18 100644
> --- a/board/amcc/canyonlands/Kconfig
> +++ b/board/amcc/canyonlands/Kconfig
> @@ -43,8 +43,4 @@ config SYS_MALLOC_F
>  	bool
>  	default y
>  
> -config SYS_MALLOC_F_LEN
> -	hex
> -	default 0x400
> -
>  endif
> diff --git a/board/ti/am335x/Kconfig b/board/ti/am335x/Kconfig
> index 722f9d5..8c45892 100644
> --- a/board/ti/am335x/Kconfig
> +++ b/board/ti/am335x/Kconfig
> @@ -50,7 +50,4 @@ config DM_SERIAL
>  config SYS_MALLOC_F
>  	default y if DM
>  
> -config SYS_MALLOC_F_LEN
> -	default 0x400 if DM
> -
>  endif
> diff --git a/configs/Linksprite_pcDuino3_fdt_defconfig b/configs/Linksprite_pcDuino3_fdt_defconfig
> index 1504664..87dd38f 100644
> --- a/configs/Linksprite_pcDuino3_fdt_defconfig
> +++ b/configs/Linksprite_pcDuino3_fdt_defconfig
> @@ -14,4 +14,3 @@ CONFIG_DRAM_CLK=480
>  CONFIG_DRAM_ZQ=122
>  CONFIG_DRAM_EMR1=4
>  CONFIG_SYS_MALLOC_F=y
> -CONFIG_SYS_MALLOC_F_LEN=0x400
> diff --git a/configs/am335x_igep0033_defconfig b/configs/am335x_igep0033_defconfig
> index 8d38e26..a439298 100644
> --- a/configs/am335x_igep0033_defconfig
> +++ b/configs/am335x_igep0033_defconfig
> @@ -4,4 +4,3 @@ CONFIG_SPL_STACK_R_ADDR=0x82000000
>  CONFIG_ARM=y
>  CONFIG_TARGET_AM335X_IGEP0033=y
>  CONFIG_SYS_MALLOC_F=y
> -CONFIG_SYS_MALLOC_F_LEN=0x400
> diff --git a/configs/cm_fx6_defconfig b/configs/cm_fx6_defconfig
> index 2fd21cf..00cbdd2 100644
> --- a/configs/cm_fx6_defconfig
> +++ b/configs/cm_fx6_defconfig
> @@ -6,4 +6,3 @@ CONFIG_DM=y
>  CONFIG_DM_GPIO=y
>  CONFIG_DM_SERIAL=y
>  CONFIG_SYS_MALLOC_F=y
> -CONFIG_SYS_MALLOC_F_LEN=0x400
> diff --git a/configs/cm_t335_defconfig b/configs/cm_t335_defconfig
> index 086e526..31705f2 100644
> --- a/configs/cm_t335_defconfig
> +++ b/configs/cm_t335_defconfig
> @@ -2,4 +2,3 @@ CONFIG_SPL=y
>  CONFIG_ARM=y
>  CONFIG_TARGET_CM_T335=y
>  CONFIG_SYS_MALLOC_F=y
> -CONFIG_SYS_MALLOC_F_LEN=0x400
> diff --git a/configs/gwventana_defconfig b/configs/gwventana_defconfig
> index 6eab019..d6bbdc1 100644
> --- a/configs/gwventana_defconfig
> +++ b/configs/gwventana_defconfig
> @@ -3,4 +3,3 @@ CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/imx-common/spl_sd.cfg,MX6QDL"
>  CONFIG_ARM=y
>  CONFIG_TARGET_GW_VENTANA=y
>  CONFIG_SYS_MALLOC_F=y
> -CONFIG_SYS_MALLOC_F_LEN=0x400
> diff --git a/configs/mx6dlsabreauto_defconfig b/configs/mx6dlsabreauto_defconfig
> index 47f3f87..b3816ec 100644
> --- a/configs/mx6dlsabreauto_defconfig
> +++ b/configs/mx6dlsabreauto_defconfig
> @@ -2,6 +2,5 @@ CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx6qsabreauto/mx6dl.cfg,MX6
>  CONFIG_ARM=y
>  CONFIG_TARGET_MX6QSABREAUTO=y
>  CONFIG_SYS_MALLOC_F=y
> -CONFIG_SYS_MALLOC_F_LEN=0x400
>  CONFIG_DM=y
>  CONFIG_DM_THERMAL=y
> diff --git a/configs/mx6qsabreauto_defconfig b/configs/mx6qsabreauto_defconfig
> index ab72942..df09296 100644
> --- a/configs/mx6qsabreauto_defconfig
> +++ b/configs/mx6qsabreauto_defconfig
> @@ -2,6 +2,5 @@ CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx6qsabreauto/imximage.cfg,
>  CONFIG_ARM=y
>  CONFIG_TARGET_MX6QSABREAUTO=y
>  CONFIG_SYS_MALLOC_F=y
> -CONFIG_SYS_MALLOC_F_LEN=0x400
>  CONFIG_DM=y
>  CONFIG_DM_THERMAL=y
> diff --git a/configs/mx6qsabresd_defconfig b/configs/mx6qsabresd_defconfig
> index 112918b..cad4281 100644
> --- a/configs/mx6qsabresd_defconfig
> +++ b/configs/mx6qsabresd_defconfig
> @@ -2,6 +2,5 @@ CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx6sabresd/mx6q_4x_mt41j128
>  CONFIG_ARM=y
>  CONFIG_TARGET_MX6SABRESD=y
>  CONFIG_SYS_MALLOC_F=y
> -CONFIG_SYS_MALLOC_F_LEN=0x400
>  CONFIG_DM=y
>  CONFIG_DM_THERMAL=y
> diff --git a/configs/mx6sxsabresd_defconfig b/configs/mx6sxsabresd_defconfig
> index cc82322..12a9bdc 100644
> --- a/configs/mx6sxsabresd_defconfig
> +++ b/configs/mx6sxsabresd_defconfig
> @@ -2,6 +2,5 @@ CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx6sxsabresd/imximage.cfg,M
>  CONFIG_ARM=y
>  CONFIG_TARGET_MX6SXSABRESD=y
>  CONFIG_SYS_MALLOC_F=y
> -CONFIG_SYS_MALLOC_F_LEN=0x400
>  CONFIG_DM=y
>  CONFIG_DM_THERMAL=y
> diff --git a/configs/nokia_rx51_defconfig b/configs/nokia_rx51_defconfig
> index 1bb7664..48a1b29 100644
> --- a/configs/nokia_rx51_defconfig
> +++ b/configs/nokia_rx51_defconfig
> @@ -5,4 +5,3 @@ CONFIG_DM=n
>  CONFIG_DM_SERIAL=n
>  CONFIG_DM_GPIO=n
>  CONFIG_SYS_MALLOC_F=y
> -CONFIG_SYS_MALLOC_F_LEN=0x400
> diff --git a/configs/pcm051_rev1_defconfig b/configs/pcm051_rev1_defconfig
> index f417aac..a8b10d4 100644
> --- a/configs/pcm051_rev1_defconfig
> +++ b/configs/pcm051_rev1_defconfig
> @@ -3,4 +3,3 @@ CONFIG_SYS_EXTRA_OPTIONS="REV1"
>  CONFIG_ARM=y
>  CONFIG_TARGET_PCM051=y
>  CONFIG_SYS_MALLOC_F=y
> -CONFIG_SYS_MALLOC_F_LEN=0x400
> diff --git a/configs/pcm051_rev3_defconfig b/configs/pcm051_rev3_defconfig
> index cc6f3f5..ef307d9 100644
> --- a/configs/pcm051_rev3_defconfig
> +++ b/configs/pcm051_rev3_defconfig
> @@ -3,4 +3,3 @@ CONFIG_SYS_EXTRA_OPTIONS="REV3"
>  CONFIG_ARM=y
>  CONFIG_TARGET_PCM051=y
>  CONFIG_SYS_MALLOC_F=y
> -CONFIG_SYS_MALLOC_F_LEN=0x400
> diff --git a/configs/pengwyn_defconfig b/configs/pengwyn_defconfig
> index 9c6ddf4..86f8bbb 100644
> --- a/configs/pengwyn_defconfig
> +++ b/configs/pengwyn_defconfig
> @@ -2,4 +2,3 @@ CONFIG_SPL=y
>  CONFIG_ARM=y
>  CONFIG_TARGET_PENGWYN=y
>  CONFIG_SYS_MALLOC_F=y
> -CONFIG_SYS_MALLOC_F_LEN=0x400
> diff --git a/configs/pepper_defconfig b/configs/pepper_defconfig
> index e14b008..438d886 100644
> --- a/configs/pepper_defconfig
> +++ b/configs/pepper_defconfig
> @@ -2,4 +2,3 @@ CONFIG_SPL=y
>  CONFIG_ARM=y
>  CONFIG_TARGET_PEPPER=y
>  CONFIG_SYS_MALLOC_F=y
> -CONFIG_SYS_MALLOC_F_LEN=0x400
> diff --git a/configs/rpi_2_defconfig b/configs/rpi_2_defconfig
> index b539d4a..69723d5 100644
> --- a/configs/rpi_2_defconfig
> +++ b/configs/rpi_2_defconfig
> @@ -1,4 +1,3 @@
>  CONFIG_ARM=y
>  CONFIG_TARGET_RPI_2=y
>  CONFIG_SYS_MALLOC_F=y
> -CONFIG_SYS_MALLOC_F_LEN=0x400
> diff --git a/configs/rpi_defconfig b/configs/rpi_defconfig
> index 98d3199..1a5a8e2 100644
> --- a/configs/rpi_defconfig
> +++ b/configs/rpi_defconfig
> @@ -1,4 +1,3 @@
>  CONFIG_ARM=y
>  CONFIG_TARGET_RPI=y
>  CONFIG_SYS_MALLOC_F=y
> -CONFIG_SYS_MALLOC_F_LEN=0x400
> diff --git a/configs/s5p_goni_defconfig b/configs/s5p_goni_defconfig
> index 33e6fb8..5815667 100644
> --- a/configs/s5p_goni_defconfig
> +++ b/configs/s5p_goni_defconfig
> @@ -3,4 +3,3 @@ CONFIG_ARCH_S5PC1XX=y
>  CONFIG_TARGET_S5P_GONI=y
>  CONFIG_DEFAULT_DEVICE_TREE="s5pc1xx-goni"
>  CONFIG_SYS_MALLOC_F=y
> -CONFIG_SYS_MALLOC_F_LEN=0x400
> diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig
> index 70f5b86..a0e19ad 100644
> --- a/configs/sandbox_defconfig
> +++ b/configs/sandbox_defconfig
> @@ -6,7 +6,6 @@ CONFIG_FIT_SIGNATURE=y
>  CONFIG_DM=y
>  CONFIG_DEFAULT_DEVICE_TREE="sandbox"
>  CONFIG_SYS_MALLOC_F=y
> -CONFIG_SYS_MALLOC_F_LEN=0x400
>  CONFIG_CROS_EC=y
>  CONFIG_DM_CROS_EC=y
>  CONFIG_CROS_EC_SANDBOX=y
> diff --git a/configs/smdkc100_defconfig b/configs/smdkc100_defconfig
> index e933a32..585fea6 100644
> --- a/configs/smdkc100_defconfig
> +++ b/configs/smdkc100_defconfig
> @@ -3,4 +3,3 @@ CONFIG_TARGET_SMDKC100=y
>  CONFIG_ARCH_S5PC1XX=y
>  CONFIG_DEFAULT_DEVICE_TREE="s5pc1xx-smdkc100"
>  CONFIG_SYS_MALLOC_F=y
> -CONFIG_SYS_MALLOC_F_LEN=0x400
> diff --git a/configs/snapper9260_defconfig b/configs/snapper9260_defconfig
> index 3a47505..9a0d0ad 100644
> --- a/configs/snapper9260_defconfig
> +++ b/configs/snapper9260_defconfig
> @@ -6,4 +6,3 @@ CONFIG_DM=y
>  CONFIG_DM_GPIO=y
>  CONFIG_DM_SERIAL=y
>  CONFIG_SYS_MALLOC_F=y
> -CONFIG_SYS_MALLOC_F_LEN=0x400
> diff --git a/configs/snapper9g20_defconfig b/configs/snapper9g20_defconfig
> index 1f0244b..82f7a07 100644
> --- a/configs/snapper9g20_defconfig
> +++ b/configs/snapper9g20_defconfig
> @@ -6,4 +6,3 @@ CONFIG_DM=y
>  CONFIG_DM_GPIO=y
>  CONFIG_DM_SERIAL=y
>  CONFIG_SYS_MALLOC_F=y
> -CONFIG_SYS_MALLOC_F_LEN=0x400
> 



More information about the U-Boot mailing list