All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hannes Reinecke <hare@suse.de>
To: akpm@linux-foundation.org
Cc: James.Bottomley@HansenPartnership.com,
	linux-scsi@vger.kernel.org, harvey.harrison@gmail.com
Subject: Re: [patch 07/17] scsi: aic79xx_core fix shadowed variables, add statics
Date: Tue, 14 Oct 2008 09:39:16 +0200	[thread overview]
Message-ID: <48F44CA4.7000502@suse.de> (raw)
In-Reply-To: <200809222156.m8MLukig032282@imap1.linux-foundation.org>

Hi Andrew,

akpm@linux-foundation.org wrote:
> From: Harvey Harrison <harvey.harrison@gmail.com>
> 
> Redeclared within different if/else blocks, safe to reuse the
> original from beginning of function.
> drivers/scsi/aic7xxx/aic79xx_core.c:2475:10: warning: symbol 'scbid' shadows an earlier one
> drivers/scsi/aic7xxx/aic79xx_core.c:2399:10: originally declared here
> drivers/scsi/aic7xxx/aic79xx_core.c:2586:10: warning: symbol 'scbid' shadows an earlier one
> drivers/scsi/aic7xxx/aic79xx_core.c:2399:10: originally declared here
> drivers/scsi/aic7xxx/aic79xx_core.c:2587:15: warning: symbol 'scb' shadows an earlier one
> drivers/scsi/aic7xxx/aic79xx_core.c:2393:13: originally declared here
> 
> Use caminfo for the outer declaration, the redeclared version is
> iterating over all initiator/target pairs (devices) which.
> drivers/scsi/aic7xxx/aic79xx_core.c:8857:23: warning: symbol 'devinfo' shadows an earlier one
> drivers/scsi/aic7xxx/aic79xx_core.c:8711:21: originally declared here
> 
> Forward declaration was already marked static, make the definition match.
> drivers/scsi/aic7xxx/aic79xx_core.c:3693:1: warning: symbol 'ahd_devlimited_syncrate' was not declared. Should it be static?
> 
> Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Markus Rex, HRB 16746 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2008-10-14  7:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-22 21:56 [patch 07/17] scsi: aic79xx_core fix shadowed variables, add statics akpm
2008-10-14  7:39 ` Hannes Reinecke [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=48F44CA4.7000502@suse.de \
    --to=hare@suse.de \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=akpm@linux-foundation.org \
    --cc=harvey.harrison@gmail.com \
    --cc=linux-scsi@vger.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.