Skip to contentSkip to conversation

internal struct dma_coherent_mem, change type of a member.

PATCH New Marin Mitov 1 participant 1 message May 31, 2010 Driver core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 internal struct dma_coherent_mem, change type of a member.

Hi Greg,

struct dma_coherent_mem in drivers/base/dma-coherent.c has member 'device_base' that is of type u32, but is assigned value of type dma_addr_t, which may be 64 bits for x86_64. Change the type to dma_addr_t.

==================================================================

drivers/base/dma-coherent.c +1 -1
@@ -8,7 +8,7 @@
 
 struct dma_coherent_mem {
 	void		*virt_base;
-	u32		device_base;
+	dma_addr_t	device_base;
 	int		size;
 	int		flags;
 	unsigned long	*bitmap;