From 46ff2dd66e91530f804d5b2321e58827f71e0251 Mon Sep 17 00:00:00 2001 From: Dmitry Zogin Date: Fri, 17 Dec 2010 03:23:15 +0300 Subject: [PATCH] b=23787 make struct lprocfs_percpu definition C99 compliant i=Andreas Dilger i=Andrew Perepechko --- lustre/include/lprocfs_status.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lustre/include/lprocfs_status.h b/lustre/include/lprocfs_status.h index ed58e7a..11cebb0 100644 --- a/lustre/include/lprocfs_status.h +++ b/lustre/include/lprocfs_status.h @@ -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 -- 1.8.3.1