diff options
| author | Andrzej Pietrasiewicz <[email protected]> | 2013-12-03 15:15:30 +0100 |
|---|---|---|
| committer | Felipe Balbi <[email protected]> | 2013-12-12 13:43:38 -0600 |
| commit | e6f3862fa1ecea6579dd1727869655e88be7a5ef (patch) | |
| tree | 1df971cc8d32ebf95e252e6687bd686378d03d84 /tools/perf/scripts/python/netdev-times.py | |
| parent | 9c2b85f4f99cb5c5f4b8e29ef15e344f93ec5be1 (diff) | |
usb: gadget: FunctionFS: Remove VLAIS usage from gadget code
The use of variable length arrays in structs (VLAIS) in the Linux Kernel code
precludes the use of compilers which don't implement VLAIS (for instance the
Clang compiler). This alternate patch calculates offsets into the kmalloc-ed
memory buffer using macros. The previous patch required multiple kmalloc and
kfree calls. This version uses "group" vs "struct" since it really is not a
struct and is essentially a group of VLA in a common allocated block. This
version also fixes the issues pointed out by Andrzej Pietrasiewicz and
Michal Nazarewicz.
Signed-off-by: Mark Charlebois <[email protected]>
Signed-off-by: Behan Webster <[email protected]>
[elimination of miexed declaration and code, checkpatch cleanup]
[fixes after Michal's review]
Signed-off-by: Andrzej Pietrasiewicz <[email protected]>
Signed-off-by: Kyungmin Park <[email protected]>
Acked-by: Michal Nazarewicz <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions