public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* ide-xxx.c and KBUILD_MODNAME
@ 2005-03-20 16:48 Magnus Damm
  0 siblings, 0 replies; only message in thread
From: Magnus Damm @ 2005-03-20 16:48 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-03-20 16:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-20 16:48 ide-xxx.c and KBUILD_MODNAME Magnus Damm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox