[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <54845E96.1020900@codeaurora.org>
Date: Sun, 07 Dec 2014 16:05:10 +0200
From: Tanya Brokhman <tlinder@...eaurora.org>
To: Richard Weinberger <richard@....at>, dedekind1@...il.com
CC: linux-mtd@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 4/6] UBI: Fastmap: Wrap fastmap specific function in a
ifdef
On 11/30/2014 1:35 PM, Richard Weinberger wrote:
> ...such that we can implement NOP variants of some functions.
> This will help to reduce fastmap specific ifdefs in other c files.
>
> Signed-off-by: Richard Weinberger <richard@....at>
Reviewed-by: Tanya Brokhman <tlinder@...eaurora.org>
> ---
> drivers/mtd/ubi/ubi.h | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h
> index d672412..6fadf34 100644
> --- a/drivers/mtd/ubi/ubi.h
> +++ b/drivers/mtd/ubi/ubi.h
> @@ -864,10 +864,14 @@ int ubi_compare_lebs(struct ubi_device *ubi, const struct ubi_ainf_peb *aeb,
> int pnum, const struct ubi_vid_hdr *vid_hdr);
>
> /* fastmap.c */
> +#ifdef CONFIG_MTD_UBI_FASTMAP
> size_t ubi_calc_fm_size(struct ubi_device *ubi);
> int ubi_update_fastmap(struct ubi_device *ubi);
> int ubi_scan_fastmap(struct ubi_device *ubi, struct ubi_attach_info *ai,
> int fm_anchor);
> +#else
> +static inline int ubi_update_fastmap(struct ubi_device *ubi) { return 0; }
> +#endif
>
> /* block.c */
> #ifdef CONFIG_MTD_UBI_BLOCK
>
Thanks,
Tanya Brokhman
--
Qualcomm Israel, on behalf of Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists