Skip to contentSkip to conversation

WARNING: fs/built-in.o(.init.text+0x309d): Section mismatch in referen

PATCH Bryan Schumaker 1 participant 1 message Jul 17, 2012 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Thanks for catching these! I was just looking over these patches again, so I'll fix this up while I'm at it.

- Bryan

Quoted 48 lines · Fengguang Wu

Hi Bryan,

There are new compile warnings show up in

tree:   git://git.linux-nfs.org/projects/trondmy/linux-nfs.git nfs-for-bryan
head:   98ff07b7c3bb45b3c5f9fde8231277d45500c2ba
commit: 129d1977ed39cbb4f091a518e4a12498c04f45ba [86/99] NFS: Create an init_nfs_v4() function
config: x86_64-allyesdebian (attached as .config)

All warnings:

WARNING: fs/built-in.o(.init.text+0x309d): Section mismatch in reference from the function init_nfs_fs() to the function .exit.text:exit_nfs_v4() The function __init init_nfs_fs() references
a function __exit exit_nfs_v4().
This is often seen when error handling in the init function
uses functionality in the exit path.
The fix is often to remove the __exit annotation of
exit_nfs_v4() so it may be used outside an exit section.

WARNING: fs/nfs/nfs.o(.init.text+0x17d): Section mismatch in reference from the function init_nfs_fs() to the function .exit.text:exit_nfs_v4() The function __init init_nfs_fs() references
a function __exit exit_nfs_v4().
This is often seen when error handling in the init function
uses functionality in the exit path.
The fix is often to remove the __exit annotation of
exit_nfs_v4() so it may be used outside an exit section.

WARNING: fs/nfs/built-in.o(.init.text+0x17d): Section mismatch in reference from the function init_nfs_fs() to the function .exit.text:exit_nfs_v4() The function __init init_nfs_fs() references
a function __exit exit_nfs_v4().
This is often seen when error handling in the init function
uses functionality in the exit path.
The fix is often to remove the __exit annotation of
exit_nfs_v4() so it may be used outside an exit section.

WARNING: vmlinux.o(.init.text+0x27f81): Section mismatch in reference from the function init_nfs_fs() to the function .exit.text:exit_nfs_v4() The function __init init_nfs_fs() references
a function __exit exit_nfs_v4().
This is often seen when error handling in the init function
uses functionality in the exit path.
The fix is often to remove the __exit annotation of
exit_nfs_v4() so it may be used outside an exit section.

---
0-DAY kernel build testing backend Open Source Technology Centre
Fengguang Wu <[email protected]> Intel Corporation