]> git.baikalelectronics.ru Git - kernel.git/commit
lib: stackdepot: fix ignoring return value warning
authorVijayanand Jitta <vjitta@codeaurora.org>
Fri, 26 Feb 2021 01:21:31 +0000 (17:21 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 26 Feb 2021 17:41:04 +0000 (09:41 -0800)
commita9e3b8e4027d131398e1c8f31a77a8a1f791aecf
tree7f20a7ed677af56c1fb73ef924f56a44f11ca850
parent46b690e7e2107cf074ebaef33f434ca1e286be5d
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]

Link: https://lkml.kernel.org/r/1612163048-28026-1-git-send-email-vjitta@codeaurora.org
Fixes: b9779abb09a8 ("lib: stackdepot: add support to disable stack depot")
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/stackdepot.c