--- zzzz-none-000/linux-4.9.279/drivers/mtd/ubi/vtbl.c 2021-08-08 06:38:54.000000000 +0000 +++ puma7-atom-6591-750/linux-4.9.279/drivers/mtd/ubi/vtbl.c 2023-02-08 11:43:42.000000000 +0000 @@ -64,7 +64,12 @@ #include #include "ubi.h" +#ifdef CONFIG_MTD_UBI_DEBUG static void self_vtbl_check(const struct ubi_device *ubi); +#else +#define self_vtbl_check(ubi) +#define ubi_dump_av(av) +#endif /* Empty volume table record */ static struct ubi_vtbl_record empty_vtbl_record; @@ -855,6 +860,8 @@ return err; } +#ifdef CONFIG_MTD_UBI_DEBUG + /** * self_vtbl_check - check volume table. * @ubi: UBI device description object @@ -869,3 +876,5 @@ BUG(); } } + +#endif