From: "Peter Teoh" <htmldeveloper@gmail.com>
To: "Wenji Huang" <wenji.huang@oracle.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: LPFC compilation error in 2.6.24-git12/git13
Date: Sun, 3 Feb 2008 19:25:52 +0800 [thread overview]
Message-ID: <804dabb00802030325v12cb95cen75179941fa4443cb@mail.gmail.com> (raw)
In-Reply-To: <804dabb00802030320s5d60a871kbae9f48d67380384@mail.gmail.com>
On 2/3/08, Peter Teoh <htmldeveloper@gmail.com> wrote:
> On 2/3/08, Wenji Huang <wenji.huang@oracle.com> wrote:
> > Hi,
> >
> > Found compilation error in 2.6.24-git12/git13:
> >
> > CC [M] drivers/scsi/lpfc/lpfc_mem.o
> > CC [M] drivers/scsi/lpfc/lpfc_sli.o
> > CC [M] drivers/scsi/lpfc/lpfc_ct.o
> > CC [M] drivers/scsi/lpfc/lpfc_els.o
> > CC [M] drivers/scsi/lpfc/lpfc_hbadisc.o
> > CC [M] drivers/scsi/lpfc/lpfc_init.o
> > drivers/scsi/lpfc/lpfc_init.c: In function 'lpfc_pci_probe_one':
> > drivers/scsi/lpfc/lpfc_init.c:1897: error: implicit declaration of
> > function 'pci_enable_device_bars'
> > make[3]: *** [drivers/scsi/lpfc/lpfc_init.o] Error 1
> > make[2]: *** [drivers/scsi/lpfc] Error 2
> > make[1]: *** [drivers/scsi] Error 2
> > make: *** [drivers] Error 2
> >
> > pci_enable_device_bars is removed in commit
> > 215e871aaa3d94540121a3809d80d0c5e5686e4f.
> >
> > Regards,
> > Wenji
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
> > Please read the FAQ at http://www.tux.org/lkml/
> >
>
> Removed by:
>
> http://www.mail-archive.com/linux-kernel@vger.kernel.org/msg241836.html
>
> Following suggestions from:
>
> http://lkml.org/lkml/2007/12/17/422
> and
> http://www.gossamer-threads.com/lists/linux/kernel/873333
>
> This is my suggested patch:
>
>
> --- drivers/scsi/lpfc/lpfc_init.c 2008-02-03 19:26:42.000000000 +0800
> +++ lpfc_init.c.old 2008-02-03 19:26:20.000000000 +0800
> @@ -1894,7 +1894,7 @@ lpfc_pci_probe_one(struct pci_dev *pdev,
> uint16_t iotag;
> int bars = pci_select_bars(pdev, IORESOURCE_MEM);
>
> - if (pci_enable_device_io(pdev))
> + if (pci_enable_device_bars(pdev, bars))
> goto out;
> if (pci_request_selected_regions(pdev, bars, LPFC_DRIVER_NAME))
> goto out_disable_device;
>
> Is that correct?
>
Sorry got my order wrong :-):
--- lpfc_init.c.old 2008-02-03 19:26:20.000000000 +0800
+++ drivers/scsi/lpfc/lpfc_init.c 2008-02-03 19:26:42.000000000 +0800
@@ -1894,7 +1894,7 @@ lpfc_pci_probe_one(struct pci_dev *pdev,
uint16_t iotag;
int bars = pci_select_bars(pdev, IORESOURCE_MEM);
- if (pci_enable_device_bars(pdev, bars))
+ if (pci_enable_device_io(pdev))
goto out;
if (pci_request_selected_regions(pdev, bars, LPFC_DRIVER_NAME))
goto out_disable_device;
next prev parent reply other threads:[~2008-02-03 11:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-03 9:36 Wenji Huang
2008-02-03 11:20 ` Peter Teoh
2008-02-03 11:25 ` Peter Teoh [this message]
2008-02-03 17:35 ` Jeff Garzik
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=804dabb00802030325v12cb95cen75179941fa4443cb@mail.gmail.com \
--to=htmldeveloper@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=wenji.huang@oracle.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®