generic: silence NAND UBI block warnings

This commit is contained in:
coolsnowwolf 2025-05-02 18:04:06 +08:00
parent 99d0ef6e99
commit e8969a8faf
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,13 @@
--- a/drivers/mtd/mtdblock.c
+++ b/drivers/mtd/mtdblock.c
@@ -261,10 +261,6 @@ static int mtdblock_open(struct mtd_blkt
return 0;
}
- if (mtd_type_is_nand(mbd->mtd))
- pr_warn_ratelimited("%s: MTD device '%s' is NAND, please consider using UBI block devices instead.\n",
- mbd->tr->name, mbd->mtd->name);
-
/* OK, it's not open. Create cache info for it */
mtdblk->count = 1;
mutex_init(&mtdblk->cache_mutex);

View File

@ -0,0 +1,13 @@
--- a/drivers/mtd/mtdblock.c
+++ b/drivers/mtd/mtdblock.c
@@ -261,10 +261,6 @@ static int mtdblock_open(struct mtd_blkt
return 0;
}
- if (mtd_type_is_nand(mbd->mtd))
- pr_warn_ratelimited("%s: MTD device '%s' is NAND, please consider using UBI block devices instead.\n",
- mbd->tr->name, mbd->mtd->name);
-
/* OK, it's not open. Create cache info for it */
mtdblk->count = 1;
mutex_init(&mtdblk->cache_mutex);