From: Andries.Brouwer@cwi.nl
To: alan@lxorguk.ukuu.org.uk
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH?] ide_setup_dma undefined
Date: Tue, 4 Mar 2003 11:20:29 +0100 (MET) [thread overview]
Message-ID: <UTC200303041020.h24AKTA23975.aeb@smtp.cwi.nl> (raw)
If one compiles 2.4.21-pre5 without CONFIG_BLK_DEV_IDEDMA_PCI
the compilation fails with undefined ide_setup_dma().
And indeed, ide_setup_dma is called in ide_hwif_setup_dma
in setup-pci.c.
One of the ways to make the kernel compile with this config is
--- ../../linux-2.4.21-pre5/linux/include/linux/ide.h Tue Mar 4 02:25:12 2003
+++ include/linux/ide.h Tue Mar 4 11:07:32 2003
@@ -1719,6 +1719,7 @@
extern int __ide_dma_lostirq(ide_drive_t *);
extern int __ide_dma_timeout(ide_drive_t *);
#else
+static inline void ide_setup_dma(ide_hwif_t *x, unsigned long y, unsigned int z) {;}
static inline void ide_release_dma(ide_hwif_t *x) {;}
#endif
Andries
[much larger changes might be appropriate]
reply other threads:[~2003-03-04 10:10 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=UTC200303041020.h24AKTA23975.aeb@smtp.cwi.nl \
--to=andries.brouwer@cwi.nl \
--cc=alan@lxorguk.ukuu.org.uk \
--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 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®