--- zzzz-none-000/linux-5.15.111/drivers/mtd/ubi/debug.c 2023-05-11 14:00:40.000000000 +0000 +++ puma7-arm-6670-761/linux-5.15.111/drivers/mtd/ubi/debug.c 2024-02-07 09:27:49.000000000 +0000 @@ -5,6 +5,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 @@ -88,6 +93,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 @@ -571,6 +577,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