[OpenAFS-devel] Put definition of AFS_USEBUFFERS before it is used

Troy Benjegerdes hozer@hozed.org
Wed, 5 Apr 2006 22:26:38 -0500


This is a MIME-formatted message.  If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_narn.hozed.org-32323-1144293998-0001-2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

This seems like an obvious fix.. am I correct?

--=_narn.hozed.org-32323-1144293998-0001-2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="openafs-misc-fixes?cmd=changeset;node=b6c9ff1458f0bda0cdacf1dffe52f51b91a680ee;style=raw"

# HG changeset patch
# User troy@minbar.scl.ameslab.gov
# Date Thu Apr  6 03:13:00 2006
# Node ID b6c9ff1458f0bda0cdacf1dffe52f51b91a680ee
# parent: 2d8f31e777276f31a480678db69ae0127fa9ae5a
Put the definition of AFS_USEBUFFERS before the first place it is used


--- a/src/afs/afs.h	Thu Mar 23 02:53:15 2006
+++ b/src/afs/afs.h	Thu Apr  6 03:13:00 2006
@@ -909,6 +909,13 @@
 #endif
 #endif
 
+/* Note: this should agree with the definition in kdump.c */
+#if     defined(AFS_OSF_ENV)
+#if     !defined(UKERNEL)
+#define AFS_USEBUFFERS  1
+#endif
+#endif
+
 struct buffer {
   afs_int32 fid;              /* is adc->index, the cache file number */
   afs_inode_t inode;          /* is adc->f.inode, the inode number of the cac\
@@ -1186,13 +1193,6 @@
 #endif
 
 
-/* Note: this should agree with the definition in kdump.c */
-#if     defined(AFS_OSF_ENV)
-#if     !defined(UKERNEL)
-#define AFS_USEBUFFERS  1
-#endif
-#endif
-
 #if !defined(UKERNEL) && !defined(HAVE_STRUCT_BUF)
 /* declare something so that prototypes don't flip out */
 /* appears struct buf stuff is only actually passed around as a pointer, 


--=_narn.hozed.org-32323-1144293998-0001-2--