From: Hannes Reinecke <hare@suse.de>
To: Johannes Thumshirn <jthumshirn@suse.de>,
Jim Davis <jim.epost@gmail.com>,
Stephen Rothwell <sfr@canb.auug.org.au>,
JBottomley@odin.com
Cc: linux-scsi <linux-scsi@vger.kernel.org>,
linux-kernel <linux-kernel@vger.kernel.org>,
linux-next <linux-next@vger.kernel.org>
Subject: Re: [PATCH] advansys: fix compilation errors and warnings when CONFIG_PCI is not set
Date: Fri, 05 Jun 2015 15:09:20 +0200 [thread overview]
Message-ID: <55719F80.8010702@suse.de> (raw)
In-Reply-To: <1433318202-1455-1-git-send-email-jthumshirn@suse.de>
On 06/03/2015 09:56 AM, Johannes Thumshirn wrote:
> Fix compilation errors on forgotten #include <linux/dmapool.h> and warnings when
> CONFIG_PCI is not set.
>
> Reported-by: Jim Davis <jim.epost@gmail.com>
> Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
> ---
> drivers/scsi/advansys.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/scsi/advansys.c b/drivers/scsi/advansys.c
> index 14d3aa5..4305178 100644
> --- a/drivers/scsi/advansys.c
> +++ b/drivers/scsi/advansys.c
> @@ -37,6 +37,7 @@
> #include <linux/spinlock.h>
> #include <linux/dma-mapping.h>
> #include <linux/firmware.h>
> +#include <linux/dmapool.h>
>
> #include <asm/io.h>
> #include <asm/dma.h>
> @@ -9435,6 +9436,7 @@ static int AscInitSetConfig(struct pci_dev *pdev, struct Scsi_Host *shost)
> * on big-endian platforms so char fields read as words are actually being
> * unswapped on big-endian platforms.
> */
> +#ifdef CONFIG_PCI
> static ADVEEP_3550_CONFIG Default_3550_EEPROM_Config = {
> ADV_EEPROM_BIOS_ENABLE, /* cfg_lsw */
> 0x0000, /* cfg_msw */
> @@ -9771,7 +9773,6 @@ static ADVEEP_38C1600_CONFIG ADVEEP_38C1600_Config_Field_IsChar = {
> 0 /* 63 reserved */
> };
>
> -#ifdef CONFIG_PCI
> /*
> * Wait for EEPROM command to complete
> */
> @@ -11385,7 +11386,9 @@ static int advansys_board_found(struct Scsi_Host *shost, unsigned int iop,
> err_unmap:
> if (boardp->ioremap_addr)
> iounmap(boardp->ioremap_addr);
> +#ifdef CONFIG_PCI
> err_shost:
> +#endif
> return ret;
> }
>
>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Cheers,
Hannes
--
Dr. Hannes Reinecke zSeries & Storage
hare@suse.de +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)
prev parent reply other threads:[~2015-06-05 13:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-02 16:27 randconfig build error with next-20150602, in drivers/scsi/advansys.c Jim Davis
2015-06-03 7:56 ` [PATCH] advansys: fix compilation errors and warnings when CONFIG_PCI is not set Johannes Thumshirn
2015-06-05 13:09 ` 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=55719F80.8010702@suse.de \
--to=hare@suse.de \
--cc=JBottomley@odin.com \
--cc=jim.epost@gmail.com \
--cc=jthumshirn@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=sfr@canb.auug.org.au \
/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;
as well as URLs for NNTP newsgroup(s).