mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH -mm] Blackfin arch: fix struct dmasg packing bug
@ 2007-03-26 10:11 Wu, Bryan
  0 siblings, 0 replies; only message in thread
From: Wu, Bryan @ 2007-03-26 10:11 UTC (permalink / raw)
  To: Andrew Morton, Arnd Bergmann, Paul Mundt, linux-kernel

Hi folks,

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

Signed-off-by: Bryan Wu <bryan.wu@analog.com>
---

 include/asm-blackfin/dma.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6/include/asm-blackfin/dma.h
===================================================================
--- linux-2.6.orig/include/asm-blackfin/dma.h
+++ 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-03-26 10:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-26 10:11 [PATCH -mm] Blackfin arch: fix struct dmasg packing bug Wu, Bryan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome