diff options
Diffstat (limited to 'drivers/mtd/ubi/ubi.h')
-rw-r--r-- | drivers/mtd/ubi/ubi.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h index bc13d14e02c4..3ea9480bd055 100644 --- a/drivers/mtd/ubi/ubi.h +++ b/drivers/mtd/ubi/ubi.h | |||
@@ -871,10 +871,14 @@ int ubi_compare_lebs(struct ubi_device *ubi, const struct ubi_ainf_peb *aeb, | |||
871 | int pnum, const struct ubi_vid_hdr *vid_hdr); | 871 | int pnum, const struct ubi_vid_hdr *vid_hdr); |
872 | 872 | ||
873 | /* fastmap.c */ | 873 | /* fastmap.c */ |
874 | #ifdef CONFIG_MTD_UBI_FASTMAP | ||
874 | size_t ubi_calc_fm_size(struct ubi_device *ubi); | 875 | size_t ubi_calc_fm_size(struct ubi_device *ubi); |
875 | int ubi_update_fastmap(struct ubi_device *ubi); | 876 | int ubi_update_fastmap(struct ubi_device *ubi); |
876 | int ubi_scan_fastmap(struct ubi_device *ubi, struct ubi_attach_info *ai, | 877 | int ubi_scan_fastmap(struct ubi_device *ubi, struct ubi_attach_info *ai, |
877 | int fm_anchor); | 878 | int fm_anchor); |
879 | #else | ||
880 | static inline int ubi_update_fastmap(struct ubi_device *ubi) { return 0; } | ||
881 | #endif | ||
878 | 882 | ||
879 | /* block.c */ | 883 | /* block.c */ |
880 | #ifdef CONFIG_MTD_UBI_BLOCK | 884 | #ifdef CONFIG_MTD_UBI_BLOCK |