From 2ca497595ef4a13dca335534c627b0501ee4e25e Mon Sep 17 00:00:00 2001
From: liuy <liuy>
Date: Fri, 12 Oct 2007 06:47:06 +0000
Subject: [PATCH] Branch HEAD b=13732 i=johann, liuy

change order of libsysio includes
---
 lustre/ChangeLog             | 4 ++++
 lustre/liblustre/dir.c       | 2 +-
 lustre/liblustre/file.c      | 2 +-
 lustre/liblustre/llite_lib.c | 2 +-
 lustre/liblustre/namei.c     | 2 +-
 lustre/liblustre/rw.c        | 2 +-
 lustre/liblustre/super.c     | 2 +-
 7 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/lustre/ChangeLog b/lustre/ChangeLog
index 799f0c8a26..0b917160e0 100644
--- a/lustre/ChangeLog
+++ b/lustre/ChangeLog
@@ -394,6 +394,10 @@ Severity   : normal
 Bugzilla   : 13454
 Description: Add jbd statistics patch for RHEL5 and 2.6.18-vanilla
 
+Severity   : minor
+Bugzilla   : 13732 
+Description: change order of libsysio includes
+Details    : '#include sysio.h' should always come before '#include xtio.h'
 
 --------------------------------------------------------------------------------
 
diff --git a/lustre/liblustre/dir.c b/lustre/liblustre/dir.c
index db2048835e..dc565975b2 100644
--- a/lustre/liblustre/dir.c
+++ b/lustre/liblustre/dir.c
@@ -33,10 +33,10 @@
 #include <fcntl.h>
 #include <sys/queue.h>
 
+#include <sysio.h>
 #ifdef HAVE_XTIO_H
 #include <xtio.h>
 #endif
-#include <sysio.h>
 #include <fs.h>
 #include <mount.h>
 #include <inode.h>
diff --git a/lustre/liblustre/file.c b/lustre/liblustre/file.c
index 153c64cc9e..a1d50dacf6 100644
--- a/lustre/liblustre/file.c
+++ b/lustre/liblustre/file.c
@@ -32,10 +32,10 @@
 #include <sys/queue.h>
 #include <fcntl.h>
 
+#include <sysio.h>
 #ifdef HAVE_XTIO_H
 #include <xtio.h>
 #endif
-#include <sysio.h>
 #include <fs.h>
 #include <mount.h>
 #include <inode.h>
diff --git a/lustre/liblustre/llite_lib.c b/lustre/liblustre/llite_lib.c
index e6d04e6576..0d673681d3 100644
--- a/lustre/liblustre/llite_lib.c
+++ b/lustre/liblustre/llite_lib.c
@@ -29,10 +29,10 @@
 #include <sys/stat.h>
 #include <sys/queue.h>
 
+#include <sysio.h>
 #ifdef HAVE_XTIO_H
 #include <xtio.h>
 #endif
-#include <sysio.h>
 #include <fs.h>
 #include <mount.h>
 #include <inode.h>
diff --git a/lustre/liblustre/namei.c b/lustre/liblustre/namei.c
index ccedc5f20f..3d5a7ee0c4 100644
--- a/lustre/liblustre/namei.c
+++ b/lustre/liblustre/namei.c
@@ -32,10 +32,10 @@
 #include <fcntl.h>
 #include <sys/queue.h>
 
+#include <sysio.h>
 #ifdef HAVE_XTIO_H
 #include <xtio.h>
 #endif
-#include <sysio.h>
 #include <fs.h>
 #include <mount.h>
 #include <inode.h>
diff --git a/lustre/liblustre/rw.c b/lustre/liblustre/rw.c
index 62a241daab..bb7d124bc6 100644
--- a/lustre/liblustre/rw.c
+++ b/lustre/liblustre/rw.c
@@ -33,10 +33,10 @@
 #include <fcntl.h>
 #include <sys/uio.h>
 
+#include <sysio.h>
 #ifdef HAVE_XTIO_H
 #include <xtio.h>
 #endif
-#include <sysio.h>
 #include <fs.h>
 #include <mount.h>
 #include <inode.h>
diff --git a/lustre/liblustre/super.c b/lustre/liblustre/super.c
index 0173a1d436..00621f1163 100644
--- a/lustre/liblustre/super.c
+++ b/lustre/liblustre/super.c
@@ -37,10 +37,10 @@
 # include <sys/statfs.h>
 #endif
 
+#include <sysio.h>
 #ifdef HAVE_XTIO_H
 #include <xtio.h>
 #endif
-#include <sysio.h>
 #include <fs.h>
 #include <mount.h>
 #include <inode.h>
-- 
GitLab