summaryrefslogtreecommitdiff
path: root/.rustfmt.toml
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2023-02-15 16:06:01 +0300
committerShuah Khan <skhan@linuxfoundation.org>2023-04-10 21:20:52 +0300
commit5d869d7bb4b8d8f2e5fd207e521419f27f7ad115 (patch)
tree3851c111d8a3087dbb5e729baceddfbb21ba0bb8 /.rustfmt.toml
parent0d45c83b95da414e98ad333e723141a94f6e2c64 (diff)
downloadlinux-5d869d7bb4b8d8f2e5fd207e521419f27f7ad115.tar.xz
selftests/resctrl: Replace obsolete memalign() with posix_memalign()
memalign() is obsolete according to its manpage. Replace memalign() with posix_memalign() and remove malloc.h include that was there for memalign(). As a pointer is passed into posix_memalign(), initialize *p to NULL to silence a warning about the function's return value being used as uninitialized (which is not valid anyway because the error is properly checked before p is returned). Suggested-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Reviewed-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to '.rustfmt.toml')
0 files changed, 0 insertions, 0 deletions