fs/cramfs/inode.c:698: undefined reference to `mount_mtd'

From: kbuild test robot
Date: Sat Dec 16 2017 - 19:39:12 EST


Hi Nicolas,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f3b5ad89de16f5d42e8ad36fbdf85f705c1ae051
commit: 99c18ce580c6cc6763e694b4ce320d7b226ab59b cramfs: direct memory access support
date: 9 weeks ago
config: i386-randconfig-x018-201751 (attached as .config)
compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025
reproduce:
git checkout 99c18ce580c6cc6763e694b4ce320d7b226ab59b
# save the attached .config to linux build tree
make ARCH=i386

All errors (new ones prefixed by >>):

fs/cramfs/inode.o: In function `cramfs_mount':
>> fs/cramfs/inode.c:698: undefined reference to `mount_mtd'
fs/cramfs/inode.o: In function `cramfs_mtd_fill_super':
>> fs/cramfs/inode.c:432: undefined reference to `mtd_point'
>> fs/cramfs/inode.c:449: undefined reference to `mtd_unpoint'
fs/cramfs/inode.c:450: undefined reference to `mtd_point'

vim +698 fs/cramfs/inode.c

691
692 static struct dentry *cramfs_mount(struct file_system_type *fs_type, int flags,
693 const char *dev_name, void *data)
694 {
695 struct dentry *ret = ERR_PTR(-ENOPROTOOPT);
696
697 if (IS_ENABLED(CONFIG_CRAMFS_MTD)) {
> 698 ret = mount_mtd(fs_type, flags, dev_name, data,
699 cramfs_mtd_fill_super);
700 if (!IS_ERR(ret))
701 return ret;
702 }
703 if (IS_ENABLED(CONFIG_CRAMFS_BLOCKDEV)) {
704 ret = mount_bdev(fs_type, flags, dev_name, data,
705 cramfs_blkdev_fill_super);
706 }
707 return ret;
708 }
709

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip