--- zzzz-none-000/linux-5.15.111/drivers/mtd/ubi/vmt.c 2023-05-11 14:00:40.000000000 +0000 +++ puma7-arm-6670-761/linux-5.15.111/drivers/mtd/ubi/vmt.c 2024-02-07 09:27:49.000000000 +0000 @@ -6,6 +6,11 @@ */ /* + * Includes Intel Corporation's changes/modifications dated: 2017. + * Changed/modified portions - Copyright (c) 2017, Intel Corporation. + */ + +/* * This file contains implementation of volume creation, deletion, updating and * resizing. */ @@ -16,7 +21,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 +783,8 @@ return -EINVAL; } +#ifdef CONFIG_MTD_UBI_DEBUG + /** * self_check_volumes - check information about all volumes. * @ubi: UBI device description object @@ -795,3 +806,4 @@ return err; } +#endif