Whamcloud - gitweb
LU-6210 obd: Change positional struct initializers to C99 97/23697/3
authorSteve Guminski <stephenx.guminski@intel.com>
Mon, 7 Nov 2016 18:52:20 +0000 (13:52 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 1 Jan 2017 02:00:39 +0000 (02:00 +0000)
commit4ddad88d15d8f9e36c5cbb9fd5611a3d8e16ea8c
treea5af9e8d747f58cc8f3d37ad8d9b4d6ddc562e1a
parentf13b2a4cea69d8c4c079d03d58f55d32a54a9679
LU-6210 obd: Change positional struct initializers to C99

This patch makes no functional changes.  Struct initializers in the
obd directory that use C89 or GCC-only syntax are updated to C99
syntax.  Whitespace is changed to match the code style guidelines.

The C99 syntax prevents incorrect initialization if values are
accidently placed in the wrong position, allows changes in the struct
definition, and clears any members that are not given an explicit
value.

The following struct initializers have been updated:

lustre/obdclass/lprocfs_jobstats.c:
static const struct seq_operations lprocfs_jobstats_seq_sops
lustre/obdclass/obd_config.c:
struct llog_process_cat_data
lustre/obdclass/obd_mount.c:
struct lustre_mount_data2 lmd2 (2 occurrences)

Test-Parameters: trivial
Signed-off-by: Steve Guminski <stephenx.guminski@intel.com>
Change-Id: I74a7d6ebb250e8df0f24f60ce87933fddf325c30
Reviewed-on: https://review.whamcloud.com/23697
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/obdclass/lprocfs_jobstats.c
lustre/obdclass/obd_config.c
lustre/obdclass/obd_mount.c