mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
staging: fsl-mc: section mismatch bug fix
WARNING: drivers/staging/built-in.o(.init.text+0xdc): Section mismatch in reference from the function fsl_mc_bus_driver_init() to the function .exit.text:dprc_driver_exit() The function __init fsl_mc_bus_driver_init() references a function __exit dprc_driver_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 dprc_driver_exit() so it may be used outside an exit section. Signed-off-by: Lijun Pan <Lijun.Pan@freescale.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a15b2225dd
commit
3c7b67f906
@ -482,7 +482,7 @@ int __init dprc_driver_init(void)
|
||||
return fsl_mc_driver_register(&dprc_driver);
|
||||
}
|
||||
|
||||
void __exit dprc_driver_exit(void)
|
||||
void dprc_driver_exit(void)
|
||||
{
|
||||
fsl_mc_driver_unregister(&dprc_driver);
|
||||
}
|
||||
|
@ -103,7 +103,7 @@ int dprc_scan_objects(struct fsl_mc_device *mc_bus_dev);
|
||||
|
||||
int __init dprc_driver_init(void);
|
||||
|
||||
void __exit dprc_driver_exit(void);
|
||||
void dprc_driver_exit(void);
|
||||
|
||||
int __init fsl_mc_allocator_driver_init(void);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user