Nikolay Borisov
776c4a7ce8
btrfs: Use sizeof directly instead of a constant variable
...
The kernel would like to have all stack VLA usage removed[1].
Unfortunately using an integer constant variable as the size of an
array is still considered a VLA. Instead let's use directly sizeof(var)
which removes the VLA usage. Use the occasion to remove csum_size
altogether and use sizeof() also for the size passed to memcmp
[1]: https://lkml.org/lkml/2018/3/7/621
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2018-03-31 01:26:56 +02:00
..
2018-03-26 15:09:29 +02:00
2018-03-26 15:09:41 +02:00
2017-10-30 12:27:57 +01:00
2017-08-16 14:19:53 +02:00
2018-03-26 15:09:39 +02:00
2018-03-26 15:09:39 +02:00
2018-03-31 01:26:50 +02:00
2018-03-26 15:09:39 +02:00
2016-12-06 16:06:59 +01:00
2018-03-26 15:09:39 +02:00
2018-03-26 15:09:39 +02:00
2018-03-31 01:26:55 +02:00
2018-03-31 01:26:51 +02:00
2016-07-26 13:52:25 +02:00
2018-03-26 15:09:39 +02:00
2018-03-26 15:09:39 +02:00
2018-03-26 15:09:39 +02:00
2018-03-26 15:09:39 +02:00
2018-03-26 15:09:34 +02:00
2018-03-26 15:09:30 +02:00
2018-03-26 15:09:39 +02:00
2018-03-31 01:26:56 +02:00
2018-03-31 01:26:55 +02:00
2018-01-22 16:08:12 +01:00
2017-11-02 11:10:55 +01:00
2018-03-31 01:26:53 +02:00
2018-03-31 01:26:55 +02:00
2018-03-26 15:09:39 +02:00
2018-03-26 15:09:39 +02:00
2018-03-31 01:26:51 +02:00
2017-07-05 16:41:23 -07:00
2018-03-31 01:26:51 +02:00
2018-01-31 14:31:10 -08:00
2017-02-17 12:03:56 +01:00
2018-03-26 15:09:37 +02:00
2017-08-18 16:36:29 +02:00
2018-03-26 15:09:39 +02:00
2017-11-01 20:45:35 +01:00
2017-11-02 11:10:55 +01:00
2018-03-31 01:26:56 +02:00
2018-03-31 01:26:51 +02:00
2018-03-26 15:09:39 +02:00
2018-03-31 01:26:51 +02:00
2014-11-19 10:34:35 -08:00
2017-11-01 20:45:29 +01:00
2018-03-26 15:09:39 +02:00
2015-03-03 17:23:57 +01:00
2018-03-26 15:09:39 +02:00
2018-03-26 15:09:39 +02:00
2017-08-21 17:47:43 +02:00
2017-08-16 16:12:03 +02:00
2018-03-26 15:09:41 +02:00
2018-03-26 15:09:38 +02:00
2017-06-29 20:17:02 +02:00
2018-03-26 15:09:43 +02:00
2016-12-06 16:06:59 +01:00
2017-06-19 18:25:59 +02:00
2018-01-22 16:08:13 +01:00
2017-10-30 12:28:00 +01:00
2018-03-01 16:16:12 +01:00
2018-01-22 16:08:12 +01:00
2018-03-31 01:26:52 +02:00
2018-03-26 15:09:42 +02:00
2017-10-30 12:27:59 +01:00
2017-08-16 14:19:53 +02:00
2018-03-31 01:26:52 +02:00
2018-03-26 15:09:39 +02:00
2017-11-14 13:35:29 -08:00
2018-03-31 01:26:51 +02:00
2018-03-31 01:26:51 +02:00
2018-03-26 15:09:39 +02:00
2018-03-26 15:09:38 +02:00
2018-03-31 01:26:50 +02:00
2018-03-26 15:09:42 +02:00
2018-03-26 15:09:42 +02:00
2017-02-17 12:03:50 +01:00
2017-02-17 12:03:50 +01:00
2018-03-31 01:26:50 +02:00
2018-03-31 01:26:50 +02:00
2018-03-26 15:09:42 +02:00
2018-03-26 15:09:41 +02:00
2018-03-26 15:09:41 +02:00
2017-11-01 20:45:29 +01:00
2018-01-22 16:08:14 +01:00