]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: fix sco_exit compile warning
authorAlexander Aring <alex.aring@gmail.com>
Sat, 7 Mar 2015 19:52:28 +0000 (20:52 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Sat, 7 Mar 2015 20:13:17 +0000 (22:13 +0200)
commitcc963eadab9fbfc9df3eef549842dae2c35991fb
tree29110d026e364085080ad11a9c53cbb6c6818474
parent00df3cb14d6147b2e4abf265c6b669b237967b2b
Bluetooth: fix sco_exit compile warning

While compiling the following warning occurs:

WARNING: net/built-in.o(.init.text+0x602c): Section mismatch in
reference from the function bt_init() to the function
.exit.text:sco_exit()
The function __init bt_init() references
a function __exit sco_exit().
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
sco_exit() so it may be used outside an exit section.

Since commit 0f3bf58865c8b64b04d957f8d48b75fe07a3f9f8 ("Bluetooth:
Convert mgmt to use HCI chan registration API") the function "sco_exit"
is used inside of function "bt_init". The suggested solution by remove
the __exit annotation solved this issue.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/sco.c