From: Gabriel C <nix.or.die@googlemail.com>
To: David Brownell <david-b@pacbell.net>
Cc: linux-usb-devel@lists.sourceforge.net,
Andrew Morton <akpm@linux-foundation.org>,
Greg KH <greg@kroah.com>,
linux-kernel@vger.kernel.org
Subject: Re: [linux-usb-devel] 2.6.23-rc2-mm2
Date: Sun, 12 Aug 2007 12:15:14 +0200 [thread overview]
Message-ID: <46BEDDB2.4080704@googlemail.com> (raw)
In-Reply-To: <200708111358.30667.david-b@pacbell.net>
David Brownell wrote:
> On Friday 10 August 2007, Gabriel C wrote:
>> Getting that with gcc 4.2.1 :
>>
>> drivers/usb/host/ohci-dbg.c: In function 'show_registers':
>> drivers/usb/host/ohci-dbg.c:620: warning: the address of 'next' will always evaluate as 'true'
>> drivers/usb/host/ohci-dbg.c:639: warning: the address of 'next' will always evaluate as 'true'
>
> Seems like a pretty annoying warning to have added ... the relevant
> test *expects* to have two constant branches, where the compiler
> optimizes one out of existence.
>
> Does this patch get rid of it?
>
Yes it does.
> ---
> drivers/usb/host/ohci-dbg.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- g26.orig/drivers/usb/host/ohci-dbg.c 2007-08-11 13:51:42.000000000 -0700
> +++ g26/drivers/usb/host/ohci-dbg.c 2007-08-11 13:52:07.000000000 -0700
> @@ -74,7 +74,7 @@ urb_print (struct urb * urb, char * str,
>
> #define ohci_dbg_sw(ohci, next, size, format, arg...) \
> do { \
> - if (next) { \
> + if (next != NULL) { \
> unsigned s_len; \
> s_len = scnprintf (*next, *size, format, ## arg ); \
> *size -= s_len; *next += s_len; \
>
next prev parent reply other threads:[~2007-08-12 10:17 UTC|newest]
Thread overview: 74+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-10 5:42 2.6.23-rc2-mm2 Andrew Morton
2007-08-10 7:59 ` 2.6.23-rc2-mm2: possible irq lock inversion dependency detected Mariusz Kozlowski
2007-08-10 8:18 ` 2.6.23-rc2-mm2 Dave Young
2007-08-10 8:32 ` 2.6.23-rc2-mm2 Andrew Morton
2007-08-10 8:37 ` 2.6.23-rc2-mm2 Dave Young
2007-08-10 9:52 ` 2.6.23-rc2-mm2 Dave Young
2007-08-10 11:19 ` 2.6.23-rc2-mm2 Gabriel C
2007-08-10 20:22 ` 2.6.23-rc2-mm2 -- conntrack divide error Jiri Slaby
2007-08-10 9:23 ` 2.6.23-rc2-mm2 Aurelien Jarno
2007-08-10 16:40 ` 2.6.23-rc2-mm2 Valdis.Kletnieks
2007-08-10 16:59 ` 2.6.23-rc2-mm2 Adrian Bunk
2007-08-10 17:21 ` 2.6.23-rc2-mm2 Valdis.Kletnieks
2007-08-10 17:28 ` 2.6.23-rc2-mm2 Adrian Bunk
2007-08-10 10:23 ` 2.6.23-rc2-mm2 Gabriel C
2007-08-10 11:03 ` 2.6.23-rc2-mm2 Gabriel C
2007-08-10 16:05 ` 2.6.23-rc2-mm2 Eric W. Biederman
2007-08-10 12:35 ` 2.6.23-rc2-mm2 Gabriel C
2007-08-10 16:38 ` 2.6.23-rc2-mm2 Andrew Morton
2007-08-12 15:21 ` 2.6.23-rc2-mm2 Gabriel C
2007-08-10 12:37 ` 2.6.23-rc2-mm2 Gabriel C
2007-08-10 13:20 ` [PATCH -mm] Fix some section mismatch warnings Gabriel C
2007-08-14 20:50 ` Andrew Morton
2007-08-10 19:04 ` Section mismatch warnings ( Re: 2.6.23-rc2-mm2 ) Gabriel C
2007-08-10 19:32 ` Andrew Morton
2007-08-10 12:42 ` 2.6.23-rc2-mm2 Gabriel C
2007-08-11 20:58 ` [linux-usb-devel] 2.6.23-rc2-mm2 David Brownell
2007-08-12 10:15 ` Gabriel C [this message]
2007-08-10 16:03 ` 2.6.23-rc2-mm2 Eric W. Biederman
2007-08-10 14:38 ` [-mm patch] kernel/sysctl_check.c must #include <linux/string.h> Adrian Bunk
2007-08-10 21:32 ` Eric W. Biederman
2007-08-10 14:53 ` 2.6.23-rc2-mm2 Michal Piotrowski
2007-08-10 15:05 ` 2.6.23-rc2-mm2 Michal Piotrowski
2007-08-10 16:01 ` 2.6.23-rc2-mm2 Eric W. Biederman
2007-08-10 16:05 ` 2.6.23-rc2-mm2 Ingo Molnar
2007-08-10 17:10 ` 2.6.23-rc2-mm2 Andrew Morton
2007-08-10 17:12 ` 2.6.23-rc2-mm2 Eric W. Biederman
2007-08-21 10:41 ` 2.6.23-rc2-mm2 Ingo Molnar
2007-08-10 15:56 ` 2.6.23-rc2-mm2: drivers/s390/char/keyboard.c compile error Adrian Bunk
2007-08-10 16:39 ` Samuel Thibault
2007-08-10 16:16 ` 2.6.23-rc2-mm2 Michal Piotrowski
2007-08-10 16:37 ` 2.6.23-rc2-mm2 Gabriel C
2007-08-10 17:33 ` 2.6.23-rc2-mm2 Eric W. Biederman
2007-08-10 19:41 ` 2.6.23-rc2-mm2 Andrew Morton
2007-08-10 19:54 ` 2.6.23-rc2-mm2 Eric W. Biederman
2007-08-10 21:00 ` [PATCH 1/7] sysctl: Remove broken cdrom binary sysctls Eric W. Biederman
2007-08-10 21:01 ` [PATCH 2/7] sysctl: parport remove binary paths Eric W. Biederman
2007-08-10 21:03 ` [PATCH 3/7] sysctl: Simplify the pty sysctl logic Eric W. Biederman
2007-08-10 21:06 ` [PATCH 4/7] sysctl: remove broken netfilter binary sysctls Eric W. Biederman
2007-08-10 21:08 ` [PATCH 5/7] sysctl: Cleanup the sched debug sysctl usage Eric W. Biederman
2007-08-10 21:09 ` [PATCH 6/7] sysctl: Update sysctl_checks list of binary paths Eric W. Biederman
2007-08-10 21:10 ` [PATCH 7/7] sysctl: Remove the cad_pid binary sysctl path Eric W. Biederman
2007-08-10 21:10 ` [PATCH 1/7] sysctl: Remove broken cdrom binary sysctls Alan Cox
2007-08-10 21:19 ` 2.6.23-rc2-mm2 Eric W. Biederman
2007-08-10 17:38 ` 2.6.23-rc2-mm2 Michal Piotrowski
2007-08-10 17:55 ` arch/i386/kernel/setup.c - compile error (Re: 2.6.23-rc2-mm2) Gabriel C
2007-08-10 18:44 ` Andrew Morton
2007-08-10 19:34 ` Gabriel C
2007-08-10 20:08 ` 2.6.23-rc2-mm2 Aurelien Jarno
2007-08-10 20:20 ` 2.6.23-rc2-mm2 Andrew Morton
2007-08-10 21:43 ` 2.6.23-rc2-mm2 John W. Linville
2007-08-11 22:04 ` [PATCH] Re: 2.6.23-rc2-mm2: sata disk going slow Hugh Dickins
2007-08-13 5:29 ` 2.6.23-rc2-mm2 (libertas) Randy Dunlap
2007-08-14 21:23 ` [-mm patch] unexport ide_tune_dma Adrian Bunk
2007-08-14 21:23 ` [-mm patch] AFLAGS: fix the -g setting Adrian Bunk
2007-08-16 21:02 ` Andrew Morton
2007-08-16 22:16 ` Adrian Bunk
2007-08-16 22:30 ` Roland McGrath
2007-08-14 21:25 ` [-mm patch] remove fs/ext2/balloc.c:reserve_blocks() Adrian Bunk
2007-08-14 21:26 ` [-mm patch] unexport cap_inode_killpriv Adrian Bunk
2007-08-14 21:35 ` Serge E. Hallyn
2007-08-14 23:43 ` Adrian Bunk
2007-08-19 15:56 ` 2.6.23-rc2-mm2 richard kennedy
2007-08-21 23:36 ` 2.6.23-rc2-mm2 Andrew Morton
2007-08-23 15:54 ` 2.6.23-rc2-mm2 richard kennedy
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=46BEDDB2.4080704@googlemail.com \
--to=nix.or.die@googlemail.com \
--cc=akpm@linux-foundation.org \
--cc=david-b@pacbell.net \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
/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