From: Magnus Damm <magnus.damm@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: ide-xxx.c and KBUILD_MODNAME
Date: Sun, 20 Mar 2005 17:48:13 +0100 [thread overview]
Message-ID: <aec7e5c305032008487f378246@mail.gmail.com> (raw)
Hello again,
The KBUILD_MODNAME problem with af_unix.c is sort of also affecting
the ide code, but with another twist. "unix" is not a problem, but
KBUILD_MODNAME collides with constants defined in <linux/ide.h>:
[snip]
/*
* Now for the data we need to maintain per-drive: ide_drive_t
*/
#define ide_scsi 0x21
#define ide_disk 0x20
#define ide_optical 0x7
#define ide_cdrom 0x5
#define ide_tape 0x1
#define ide_floppy 0x0
[snip]
this results in wierd KBUILD_MODNAME preprocessing:
- KBUILD_MODNAME in ide-disk.c equals "0x20"
- KBUILD_MODNAME in ide-tape.c equals "0x1"
- KBUILD_MODNAME in ide-floppy.c equals "0x0"
Why again are we using lowercase constants?
/ magnus
reply other threads:[~2005-03-20 16:48 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=aec7e5c305032008487f378246@mail.gmail.com \
--to=magnus.damm@gmail.com \
--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.