]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Ib/usnic: Explicitly include usnic headers
authorLeon Romanovsky <leon@kernel.org>
Sat, 22 Apr 2017 14:28:50 +0000 (17:28 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 28 Apr 2017 17:11:43 +0000 (13:11 -0400)
commitf5029e752b0d8e4de81f9dfb7752c04ae1eecc69
treef3299660f60c127f3248fa2c4e52fbf162c907c8
parent218271adca2a3033d6ac9e3a71dcf81d5543afc6
Ib/usnic: Explicitly include usnic headers

Sparse tool complains about undeclared symbols in usnic_ib_verbs.c
and usnic_ib_sysfs.c This is caused by lack of direct include of
appropriate usnic_ib_verbs.h and usnic_ib_sysfs.h, where all
these functions were declared.

Simple include eliminates 30 warnings similar to the below one:

drivers/infiniband/hw/usnic/usnic_ib_sysfs.c:304:6: warning: symbol
'usnic_ib_sysfs_unregister_usdev' was
not declared. Should it be static?

CC: Christian Benvenuti <benve@cisco.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/usnic/usnic_ib_sysfs.c
drivers/infiniband/hw/usnic/usnic_ib_verbs.c