]> git.sur5r.net Git - u-boot/commitdiff
Merge git://git.denx.de/u-boot-ubi
authorTom Rini <trini@konsulko.com>
Sun, 25 Mar 2018 16:02:13 +0000 (12:02 -0400)
committerTom Rini <trini@konsulko.com>
Sun, 25 Mar 2018 16:02:13 +0000 (12:02 -0400)
12 files changed:
README
configs/am335x_igep003x_defconfig
configs/igep0032_defconfig
configs/igep00x0_defconfig
drivers/mtd/ubi/Kconfig
env/Kconfig
fs/ubifs/Kconfig
fs/ubifs/super.c
fs/ubifs/ubifs.h
include/configs/am335x_igep003x.h
include/configs/omap3_igep00x0.h
scripts/config_whitelist.txt

diff --git a/README b/README
index 5fd6428c5cdc462d0f8d5b9c7c370b4e337a746a..ed79298fd4ea9f09911ac5bbc7860da870d9055a 100644 (file)
--- a/README
+++ b/README
@@ -2482,12 +2482,6 @@ FIT uImage format:
                kernel. Needed for UBI support.
 
 - UBI support
-               CONFIG_UBI_SILENCE_MSG
-
-               Make the verbose messages from UBI stop printing.  This leaves
-               warnings and errors enabled.
-
-
                CONFIG_MTD_UBI_WL_THRESHOLD
                This parameter defines the maximum difference between the highest
                erase counter value and the lowest erase counter value of eraseblocks
@@ -2549,12 +2543,6 @@ FIT uImage format:
                Enable UBI fastmap debug
                default: 0
 
-- UBIFS support
-               CONFIG_UBIFS_SILENCE_MSG
-
-               Make the verbose messages from UBIFS stop printing.  This leaves
-               warnings and errors enabled.
-
 - SPL framework
                CONFIG_SPL
                Enable building of SPL globally.
index d2026da7b34f3dcbb210a43a634f95fa6142ffaa..be4f1122861eab41a4459ca48fc07e071df09e7e 100644 (file)
@@ -37,8 +37,10 @@ CONFIG_CMD_EXT4_WRITE=y
 CONFIG_MTDIDS_DEFAULT="nand0=omap2-nand.0"
 CONFIG_MTDPARTS_DEFAULT="mtdparts=omap2-nand.0:512k(SPL),-(UBI)"
 CONFIG_CMD_UBI=y
+CONFIG_UBI_SILENCE_MSG=y
 # CONFIG_CMD_UBIFS is not set
 CONFIG_ENV_IS_IN_UBI=y
+CONFIG_UBIFS_SILENCE_MSG=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_NAND=y
 CONFIG_MTD_UBI_FASTMAP=y
index 0a3dff77968e5d151267511487f2dcba5559f981..7683e7412bdf7be200fb01f0cc088daa9243ba59 100644 (file)
@@ -27,7 +27,9 @@ CONFIG_CMD_SPI=y
 CONFIG_CMD_CACHE=y
 CONFIG_CMD_EXT4_WRITE=y
 CONFIG_CMD_UBI=y
+CONFIG_UBI_SILENCE_MSG=y
 # CONFIG_CMD_UBIFS is not set
+CONFIG_UBIFS_SILENCE_MSG=y
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_NAND=y
index 872766939ae6a2261f31b56c805335bd7f29cbcb..fef1331c0a4cfbffb0d2ba72d43728d86528a33c 100644 (file)
@@ -27,7 +27,9 @@ CONFIG_CMD_SPI=y
 CONFIG_CMD_CACHE=y
 CONFIG_CMD_EXT4_WRITE=y
 CONFIG_CMD_UBI=y
+CONFIG_UBI_SILENCE_MSG=y
 # CONFIG_CMD_UBIFS is not set
+CONFIG_UBIFS_SILENCE_MSG=y
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_NAND=y
index caa5197df5062b83fea37f8d77ad1015621ff627..cf847833562da1034b906fa78763a9f262acc3f8 100644 (file)
@@ -1,5 +1,12 @@
 menu "UBI support"
 
+config CONFIG_UBI_SILENCE_MSG
+       bool "UBI silence verbose messages"
+       default ENV_IS_IN_UBI
+       help
+         Make the verbose messages from UBI stop printing. This leaves
+         warnings and errors enabled.
+
 config MTD_UBI
        bool "Enable UBI - Unsorted block images"
        select CRC32
index a3c6298273ed8709e51e1d2b97cbac37484a8520..35548721bdd6b49cb116700505bd2b38049bf48b 100644 (file)
@@ -360,12 +360,6 @@ config ENV_IS_IN_UBI
          the environment in.  This will enable redundant environments in UBI.
          It is assumed that both volumes are in the same MTD partition.
 
-         - CONFIG_UBI_SILENCE_MSG
-         - CONFIG_UBIFS_SILENCE_MSG
-
-         You will probably want to define these to avoid a really noisy system
-         when storing the env in UBI.
-
 config ENV_FAT_INTERFACE
        string "Name of the block device for the environment"
        depends on ENV_IS_IN_FAT
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..9da35b8a3794a44f6f57fc7301cc230330ebb82d 100644 (file)
@@ -0,0 +1,6 @@
+config UBIFS_SILENCE_MSG
+       bool "UBIFS silence verbose messages"
+       default ENV_IS_IN_UBI
+       help
+         Make the verbose messages from UBIFS stop printing. This leaves
+         warnings and errors enabled.
index effa8d933fe9d0db7d7b91085e39e826f3b4f804..2c478cba963914af65c8c9c6c9d5f49fcaf47c15 100644 (file)
@@ -1334,7 +1334,10 @@ static int check_free_space(struct ubifs_info *c)
 static int mount_ubifs(struct ubifs_info *c)
 {
        int err;
-       long long x, y;
+       long long x;
+#ifndef CONFIG_UBIFS_SILENCE_MSG
+       long long y;
+#endif
        size_t sz;
 
        c->ro_mount = !!(c->vfs_sb->s_flags & MS_RDONLY);
@@ -1613,7 +1616,9 @@ static int mount_ubifs(struct ubifs_info *c)
                  c->vi.ubi_num, c->vi.vol_id, c->vi.name,
                  c->ro_mount ? ", R/O mode" : "");
        x = (long long)c->main_lebs * c->leb_size;
+#ifndef CONFIG_UBIFS_SILENCE_MSG
        y = (long long)c->log_lebs * c->leb_size + c->max_bud_bytes;
+#endif
        ubifs_msg(c, "LEB size: %d bytes (%d KiB), min./max. I/O unit sizes: %d bytes/%d bytes",
                  c->leb_size, c->leb_size >> 10, c->min_io_size,
                  c->max_write_size);
index 1d894652059acf80a793fb02259e5bdf7ce7b709..b4ce706a8e6af65bc48c23dadb4d688480576094 100644 (file)
@@ -618,9 +618,13 @@ static inline ino_t parent_ino(struct dentry *dentry)
 #define UBIFS_VERSION 1
 
 /* Normal UBIFS messages */
+#ifdef CONFIG_UBIFS_SILENCE_MSG
+#define ubifs_msg(c, fmt, ...)
+#else
 #define ubifs_msg(c, fmt, ...)                                      \
        pr_notice("UBIFS (ubi%d:%d): " fmt "\n",                    \
                  (c)->vi.ubi_num, (c)->vi.vol_id, ##__VA_ARGS__)
+#endif
 /* UBIFS error messages */
 #ifndef __UBOOT__
 #define ubifs_err(c, fmt, ...)                                      \
index 50fd46a589e0ddfa28f3cbd3e7361947ffceaa9f..fe3f838598fdb562d6d788e02f42c23afa2fd0dc 100644 (file)
 
 #define CONFIG_ENV_SIZE                        (96 << 10)      /*  96 KiB */
 
-/* Make the verbose messages from UBI stop printing */
-#define CONFIG_UBI_SILENCE_MSG
-#define CONFIG_UBIFS_SILENCE_MSG
-
 #define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
 
 #ifndef CONFIG_SPL_BUILD
index 76d8e13d52c107d1d5bc79bb062d4d241d894627..e2a7f63e4fa2b9dc160f2c11833b85d106bcf85e 100644 (file)
 #define CONFIG_ENV_UBI_PART            "UBI"
 #define CONFIG_ENV_UBI_VOLUME          "config"
 #define CONFIG_ENV_UBI_VOLUME_REDUND   "config_r"
-#define CONFIG_UBI_SILENCE_MSG         1
-#define CONFIG_UBIFS_SILENCE_MSG       1
 #define CONFIG_ENV_SIZE                        (32*1024)
 
 #endif /* __IGEP00X0_H */
index d6fd15061422a917d628550efe201940ce39ec95..0c7db05274f6ae2b4d7d9aedf5f4e3207ebdacc9 100644 (file)
@@ -4627,10 +4627,8 @@ CONFIG_T_SH7706LSR
 CONFIG_UART_BR_PRELIM
 CONFIG_UART_OR_PRELIM
 CONFIG_UBIBLOCK
-CONFIG_UBIFS_SILENCE_MSG
 CONFIG_UBIFS_VOLUME
 CONFIG_UBI_PART
-CONFIG_UBI_SILENCE_MSG
 CONFIG_UBI_SIZE
 CONFIG_UBOOT1_ENV_ADDR
 CONFIG_UBOOT2_ENV_ADDR