From: Marc Dionne Date: Thu, 1 Jul 2010 19:38:32 +0000 (-0400) Subject: Linux: cache bypass: warning cleanup in afs_daemons.c X-Git-Tag: openafs-devel-1_5_75~25 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=f004a5c7ecd35e5b26cafd62c322e3184e811e64;p=packages%2Fo%2Fopenafs.git Linux: cache bypass: warning cleanup in afs_daemons.c 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 Tested-by: Derrick Brashear --- diff --git a/src/afs/afs_daemons.c b/src/afs/afs_daemons.c index 959f4e320..12fa8c8a3 100644 --- a/src/afs/afs_daemons.c +++ b/src/afs/afs_daemons.c @@ -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