--- zzzz-none-000/linux-4.9.279/drivers/mtd/ubi/vtbl.c 2021-08-08 06:38:54.000000000 +0000 +++ puma7-arm-6591-750/linux-4.9.279/drivers/mtd/ubi/vtbl.c 2023-02-08 10:58:13.000000000 +0000 @@ -20,6 +20,11 @@ */ /* + * Includes Intel Corporation's changes/modifications dated: 2017. + * Changed/modified portions - Copyright (c) 2017, Intel Corporation. + */ + +/* * This file includes volume table manipulation code. The volume table is an * on-flash table containing volume meta-data like name, number of reserved * physical eraseblocks, type, etc. The volume table is stored in the so-called @@ -64,7 +69,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 +865,8 @@ return err; } +#ifdef CONFIG_MTD_UBI_DEBUG + /** * self_vtbl_check - check volume table. * @ubi: UBI device description object @@ -869,3 +881,5 @@ BUG(); } } + +#endif