diff options
author | Nick Desaulniers <nick.desaulniers@gmail.com> | 2018-01-06 13:39:48 -0800 |
---|---|---|
committer | Boris Ostrovsky <boris.ostrovsky@oracle.com> | 2018-01-08 09:41:32 -0500 |
commit | 66a640e7823da803fdb68d5d88f7a8fbd11c29e6 (patch) | |
tree | 33f64d9bb0005c426e8e351a9671e3b455b24d40 /net/8021q | |
parent | 0dd6d272d39c7c1fe2f4253197b505f2b66538ee (diff) | |
download | linux-66a640e7823da803fdb68d5d88f7a8fbd11c29e6.tar.gz |
x86: xen: remove the use of VLAIS
Variable Length Arrays In Structs (VLAIS) is not supported by Clang, and
frowned upon by others.
https://lkml.org/lkml/2013/9/23/500
Here, the VLAIS was used because the size of the bitmap returned from
xen_mc_entry() depended on possibly (based on kernel configuration)
runtime sized data. Rather than declaring args as a VLAIS then calling
sizeof on *args, we calculate the appropriate sizeof args manually.
Further, we can get rid of the #ifdef's and rely on num_possible_cpus()
(thanks to a helpful checkpatch warning from an earlier version of this
patch).
Suggested-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Nick Desaulniers <nick.desaulniers@gmail.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Diffstat (limited to 'net/8021q')
0 files changed, 0 insertions, 0 deletions