Skip to contentSkip to conversation

mtd: export new mtd_mmap_capabilities

PATCH Applied Arnd Bergmann 4 participants 4 messages Jan 28, 2015 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

Fixes b4caecd48005f ("fs: introduce f_op->mmap_capabilities for nommu mmap support")
drivers/mtd/mtdcore.c +1 -0
index 1eef3b032f08..de7957681680 100644
@@ -365,6 +365,7 @@ unsigned mtd_mmap_capabilities(struct mtd_info *mtd)
 		return NOMMU_MAP_COPY;
 	}
 }
+EXPORT_SYMBOL_GPL(mtd_mmap_capabilities);
 #endif
 
 /**
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Arnd Bergmann

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.

Fixes b4caecd48005f ("fs: introduce f_op->mmap_capabilities for nommu mmap support")

Thanks, this looks fine to me:

Acked-by on v1 1/1
#2 lore raw
In reply to Arnd Bergmann
Quoted 9 lines · Arnd Bergmann

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.

Fixes b4caecd48005f ("fs: introduce f_op->mmap_capabilities for nommu mmap support")

This should go through the block tree in which the target commit is queued.

Brian

Applied
#3 lore raw
Quoted 8 lines · Brian Norris
Quoted 7 lines · Arnd Bergmann

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.

Quoted 7 lines
Quoted 2 lines
Fixes b4caecd48005f ("fs: introduce f_op->mmap_capabilities for nommu mmap support")

This should go through the block tree in which the target commit is queued.

Applied to for-3.20/bdi, thanks Arnd.

Signature · 1 line
Jens Axboe