diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2006-08-17 02:28:28 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-08-24 23:27:35 -0400 |
commit | e2bf2e26c0915d54208315fc8c9864f1d987217a (patch) | |
tree | 23946098081ac558faabaaadd0f1ea88416aeb72 /arch/powerpc/platforms | |
parent | 6f3d5d3cc4b1447578ae8484166bbc34a64150c5 (diff) |
[POWERPC] iseries: remove some gcc 4.1 warnings
gcc 4.1 produces some warnings that say it is ignoring the packed
attribute on some structure elements, so, since all the elements of
these structs are packed, pack the structs instead.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/iseries/main_store.h | 126 |
1 files changed, 63 insertions, 63 deletions
diff --git a/arch/powerpc/platforms/iseries/main_store.h b/arch/powerpc/platforms/iseries/main_store.h index 74f6889f834f..1a7a3f50e40b 100644 --- a/arch/powerpc/platforms/iseries/main_store.h +++ b/arch/powerpc/platforms/iseries/main_store.h | |||
@@ -61,9 +61,9 @@ struct IoHriMainStoreSegment4 { | |||
61 | }; | 61 | }; |
62 | 62 | ||
63 | /* Main Store VPD for Power4 */ | 63 | /* Main Store VPD for Power4 */ |
64 | struct IoHriMainStoreChipInfo1 { | 64 | struct __attribute((packed)) IoHriMainStoreChipInfo1 { |
65 | u32 chipMfgID __attribute((packed)); | 65 | u32 chipMfgID; |
66 | char chipECLevel[4] __attribute((packed)); | 66 | char chipECLevel[4]; |
67 | }; | 67 | }; |
68 | 68 | ||
69 | struct IoHriMainStoreVpdIdData { | 69 | struct IoHriMainStoreVpdIdData { |
@@ -73,72 +73,72 @@ struct IoHriMainStoreVpdIdData { | |||
73 | char serialNumber[12]; | 73 | char serialNumber[12]; |
74 | }; | 74 | }; |
75 | 75 | ||
76 | struct IoHriMainStoreVpdFruData { | 76 | struct __attribute((packed)) IoHriMainStoreVpdFruData { |
77 | char fruLabel[8] __attribute((packed)); | 77 | char fruLabel[8]; |
78 | u8 numberOfSlots __attribute((packed)); | 78 | u8 numberOfSlots; |
79 | u8 pluggingType __attribute((packed)); | 79 | u8 pluggingType; |
80 | u16 slotMapIndex __attribute((packed)); | 80 | u16 slotMapIndex; |
81 | }; | 81 | }; |
82 | 82 | ||
83 | struct IoHriMainStoreAdrRangeBlock { | 83 | struct __attribute((packed)) IoHriMainStoreAdrRangeBlock { |
84 | void *blockStart __attribute((packed)); | 84 | void *blockStart; |
85 | void *blockEnd __attribute((packed)); | 85 | void *blockEnd; |
86 | u32 blockProcChipId __attribute((packed)); | 86 | u32 blockProcChipId; |
87 | }; | 87 | }; |
88 | 88 | ||
89 | #define MaxAreaAdrRangeBlocks 4 | 89 | #define MaxAreaAdrRangeBlocks 4 |
90 | 90 | ||
91 | struct IoHriMainStoreArea4 { | 91 | struct __attribute((packed)) IoHriMainStoreArea4 { |
92 | u32 msVpdFormat __attribute((packed)); | 92 | u32 msVpdFormat; |
93 | u8 containedVpdType __attribute((packed)); | 93 | u8 containedVpdType; |
94 | u8 reserved1 __attribute((packed)); | 94 | u8 reserved1; |
95 | u16 reserved2 __attribute((packed)); | 95 | u16 reserved2; |
96 | 96 | ||
97 | u64 msExists __attribute((packed)); | 97 | u64 msExists; |
98 | u64 msFunctional __attribute((packed)); | 98 | u64 msFunctional; |
99 | 99 | ||
100 | u32 memorySize __attribute((packed)); | 100 | u32 memorySize; |
101 | u32 procNodeId __attribute((packed)); | 101 | u32 procNodeId; |
102 | 102 | ||
103 | u32 numAdrRangeBlocks __attribute((packed)); | 103 | u32 numAdrRangeBlocks; |
104 | struct IoHriMainStoreAdrRangeBlock xAdrRangeBlock[MaxAreaAdrRangeBlocks] __attribute((packed)); | 104 | struct IoHriMainStoreAdrRangeBlock xAdrRangeBlock[MaxAreaAdrRangeBlocks]; |
105 | 105 | ||
106 | struct IoHriMainStoreChipInfo1 chipInfo0 __attribute((packed)); | 106 | struct IoHriMainStoreChipInfo1 chipInfo0; |
107 | struct IoHriMainStoreChipInfo1 chipInfo1 __attribute((packed)); | 107 | struct IoHriMainStoreChipInfo1 chipInfo1; |
108 | struct IoHriMainStoreChipInfo1 chipInfo2 __attribute((packed)); | 108 | struct IoHriMainStoreChipInfo1 chipInfo2; |
109 | struct IoHriMainStoreChipInfo1 chipInfo3 __attribute((packed)); | 109 | struct IoHriMainStoreChipInfo1 chipInfo3; |
110 | struct IoHriMainStoreChipInfo1 chipInfo4 __attribute((packed)); | 110 | struct IoHriMainStoreChipInfo1 chipInfo4; |
111 | struct IoHriMainStoreChipInfo1 chipInfo5 __attribute((packed)); | 111 | struct IoHriMainStoreChipInfo1 chipInfo5; |
112 | struct IoHriMainStoreChipInfo1 chipInfo6 __attribute((packed)); | 112 | struct IoHriMainStoreChipInfo1 chipInfo6; |
113 | struct IoHriMainStoreChipInfo1 chipInfo7 __attribute((packed)); | 113 | struct IoHriMainStoreChipInfo1 chipInfo7; |
114 | 114 | ||
115 | void *msRamAreaArray __attribute((packed)); | 115 | void *msRamAreaArray; |
116 | u32 msRamAreaArrayNumEntries __attribute((packed)); | 116 | u32 msRamAreaArrayNumEntries; |
117 | u32 msRamAreaArrayEntrySize __attribute((packed)); | 117 | u32 msRamAreaArrayEntrySize; |
118 | 118 | ||
119 | u32 numaDimmExists __attribute((packed)); | 119 | u32 numaDimmExists; |
120 | u32 numaDimmFunctional __attribute((packed)); | 120 | u32 numaDimmFunctional; |
121 | void *numaDimmArray __attribute((packed)); | 121 | void *numaDimmArray; |
122 | u32 numaDimmArrayNumEntries __attribute((packed)); | 122 | u32 numaDimmArrayNumEntries; |
123 | u32 numaDimmArrayEntrySize __attribute((packed)); | 123 | u32 numaDimmArrayEntrySize; |
124 | 124 | ||
125 | struct IoHriMainStoreVpdIdData idData __attribute((packed)); | 125 | struct IoHriMainStoreVpdIdData idData; |
126 | 126 | ||
127 | u64 powerData __attribute((packed)); | 127 | u64 powerData; |
128 | u64 cardAssemblyPartNum __attribute((packed)); | 128 | u64 cardAssemblyPartNum; |
129 | u64 chipSerialNum __attribute((packed)); | 129 | u64 chipSerialNum; |
130 | 130 | ||
131 | u64 reserved3 __attribute((packed)); | 131 | u64 reserved3; |
132 | char reserved4[16] __attribute((packed)); | 132 | char reserved4[16]; |
133 | 133 | ||
134 | struct IoHriMainStoreVpdFruData fruData __attribute((packed)); | 134 | struct IoHriMainStoreVpdFruData fruData; |
135 | 135 | ||
136 | u8 vpdPortNum __attribute((packed)); | 136 | u8 vpdPortNum; |
137 | u8 reserved5 __attribute((packed)); | 137 | u8 reserved5; |
138 | u8 frameId __attribute((packed)); | 138 | u8 frameId; |
139 | u8 rackUnit __attribute((packed)); | 139 | u8 rackUnit; |
140 | char asciiKeywordVpd[256] __attribute((packed)); | 140 | char asciiKeywordVpd[256]; |
141 | u32 reserved6 __attribute((packed)); | 141 | u32 reserved6; |
142 | }; | 142 | }; |
143 | 143 | ||
144 | 144 | ||