lkml.org 
[lkml]   [1999]   [Oct]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Megaraid versus Initio INI-A100

Alan Cox wrote:
>
> > The Megaraid-scsi driver defines SCB_COMPLETE as 0x4 while the Initio
> > INI-A100 defines it as 0x00. (megaraid.h vs inia100.h in drivers/scsi)
> >
> > If both cards are selected, drivers/scsi/hosts.c includes both
> > header-files. Should this clash be resolved or is it just harmless?
>
> It is probably harmless but it is untidy. Perhaps rename one of them and
> send me a patch ?

In hosts.c HOSTS_C (or something like that) is defined so that driver
header files can avoid this while keeping commonly used names, i.e:

#ifdef HOSTS_C
... only the stuff required for compiling hosts.c ...
#else
... all the private #defines to be seen only by my driver
#endif

This saves trying to come up with 1001 unique names for things
like SCB_COMPLETE.

Paul.



__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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