Skip to contentSkip to conversation

2.6.13-rc6-git3 undefined reference on _mntput

DISCUSSION Hetfield 2 participants 3 messages Aug 11, 2005

lore
Share & tools
lore

Hetfield

author
#0 lore raw

grep _mntput *
namei.c: _mntput(nd->mnt);
namespace.c:void __mntput(struct vfsmount *mnt)
namespace.c:EXPORT_SYMBOL(__mntput);

CC fs/namei.o
fs/namei.c: In function `path_release_on_umount':
fs/namei.c:317: warning: implicit declaration of function `_mntput'

....

LD .tmp_vmlinux1
fs/built-in.o: In function `path_release_on_umount':
: undefined reference to `_mntput'
make: *** [.tmp_vmlinux1] Error 1

seems an underscore is missing.

#1 lore raw

Hetfield napsal(a):

Quoted 13 lines

grep _mntput *
namei.c: _mntput(nd->mnt);
namespace.c:void __mntput(struct vfsmount *mnt)
namespace.c:EXPORT_SYMBOL(__mntput);

CC fs/namei.o
fs/namei.c: In function `path_release_on_umount':
fs/namei.c:317: warning: implicit declaration of function `_mntput'

....

Quoted 7 lines

LD .tmp_vmlinux1
fs/built-in.o: In function `path_release_on_umount':
: undefined reference to `_mntput'
make: *** [.tmp_vmlinux1] Error 1

seems an underscore is missing.

It seems, that there is one extra.

#2 lore raw
In reply to Hetfield

Hetfield napsal(a):

Quoted 9 lines

grep _mntput *
namei.c: _mntput(nd->mnt);
namespace.c:void __mntput(struct vfsmount *mnt)
namespace.c:EXPORT_SYMBOL(__mntput);

CC fs/namei.o
fs/namei.c: In function `path_release_on_umount':
fs/namei.c:317: warning: implicit declaration of function `_mntput'

In 2.6.13-rc6-git3 there is nothing like that (nor on that line) and compiles for me. Maybe you mispatched it, because in namei.c in that git there is mntput_no_expire(nd->mnt);, not _mntput.

regards,

Signature · 3 lines
Jiri Slaby         www.fi.muni.cz/~xslaby
~\-/~      [email protected]      ~\-/~
241B347EC88228DE51EE A49C4A73A25004CB2A10