public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* Re: drivers/pci/search.c:85:2: warning: suggest parentheses around assignment used as truth value
@ 2012-09-25 19:27 Yinghai Lu
  2012-09-25 19:49 ` Dan Carpenter
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Yinghai Lu @ 2012-09-25 19:27 UTC (permalink / raw)
  To: kernel-janitors

On Tue, Sep 25, 2012 at 2:04 AM, Yuanhan Liu <yuanhan.liu@intel.com> wrote:
> Hi Yinghai,
>
> FYI, there are new compile warnings show up in
>
> commit: 73ebfa72e382802b163a354fcb4d8dfea8ab58f3
> title: PCI: kill pci_find_next_bus
> date: 2012-09-25 01:21:07 -0700
> config: x86_64-allyesdebian (attached as .config)
>
>
> All error/warnings:
>
> drivers/edac/i7core_edac.c: In function 'i7core_pci_lastbus':
> drivers/edac/i7core_edac.c:1299:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses]

for checkpatch.pl ?

the code is like:

#define for_each_pci_host_bridge(d) while ((d pci_get_next_host_bridge(d)) != NULL)

so checkpatch.pl need to be fixed.

-Yinghai

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-09-26  0:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-25 19:27 drivers/pci/search.c:85:2: warning: suggest parentheses around assignment used as truth value Yinghai Lu
2012-09-25 19:49 ` Dan Carpenter
2012-09-25 20:02 ` Yinghai Lu
2012-09-26  0:51 ` Fengguang Wu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox