drivers/base: cacheinfo: remove noisy error boot message
PATCH 1/1 drivers/base: cacheinfo: remove noisy error boot message
On systems that don't support cacheinfo, this error message can be considered noisy and irrelevant. The error messages can be added to the functions that architectures implement overiding the weak default definition if really required.
This patch removes the concerned error message in the generic code.
Signed-off-by Sudeep Holla <[email protected]>
Reported-by Fabio Estevam <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
--- drivers/base/cacheinfo.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
Hi Greg,
Since I always tested the series only on the architectures supporting cacheinfo, I failed to see that this error message is thrown out at the boot time if the architecture doesn't support it.
Can you pick up this small fix to avoid noisy error message ?
Regards,
Sudeep
drivers/base/cacheinfo.c +1 -3
@@ -520,10 +520,8 @@ static int __init cacheinfo_sysfs_init(void)for_each_online_cpu (cpu) { rc =detect_cache_attributes (cpu); -if (rc) { -pr_err ("error detecting cacheinfo..cpu%d\n" , cpu); +if (rc) goto out; - } rc =cache_add_dev (cpu);if (rc) {free_cache_attributes (cpu);
Signature · 1 line
1.9.1