Skip to contentSkip to conversation

lib-stackdepot-add-support-to-disable-stack-depot-fix-2.patch removed from -mm tree

merged [email protected] 1 participant 1 message Feb 27, 2021

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: lib: stackdepot: fix ignoring return value warning
has been removed from the -mm tree. Its filename was
lib-stackdepot-add-support-to-disable-stack-depot-fix-2.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Vijayanand Jitta <[email protected]>
Subject: lib: stackdepot: fix ignoring return value warning

Fix the below ignoring return value warning for kstrtobool in is_stack_depot_disabled function.

lib/stackdepot.c: In function 'is_stack_depot_disabled':
lib/stackdepot.c:154:2: warning: ignoring return value of 'kstrtobool' declared with attribute 'warn_unused_result' [-Wunused-result]

Fixes b9779abb09a8 ("lib: stackdepot: add support to disable stack depot")

---

 lib/stackdepot.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
lib/stackdepot.c renamed from lib/stackdepot.c~lib-stackdepot-add-support-to-disable-stack-depot-fix-2 +4 -2
@@ -151,8 +151,10 @@ static struct stack_record **stack_table
 
 static int __init is_stack_depot_disabled(char *str)
 {
-	kstrtobool(str, &stack_depot_disable);
-	if (stack_depot_disable) {
+	int ret;
+
+	ret = kstrtobool(str, &stack_depot_disable);
+	if (!ret && stack_depot_disable) {
 		pr_info("Stack Depot is disabled\n");
 		stack_table = NULL;
 	}

_

Patches currently in -mm which might be from [email protected] are