diff options
| author | Nick Desaulniers <[email protected]> | 2018-01-06 21:39:48 +0000 |
|---|---|---|
| committer | Boris Ostrovsky <[email protected]> | 2018-01-08 14:41:32 +0000 |
| commit | 66a640e7823da803fdb68d5d88f7a8fbd11c29e6 (patch) | |
| tree | 33f64d9bb0005c426e8e351a9671e3b455b24d40 /net/unix/af_unix.c | |
| parent | x86/xen/time: fix section mismatch for xen_init_time_ops() (diff) | |
| download | kernel-66a640e7823da803fdb68d5d88f7a8fbd11c29e6.tar.gz kernel-66a640e7823da803fdb68d5d88f7a8fbd11c29e6.zip | |
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 <[email protected]>
Signed-off-by: Nick Desaulniers <[email protected]>
Reviewed-by: Juergen Gross <[email protected]>
Signed-off-by: Boris Ostrovsky <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
