Whamcloud - gitweb
LU-6835 build: add -Wall to CFLAGS for test/ and utils/ 92/15392/4
authorJohn L. Hammond <john.hammond@intel.com>
Thu, 25 Jun 2015 06:03:26 +0000 (01:03 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 25 Jul 2015 03:12:09 +0000 (03:12 +0000)
Add -Wall to the CFLAGS used for lustre/{test,utils}/. Fixup missing
includes where needed.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I19d0739e0a9b5b079665d5d24d54c6dcaad93b0c
Reviewed-on: http://review.whamcloud.com/15392
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Tested-by: Jenkins
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Chris Horn <hornc@cray.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/autoconf/lustre-core.m4
lustre/utils/lfs.c
lustre/utils/libiam.c
lustre/utils/liblustreapi_hsm.c

index 07a4d52..f553668 100644 (file)
@@ -2072,7 +2072,7 @@ AC_MSG_NOTICE([Lustre core checks
 LC_CONFIG_OBD_BUFFER_SIZE
 
 AS_IF([test $target_cpu == "i686" -o $target_cpu == "x86_64"],
 LC_CONFIG_OBD_BUFFER_SIZE
 
 AS_IF([test $target_cpu == "i686" -o $target_cpu == "x86_64"],
-       [CFLAGS="$CFLAGS -Werror"])
+       [CFLAGS="$CFLAGS -Wall -Werror"])
 
 # maximum MDS thread count
 LC_MDS_MAX_THREADS
 
 # maximum MDS thread count
 LC_MDS_MAX_THREADS
index c8d5dc4..378cc78 100644 (file)
@@ -57,6 +57,7 @@
 #include <grp.h>
 #include <sys/ioctl.h>
 #include <sys/quota.h>
 #include <grp.h>
 #include <sys/ioctl.h>
 #include <sys/quota.h>
+#include <sys/time.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
index 42d1a47..84f41a3 100644 (file)
 #include <sys/ioctl.h>
 #include <sys/types.h>
 
 #include <sys/ioctl.h>
 #include <sys/types.h>
 
-#ifdef HAVE_ENDIAN_H
-#include <endian.h>
-#endif
-
+#include <libcfs/byteorder.h>
 #include <libcfs/util/string.h>
 #include <lustre/libiam.h>
 
 #include <libcfs/util/string.h>
 #include <lustre/libiam.h>
 
index f569fc6..78ab4d8 100644 (file)
@@ -43,6 +43,7 @@
 #include <dirent.h>
 #include <stdarg.h>
 #include <sys/stat.h>
 #include <dirent.h>
 #include <stdarg.h>
 #include <sys/stat.h>
+#include <sys/time.h>
 #include <sys/types.h>
 #include <utime.h>
 #include <sys/syscall.h>
 #include <sys/types.h>
 #include <utime.h>
 #include <sys/syscall.h>