aboutsummaryrefslogtreecommitdiffstats
path: root/module/os/linux
diff options
context:
space:
mode:
authorRob N <[email protected]>2024-04-04 09:13:27 +1100
committerGitHub <[email protected]>2024-04-03 15:13:27 -0700
commita9a4290173dfdfd25aabd623bc3ccd994126794a (patch)
tree2c2e14962b1e77479406bc7438324c26bfc1db2f /module/os/linux
parentb12738182cff269456e7737241415356c08b5d2e (diff)
xdr: header cleanup
#16047 notes that include/os/freebsd/spl/rpc/xdr.h carried an (apparently) incompatible license. While looking into it, it seems that this file is actually unnecessary these days - FreeBSD's kernel XDR has XDR_CONTROL, xdrmem_control and XDR_GET_BYTES_AVAIL, while userspace has XDR_CONTROL and xdrmem_control, and our implementation of XDR_GET_BYTES_AVAIL for libspl works nicely with it. So this removes that file outright. To keep the includes in nvpair.c tidy, I've made a few small adjustments to the Linux headers. By definition, rpc/types.h provides bool_t and is included before rpc/xdr.h, so I've created rpc/types.h for Linux. This isn't necessary for userspace; both FreeBSD native and tirpc on Linux already have these headers set up correctly. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Rob Norris <[email protected]> Sponsored-by: https://despairlabs.com/sponsor/ Closes #16047 Closes #16051
Diffstat (limited to 'module/os/linux')
-rw-r--r--module/os/linux/spl/spl-xdr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/module/os/linux/spl/spl-xdr.c b/module/os/linux/spl/spl-xdr.c
index 6b7752418..e1773da5d 100644
--- a/module/os/linux/spl/spl-xdr.c
+++ b/module/os/linux/spl/spl-xdr.c
@@ -25,6 +25,7 @@
#include <sys/debug.h>
#include <sys/types.h>
#include <sys/sysmacros.h>
+#include <rpc/types.h>
#include <rpc/xdr.h>
/*