summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-22 08:00:40 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-22 09:25:10 +0200
commita2aa9207af57a18dca7f608b703a895882b75922 (patch)
tree2549d827a2e693b3494d433b620af00850d8a4e4 /cpukit/libfs
parentbsp/qoriq: Flush and invalidate all L2 caches (diff)
downloadrtems-a2aa9207af57a18dca7f608b703a895882b75922.tar.bz2
nfsclient: Fix warnings
Diffstat (limited to 'cpukit/libfs')
-rw-r--r--cpukit/libfs/src/nfsclient/src/nfsclient-private.h14
-rw-r--r--cpukit/libfs/src/nfsclient/src/rpcio.c5
-rw-r--r--cpukit/libfs/src/nfsclient/src/sock_mbuf.c2
-rw-r--r--cpukit/libfs/src/nfsclient/src/xdr_mbuf.c2
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 0000000000..e1d81a40f6
--- /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 286caa7197..284822515b 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 d41836b100..2712d763e0 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 0f71538419..52b07aefd2 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);