--- zzzz-none-000/linux-5.15.111/drivers/mtd/ubi/vmt.c 2023-05-11 14:00:40.000000000 +0000 +++ puma7-atom-6670-761/linux-5.15.111/drivers/mtd/ubi/vmt.c 2024-02-07 10:23:08.000000000 +0000 @@ -16,7 +16,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); @@ -774,6 +778,8 @@ return -EINVAL; } +#ifdef CONFIG_MTD_UBI_DEBUG + /** * self_check_volumes - check information about all volumes. * @ubi: UBI device description object @@ -795,3 +801,4 @@ return err; } +#endif