Bhumika Goyal
ff2924583b
qlogic: netxen: constify bin_attribute structures
...
Declare bin_attribute structures as const as they are only passed as an
arguments to the functions device_remove_bin_file and
device_create_bin_file. These function arguments are of type const, so
bin_attribute structures having this property can be made const too.
Done using Coccinelle:
@r1 disable optional_qualifier @
identifier i;
position p;
@@
static struct bin_attribute i@p = {...};
@ok1@
identifier r1.i;
position p,p1;
@@
(
device_remove_bin_file(...,&i@p)
|
device_create_bin_file(..., &i@p1)
)
@bad@
position p!={r1.p,ok1.p,ok1.p1};
identifier r1.i;
@@
i@p
@depends on !bad disable optional_qualifier@
identifier r1.i;
@@
+const
struct bin_attribute i;
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2017-02-22 15:39:09 -05:00
..
2017-02-22 10:46:44 -08:00
2017-02-21 17:21:32 -08:00
2017-02-15 13:24:53 -05:00
2017-01-11 09:27:30 +01:00
2017-02-20 18:06:09 -08:00
2017-02-02 16:54:00 -05:00
2017-02-21 13:53:41 -08:00
2017-02-19 00:26:37 +01:00
2016-12-25 10:47:44 +01:00
2017-02-17 14:08:19 -07:00
2017-02-21 12:49:56 -08:00
2017-01-30 09:22:21 +01:00
2017-02-20 10:06:32 -08:00
2017-02-20 17:41:31 -08:00
2017-02-22 10:30:38 -08:00
2017-02-06 14:16:23 -08:00
2016-12-18 15:49:10 -08:00
2017-02-20 14:23:40 +01:00
2016-12-24 11:46:01 -08:00
2017-02-21 17:06:22 -08:00
2017-02-20 12:47:44 -08:00
2017-01-11 09:11:39 +01:00
2017-02-22 10:46:44 -08:00
2017-02-04 21:34:55 +01:00
2017-02-20 13:23:30 -08:00
2017-02-21 17:28:25 -08:00
2017-01-31 10:59:48 +01:00
2017-02-16 06:49:05 -08:00
2016-12-25 10:47:44 +01:00
2017-02-20 18:06:09 -08:00
2017-02-17 14:08:19 -07:00
2016-12-13 10:41:53 -08:00
2017-01-22 13:35:40 +00:00
2017-02-22 10:15:09 -08:00
2017-02-12 18:36:49 -08:00
2017-02-10 15:13:10 +01:00
2017-02-20 16:42:43 -08:00
2017-02-22 10:15:09 -08:00
2017-02-14 22:20:24 +01:00
2016-12-24 11:46:01 -08:00
2017-02-15 08:27:21 -07:00
2017-02-22 10:30:38 -08:00
2016-12-25 17:21:22 +01:00
2017-02-21 12:11:41 -08:00
2017-02-21 16:58:32 -08:00
2017-02-17 14:08:19 -07:00
2017-02-21 11:51:42 -08:00
2017-01-03 17:34:16 +00:00
2017-02-22 10:30:38 -08:00
2017-02-21 12:04:54 -08:00
2017-02-21 10:57:33 -08:00
2017-02-22 15:39:09 -05:00
2017-02-16 23:11:26 -05:00
2016-12-24 11:46:01 -08:00
2017-02-04 14:47:31 -08:00
2017-02-17 14:08:19 -07:00
2017-01-04 18:22:47 +01:00
2017-02-22 10:46:44 -08:00
2016-12-24 11:46:01 -08:00
2016-12-24 11:46:01 -08:00
2017-01-28 21:54:21 +01:00
2017-02-22 10:15:09 -08:00
2016-12-12 18:55:06 -08:00
2017-02-08 19:32:24 +00:00
2016-12-14 10:49:33 -08:00
2017-02-21 16:34:22 -08:00
2017-02-20 16:26:57 -08:00
2016-12-24 11:46:01 -08:00
2017-01-29 23:15:18 +01:00
2017-02-17 11:03:06 -05:00
2016-12-15 11:45:13 -08:00
2017-02-20 17:23:57 -08:00
2016-12-30 03:26:31 -08:00
2017-02-17 08:11:47 +01:00
2016-12-30 03:12:11 -08:00
2017-02-21 16:34:22 -08:00
2017-02-22 10:20:04 -08:00
2016-12-24 11:46:01 -08:00
2017-02-22 10:15:09 -08:00
2016-12-12 18:55:08 -08:00
2017-01-30 14:39:20 +01:00
2017-02-20 17:55:15 -08:00
2017-02-22 10:15:09 -08:00
2017-02-22 10:15:09 -08:00
2017-02-20 14:22:50 +01:00
2016-12-13 12:11:01 -08:00
2017-02-20 13:23:30 -08:00
2016-12-10 14:57:58 +01:00
2017-02-21 16:34:22 -08:00
2017-02-20 16:42:43 -08:00
2017-02-11 20:59:41 -05:00
2017-01-24 16:26:14 -08:00
2017-02-07 16:29:30 -05:00
2017-01-11 10:42:16 +01:00
2016-12-24 11:27:45 -08:00
2017-02-14 15:14:59 -05:00
2016-12-24 11:46:01 -08:00