From: Arnd Bergmann Date: Wed, 28 Jan 2015 18:09:20 +0000 (-0700) Subject: mtd: export new mtd_mmap_capabilities X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=706a4e5a120aa40b31a22a4ad0cdd738d78a91a3;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git mtd: export new mtd_mmap_capabilities The recently added mtd_mmap_capabilities can be used from loadable modules, in particular romfs, but is not exported, so we get ERROR: "mtd_mmap_capabilities" [fs/romfs/romfs.ko] undefined! This adds the missing export. Signed-off-by: Arnd Bergmann Fixes: b4caecd48005f ("fs: introduce f_op->mmap_capabilities for nommu mmap support") Acked-by: Christoph Hellwig Acked-by: Brian Norris Signed-off-by: Jens Axboe --- diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c index ff38a1df22f7..0ec4d6ea1e4b 100644 --- a/drivers/mtd/mtdcore.c +++ b/drivers/mtd/mtdcore.c @@ -353,6 +353,7 @@ unsigned mtd_mmap_capabilities(struct mtd_info *mtd) return NOMMU_MAP_COPY; } } +EXPORT_SYMBOL_GPL(mtd_mmap_capabilities); #endif /**