lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sun, 25 Apr 2010 22:46:35 +0900 From: FUJITA Tomonori <fujita.tomonori@....ntt.co.jp> To: geert@...ux-m68k.org Cc: fujita.tomonori@....ntt.co.jp, akpm@...ux-foundation.org, linux-kernel@...r.kernel.org, zippel@...ux-m68k.org, linux-m68k@...r.kernel.org Subject: Re: [PATCH -mm 06/12] m68k: use asm-generic/scatterlist.h On Fri, 23 Apr 2010 10:29:04 +0200 Geert Uytterhoeven <geert@...ux-m68k.org> wrote: > > +#include <asm-generic/scatterlist.h> > > This include should be ... > > > /* This is bogus and should go away. */ > > #define ISA_DMA_THRESHOLD (0x00ffffff) asm-generic/scatterlist.h can't define ISA_DMA_THRESHOLD because of the way POWERPC uses ISA_DMA_THRESHOLD. > ... below this definition, else you get duplicate definition errors > (and the wrong definition). > > > -#define sg_dma_address(sg) ((sg)->dma_address) > > -#define sg_dma_len(sg) ((sg)->length) This patch needs to be applied against -mm; including some changes to asm-generic/scatterlist.h. I've attached asm-generic/scatterlist.h in -mm. = #ifndef __ASM_GENERIC_SCATTERLIST_H #define __ASM_GENERIC_SCATTERLIST_H #include <linux/types.h> struct scatterlist { #ifdef CONFIG_DEBUG_SG unsigned long sg_magic; #endif unsigned long page_link; unsigned int offset; unsigned int length; dma_addr_t dma_address; #ifdef CONFIG_NEED_SG_DMA_LENGTH unsigned int dma_length; #endif }; /* * These macros should be used after a dma_map_sg call has been done * to get bus addresses of each of the SG entries and their lengths. * You should only work with the number of sg entries pci_map_sg * returns, or alternatively stop on the first sg_dma_len(sg) which * is 0. */ #define sg_dma_address(sg) ((sg)->dma_address) #ifdef CONFIG_NEED_SG_DMA_LENGTH #define sg_dma_len(sg) ((sg)->dma_length) #else #define sg_dma_len(sg) ((sg)->length) #endif #endif /* __ASM_GENERIC_SCATTERLIST_H */ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists