From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hannes Reinecke Subject: Re: [PATCH] scsi: Check if WSR already defined Date: Thu, 07 Aug 2014 15:07:23 +0200 Message-ID: <53E37A0B.1060105@suse.de> References: <1407389918-10463-1-git-send-email-xerofoiify@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from cantor2.suse.de ([195.135.220.15]:35244 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754471AbaHGNHZ (ORCPT ); Thu, 7 Aug 2014 09:07:25 -0400 In-Reply-To: <1407389918-10463-1-git-send-email-xerofoiify@gmail.com> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Nick Krause , Matthew Wilcox , "James E.J. Bottomley" , "open list:LSILOGIC/SYMBIOS/..." , open list On 08/07/2014 07:38 AM, Nick Krause wrote: > On xtensa arch there is this warning > > drivers/scsi/sym53c8xx_2/sym_defs.h:109:0: warning: "WSR" redefined [= enabled by default] > arch/xtensa/include/asm/processor.h:188:0: note: this is the location= of the previous definition > > I can remove WSR since it is not being used but more documentation pu= rpose, so > undefining is enough. > > Signed-off-by: Nick Krause > --- > drivers/scsi/sym53c8xx_2/sym_defs.h | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/scsi/sym53c8xx_2/sym_defs.h b/drivers/scsi/sym53= c8xx_2/sym_defs.h > index defccc4..68334a5 100644 > --- a/drivers/scsi/sym53c8xx_2/sym_defs.h > +++ b/drivers/scsi/sym53c8xx_2/sym_defs.h > @@ -91,6 +91,10 @@ struct sym_chip { > #define FE_CACHE0_SET (FE_CACHE_SET & ~FE_ERL) > }; > > +#ifdef WSR > +#undef WSR > +#endif > + > /* > * SYM53C8XX IO register data structure. > */ > Ouch. Certainly not. Who knows for which odd function the 'WSR' definition=20 is used. Better to redefine WSR in sym_defs.h. Cheers, Hannes --=20 Dr. Hannes Reinecke zSeries & Storage hare@suse.de +49 911 74053 688 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg GF: J. Hawn, J. Guild, F. Imend=F6rffer, HRB 16746 (AG N=FCrnberg) -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html