From: Hui Su <sh_def@163.com>
To: Andrew Morton <akpm@linux-foundation.org>,
Alexander Potapenko <glider@google.com>,
"Gustavo A. R. Silva" <gustavoars@kernel.org>,
Vijayanand Jitta <vjitta@codeaurora.org>,
Stephen Rothwell <sfr@canb.auug.org.au>,
Yogesh Lal <ylal@codeaurora.org>,
linux-kernel@vger.kernel.org
Cc: sh_def@163.com
Subject: [PATCH] lib/stackdepot.c: fix the compile warning
Date: Tue, 2 Feb 2021 15:43:29 +0800 [thread overview]
Message-ID: <20210202074329.GA1284542@server> (raw)
fix the compile warning introduced by commit b9779abb09a8 ("lib: stackdepot:
add support to disable stack depot")
../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]
154 | kstrtobool(str, &stack_depot_disable);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Hui Su <sh_def@163.com>
---
lib/stackdepot.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/stackdepot.c b/lib/stackdepot.c
index cc21116512a7..acd13f574f97 100644
--- a/lib/stackdepot.c
+++ b/lib/stackdepot.c
@@ -151,7 +151,9 @@ static struct stack_record **stack_table;
static int __init is_stack_depot_disabled(char *str)
{
- kstrtobool(str, &stack_depot_disable);
+ int no_warn;
+
+ no_warn = kstrtobool(str, &stack_depot_disable);
if (stack_depot_disable) {
pr_info("Stack Depot is disabled\n");
stack_table = NULL;
--
2.25.1
reply other threads:[~2021-02-02 9:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210202074329.GA1284542@server \
--to=sh_def@163.com \
--cc=akpm@linux-foundation.org \
--cc=glider@google.com \
--cc=gustavoars@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sfr@canb.auug.org.au \
--cc=vjitta@codeaurora.org \
--cc=ylal@codeaurora.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.