diff options
author | Bart Van Assche <bvanassche@acm.org> | 2019-03-27 16:50:48 -0700 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-03-28 10:22:48 -0300 |
commit | 1f687edee2aed32586b4f5959b26da401026b6b3 (patch) | |
tree | 81aa56932e46ea06f2657f3c7c3c792c49cc6eec /drivers/infiniband/hw/mlx5/devx.c | |
parent | RDMA/uverbs: Allow the compiler to verify declaration and definition consistency (diff) | |
download | linux-dev-1f687edee2aed32586b4f5959b26da401026b6b3.tar.xz linux-dev-1f687edee2aed32586b4f5959b26da401026b6b3.zip |
IB/mlx5: Declare devx_async_cmd_event_fops static
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>
Diffstat (limited to '')
-rw-r--r-- | drivers/infiniband/hw/mlx5/devx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx5/devx.c b/drivers/infiniband/hw/mlx5/devx.c index 9e08df7914aa..fa8d2a9229fa 100644 --- a/drivers/infiniband/hw/mlx5/devx.c +++ b/drivers/infiniband/hw/mlx5/devx.c @@ -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, |