Stefan Hajnoczi
f18793b096
compiler: add a sizeof_field() macro
...
Determining the size of a field is useful when you don't have a struct
variable handy. Open-coding this is ugly.
This patch adds the sizeof_field() macro, which is similar to
typeof_field(). Existing instances are updated to use the macro.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-id: 20180614164431.29305-1-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2018-06-27 13:01:40 +01:00
..
2016-07-04 13:15:22 +01:00
2018-06-01 19:20:37 +03:00
2018-01-22 09:46:18 +01:00
2018-06-04 09:44:10 +02:00
2018-02-13 16:15:09 +01:00
2017-03-27 12:14:45 +02:00
2017-03-17 10:23:44 +01:00
2017-12-18 17:07:02 +03:00
2018-01-16 14:54:52 +01:00
2018-02-13 16:15:09 +01:00
2018-02-13 16:15:09 +01:00
2015-07-24 13:57:45 +02:00
2018-03-06 14:00:58 +01:00
2017-05-10 10:19:24 +03:00
2018-06-18 11:22:15 +02:00
2018-02-09 13:50:17 +01:00
2014-02-04 19:34:30 +01:00
2016-06-20 18:12:04 +02:00
2018-01-22 09:46:18 +01:00
2016-05-12 13:22:24 +01:00
2016-05-12 13:22:24 +01:00
2014-01-31 14:47:33 +00:00
2018-01-25 11:45:30 +00:00
2018-01-22 09:46:18 +01:00
2014-01-31 14:47:33 +00:00
2016-01-29 15:07:24 +00:00
2018-05-07 11:47:57 +02:00
2018-02-09 13:50:17 +01:00
2018-01-22 09:46:18 +01:00
2018-06-18 11:22:15 +02:00
2018-06-26 16:04:01 +02:00
2018-03-01 11:13:36 +00:00
2017-04-24 12:32:12 +01:00
2018-06-21 21:22:53 +10:00
2018-06-01 15:14:31 +02:00
2016-09-22 18:13:08 +01:00
2014-01-31 14:47:33 +00:00
2018-06-01 14:15:10 +02:00
2018-02-13 16:15:09 +01:00
2018-03-01 11:13:36 +00:00
2018-06-26 16:03:40 +02:00
2017-12-18 17:07:02 +03:00
2017-09-01 13:52:43 +02:00
2017-12-18 17:07:02 +03:00
2017-12-18 17:07:02 +03:00
2018-06-26 16:03:40 +02:00
2018-06-04 09:44:10 +02:00
2018-02-26 13:41:34 +01:00
2018-02-09 13:50:17 +01:00
2018-02-26 13:41:34 +01:00
2018-06-26 16:03:40 +02:00
2017-12-18 17:07:02 +03:00
2018-06-27 13:01:40 +01:00
2018-06-12 12:07:30 +02:00