Commit d247667
RDMA/mlx5: Fix compilation warning when USER_ACCESS isn't set
The cited commit made fs.c always compile, even when
INFINIBAND_USER_ACCESS isn't set. This results in a compilation
warning about an unused object when compiling with W=1 and
USER_ACCESS is unset.
Fix this by defining uverbs_destroy_def_handler() even when
USER_ACCESS isn't set.
Fixes: 36e0d43 ("RDMA/mlx5: Compile fs.c regardless of INFINIBAND_USER_ACCESS config")
Link: https://patch.msgid.link/r/[email protected]
Signed-off-by: Mark Bloch <[email protected]>
Tested-by: Arnd Bergmann <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>1 parent 95ba385 commit d247667
2 files changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3461 | 3461 | | |
3462 | 3462 | | |
3463 | 3463 | | |
3464 | | - | |
3465 | 3464 | | |
3466 | 3465 | | |
3467 | 3466 | | |
| |||
3472 | 3471 | | |
3473 | 3472 | | |
3474 | 3473 | | |
3475 | | - | |
3476 | 3474 | | |
3477 | 3475 | | |
3478 | 3476 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4790 | 4790 | | |
4791 | 4791 | | |
4792 | 4792 | | |
| 4793 | + | |
4793 | 4794 | | |
| 4795 | + | |
| 4796 | + | |
| 4797 | + | |
| 4798 | + | |
| 4799 | + | |
| 4800 | + | |
4794 | 4801 | | |
4795 | 4802 | | |
4796 | 4803 | | |
| |||
0 commit comments