From: Max Filippov <jcmvbkbc@gmail.com>
To: Yang Li <yang.lee@linux.alibaba.com>
Cc: Chris Zankel <chris@zankel.net>,
"open list:TENSILICA XTENSA PORT (xtensa)"
<linux-xtensa@linux-xtensa.org>,
LKML <linux-kernel@vger.kernel.org>,
Abaci Robot <abaci@linux.alibaba.com>
Subject: Re: [PATCH -next] xtensa: Return true/false (not 1/0) from bool function
Date: Mon, 23 May 2022 00:35:41 -0700 [thread overview]
Message-ID: <CAMo8BfK5TEPmMurtA9cNWPV__ws8Ok=6vqsdaO4mJ=G_6-wP2w@mail.gmail.com> (raw)
In-Reply-To: <20220518230953.112266-1-yang.lee@linux.alibaba.com>
On Wed, May 18, 2022 at 4:10 PM Yang Li <yang.lee@linux.alibaba.com> wrote:
>
> Return boolean values ("true" or "false") instead of 1 or 0 from bool
> function. This fixes the following warnings from coccicheck:
>
> ./arch/xtensa/kernel/traps.c:304:10-11: WARNING: return of 0/1 in
> function 'check_div0' with return type bool
>
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
> ---
> arch/xtensa/kernel/traps.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Thanks! Applied to my xtensa tree.
-- Max
prev parent reply other threads:[~2022-05-23 7:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-18 23:09 [PATCH -next] xtensa: Return true/false (not 1/0) from bool function Yang Li
2022-05-23 7:35 ` Max Filippov [this message]
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='CAMo8BfK5TEPmMurtA9cNWPV__ws8Ok=6vqsdaO4mJ=G_6-wP2w@mail.gmail.com' \
--to=jcmvbkbc@gmail.com \
--cc=abaci@linux.alibaba.com \
--cc=chris@zankel.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-xtensa@linux-xtensa.org \
--cc=yang.lee@linux.alibaba.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).