diff options
| author | Thorsten Blum <[email protected]> | 2024-11-11 20:47:21 +0000 |
|---|---|---|
| committer | Andreas Larsson <[email protected]> | 2024-11-16 08:54:12 +0000 |
| commit | 8467d8b282b54d87121f70ce78061af004471d0c (patch) | |
| tree | 65e16c4535592d1af0648065ce9ff0733ab9876f /drivers/platform/x86/intel/pmt/class.c | |
| parent | sparc/build: Add SPARC target flags for compiling with clang (diff) | |
| download | kernel-8467d8b282b54d87121f70ce78061af004471d0c.tar.gz kernel-8467d8b282b54d87121f70ce78061af004471d0c.zip | |
sparc: Replace one-element array with flexible array member
Replace the deprecated one-element array with a modern flexible array
member in the struct hvtramp_descr.
Additionally, 15 unnecessary bytes were allocated for hdesc, but instead
of fixing the parentheses in the open-coded version, use struct_size()
to calculate the correct number of bytes.
Link: https://github.com/KSPP/linux/issues/79
Signed-off-by: Thorsten Blum <[email protected]>
Fixes: 64658743fdd4 ("[SPARC64]: Remove most limitations to kernel image size.")
Reviewed-by: Andreas Larsson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Andreas Larsson <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions
