From: Simon Wilkinson Date: Wed, 20 Jan 2010 13:13:58 +0000 (+0000) Subject: Fix so that UKERNEL can keep using system xdr X-Git-Tag: openafs-devel-1_5_70~20 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=04e6ddb60bf3ce4ddfe7a5d6e4950fb25d2a3f86;p=packages%2Fo%2Fopenafs.git Fix so that UKERNEL can keep using system xdr This fix modifies the way that the RX XDR operations are declared so that UKERNEL can continue using the system provided XDR glue, rather than using our own (as is the case in userspace, and in normal kernel modules) Change-Id: Ib6abad376c7f7a7f0f5c2314efe80f5b7b44f842 Reviewed-on: http://gerrit.openafs.org/1131 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/rx/xdr_rx.c b/src/rx/xdr_rx.c index 510e84619..8835f93c9 100644 --- a/src/rx/xdr_rx.c +++ b/src/rx/xdr_rx.c @@ -118,7 +118,10 @@ static struct xdr_ops xdrrx_ops = { .x_getint64 = xdrrx_getint64, .x_putint64 = xdrrx_putint64, #endif /* defined(KERNEL) && ((defined(AFS_SGI61_ENV) && (_MIPS_SZLONG != _MIPS_SZINT)) || defined(AFS_HPUX_64BIT_ENV)) */ -#if !(defined(KERNEL) && defined(AFS_SUN57_ENV)) +#if defined(UKERNEL) + .x_getlong = xdrrx_getint32, + .x_putlong = xdrrx_putint32, +#elif !(defined(KERNEL) && defined(AFS_SUN57_ENV)) .x_getint32 = xdrrx_getint32, /* deserialize an afs_int32 */ .x_putint32 = xdrrx_putint32, /* serialize an afs_int32 */ #endif