initio.h header user confusion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm working on a set of patches for the initio scsi driver and I found
some strangeness with its header file, initio.h. I noticed that
sun3_scsi.c and sun3_scsi_vme.c include the header, and it uses defines
such as SCSI_ABORT_SNOOZE (defined in initio.h).

I did some grepping and am now confused. Grepping the entire kernel tree
like so:

  grep -r SCSI_ABORT_ ~/kernelcoding/linux-2.6-rc-latest/*

gives me a handful of scsi drivers that use these defines.

Grepping the kernel source for these defines like so:

   grep -r SCSI_ABORT_ ~/kernelcoding/linux-2.6-rc-latest/* | grep define

only gives me drivers/scsi/initio.h, so they are only defined in
initio.h

Grepping the whole kernel source for drivers/headers that include
initio.h like so:
   grep -r "initio.h" ~/kernelcoding/linux-2.6-rc-latest/*

only gives me 3 results - initio.c, sun3_scsi.c and sun3_scsi_vme.c.

So how is it possible that other drivers such as aha1542.c use these defines?

Can anyone please explain this as it's really confused me, and I want
to make sure that my patches don't break other drivers when I post
them here.

Many thanks,

Srdjan
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux