From d6a2b4b44ddaec54f78737ab1971ffe4d3c28117 Mon Sep 17 00:00:00 2001 From: Michael Meffie Date: Thu, 5 Dec 2024 14:56:24 -0500 Subject: [PATCH] rx: Add rxi_GetLocalAddr() prototype MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Commit 91378d93b9 (rx: Don't send packets to localhost if -rxbind set) added the rxi_GetLocalAddr() function, but missed the prototype. Add the function prototype to fix a GCC missing-prototype warning when building the linux kernel module. Fixes the build error when building the kernel module for Linux 6.8 or later when the tree was configured with --enable-checking: .../src/libafs/MODLOAD-6.8.0-49-generic-SP/rx.c:9693:1: error: no previous prototype for ‘rxi_GetLocalAddr’ [-Werror=missing-prototypes] 9693 | rxi_GetLocalAddr(struct sockaddr_in *sin) | ^~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors Change-Id: I43bd56fa28d258be509b1d1381e2f7d76ad5a532 Reviewed-on: https://gerrit.openafs.org/15978 Tested-by: BuildBot Reviewed-by: Andrew Deason Tested-by: Andrew Deason Reviewed-by: Cheyenne Wills Tested-by: Cheyenne Wills Reviewed-by: Michael Meffie --- src/rx/rx_internal.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rx/rx_internal.h b/src/rx/rx_internal.h index 63977b64b0..03d3fa4751 100644 --- a/src/rx/rx_internal.h +++ b/src/rx/rx_internal.h @@ -70,6 +70,7 @@ extern void rxi_WaitforTQBusy(struct rx_call *call); #else # define rxi_WaitforTQBusy(call) #endif +extern void rxi_GetLocalAddr(struct sockaddr_in *sin); /* rx_packet.h */