From: Rusty Russell <rusty@rustcorp.com.au>
To: Brian W Hart <hartb@linux.vnet.ibm.com>,
tj@kernel.org, linux-kernel@vger.kernel.org, trivial@kernel.org
Subject: Re: [PATCH v2] cpumask.h: silence warning with -Wsign-compare
Date: Tue, 06 May 2014 10:31:02 +0930 [thread overview]
Message-ID: <87bnvbbu0h.fsf@rustcorp.com.au> (raw)
In-Reply-To: <20140505152113.GB9463@oc3347516403.ibm.com>
Brian W Hart <hartb@linux.vnet.ibm.com> writes:
> Silence the warning when building with -Wsign-compare when cpumask.h
> is included:
>
> include/linux/cpumask.h: In function ‘cpumask_parse’:
> include/linux/cpumask.h:603:26: warning: signed and unsigned type in conditional
> +expression [-Wsign-compare]
> int len = nl ? nl - buf : strlen(buf);
> ^
>
> V2: Rusty pointed out that unsigned should be used instead.
Thanks, applied.
Cheers,
Rusty.
prev parent reply other threads:[~2014-05-06 1:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-05 15:21 [PATCH v2] cpumask.h: silence warning with -Wsign-compare Brian W Hart
2014-05-06 1:01 ` Rusty Russell [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=87bnvbbu0h.fsf@rustcorp.com.au \
--to=rusty@rustcorp.com.au \
--cc=hartb@linux.vnet.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tj@kernel.org \
--cc=trivial@kernel.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.