--- zzzz-none-000/linux-4.9.279/drivers/mtd/ubi/vmt.c 2021-08-08 06:38:54.000000000 +0000 +++ puma7-atom-6591-750/linux-4.9.279/drivers/mtd/ubi/vmt.c 2023-02-08 11:43:42.000000000 +0000 @@ -29,7 +29,11 @@ #include #include "ubi.h" +#ifdef CONFIG_MTD_UBI_DEBUG static int self_check_volumes(struct ubi_device *ubi); +#else +#define self_check_volumes(ubi) 0 +#endif static ssize_t vol_attribute_show(struct device *dev, struct device_attribute *attr, char *buf); @@ -796,6 +800,8 @@ return -EINVAL; } +#ifdef CONFIG_MTD_UBI_DEBUG + /** * self_check_volumes - check information about all volumes. * @ubi: UBI device description object @@ -817,3 +823,4 @@ return err; } +#endif