Skip to content

Commit 706a4e5

Browse files
arndbaxboe
authored andcommitted
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 <[email protected]> Fixes: b4caecd ("fs: introduce f_op->mmap_capabilities for nommu mmap support") Acked-by: Christoph Hellwig <[email protected]> Acked-by: Brian Norris <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent b520252 commit 706a4e5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/mtd/mtdcore.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ unsigned mtd_mmap_capabilities(struct mtd_info *mtd)
353353
return NOMMU_MAP_COPY;
354354
}
355355
}
356+
EXPORT_SYMBOL_GPL(mtd_mmap_capabilities);
356357
#endif
357358

358359
/**

0 commit comments

Comments
 (0)