Whamcloud - gitweb
b=23787 make struct lprocfs_percpu definition C99 compliant
authorDmitry Zogin <dmitry.zoguine@oracle.com>
Fri, 17 Dec 2010 00:23:15 +0000 (03:23 +0300)
committerAndrew Perepechko <andrew.perepechko@oracle.com>
Fri, 17 Dec 2010 00:23:15 +0000 (03:23 +0300)
i=Andreas Dilger
i=Andrew Perepechko

lustre/include/lprocfs_status.h

index ed58e7a..11cebb0 100644 (file)
@@ -159,9 +159,13 @@ struct lprocfs_counter {
 };
 
 struct lprocfs_percpu {
+#if __STDC_VERSION__ >= 199901L
+        __s64                  pad;
+#endif
         struct lprocfs_counter lp_cntr[0];
 };
 
+
 #define LPROCFS_GET_NUM_CPU 0x0001
 #define LPROCFS_GET_SMP_ID  0x0002