Whamcloud - gitweb
LU-6210 libcfs: Change positional struct initializers to C99 32/23332/3
authorSteve Guminski <stephenx.guminski@intel.com>
Wed, 26 Oct 2016 17:47:01 +0000 (13:47 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 17 Dec 2016 05:41:53 +0000 (05:41 +0000)
commitef6bb2cd842d18e6fbe4f6160467a9318c1862e0
tree8478b732afecdc341835d33bdff9a7c1b43fcc94
parent20c748658000f5454f38576af506643e370bb1bc
LU-6210 libcfs: Change positional struct initializers to C99

This patch makes no functional changes.  Struct initializers in the
libcfs directory that use C89 or GCC-only syntax are updated to C99
syntax.

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:

libcfs/include/libcfs/libcfs_crypto.h:
static struct cfs_crypto_hash_type hash_types[]
libcfs/libcfs/linux/linux-debug.c:
static struct notifier_block libcfs_panic_notifier
libcfs/libcfs/linux/linux-module.c:
struct miscdevice libcfs_dev
libcfs/libcfs/util/nidstrings.c:
static struct netstrfns  libcfs_netstrfns[]

Test-Parameters: trivial
Signed-off-by: Steve Guminski <stephenx.guminski@intel.com>
Change-Id: I75479a0ff751e710259374f34cf0dada977e5d8a
Reviewed-on: https://review.whamcloud.com/23332
Reviewed-by: Frank Zago <fzago@cray.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
libcfs/include/libcfs/libcfs_crypto.h
libcfs/libcfs/linux/linux-debug.c
libcfs/libcfs/linux/linux-module.c
libcfs/libcfs/util/nidstrings.c