--- zzzz-none-000/linux-4.9.279/drivers/mtd/ubi/vmt.c 2021-08-08 06:38:54.000000000 +0000 +++ puma7-arm-6591-750/linux-4.9.279/drivers/mtd/ubi/vmt.c 2023-02-08 10:58:13.000000000 +0000 @@ -19,6 +19,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. */ @@ -29,7 +34,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 +805,8 @@ return -EINVAL; } +#ifdef CONFIG_MTD_UBI_DEBUG + /** * self_check_volumes - check information about all volumes. * @ubi: UBI device description object @@ -817,3 +828,4 @@ return err; } +#endif