[rtems commit] nfsclient: Fix warnings
Sebastian Huber
sebh at rtems.org
Fri Apr 22 07:28:44 UTC 2016
Module: rtems
Branch: master
Commit: a2aa9207af57a18dca7f608b703a895882b75922
Changeset: http://git.rtems.org/rtems/commit/?id=a2aa9207af57a18dca7f608b703a895882b75922
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Apr 22 08:00:40 2016 +0200
nfsclient: Fix warnings
---
cpukit/libfs/src/nfsclient/src/nfsclient-private.h | 14 ++++++++++++++
cpukit/libfs/src/nfsclient/src/rpcio.c | 5 +----
cpukit/libfs/src/nfsclient/src/sock_mbuf.c | 2 ++
cpukit/libfs/src/nfsclient/src/xdr_mbuf.c | 2 ++
4 files changed, 19 insertions(+), 4 deletions(-)
diff --git a/cpukit/libfs/src/nfsclient/src/nfsclient-private.h b/cpukit/libfs/src/nfsclient/src/nfsclient-private.h
new file mode 100644
index 0000000..e1d81a4
--- /dev/null
+++ b/cpukit/libfs/src/nfsclient/src/nfsclient-private.h
@@ -0,0 +1,14 @@
+struct mbuf;
+struct sockaddr;
+
+ssize_t sendto_nocpy(int s, const void *buf, size_t buflen, int flags,
+ const struct sockaddr *toaddr, int tolen, void *closure, void
+ (*freeproc)(caddr_t, u_int), void (*refproc)(caddr_t, u_int));
+
+ssize_t recv_mbuf_from(int s, struct mbuf **ppm, long len,
+ struct sockaddr *fromaddr, int *fromlen);
+
+struct __rpc_xdr;
+enum xdr_op;
+
+void xdrmbuf_create(struct __rpc_xdr *, struct mbuf *, enum xdr_op);
diff --git a/cpukit/libfs/src/nfsclient/src/rpcio.c b/cpukit/libfs/src/nfsclient/src/rpcio.c
index 286caa7..2848225 100644
--- a/cpukit/libfs/src/nfsclient/src/rpcio.c
+++ b/cpukit/libfs/src/nfsclient/src/rpcio.c
@@ -87,6 +87,7 @@
#include <sys/cpuset.h>
#include "rpcio.h"
+#include "nfsclient-private.h"
/****************************************************************/
/* CONFIGURABLE PARAMETERS */
@@ -308,7 +309,6 @@ typedef union RpcBufU_ {
typedef struct mbuf * RxBuf; /* an MBUF chain */
static void bufFree(struct mbuf **m);
#define XID(ibuf) (*(mtod((ibuf), u_long *)))
-extern void xdrmbuf_create(XDR *, struct mbuf *, enum xdr_op);
#else
typedef RpcBuf RxBuf;
#define bufFree(b) do { MY_FREE(*(b)); *(b)=0; } while(0)
@@ -1628,9 +1628,6 @@ RpcUdpXactPool pool;
#define _KERNEL
#include <sys/mbuf.h>
-ssize_t
-recv_mbuf_from(int s, struct mbuf **ppm, long len, struct sockaddr *fromaddr, int *fromlen);
-
static void
bufFree(struct mbuf **m)
{
diff --git a/cpukit/libfs/src/nfsclient/src/sock_mbuf.c b/cpukit/libfs/src/nfsclient/src/sock_mbuf.c
index d41836b..2712d76 100644
--- a/cpukit/libfs/src/nfsclient/src/sock_mbuf.c
+++ b/cpukit/libfs/src/nfsclient/src/sock_mbuf.c
@@ -105,6 +105,8 @@
#include <net/if.h>
#include <net/route.h>
+#include "nfsclient-private.h"
+
struct socket *rtems_bsdnet_fdToSocket(int fd);
/*
diff --git a/cpukit/libfs/src/nfsclient/src/xdr_mbuf.c b/cpukit/libfs/src/nfsclient/src/xdr_mbuf.c
index 0f71538..52b07ae 100644
--- a/cpukit/libfs/src/nfsclient/src/xdr_mbuf.c
+++ b/cpukit/libfs/src/nfsclient/src/xdr_mbuf.c
@@ -99,6 +99,8 @@ my_free(void *p)
#include <stdio.h>
#endif
+#include "nfsclient-private.h"
+
static bool_t xdrmbuf_getlong_aligned(XDR *xdrs, long *lp);
static bool_t xdrmbuf_putlong_aligned(XDR *xdrs, const long *lp);
static bool_t xdrmbuf_getlong_unaligned(XDR *xdrs, long *lp);
More information about the vc
mailing list