]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
IB/mlx5: Declare devx_async_cmd_event_fops static
authorBart Van Assche <bvanassche@acm.org>
Wed, 27 Mar 2019 23:50:48 +0000 (16:50 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 28 Mar 2019 13:22:48 +0000 (10:22 -0300)
Avoid that sparse complains about a missing declaration.

Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Fixes: 6bf8f22aea0d ("IB/mlx5: Introduce MLX5_IB_OBJECT_DEVX_ASYNC_CMD_FD")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/devx.c

index 9e08df7914aa2e142c8926a1230516f5c214d326..fa8d2a9229fac9c3ac455250c874f4cebcdbb345 100644 (file)
@@ -1704,7 +1704,7 @@ static __poll_t devx_async_cmd_event_poll(struct file *filp,
        return pollflags;
 }
 
-const struct file_operations devx_async_cmd_event_fops = {
+static const struct file_operations devx_async_cmd_event_fops = {
        .owner   = THIS_MODULE,
        .read    = devx_async_cmd_event_read,
        .poll    = devx_async_cmd_event_poll,