mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Desai, Kashyap" <Kashyap.Desai@lsi.com>
To: Borislav Petkov <bp@amd64.org>, "Moore, Eric" <Eric.Moore@lsi.com>
Cc: Borislav Petkov <borislav.petkov@amd.com>,
	Support <support@lsi.com>,
	DL-MPT Fusion Linux <DL-MPTFusionLinux@lsi.com>,
	"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"James.Bottomley@HansenPartnership.com" 
	<James.Bottomley@HansenPartnership.com>
Subject: RE: [PATCH] mptsas: Fix annoying warning
Date: Wed, 4 May 2011 17:10:03 +0530	[thread overview]
Message-ID: <B2FD678A64EAAD45B089B123FDFC3ED70157F09DC3@inbmail01.lsi.com> (raw)
In-Reply-To: <1304347778-12129-1-git-send-email-bp@amd64.org>

Please consider this patch as an ACKed.

~ Kashyap

> -----Original Message-----
> From: Borislav Petkov [mailto:bp@amd64.org]
> Sent: Monday, May 02, 2011 8:20 PM
> To: Moore, Eric
> Cc: Borislav Petkov; Support; DL-MPT Fusion Linux; linux-
> scsi@vger.kernel.org; linux-kernel@vger.kernel.org
> Subject: [PATCH] mptsas: Fix annoying warning
> 
> From: Borislav Petkov <borislav.petkov@amd.com>
> 
> Shut up
> 
> drivers/message/fusion/mptsas.c: In function 'mptsas_event_process':
> drivers/message/fusion/mptsas.c:5015: warning: unused variable
> 'log_info'
> 
> for configs with CONFIG_SCSI_MPT2SAS_LOGGING unset.
> 
> Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
> ---
>  drivers/message/fusion/mptsas.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/message/fusion/mptsas.c
> b/drivers/message/fusion/mptsas.c
> index 66f9412..7596aec 100644
> --- a/drivers/message/fusion/mptsas.c
> +++ b/drivers/message/fusion/mptsas.c
> @@ -5012,7 +5012,6 @@ mptsas_event_process(MPT_ADAPTER *ioc,
> EventNotificationReply_t *reply)
>  			(ioc_stat & MPI_IOCSTATUS_FLAG_LOG_INFO_AVAILABLE)) {
>  			VirtTarget *vtarget = NULL;
>  			u8		id, channel;
> -			u32	 log_info = le32_to_cpu(reply->IOCLogInfo);
> 
>  			id = sas_event_data->TargetID;
>  			channel = sas_event_data->Bus;
> @@ -5023,7 +5022,8 @@ mptsas_event_process(MPT_ADAPTER *ioc,
> EventNotificationReply_t *reply)
>  				    "LogInfo (0x%x) available for "
>  				   "INTERNAL_DEVICE_RESET"
>  				   "fw_id %d fw_channel %d\n", ioc->name,
> -				   log_info, id, channel));
> +				   le32_to_cpu(reply->IOCLogInfo),
> +				   id, channel));
>  				if (vtarget->raidVolume) {
>  					devtprintk(ioc, printk(MYIOC_s_DEBUG_FMT
>  					"Skipping Raid Volume for inDMD\n",
> --
> 1.7.4.rc2


      reply	other threads:[~2011-05-04 11:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-02 14:49 Borislav Petkov
2011-05-04 11:40 ` Desai, Kashyap [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=B2FD678A64EAAD45B089B123FDFC3ED70157F09DC3@inbmail01.lsi.com \
    --to=kashyap.desai@lsi.com \
    --cc=DL-MPTFusionLinux@lsi.com \
    --cc=Eric.Moore@lsi.com \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=borislav.petkov@amd.com \
    --cc=bp@amd64.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=support@lsi.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 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®