lkml.org 
[lkml]   [2005]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectide-xxx.c and KBUILD_MODNAME
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:11    [W:0.027 / U:0.804 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site