From c6d64ee90edda78ccdfa3aabdb643e4228e41a72 Mon Sep 17 00:00:00 2001
From: shadow <shadow>
Date: Tue, 9 Dec 2008 07:00:22 +0000
Subject: [PATCH] fix incorrect detecting readv/writev.

Branch HEAD
b=17918
i=green
---
 lustre/autoconf/lustre-core.m4 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4
index 08a573fda4..657dbef981 100644
--- a/lustre/autoconf/lustre-core.m4
+++ b/lustre/autoconf/lustre-core.m4
@@ -1117,7 +1117,7 @@ AC_DEFUN([LC_FILE_WRITEV],
 LB_LINUX_TRY_COMPILE([
         #include <linux/fs.h>
 ],[
-        struct file_operations *fops;
+        struct file_operations *fops = NULL;
         fops->writev = NULL;
 ],[
         AC_MSG_RESULT(yes)
@@ -1135,7 +1135,7 @@ AC_DEFUN([LC_FILE_READV],
 LB_LINUX_TRY_COMPILE([
         #include <linux/fs.h>
 ],[
-        struct file_operations *fops;
+        struct file_operations *fops = NULL;
         fops->readv = NULL;
 ],[
         AC_MSG_RESULT(yes)
-- 
GitLab