linux-next: build warning after merge of the akpm tree
From: Stephen Rothwell
Date: Thu Jan 28 2021 - 03:48:59 EST
Hi all,
After merging the akpm tree, today's linux-next build (x86_64
allmodconfig) produced this warning:
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);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Introduced by commit
b9779abb09a8 ("lib: stackdepot: add support to disable stack depot")
Interestingly, we have 2 declarations of kstrtobool - one in
linux/kernel.h (which has __must_check) and one in linux/strings.h
(which doesn't).
--
Cheers,
Stephen Rothwell
Attachment:
pgpNxKhs2MATw.pgp
Description: OpenPGP digital signature