瀏覽代碼

omap4+: Avoid using __attribute__ ((__packed__))

Avoid using __attribute__ ((__packed__)) unless it's
absolutely necessary. "packed" will remove alignment
requirements for the respective objects and may cause
alignment issues unless alignment is also enforced
using a pragma.

Here, these packed attributes were causing alignment
faults in Thumb build.

Signed-off-by: Aneesh V <aneesh@ti.com>
Aneesh V 13 年之前
父節點
當前提交
03f69dc6fd
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      arch/arm/include/asm/arch-omap4/mux_omap4.h
  2. 1 1
      arch/arm/include/asm/arch-omap5/mux_omap5.h

+ 1 - 1
arch/arm/include/asm/arch-omap4/mux_omap4.h

@@ -34,7 +34,7 @@ struct pad_conf_entry {
 
 	u16 val;
 
-} __attribute__ ((packed));
+};
 
 #ifdef CONFIG_OFF_PADCONF
 #define OFF_PD          (1 << 12)

+ 1 - 1
arch/arm/include/asm/arch-omap5/mux_omap5.h

@@ -34,7 +34,7 @@ struct pad_conf_entry {
 
 	u16 val;
 
-} __attribute__ ((__packed__));
+};
 
 #ifdef CONFIG_OFF_PADCONF
 #define OFF_PD          (1 << 12)