From: mpa@pengutronix.de (Markus Pargmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [v4] watchdog: Add DA906x PMIC watchdog driver.
Date: Sun, 24 Aug 2014 16:37:30 +0200 [thread overview]
Message-ID: <20140824143730.GC23823@pengutronix.de> (raw)
In-Reply-To: <20140821141959.GA26019@roeck-us.net>
Hi,
On Thu, Aug 21, 2014 at 07:19:59AM -0700, Guenter Roeck wrote:
> On Thu, Aug 21, 2014 at 08:15:25AM +0200, Markus Pargmann wrote:
> > Hi,
> >
> ...
> > > > +static int da9063_wdt_timeout_to_sel(int secs)
> > > > +{
> > > > + int i;
> > > > +
> > > > + for (i = DA9063_TWDSCALE_MIN; i <= DA9063_TWDSCALE_MAX; i++) {
> > >
> > > When building with W=1, gcc complains about this line. Would be great if you can
> > > have a look and fix it.
> >
> > I just compiled with W=1, it doesn't complain here about this line.
> > Could you give me the warning?
> >
> drivers/watchdog/da9063_wdt.c: In function 'da9063_wdt_timeout_to_sel':
> drivers/watchdog/da9063_wdt.c:48:34: warning: comparison between signed and
> unsigned integer expressions [-Wsign-compare]
>
> This is with arm-poky-linux-gnueabi-gcc (GCC) 4.7.2.
Thanks, I am using gcc 4.8.3. I replaced the used 'int' type by 'unsigend
int', that should fix it.
Best regards,
Markus
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140824/7006bf5a/attachment.sig>
next prev parent reply other threads:[~2014-08-24 14:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-16 12:35 [PATCH v4] watchdog: Add DA906x PMIC watchdog driver Markus Pargmann
2014-08-20 14:43 ` [v4] " Guenter Roeck
2014-08-21 6:15 ` Markus Pargmann
2014-08-21 14:19 ` Guenter Roeck
2014-08-24 14:37 ` Markus Pargmann [this message]
2014-08-22 15:47 ` [PATCH v4] " Opensource [Steve Twiss]
2014-08-24 15:00 ` Markus Pargmann
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=20140824143730.GC23823@pengutronix.de \
--to=mpa@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.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 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).