From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Lukas Wunner <lukas@wunner.de>
Cc: Bjorn Helgaas <bhelgaas@google.com>,
linux-pci@vger.kernel.org, x86@kernel.org
Subject: Re: [PATCH 1/1] x86/platform/intel-mid: Retrofit pci_platform_pm_ops ->get_power hook
Date: Sun, 09 Oct 2016 14:57:29 +0300 [thread overview]
Message-ID: <1476014249.11323.329.camel@linux.intel.com> (raw)
In-Reply-To: <20161009104626.GA8299@wunner.de>
On Sun, 2016-10-09 at 12:46 +0200, Lukas Wunner wrote:
> On Fri, Oct 07, 2016 at 11:55:34PM +0300, Andy Shevchenko wrote:
> >
> > On Thu, 2016-10-06 at 08:24 +0200, Lukas Wunner wrote:
> > >
> > > +
> > > + reg = (id * LSS_PWS_BITS) / 32;
> > > + bit = (id * LSS_PWS_BITS) % 32;
> > > + power = mid_pwr_get_state(pwr, reg);
> > > + return (power >> bit) & 3;
> >
> > Don't add sparse warnings:
> >
> > return (__force pci_power_t)((power >> bit) & 3);
>
> I do not get any different sparse warnings with or without the cast
> despite using -Wsparse-all. This is with sparse 0.5.0 as included in
> Debian stretch.
>
> With which options and sparse version did you manage to get new
> warnings?
$ sparse --version
v0.5.0
$ make C=1 CF=-D__CHECK_ENDIAN__ W=1 -j64
Warning itself:
arch/x86/platform/intel-mid/pwr.c:305:31: warning: incorrect type in
return expression (different base types)
arch/x86/platform/intel-mid/pwr.c:305:31: expected restricted
pci_power_t
arch/x86/platform/intel-mid/pwr.c:305:31: got unsigned int
--
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy
next prev parent reply other threads:[~2016-10-09 11:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-06 6:24 [PATCH 0/1] x86/platform/intel-mid: Retrofit pci_platform_pm_ops Lukas Wunner
2016-10-06 6:24 ` [PATCH 1/1] x86/platform/intel-mid: Retrofit pci_platform_pm_ops ->get_power hook Lukas Wunner
2016-10-07 20:55 ` Andy Shevchenko
2016-10-08 13:49 ` Lukas Wunner
2016-10-09 12:26 ` Andy Shevchenko
2016-10-09 15:03 ` Lukas Wunner
2016-10-10 10:54 ` Andy Shevchenko
2016-10-09 10:46 ` Lukas Wunner
2016-10-09 11:57 ` Andy Shevchenko [this message]
2016-10-09 12:49 ` Lukas Wunner
2016-10-07 20:55 ` [PATCH 0/1] x86/platform/intel-mid: Retrofit pci_platform_pm_ops Andy Shevchenko
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=1476014249.11323.329.camel@linux.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=bhelgaas@google.com \
--cc=linux-pci@vger.kernel.org \
--cc=lukas@wunner.de \
--cc=x86@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.