]> git.baikalelectronics.ru Git - kernel.git/commit
Ib/core: Mark local uverbs_std_types functions to be static
authorLeon Romanovsky <leon@kernel.org>
Sat, 22 Apr 2017 14:28:49 +0000 (17:28 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 28 Apr 2017 17:11:43 +0000 (13:11 -0400)
commitd72d10b04f8bc589933d828f6cd47023e1491709
treedf797923bf76cc653a885749d00b97e09a9013bf
parent41ca71c60734bd6a2015dc5e4ab0520d4a7c7a7e
Ib/core: Mark local uverbs_std_types functions to be static

Functions declared in uverbs_std_types.c are local to that file, but
they lack static declarations. This produces a lot of sparse warnings,
like the one below:

drivers/infiniband/core/uverbs_std_types.c:41:5: warning: symbol
'uverbs_free_ah' was not declared.
Should it be static?

So mark them as static.

CC: Matan Barak <matanb@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/uverbs_std_types.c