]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Linux: cache bypass: warning cleanup in afs_daemons.c
authorMarc Dionne <marc.c.dionne@gmail.com>
Thu, 1 Jul 2010 19:38:32 +0000 (15:38 -0400)
committerDerrick Brashear <shadow@dementia.org>
Fri, 2 Jul 2010 04:12:27 +0000 (21:12 -0700)
Remove unnecessary warning for the UKERNEL case.  This file will
always get compiled with UKERNEL.

Remove an "if 1" ifdef that was probably used while debugging to
make the function non static.

Change-Id: I5ba5bbb4bd2b782c605699028cf3ad2c7e8cd41f
Reviewed-on: http://gerrit.openafs.org/2318
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/afs/afs_daemons.c

index 959f4e3204423f0b4fd8081122c44e884a5e9dc1..12fa8c8a3adff3869856041e8a441cd8d2217aee 100644 (file)
@@ -536,10 +536,7 @@ BPrefetch(register struct brequest *ab)
 }
 
 #if defined(AFS_CACHE_BYPASS)
-#if 1 /* XXX Matt debugging */
-static
-#endif
-void
+static void
 BPrefetchNoCache(register struct brequest *ab)
 {
     struct vrequest treq;
@@ -551,8 +548,6 @@ BPrefetchNoCache(register struct brequest *ab)
 #ifndef UKERNEL
     /* OS-specific prefetch routine */
     afs_PrefetchNoCache(ab->vc, ab->cred, (struct nocache_read_request *) ab->ptr_parm[0]);
-#else
-#warning Cache-bypass code path not implemented in UKERNEL
 #endif
 }
 #endif