--- zzzz-none-000/linux-4.9.279/drivers/mtd/ubi/debug.c 2021-08-08 06:38:54.000000000 +0000 +++ puma7-arm-6591-750/linux-4.9.279/drivers/mtd/ubi/debug.c 2023-02-08 10:58:13.000000000 +0000 @@ -18,6 +18,11 @@ * Author: Artem Bityutskiy (Битюцкий Артём) */ +/* + * Includes Intel Corporation's changes/modifications dated: 2017. + * Changed/modified portions - Copyright (c) 2017, Intel Corporation. + */ + #include "ubi.h" #include #include @@ -100,6 +105,7 @@ vid_hdr, UBI_VID_HDR_SIZE, 1); } +#ifdef CONFIG_MTD_UBI_DEBUG /** * ubi_dump_vol_info - dump volume information. * @vol: UBI volume description object @@ -512,6 +518,8 @@ debugfs_remove_recursive(ubi->dbg.dfs_dir); } +#endif /* CONFIG_MTD_UBI_DEBUG */ + /** * ubi_dbg_power_cut - emulate a power cut if it is time to do so * @ubi: UBI device description object