From: Wickus Botha <Wickus@na.co.za>
To: "'linux-kernel@vger.kernel.org'" <linux-kernel@vger.kernel.org>
Subject: hd.c not compiling.
Date: Tue, 14 May 2002 10:24:51 +0200 [thread overview]
Message-ID: <297DCD5CCA4AD411A246009027F646B30276489D@NETMAIL> (raw)
Hey
I'm busy testing the new development kernel 2.5.15. Each time it gets to
compiling the ide stuff it fails.
make[3]: Entering directory `/usr/src/linux-2.5.15/drivers/ide'
gcc -D__KERNEL__ -I/usr/src/linux-2.5.15/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common
-pipe -mpreferred-stack-boundary=2 -march=i686 -DKBUILD_BASENAME=hd -c
-o hd.o hd.c
hd.c: In function `hd_out':
hd.c:282: `TIMEOUT_VALUE' undeclared (first use in this function)
hd.c:282: (Each undeclared identifier is reported only once
hd.c:282: for each function it appears in.)
hd.c: In function `unexpected_hd_interrupt':
hd.c:363: `TIMEOUT_VALUE' undeclared (first use in this function)
hd.c: In function `read_intr':
hd.c:432: `TIMEOUT_VALUE' undeclared (first use in this function)
hd.c: In function `write_intr':
hd.c:470: `TIMEOUT_VALUE' undeclared (first use in this function)
hd.c: In function `hd_request':
hd.c:553: `TIMEOUT_VALUE' undeclared (first use in this function)
hd.c: In function `hd_init':
hd.c:830: `DEVICE_REQUEST' undeclared (first use in this function)
hd.c: At top level:
hd.c:615: warning: `do_hd_request' defined but not used
make[3]: *** [hd.o] Error 1
I've noticed /usr/src/linux/include/linux/blk.h doesn't have the following 2
entries anymore
#define TIMEOUT_VALUE (6*HZ)
#define DEVICE_REQUEST do_hd_request
I added them to the blk.h file and its compiling fine now
#elif (MAJOR_NR == HD_MAJOR)
/* Hard disk: timeout is 6 seconds. */
#define DEVICE_NAME "hard disk"
#define DEVICE_INTR do_hd
#define TIMEOUT_VALUE (6*HZ)
#define DEVICE_REQUEST do_hd_request
#define DEVICE_NR(device) (minor(device)>>6)
---------------------------------------------------------------------------
VIRUS FREE EMAIL: This message has been screened and determined free
of all known viruses by NetActive Mail Control. For more information on
Mail Scanning, Internet Access, Virtual Private Networks (VPN), Managed
Firewall security and other IT Services, please visit us at
http://www.netactive.co.za
next reply other threads:[~2002-05-14 8:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-14 8:24 Wickus Botha [this message]
2002-05-14 9:40 ` Keith Owens
2002-05-14 12:53 ` Mikael Pettersson
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=297DCD5CCA4AD411A246009027F646B30276489D@NETMAIL \
--to=wickus@na.co.za \
--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®