]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
cache bypass: don't define iovecp for UKERNEL
authorMarc Dionne <marc.c.dionne@gmail.com>
Sat, 22 Oct 2011 13:32:33 +0000 (09:32 -0400)
committerDerrick Brashear <shadow@dementix.org>
Fri, 16 Dec 2011 11:53:39 +0000 (03:53 -0800)
iovecp is defined but not used for UKERNEL.  Define it conditionally
to avoid gcc warnings and --enable-checking failure.

Reviewed-on: http://gerrit.openafs.org/5650
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: Derrick Brashear <shadow@dementix.org>
(cherry picked from commit 547d94edd3affb5f377cd1b3db39c46ca0cf5aec)

Change-Id: I700b82173b5c2435a716aaf10541e1583f2655f5
Reviewed-on: http://gerrit.openafs.org/6316
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: Derrick Brashear <shadow@dementix.org>
src/afs/afs_bypasscache.c

index 945d9b8b2ad1101e3fe234879638f48df12b6cd7..e4470243cfdf62944c712e844405a15cc29cda2e 100644 (file)
@@ -557,7 +557,9 @@ afs_PrefetchNoCache(struct vcache *avc,
                    struct nocache_read_request *bparms)
 {
     struct uio *auio;
+#ifndef UKERNEL
     struct iovec *iovecp;
+#endif
     struct vrequest *areq;
     afs_int32 code = 0;
     struct rx_connection *rxconn;
@@ -577,7 +579,9 @@ afs_PrefetchNoCache(struct vcache *avc,
 
     auio = bparms->auio;
     areq = bparms->areq;
+#ifndef UKERNEL
     iovecp = auio->uio_iov;
+#endif
 
     tcallspec = (struct tlocal1 *) osi_Alloc(sizeof(struct tlocal1));
     do {