From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>,
linux-next@vger.kernel.org
Subject: Re: linux-next: ide build failure
Date: Mon, 16 Jun 2008 13:55:43 +1000 [thread overview]
Message-ID: <1213588543.8129.122.camel@pasglop> (raw)
In-Reply-To: <20080616133817.83c9f304.sfr@canb.auug.org.au>
On Mon, 2008-06-16 at 13:38 +1000, Stephen Rothwell wrote:
> Hi Bart,
>
> Today's linux-next build (powerpc ppc64_defconfig) failed like this:
>
> drivers/ide/ppc/pmac.c: In function 'pmac_ide_cable_detect':
> drivers/ide/ppc/pmac.c:926: error: implicit declaration of function 'drv_get_drvdata'
> drivers/ide/ppc/pmac.c:926: warning: cast to pointer from integer of different size
> drivers/ide/ppc/pmac.c: In function 'pmac_ide_init_dev':
> drivers/ide/ppc/pmac.c:950: warning: cast to pointer from integer of different size
> drivers/ide/ppc/pmac.c: In function 'pmac_ide_setup_device':
> drivers/ide/ppc/pmac.c:1082: error: request for member 'irq' in something not a structure or union
> drivers/ide/ppc/pmac.c: In function 'pmac_ide_pci_suspend':
> drivers/ide/ppc/pmac.c:1321: error: 'hwif' undeclared (first use in this function)
> drivers/ide/ppc/pmac.c:1321: error: (Each undeclared identifier is reported only once
> drivers/ide/ppc/pmac.c:1321: error: for each function it appears in.)
> drivers/ide/ppc/pmac.c:1316: warning: unused variable 'pmif'
> drivers/ide/ppc/pmac.c: In function 'pmac_ide_pci_resume':
> drivers/ide/ppc/pmac.c:1336: error: 'hwif' undeclared (first use in this function)
> drivers/ide/ppc/pmac.c:1332: warning: unused variable 'pmif'
>
> I applied the patch below ... (which clearly needs work)
Bart, I hadn't managed to review / test your new patches yet, but
please, avoid putting anything touching the pmac stuff in your
"next" tree until it's been fully acked by me. Stuff in linux-next
is stuff that is supposed to be -ready to be merged- upstream. Those
patches definitely are not.
Thanks !
Ben.
> --
> Cheers,
> Stephen Rothwell sfr@canb.auug.org.au
> http://www.canb.auug.org.au/~sfr/
>
> >From e23339391c5e18a12f2c5d51ca5032df92d9d978 Mon Sep 17 00:00:00 2001
> From: Stephen Rothwell <sfr@canb.auug.org.au>
> Date: Mon, 16 Jun 2008 13:35:36 +1000
> Subject: [PATCH] ide pmac fixes 1
>
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
> ---
> drivers/ide/ppc/pmac.c | 16 ++++++++--------
> 1 files changed, 8 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/ide/ppc/pmac.c b/drivers/ide/ppc/pmac.c
> index 0671fb8..363bc4e 100644
> --- a/drivers/ide/ppc/pmac.c
> +++ b/drivers/ide/ppc/pmac.c
> @@ -923,7 +923,7 @@ static int pmac_ide_do_resume(pmac_ide_hwif_t *pmif)
> static u8 pmac_ide_cable_detect(ide_hwif_t *hwif)
> {
> pmac_ide_hwif_t *pmif =
> - (pmac_ide_hwif_t *)drv_get_drvdata(hwif->gendev.parent);
> + (pmac_ide_hwif_t *)dev_get_drvdata(hwif->gendev.parent);
> struct device_node *np = pmif->node;
> const char *cable = of_get_property(np, "cable-type", NULL);
>
> @@ -947,7 +947,7 @@ static void pmac_ide_init_dev(ide_drive_t *drive)
> {
> ide_hwif_t *hwif = drive->hwif;
> pmac_ide_hwif_t *pmif =
> - (pmac_ide_hwif_t *)drv_get_drvdata(hwif->gendev.parent);
> + (pmac_ide_hwif_t *)dev_get_drvdata(hwif->gendev.parent);
>
> if (pmif->mediabay) {
> #ifdef CONFIG_PMAC_MEDIABAY
> @@ -1076,10 +1076,10 @@ static int __devinit pmac_ide_setup_device(pmac_ide_hwif_t *pmif, hw_regs_t *hw)
> msleep(jiffies_to_msecs(IDE_WAKEUP_DELAY));
> }
>
> - printk(KERN_INFO DRV_NAME ": Found Apple %s controller (%s), "
> - "bus ID %d%s, irq %d\n", model_name[pmif->kind],
> - pmif->mdev ? "MacIO" : "PCI", pmif->aapl_bus_id,
> - pmif->mediabay ? " (mediabay)" : "", hw.irq);
> +// printk(KERN_INFO DRV_NAME ": Found Apple %s controller (%s), "
> +// "bus ID %d%s, irq %d\n", model_name[pmif->kind],
> +// pmif->mdev ? "MacIO" : "PCI", pmif->aapl_bus_id,
> +// pmif->mediabay ? " (mediabay)" : "", hw.irq);
>
> hwif = ide_find_port_slot(&d);
> if (hwif == NULL)
> @@ -1318,7 +1318,7 @@ pmac_ide_pci_suspend(struct pci_dev *pdev, pm_message_t mesg)
>
> if (mesg.event != pdev->dev.power.power_state.event
> && (mesg.event & PM_EVENT_SLEEP)) {
> - rc = pmac_ide_do_suspend(hwif);
> + rc = pmac_ide_do_suspend(pmif);
> if (rc == 0)
> pdev->dev.power.power_state = mesg;
> }
> @@ -1333,7 +1333,7 @@ pmac_ide_pci_resume(struct pci_dev *pdev)
> int rc = 0;
>
> if (pdev->dev.power.power_state.event != PM_EVENT_ON) {
> - rc = pmac_ide_do_resume(hwif);
> + rc = pmac_ide_do_resume(pmif);
> if (rc == 0)
> pdev->dev.power.power_state = PMSG_ON;
> }
next prev parent reply other threads:[~2008-06-16 3:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-16 3:38 linux-next: ide build failure Stephen Rothwell
2008-06-16 3:55 ` Benjamin Herrenschmidt [this message]
2008-06-16 9:54 ` Bartlomiej Zolnierkiewicz
2008-06-16 19:24 ` Bartlomiej Zolnierkiewicz
2008-06-16 22:40 ` Benjamin Herrenschmidt
2008-06-17 9:53 ` Bartlomiej Zolnierkiewicz
-- strict thread matches above, loose matches on Subject: below --
2008-05-30 1:54 Stephen Rothwell
2008-05-31 13:38 ` Bartlomiej Zolnierkiewicz
2008-06-01 2:05 ` Stephen Rothwell
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=1213588543.8129.122.camel@pasglop \
--to=benh@kernel.crashing.org \
--cc=bzolnier@gmail.com \
--cc=linux-next@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 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.