All of lore.kernel.org
 help / color / mirror / Atom feed
From: Brad Davidson <kiloman@oatmail.org>
To: linux-kernel@vger.kernel.org
Subject: drivers/ide/ppc/pmac.c:1955: `ide_dma_intr` undeclared (first use in this function) 2.6.3.bk4
Date: Fri, 27 Feb 2004 08:09:20 -0800	[thread overview]
Message-ID: <403F6BB0.3060404@oatmail.org> (raw)

I have a G3 Pismo laptop, and use the 'Builtin PowerMac IDE support' 
(BLK_DEV_IDE_PMAC) driver for the IDE controller. If I enable 'PowerMac 
IDE DMA support' (BLK_DEV_IDEDMA_PMAC) but NOT 'Generic PCI bus-master 
DMA support' (BLK_DEV_IDEDMA_PCI), I get the following error while building:

drivers/ide/ppc/pmac.c: In function `pmac_ide_dma_read':
drivers/ide/ppc/pmac.c:1955: `ide_dma_intr' undeclared (first use in 
this function)
drivers/ide/ppc/pmac.c:1955: (Each undeclared identifier is reported 
only once
drivers/ide/ppc/pmac.c:1955: for each function it appears in.)
drivers/ide/ppc/pmac.c: In function `pmac_ide_dma_write':
drivers/ide/ppc/pmac.c:1986: `ide_dma_intr' undeclared (first use in 
this function)
drivers/ide/ppc/pmac.c: In function `pmac_ide_setup_dma':
drivers/ide/ppc/pmac.c:2161: `__ide_dma_off_quietly' undeclared (first 
use in this function)
drivers/ide/ppc/pmac.c:2162: `__ide_dma_on' undeclared (first use in 
this function)
drivers/ide/ppc/pmac.c:2171: `__ide_dma_verbose' undeclared (first use 
in this function)
drivers/ide/ppc/pmac.c:2172: `__ide_dma_timeout' undeclared (first use 
in this function)
make[2]: *** [drivers/ide/ppc/pmac.o] Error 1
make[1]: *** [drivers/ide] Error 2
make: *** [drivers] Error 2

It appears to be reasonable to require BLK_DEV_IDEDMA_PCI to get 
BLK_DEV_IDEDMA_PMAC. This patch adds a dependency on BLK_DEV_IDEDMA_PCI 
to the BLK_DEV_IDEDMA_PMAC Kconfig section. Dependencies on 
BLK_DEV_IDEPCI and PCI may be required as well since you need them to 
get BLK_DEV_IDEDMA_PCI, but I thought that would be redundant so I 
didn't include them in the list.

I seem to remember running in to the same dependency in the 2.4 series, 
I'll test when I get the chance.

This patch is against 2.6.3-bk4, but since it's just a one liner, it 
should apply to whatever is current.

--- linux-2.6.3-bk4/drivers/ide/Kconfig 2004-02-23 02:55:06.000000000 -0800
+++ linux-2.6.3-bk4-bdavidson/drivers/ide/Kconfig       2004-02-27 
07:54:05.019756592 -0800
@@ -816,7 +816,7 @@

  config BLK_DEV_IDEDMA_PMAC
         bool "PowerMac IDE DMA support"
-       depends on BLK_DEV_IDE_PMAC
+       depends on BLK_DEV_IDE_PMAC && BLK_DEV_IDEDMA_PCI
         help
           This option allows the driver for the built-in IDE controller on
           Power Macintoshes and PowerBooks to use DMA (direct memory 
access)

--

I also noticed that BLK_DEV_IDEPCI says:
default BLK_DEV_IDEDMA_PMAC if PPC_PMAC && BLK_DEV_IDEDMA_PMAC
which seems circular to me. There may be a good reason for it, but I 
thought I'd bring it up.

-Brad

                 reply	other threads:[~2004-02-27 16:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=403F6BB0.3060404@oatmail.org \
    --to=kiloman@oatmail.org \
    --cc=linux-kernel@vger.kernel.org \
    /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.