Message ID | 20200520091036.247286-1-chentao107@huawei.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | 1f93ad177d24e23480194a1ea34e3c5d8a47ef92 |
Headers | show |
Series | [-next] scsi: ibmvscsi: Make some functions static | expand |
On Wed, 20 May 2020 17:10:36 +0800, Chen Tao wrote: > Fix the following warning: > > drivers/scsi/ibmvscsi/ibmvscsi.c:2387:12: warning: symbol > 'ibmvscsi_module_init' was not declared. Should it be static? > drivers/scsi/ibmvscsi/ibmvscsi.c:2409:13: warning: symbol > 'ibmvscsi_module_exit' was not declared. Should it be static? Applied to 5.8/scsi-queue, thanks! [1/1] scsi: ibmvscsi: Make some functions static https://git.kernel.org/mkp/scsi/c/1f93ad177d24
diff --git a/drivers/scsi/ibmvscsi/ibmvscsi.c b/drivers/scsi/ibmvscsi/ibmvscsi.c index 59f0f1030c54..44e64aa21194 100644 --- a/drivers/scsi/ibmvscsi/ibmvscsi.c +++ b/drivers/scsi/ibmvscsi/ibmvscsi.c @@ -2384,7 +2384,7 @@ static struct vio_driver ibmvscsi_driver = { static struct srp_function_template ibmvscsi_transport_functions = { }; -int __init ibmvscsi_module_init(void) +static int __init ibmvscsi_module_init(void) { int ret; @@ -2406,7 +2406,7 @@ int __init ibmvscsi_module_init(void) return ret; } -void __exit ibmvscsi_module_exit(void) +static void __exit ibmvscsi_module_exit(void) { vio_unregister_driver(&ibmvscsi_driver); srp_release_transport(ibmvscsi_transport_template);
Fix the following warning: drivers/scsi/ibmvscsi/ibmvscsi.c:2387:12: warning: symbol 'ibmvscsi_module_init' was not declared. Should it be static? drivers/scsi/ibmvscsi/ibmvscsi.c:2409:13: warning: symbol 'ibmvscsi_module_exit' was not declared. Should it be static? Signed-off-by: Chen Tao <chentao107@huawei.com> --- drivers/scsi/ibmvscsi/ibmvscsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)