diff options
| author | Dan Williams <[email protected]> | 2020-12-14 19:04:43 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2020-12-15 12:13:38 -0800 |
| commit | 7d18dd75a8afc072aabc77f2a9c3df94cdc53f33 (patch) | |
| tree | d5842f652bcb81fcace42995a553e4e308510c60 /tools/perf/scripts/python/stat-cpi.py | |
| parent | 045ab8c9487ba099eade6578621e2af4a0d5ba0c (diff) | |
device-dax/kmem: use struct_size()
Linus notes the kernel has had a nice helper for the 'size of struct with
variable array member at the end' operation for a couple years now, use
it.
Link: http://lore.kernel.org/r/CAHk-=wgNTLbvAD8mNTvh+GQyapNWeX20PXhU_+frqEvVq4298w@mail.gmail.com
Link: https://lkml.kernel.org/r/160288261564.3242821.6055291930923876456.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <[email protected]>
Reported-by: Linus Torvalds <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions