瀏覽代碼

[bitops] Add missing __attribute__ (( packed ))

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 13 年之前
父節點
當前提交
00f5ba701f
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/include/ipxe/bitops.h

+ 1
- 1
src/include/ipxe/bitops.h 查看文件

@@ -66,7 +66,7 @@ typedef unsigned char pseudo_bit_t;
66 66
 		uint32_t dwords[ sizeof ( _structure ) / 32 ];		      \
67 67
 		uint64_t qwords[ sizeof ( _structure ) / 64 ];		      \
68 68
 		_structure *dummy[0];					      \
69
-	} u
69
+	} __attribute__ (( packed )) u
70 70
 
71 71
 /** Get pseudo_bit_t structure type from wrapper structure pointer */
72 72
 #define PSEUDO_BIT_STRUCT_TYPE( _ptr )					      \

Loading…
取消
儲存