Add CONFIG_DEBUG_SG sg validation
[powerpc.git] / include / asm-m68knommu / scatterlist.h
index 2085d6f..1094284 100644 (file)
@@ -2,9 +2,13 @@
 #define _M68KNOMMU_SCATTERLIST_H
 
 #include <linux/mm.h>
+#include <asm/types.h>
 
 struct scatterlist {
-       struct page     *page;
+#ifdef CONFIG_DEBUG_SG
+       unsigned long   sg_magic;
+#endif
+       unsigned long   page_link;
        unsigned int    offset;
        dma_addr_t      dma_address;
        unsigned int    length;