aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/xarray.c
diff options
context:
space:
mode:
authorDave Martin <[email protected]>2025-05-15 16:58:51 +0000
committerBorislav Petkov (AMD) <[email protected]>2025-05-16 12:33:56 +0000
commitdf3dc0efcc01d6aae8ebd3e479fe0d55f894854b (patch)
tree95f2075e72f536360aa60b7ac298d67e6d44cd89 /rust/helpers/xarray.c
parentx86/resctrl: Squelch whitespace anomalies in resctrl core code (diff)
downloadkernel-df3dc0efcc01d6aae8ebd3e479fe0d55f894854b.tar.gz
kernel-df3dc0efcc01d6aae8ebd3e479fe0d55f894854b.zip
x86/resctrl: Prefer alloc(sizeof(*foo)) idiom in rdt_init_fs_context()
rdt_init_fs_context() sizes a typed allocation using an explicit sizeof(type) expression, which checkpatch.pl complains about. Since this code is about to be factored out and made generic, this is a good opportunity to fix the code to size the allocation based on the target pointer instead, to reduce the chance of future mis- maintenance. Fix it. No functional change. Signed-off-by: Dave Martin <[email protected]> Signed-off-by: James Morse <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Reviewed-by: Fenghua Yu <[email protected]> Reviewed-by: Reinette Chatre <[email protected]> Tested-by: Fenghua Yu <[email protected]> Tested-by: Peter Newman <[email protected]> Tested-by: Shaopeng Tan <[email protected]> Tested-by: Amit Singh Tomar <[email protected]> # arm64 Tested-by: Shanker Donthineni <[email protected]> # arm64 Tested-by: Babu Moger <[email protected]> Tested-by: Tony Luck <[email protected]> Link: https://lore.kernel.org/[email protected]
Diffstat (limited to 'rust/helpers/xarray.c')
0 files changed, 0 insertions, 0 deletions