planned change to <asm-generic/dma-mapping.h> will cause arch breakage

planned change to <asm-generic/dma-mapping.h> will cause arch breakage

Post by Christoph Hellwi » Sat, 26 Apr 2003 13:50:04



To allow including <linux/dma-mapping.h> in generic code the default
implemtation of the dma-mapping API in terms of the PCI API will have
to go away.  What does this mean for your architecture?

 - If your architecture doesn't use <asm-generic/dma-mapping.h>
   (arm, i386, parisc):  Nothing.
 - If your architecture doesn't support PCI (cris, s390. um):
   Nothing, except that your arch won't break anymore if somsone
   includes dma-mapping.h in generic code.  But it would be cool to move
   over your dma-capable busses to the dma-mapping API...
 - Everyone else:  Unless you properly implement the dma-mapping in
   your architecture the dma_* APIs won't work anymore for you.
   The simplest way to get support for it on pci busses is to change
   your implementation of the pci_* dma functions to the dma_* prototypes
   and add the following to their top:

        struct pci_dev *pdev = to_pci_dev(dev);

   and maybe

        BUG_ON(dev->bus != &pci_bus_type);

   Of course it would be much nicer if you could add support for the
   dma-mapping API to your other dma-capable busses..
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. [v850] Use <asm-generic/statsfs.h> on v850

diff -ruN -X../cludes linux-2.5.73-moo/include/asm-v850/statfs.h linux-2.5.73-moo-v850-20030624/include/asm-v850/statfs.h
--- linux-2.5.73-moo/include/asm-v850/statfs.h  2002-11-05 11:25:32.000000000 +0900

 #ifndef __V850_STATFS_H__
 #define __V850_STATFS_H__

-#ifndef __KERNEL_STRICT_NAMES
-
-#include <linux/types.h>
-
-typedef __kernel_fsid_t        fsid_t;
-
-#endif
-
-struct statfs {
-       long f_type;
-       long f_bsize;
-       long f_blocks;
-       long f_bfree;
-       long f_bavail;
-       long f_files;
-       long f_ffree;
-       __kernel_fsid_t f_fsid;
-       long f_namelen;
-       long f_spare[6];
-};
+#include <asm-generic/statfs.h>

 #endif /* __V850_STATFS_H__ */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. xtrek on aix

3. [trivial] include <asm-generic/topology.h>

4. PCI devmap_devmem_setup, bus-error when reading past 1a000

5. #include <asm/bitops.h> -> #include <linux/bitops.h>

6. Corel Linux and KPPP

7. [TRIVIAL] Add back in <asm/system.h> and <linux/linkage.h> to <linux/interrupt.h>

8. S3 (924) and PC7XV

9. [RESEND] Add back in <asm/system.h> and <linux/linkage.h> to <linux/interrupt.h>

10. #define NOERROR in <sys/stream.h> and <arpa/nameser.h>

11. Kernel include files <sys/socket.h> and <linux/in.h>

12. include files <sys/ipc.h> and <sys/shm.h>

13. 1.3.98: <linux/if_arp.h> needs to include <linux/netdevice.h>