public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* initio.h header user confusion
@ 2007-02-21 16:12 Srdjan Todorovic
  2007-02-21 16:20 ` Matthew Wilcox
  2007-02-21 16:57 ` James Bottomley
  0 siblings, 2 replies; 6+ messages in thread
From: Srdjan Todorovic @ 2007-02-21 16:12 UTC (permalink / raw)
  To: linux-scsi

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-02-21 17:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-21 16:12 initio.h header user confusion Srdjan Todorovic
2007-02-21 16:20 ` Matthew Wilcox
2007-02-21 16:36   ` Srdjan Todorovic
2007-02-21 16:52     ` Matthew Wilcox
2007-02-21 16:57 ` James Bottomley
2007-02-21 17:33   ` Srdjan Todorovic

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