mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Samuel Tardieu <sam@rfc1149.net>
To: "Jörn Engel" <joern@logfs.org>
Cc: linux-mtd@lists.infradead.org, trivial@kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] eccbuf is statically defined and always evaluate to true
Date: Fri, 19 Oct 2007 21:58:47 +0200	[thread overview]
Message-ID: <2007-10-19-21-58-47+trackit+sam@rfc1149.net> (raw)
In-Reply-To: <20071019190604.GJ26913@lazybastard.org>

On 19/10, Jörn Engel wrote:

| I assume you don't actually use this driver and just ran make
| randconfig or allyesconfig or so..

I tried the latest svn tip of GCC and it looks like this warning is
quite recent (and I happened to have this driver enabled as a module
in my kernel):

drivers/mtd/devices/doc2000.c: In function ‘doc_read’:
drivers/mtd/devices/doc2000.c:635: warning: the address of ‘eccbuf’ will always evaluate as ‘true’
drivers/mtd/devices/doc2000.c: In function ‘doc_write’:
drivers/mtd/devices/doc2000.c:899: warning: the address of ‘eccbuf’ will always evaluate as ‘true’
drivers/mtd/devices/doc2001plus.c: In function ‘doc_write’:
drivers/mtd/devices/doc2001plus.c:751: warning: the address of ‘eccbuf’ will always evaluate as ‘true’


      reply	other threads:[~2007-10-19 19:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-19 17:26 Samuel Tardieu
2007-10-19 18:17 ` Samuel Tardieu
2007-10-19 19:06 ` Jörn Engel
2007-10-19 19:58   ` Samuel Tardieu [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=2007-10-19-21-58-47+trackit+sam@rfc1149.net \
    --to=sam@rfc1149.net \
    --cc=joern@logfs.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®