Skip to contentSkip to conversation

Blackfin arch: fix struct dmasg packing bug

PATCH New Wu, Bryan 1 participant 1 message Mar 26, 2007

lore
Share & tools
lore

Wu, Bryan

author
#0 lore raw

PATCH 1/1 Blackfin arch: fix struct dmasg packing bug

Hi folks,

This patch fix a bug about struct dmasg packed missing bug. Using __attribute__ instead of pragma.

---

 include/asm-blackfin/dma.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/asm-blackfin/dma.h +1 -1
Index: linux-2.6/include/asm-blackfin/dma.h
===================================================================
@@ -84,7 +84,7 @@
 	short x_modify;
 	unsigned short y_count;
 	short y_modify;
-};
+} __attribute__((packed));
 
 struct dma_register {
 	unsigned long next_desc_ptr;	/* DMA Next Descriptor Pointer register */

_

Thanks,
-Bryan Wu