diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2022-07-24 21:27:24 +0000 |
---|---|---|
committer | Eric Joyner <erj@FreeBSD.org> | 2023-02-08 00:23:49 +0000 |
commit | 75b7e4f157e0ece9a028bb7c43ee9f5727a565a5 (patch) | |
tree | 93e2b425ce7cf40b45b491b63824a4bac388702c | |
parent | 42bad04a21560f3a82ac3bdbd656d69634512cfc (diff) | |
download | src-75b7e4f157e0ece9a028bb7c43ee9f5727a565a5.tar.gz src-75b7e4f157e0ece9a028bb7c43ee9f5727a565a5.zip |
Adjust irdma_prep_for_unregister() definition to avoid clang 15 warning
With clang 15, the following -Werror warning is produced:
sys/dev/irdma/icrdma.c:621:26: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
irdma_prep_for_unregister()
^
void
This is because irdma_prep_for_unregister() is declared with a (void)
argument list, but defined with an empty argument list. Make the
definition match the declaration.
(cherry picked from commit ee6c09ac73b5eab848c66e539f8b3293a5abd7f8)
-rw-r--r-- | sys/dev/irdma/icrdma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/irdma/icrdma.c b/sys/dev/irdma/icrdma.c index 1bc78dce90aa..c5a42eb863e6 100644 --- a/sys/dev/irdma/icrdma.c +++ b/sys/dev/irdma/icrdma.c @@ -618,7 +618,7 @@ irdma_remove(struct ice_rdma_peer *peer) * irdma_prep_for_unregister - ensure the driver is ready to unregister */ static void -irdma_prep_for_unregister() +irdma_prep_for_unregister(void) { struct irdma_handler *hdl; unsigned long flags; |