[PATCH -next v2 0/3] cacheinfo: Fix misbehaviours around init_cache_level()

From: Pierre Gondois
Date: Tue Jan 24 2023 - 10:41:18 EST


v2:
https://lore.kernel.org/all/20230124123450.321852-1-pierre.gondois@xxxxxxx/
- Split initial patch in 3.
- Add links to static-analysis reports.

Some cases were not correctly evaluated when updating
init_cache_level()'s prototype, in particular if CONFIG_ACPI_PPTT is
not defined. Fix them.

The initial diagnostic was done thanks to:
- the kernel test robot <lkp@xxxxxxxxx>
Link: https://lore.kernel.org/all/202301052307.JYt1GWaJ-lkp@xxxxxxxxx/
- Dan Carpenter <error27@xxxxxxxxx>
Link: https://lore.kernel.org/all/Y86iruJPuwNN7rZw@kili/

Pierre Gondois (3):
cacheinfo: Initialize variables in fetch_cache_info()
cacheinfo: Make default acpi_get_cache_info() return an error
cacheinfo: Remove unused check in init_cache_level()

arch/arm64/kernel/cacheinfo.c | 5 +----
drivers/base/cacheinfo.c | 2 +-
include/linux/cacheinfo.h | 2 +-
3 files changed, 3 insertions(+), 6 deletions(-)

--
2.25.1