]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: fix VFs callback function prototypes
authorArnd Bergmann <arnd@arndb.de>
Wed, 23 Mar 2016 10:37:45 +0000 (11:37 +0100)
committerDoug Ledford <dledford@redhat.com>
Wed, 6 Apr 2016 14:37:07 +0000 (10:37 -0400)
commitfa5a5da1b4d72c00bbee3ab1e145cb2885aa9494
tree1061dd4661b4a11a0d6b49be02324af3a15937b3
parent4358ad30b78a3e000ac991e7bd80536e53e71f4e
IB/mlx5: fix VFs callback function prototypes

The previous patch that added a couple of callback functions put
the declarations inside of an #ifdef CONFIG_INFINIBAND_ON_DEMAND_PAGING,
which causes the build to fail if that option is disabled:

drivers/infiniband/hw/mlx5/main.c: In function 'mlx5_ib_add':
drivers/infiniband/hw/mlx5/main.c:2358:31: error: 'mlx5_ib_get_vf_config' undeclared (first use in this function)

This moves the four declarations below the #ifdef section so they
are always available.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 10136584dc9a ("IB/mlx5: Implement callbacks for manipulating VFs")
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/mlx5_ib.h