All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] DMA_{32,64}BIT_MASK
@ 2007-06-06  1:59 Kevin Jackson
  2007-06-06  3:23 ` Richard Knutsson
  0 siblings, 1 reply; 2+ messages in thread
From: Kevin Jackson @ 2007-06-06  1:59 UTC (permalink / raw)
  To: kernel-janitors

Hi,

Based on this TODO:
- pci_set_dma_mask() and friends should use DMA_{32,64}BIT_MASK instead of...

I started playing with grep to see if I could find any code which
wasn't using this DMA_32|64BIT_MASK.

In drivers/scsi/3w-xxxx.c, instead of using DMA_32BIT_MASK the
pci_set_dma_mask uses TW_DMA_MASK which is declared in
drivers/scsi/3-xxxx.h :

#define TW_DMA_MASK                           DMA_32BIT_MASK

This looks to my untrained eye like an API was changed and to get
compatibility, the TW_DMA_MASK was simply defined to be the same as
DMA_32BIT_MASK.

Again this is my second day (about 4 hours in) at looking at kernel
code, but my naive assumption is that nothing would be lost by
removing the TW_DMA_MASK definition completely from both the .c and .h
files and using the DMA_32BIT_MASK directly.

Can anyone tell me that I'm either correct or talking total crap? :)
If I'm right about this the next step would of course be to supply a
(very minor) patch with the changes... scary stuff ;)

Thanks,
Kev
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors

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

end of thread, other threads:[~2007-06-06  3:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-06  1:59 [KJ] DMA_{32,64}BIT_MASK Kevin Jackson
2007-06-06  3:23 ` Richard Knutsson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.