Files
linux/include/linux
Mark Rustad 184c3fc3f5 moduleparam: Resolve missing-field-initializer warning
Resolve a missing-field-initializer warning, that is produced
by every reference to module_param_call, by using designated
initialization for the first field. That is enough to silence
the complaint.

The message is only seen when doing a W=2 build. I happened to be using gcc
4.8.3, but I think most versions would produce the warning when it is
enabled. It can either be silenced by using even a single designated
initializer as I did here, or providing values for all of the fields. Because
of the number of references to the macro, this change silences many warnings
in W=2 builds.

One instance of the full warning message looks like this:

/home/share/git/nn-mdr/include/linux/moduleparam.h:198:16: warning: missing
initializer for field ‘free’ of ‘struct kernel_param_ops’
[-Wmissing-field-initializers]
  static struct kernel_param_ops __param_ops_##name =  \
		  ^
/home/share/git/nn-mdr/fs/fuse/inode.c:35:1: note: in expansion of macro
‘module_param_call’
 module_param_call(max_user_bgreq, set_global_limit, param_get_uint,
 ^
/home/share/git/nn-mdr/include/linux/moduleparam.h:56:9: note: ‘free’
declared here
  void (*free)(void *arg);

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2014-09-11 09:59:25 +09:30
..
2014-05-06 17:54:53 -04:00
2013-12-23 18:34:58 -08:00
2013-11-15 09:32:21 +09:00
2013-11-09 00:16:29 -05:00
2014-08-01 22:35:55 +08:00
2014-07-08 13:36:52 -07:00
2014-06-26 15:46:55 -03:00
2014-01-16 10:23:02 +10:30
2014-06-04 13:34:30 +09:00
2014-04-01 23:19:14 -04:00
2014-03-10 11:44:42 -04:00
2014-08-07 14:40:08 -04:00
2014-04-18 14:20:48 +02:00
2014-08-06 18:01:24 -07:00
2014-05-20 10:30:40 +09:00
2014-02-20 14:54:28 +01:00
2014-08-06 18:01:19 -07:00
2014-01-16 11:15:50 +01:00
2014-08-19 10:19:39 -05:00
2014-06-06 16:08:13 -07:00
2014-06-02 16:05:24 -07:00
2014-06-02 14:56:01 -07:00
2013-12-29 16:34:25 -05:00
2014-07-08 09:40:06 +02:00
2014-04-17 12:30:40 -07:00
2014-06-16 16:26:54 +02:00
2013-09-13 15:09:52 +02:00
2014-03-13 12:11:00 +10:30
2014-07-22 21:55:45 +01:00
2014-01-25 08:55:09 +01:00
2014-07-03 12:02:14 -07:00
2013-12-11 15:52:34 +01:00
2014-05-27 17:38:11 -07:00
2013-12-26 13:29:35 -05:00
2014-03-04 13:51:06 -05:00
2014-01-27 21:02:39 -08:00
2013-11-09 00:16:19 -05:00
2014-04-01 23:19:10 -04:00
2013-10-14 17:15:48 +02:00
2014-01-25 03:14:05 -05:00
2014-04-07 10:59:19 -07:00
2014-07-09 14:58:37 +01:00
2014-06-04 16:54:07 -07:00
2013-10-17 00:36:06 +02:00
2014-06-04 16:54:21 -07:00
2014-07-15 22:40:22 +02:00
2014-03-19 22:24:08 -04:00
2014-06-04 16:54:12 -07:00
2013-12-19 19:09:38 -05:00
2014-08-08 15:57:26 -07:00
2014-08-08 15:57:31 -07:00
2013-09-10 18:56:32 -04:00
2014-08-06 13:03:44 +02:00
2014-06-12 00:21:11 -04:00
2014-02-15 11:55:28 -08:00
2014-02-17 15:01:37 -08:00
2014-08-08 15:57:17 -07:00
2014-06-04 16:53:57 -07:00
2014-08-08 15:57:24 -07:00
2014-06-04 16:53:56 -07:00
2014-05-14 09:46:32 -07:00
2014-08-08 15:57:22 -07:00
2014-06-04 16:53:57 -07:00
2014-04-07 16:35:53 -07:00
2014-06-04 16:53:57 -07:00
2013-10-17 15:53:09 -04:00
2014-01-30 16:56:55 -08:00