All of lore.kernel.org
 help / color / mirror / Atom feed
From: willy@linux.intel.com (Matthew Wilcox)
Subject: [PATCH] NVMe: fix uninitialized iod compiler warning
Date: Thu, 26 Jul 2012 10:50:57 -0400	[thread overview]
Message-ID: <20120726145057.GC22985@linux.intel.com> (raw)
In-Reply-To: <1343253869-30836-1-git-send-email-keith.busch@intel.com>

On Wed, Jul 25, 2012@04:04:29PM -0600, Keith Busch wrote:
>  	int status, length;
> -	struct nvme_iod *iod;
> +	struct nvme_iod *iod = NULL;
>  

So this is a compiler bug.  And it's not present in every compiler
version; it didn't occur on my machine until I upgraded gcc recently.
There's no way that iod can be used uninitialised.  The correct way to
indicate this is:

+	struct nvme_iod *uninitialized_var(iod);

  reply	other threads:[~2012-07-26 14:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-25 22:04 [PATCH] NVMe: fix uninitialized iod compiler warning Keith Busch
2012-07-26 14:50 ` Matthew Wilcox [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-07-27 17:53 [PATCH] NVMe: Fix " Keith Busch
2012-07-27 18:26 ` Matthew Wilcox

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=20120726145057.GC22985@linux.intel.com \
    --to=willy@linux.intel.com \
    /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.