Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 1 | Support build with Clang |
| 2 | |
| 3 | Upstream-Status: Pending |
| 4 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 5 | Index: openhpi-3.6.1/plugins/dynamic_simulator/new_sim.cpp |
| 6 | =================================================================== |
| 7 | --- openhpi-3.6.1.orig/plugins/dynamic_simulator/new_sim.cpp |
| 8 | +++ openhpi-3.6.1/plugins/dynamic_simulator/new_sim.cpp |
| 9 | @@ -415,7 +415,7 @@ extern "C" { |
| 10 | /** |
| 11 | * Alias for @ref öh_open(), implemented by @ref NewSimulatorOpen(). |
| 12 | **/ |
| 13 | -static void * NewSimulatorOpen( GHashTable *, unsigned int, oh_evt_queue * ) __attribute__((used)); |
| 14 | +static void * NewSimulatorOpen( GHashTable *, unsigned int, oh_evt_queue * ) __asm__("NewSimulatorOpen") __attribute__((used)); |
| 15 | |
| 16 | /** |
| 17 | * @fn NewSimulatorOpen( GHashTable *handler_config, unsigned int hid, |
| 18 | @@ -530,7 +530,7 @@ static void * NewSimulatorOpen( GHashTab |
| 19 | /** |
| 20 | * Alias for @ref öh_close(), implemented by @ref NewSimulatorClose(). |
| 21 | **/ |
| 22 | -static void NewSimulatorClose( void * ) __attribute__((used)); |
| 23 | +static void NewSimulatorClose( void * ) __asm__("NewSimulatorClose") __attribute__((used)); |
| 24 | |
| 25 | /** |
| 26 | * @relate NewSimulatorClose |
| 27 | @@ -585,7 +585,7 @@ static void NewSimulatorClose( void *hnd |
| 28 | * |
| 29 | * @return HPI error code |
| 30 | **/ |
| 31 | -static SaErrorT NewSimulatorGetEvent( void * ) __attribute__((used)); |
| 32 | +static SaErrorT NewSimulatorGetEvent( void * ) __asm__("NewSimulatorGetEvent") __attribute__((used)); |
| 33 | |
| 34 | static SaErrorT NewSimulatorGetEvent( void *hnd ) { |
| 35 | dbg( "NewSimulatorGetEvent" ); |
| 36 | @@ -613,7 +613,7 @@ static SaErrorT NewSimulatorGetEvent( vo |
| 37 | * |
| 38 | * @return HPI error code |
| 39 | **/ |
| 40 | -static SaErrorT NewSimulatorDiscoverResources( void * ) __attribute__((used)); |
| 41 | +static SaErrorT NewSimulatorDiscoverResources( void * ) __asm__("NewSimulatorDiscoverResources") __attribute__((used)); |
| 42 | |
| 43 | static SaErrorT NewSimulatorDiscoverResources( void *hnd ) { |
| 44 | dbg( "NewSimulatorDiscoverResources" ); |
| 45 | @@ -641,7 +641,7 @@ static SaErrorT NewSimulatorDiscoverReso |
| 46 | * |
| 47 | * @return HPI error code |
| 48 | **/ |
| 49 | -static SaErrorT NewSimulatorSetResourceTag( void *, SaHpiResourceIdT, SaHpiTextBufferT * ) __attribute__((used)); |
| 50 | +static SaErrorT NewSimulatorSetResourceTag( void *, SaHpiResourceIdT, SaHpiTextBufferT * ) __asm__("NewSimulatorSetResourceTag") __attribute__((used)); |
| 51 | |
| 52 | static SaErrorT NewSimulatorSetResourceTag( void *hnd, SaHpiResourceIdT id, |
| 53 | SaHpiTextBufferT *tag ) { |
| 54 | @@ -669,7 +669,7 @@ static SaErrorT NewSimulatorSetResourceT |
| 55 | * |
| 56 | * @return HPI error code |
| 57 | **/ |
| 58 | -static SaErrorT NewSimulatorSetResourceSeverity( void *, SaHpiResourceIdT, SaHpiSeverityT ) __attribute__((used)); |
| 59 | +static SaErrorT NewSimulatorSetResourceSeverity( void *, SaHpiResourceIdT, SaHpiSeverityT ) __asm__("NewSimulatorSetResourceSeverity") __attribute__((used)); |
| 60 | |
| 61 | static SaErrorT NewSimulatorSetResourceSeverity( void *hnd, SaHpiResourceIdT id, |
| 62 | SaHpiSeverityT sev ) { |
| 63 | @@ -703,7 +703,7 @@ static SaErrorT NewSimulatorGetSensorRea |
| 64 | SaHpiResourceIdT id, |
| 65 | SaHpiSensorNumT num, |
| 66 | SaHpiSensorReadingT *data, |
| 67 | - SaHpiEventStateT *state ) __attribute__((used)); |
| 68 | + SaHpiEventStateT *state ) __asm__("NewSimulatorGetSensorReading") __attribute__((used)); |
| 69 | |
| 70 | static SaErrorT NewSimulatorGetSensorReading( void *hnd, |
| 71 | SaHpiResourceIdT id, |
| 72 | @@ -738,7 +738,7 @@ static SaErrorT NewSimulatorGetSensorRea |
| 73 | static SaErrorT NewSimulatorGetSensorThresholds( void *hnd, |
| 74 | SaHpiResourceIdT, |
| 75 | SaHpiSensorNumT, |
| 76 | - SaHpiSensorThresholdsT * ) __attribute__((used)); |
| 77 | + SaHpiSensorThresholdsT * ) __asm__("NewSimulatorGetSensorThresholds") __attribute__((used)); |
| 78 | |
| 79 | static SaErrorT NewSimulatorGetSensorThresholds( void *hnd, |
| 80 | SaHpiResourceIdT id, |
| 81 | @@ -777,7 +777,7 @@ static SaErrorT NewSimulatorGetSensorThr |
| 82 | static SaErrorT NewSimulatorSetSensorThresholds( void *, |
| 83 | SaHpiResourceIdT, |
| 84 | SaHpiSensorNumT, |
| 85 | - const SaHpiSensorThresholdsT * ) __attribute__((used)); |
| 86 | + const SaHpiSensorThresholdsT * ) __asm__("NewSimulatorSetSensorThresholds") __attribute__((used)); |
| 87 | |
| 88 | static SaErrorT NewSimulatorSetSensorThresholds( void *hnd, |
| 89 | SaHpiResourceIdT id, |
| 90 | @@ -815,7 +815,7 @@ static SaErrorT NewSimulatorSetSensorThr |
| 91 | static SaErrorT NewSimulatorGetSensorEnable( void *, |
| 92 | SaHpiResourceIdT, |
| 93 | SaHpiSensorNumT, |
| 94 | - SaHpiBoolT * ) __attribute__((used)); |
| 95 | + SaHpiBoolT * ) __asm__("NewSimulatorGetSensorEnable") __attribute__((used)); |
| 96 | |
| 97 | static SaErrorT NewSimulatorGetSensorEnable( void *hnd, |
| 98 | SaHpiResourceIdT id, |
| 99 | @@ -849,7 +849,7 @@ static SaErrorT NewSimulatorGetSensorEna |
| 100 | static SaErrorT NewSimulatorSetSensorEnable( void *, |
| 101 | SaHpiResourceIdT, |
| 102 | SaHpiSensorNumT, |
| 103 | - SaHpiBoolT ) __attribute__((used)); |
| 104 | + SaHpiBoolT ) __asm__("NewSimulatorSetSensorEnable") __attribute__((used)); |
| 105 | |
| 106 | static SaErrorT NewSimulatorSetSensorEnable( void *hnd, |
| 107 | SaHpiResourceIdT id, |
| 108 | @@ -883,7 +883,7 @@ static SaErrorT NewSimulatorSetSensorEna |
| 109 | static SaErrorT NewSimulatorGetSensorEventEnables( void *, |
| 110 | SaHpiResourceIdT, |
| 111 | SaHpiSensorNumT, |
| 112 | - SaHpiBoolT * ) __attribute__((used)); |
| 113 | + SaHpiBoolT * ) __asm__("NewSimulatorGetSensorEventEnables") __attribute__((used)); |
| 114 | |
| 115 | static SaErrorT NewSimulatorGetSensorEventEnables( void *hnd, |
| 116 | SaHpiResourceIdT id, |
| 117 | @@ -916,7 +916,7 @@ static SaErrorT NewSimulatorGetSensorEve |
| 118 | static SaErrorT NewSimulatorSetSensorEventEnables( void *, |
| 119 | SaHpiResourceIdT, |
| 120 | SaHpiSensorNumT, |
| 121 | - SaHpiBoolT ) __attribute__((used)); |
| 122 | + SaHpiBoolT ) __asm__("NewSimulatorSetSensorEventEnables") __attribute__((used)); |
| 123 | |
| 124 | static SaErrorT NewSimulatorSetSensorEventEnables( void *hnd, |
| 125 | SaHpiResourceIdT id, |
| 126 | @@ -952,7 +952,7 @@ static SaErrorT NewSimulatorGetSensorEve |
| 127 | SaHpiResourceIdT, |
| 128 | SaHpiSensorNumT, |
| 129 | SaHpiEventStateT *, |
| 130 | - SaHpiEventStateT * ) __attribute__((used)); |
| 131 | + SaHpiEventStateT * ) __asm__("NewSimulatorGetSensorEventMasks") __attribute__((used)); |
| 132 | |
| 133 | static SaErrorT NewSimulatorGetSensorEventMasks( void *hnd, |
| 134 | SaHpiResourceIdT id, |
| 135 | @@ -990,7 +990,7 @@ static SaErrorT NewSimulatorSetSensorEve |
| 136 | SaHpiSensorNumT, |
| 137 | SaHpiSensorEventMaskActionT, |
| 138 | SaHpiEventStateT, |
| 139 | - SaHpiEventStateT ) __attribute__((used)); |
| 140 | + SaHpiEventStateT ) __asm__("NewSimulatorSetSensorEventMasks") __attribute__((used)); |
| 141 | |
| 142 | static SaErrorT NewSimulatorSetSensorEventMasks( void *hnd, |
| 143 | SaHpiResourceIdT id, |
| 144 | @@ -1026,7 +1026,7 @@ static SaErrorT NewSimulatorSetSensorEve |
| 145 | static SaErrorT NewSimulatorGetControlState( void *, SaHpiResourceIdT, |
| 146 | SaHpiCtrlNumT, |
| 147 | SaHpiCtrlModeT *, |
| 148 | - SaHpiCtrlStateT * ) __attribute__((used)); |
| 149 | + SaHpiCtrlStateT * ) __asm__("NewSimulatorGetControlState") __attribute__((used)); |
| 150 | |
| 151 | static SaErrorT NewSimulatorGetControlState( void *hnd, SaHpiResourceIdT id, |
| 152 | SaHpiCtrlNumT num, |
| 153 | @@ -1061,7 +1061,7 @@ static SaErrorT NewSimulatorGetControlSt |
| 154 | static SaErrorT NewSimulatorSetControlState( void *, SaHpiResourceIdT, |
| 155 | SaHpiCtrlNumT, |
| 156 | SaHpiCtrlModeT, |
| 157 | - SaHpiCtrlStateT * ) __attribute__((used)); |
| 158 | + SaHpiCtrlStateT * ) __asm__("NewSimulatorSetControlState") __attribute__((used)); |
| 159 | |
| 160 | static SaErrorT NewSimulatorSetControlState( void *hnd, SaHpiResourceIdT id, |
| 161 | SaHpiCtrlNumT num, |
| 162 | @@ -1099,7 +1099,7 @@ static SaErrorT NewSimulatorGetNextAnnou |
| 163 | SaHpiAnnunciatorNumT, |
| 164 | SaHpiSeverityT, |
| 165 | SaHpiBoolT, |
| 166 | - SaHpiAnnouncementT *) __attribute__((used)); |
| 167 | + SaHpiAnnouncementT *) __asm__("NewSimulatorGetNextAnnouncement") __attribute__((used)); |
| 168 | |
| 169 | static SaErrorT NewSimulatorGetNextAnnouncement(void *hnd, SaHpiResourceIdT id, |
| 170 | SaHpiAnnunciatorNumT num, |
| 171 | @@ -1135,7 +1135,7 @@ static SaErrorT NewSimulatorGetNextAnnou |
| 172 | static SaErrorT NewSimulatorGetAnnouncement(void *, SaHpiResourceIdT, |
| 173 | SaHpiAnnunciatorNumT, |
| 174 | SaHpiEntryIdT, |
| 175 | - SaHpiAnnouncementT *) __attribute__((used)); |
| 176 | + SaHpiAnnouncementT *) __asm__("NewSimulatorGetAnnouncement") __attribute__((used)); |
| 177 | |
| 178 | static SaErrorT NewSimulatorGetAnnouncement(void *hnd, SaHpiResourceIdT id, |
| 179 | SaHpiAnnunciatorNumT num, |
| 180 | @@ -1171,7 +1171,7 @@ static SaErrorT NewSimulatorGetAnnouncem |
| 181 | static SaErrorT NewSimulatorAckAnnouncement(void *, SaHpiResourceIdT, |
| 182 | SaHpiAnnunciatorNumT, |
| 183 | SaHpiEntryIdT, |
| 184 | - SaHpiSeverityT) __attribute__((used)); |
| 185 | + SaHpiSeverityT) __asm__("NewSimulatorAckAnnouncement") __attribute__((used)); |
| 186 | |
| 187 | static SaErrorT NewSimulatorAckAnnouncement(void *hnd, SaHpiResourceIdT id, |
| 188 | SaHpiAnnunciatorNumT num, |
| 189 | @@ -1205,7 +1205,7 @@ static SaErrorT NewSimulatorAckAnnouncem |
| 190 | **/ |
| 191 | static SaErrorT NewSimulatorAddAnnouncement(void *, SaHpiResourceIdT, |
| 192 | SaHpiAnnunciatorNumT, |
| 193 | - SaHpiAnnouncementT *) __attribute__((used)); |
| 194 | + SaHpiAnnouncementT *) __asm__("NewSimulatorAddAnnouncement") __attribute__((used)); |
| 195 | |
| 196 | static SaErrorT NewSimulatorAddAnnouncement(void *hnd, SaHpiResourceIdT id, |
| 197 | SaHpiAnnunciatorNumT num, |
| 198 | @@ -1239,7 +1239,7 @@ static SaErrorT NewSimulatorAddAnnouncem |
| 199 | static SaErrorT NewSimulatorDelAnnouncement(void *, SaHpiResourceIdT, |
| 200 | SaHpiAnnunciatorNumT, |
| 201 | SaHpiEntryIdT, |
| 202 | - SaHpiSeverityT) __attribute__((used)); |
| 203 | + SaHpiSeverityT) __asm__("NewSimulatorDelAnnouncement") __attribute__((used)); |
| 204 | |
| 205 | static SaErrorT NewSimulatorDelAnnouncement(void *hnd, SaHpiResourceIdT id, |
| 206 | SaHpiAnnunciatorNumT num, |
| 207 | @@ -1273,7 +1273,7 @@ static SaErrorT NewSimulatorDelAnnouncem |
| 208 | **/ |
| 209 | static SaErrorT NewSimulatorGetAnnMode(void *, SaHpiResourceIdT, |
| 210 | SaHpiAnnunciatorNumT, |
| 211 | - SaHpiAnnunciatorModeT *) __attribute__((used)); |
| 212 | + SaHpiAnnunciatorModeT *) __asm__("NewSimulatorGetAnnMode") __attribute__((used)); |
| 213 | |
| 214 | static SaErrorT NewSimulatorGetAnnMode(void *hnd, SaHpiResourceIdT id, |
| 215 | SaHpiAnnunciatorNumT num, |
| 216 | @@ -1306,7 +1306,7 @@ static SaErrorT NewSimulatorGetAnnMode(v |
| 217 | **/ |
| 218 | static SaErrorT NewSimulatorSetAnnMode(void *, SaHpiResourceIdT, |
| 219 | SaHpiAnnunciatorNumT, |
| 220 | - SaHpiAnnunciatorModeT) __attribute__((used)); |
| 221 | + SaHpiAnnunciatorModeT) __asm__("NewSimulatorSetAnnMode") __attribute__((used)); |
| 222 | |
| 223 | static SaErrorT NewSimulatorSetAnnMode(void *hnd, SaHpiResourceIdT id, |
| 224 | SaHpiAnnunciatorNumT num, |
| 225 | @@ -1340,7 +1340,7 @@ static SaErrorT NewSimulatorSetAnnMode(v |
| 226 | static SaErrorT NewSimulatorGetIdrInfo( void *, |
| 227 | SaHpiResourceIdT, |
| 228 | SaHpiIdrIdT, |
| 229 | - SaHpiIdrInfoT * ) __attribute__((used)); |
| 230 | + SaHpiIdrInfoT * ) __asm__("NewSimulatorGetIdrInfo") __attribute__((used)); |
| 231 | |
| 232 | static SaErrorT NewSimulatorGetIdrInfo( void *hnd, |
| 233 | SaHpiResourceIdT id, |
| 234 | @@ -1380,7 +1380,7 @@ static SaErrorT NewSimulatorGetIdrAreaHe |
| 235 | SaHpiIdrAreaTypeT, |
| 236 | SaHpiEntryIdT, |
| 237 | SaHpiEntryIdT *, |
| 238 | - SaHpiIdrAreaHeaderT * ) __attribute__((used)); |
| 239 | + SaHpiIdrAreaHeaderT * ) __asm__("NewSimulatorGetIdrAreaHeader") __attribute__((used)); |
| 240 | |
| 241 | static SaErrorT NewSimulatorGetIdrAreaHeader( void *hnd, |
| 242 | SaHpiResourceIdT id, |
| 243 | @@ -1419,7 +1419,7 @@ static SaErrorT NewSimulatorAddIdrArea( |
| 244 | SaHpiResourceIdT, |
| 245 | SaHpiIdrIdT, |
| 246 | SaHpiIdrAreaTypeT, |
| 247 | - SaHpiEntryIdT * ) __attribute__((used)); |
| 248 | + SaHpiEntryIdT * ) __asm__("NewSimulatorAddIdrArea") __attribute__((used)); |
| 249 | |
| 250 | static SaErrorT NewSimulatorAddIdrArea( void *hnd, |
| 251 | SaHpiResourceIdT id, |
| 252 | @@ -1456,7 +1456,7 @@ static SaErrorT NewSimulatorAddIdrAreaBy |
| 253 | SaHpiResourceIdT, |
| 254 | SaHpiIdrIdT, |
| 255 | SaHpiIdrAreaTypeT, |
| 256 | - SaHpiEntryIdT ) __attribute__((used)); |
| 257 | + SaHpiEntryIdT ) __asm__("NewSimulatorAddIdrAreaById") __attribute__((used)); |
| 258 | |
| 259 | static SaErrorT NewSimulatorAddIdrAreaById( void *hnd, |
| 260 | SaHpiResourceIdT id, |
| 261 | @@ -1490,7 +1490,7 @@ static SaErrorT NewSimulatorAddIdrAreaBy |
| 262 | static SaErrorT NewSimulatorDelIdrArea( void *, |
| 263 | SaHpiResourceIdT, |
| 264 | SaHpiIdrIdT, |
| 265 | - SaHpiEntryIdT ) __attribute__((used)); |
| 266 | + SaHpiEntryIdT ) __asm__("NewSimulatorDelIdrArea") __attribute__((used)); |
| 267 | |
| 268 | static SaErrorT NewSimulatorDelIdrArea( void *hnd, |
| 269 | SaHpiResourceIdT id, |
| 270 | @@ -1532,7 +1532,7 @@ static SaErrorT NewSimulatorGetIdrField( |
| 271 | SaHpiIdrFieldTypeT, |
| 272 | SaHpiEntryIdT, |
| 273 | SaHpiEntryIdT *, |
| 274 | - SaHpiIdrFieldT * ) __attribute__((used)); |
| 275 | + SaHpiIdrFieldT * ) __asm__("NewSimulatorGetIdrField") __attribute__((used)); |
| 276 | |
| 277 | static SaErrorT NewSimulatorGetIdrField( void *hnd, |
| 278 | SaHpiResourceIdT id, |
| 279 | @@ -1570,7 +1570,7 @@ static SaErrorT NewSimulatorGetIdrField( |
| 280 | static SaErrorT NewSimulatorAddIdrField( void *, |
| 281 | SaHpiResourceIdT, |
| 282 | SaHpiIdrIdT, |
| 283 | - SaHpiIdrFieldT * ) __attribute__((used)); |
| 284 | + SaHpiIdrFieldT * ) __asm__("NewSimulatorAddIdrField") __attribute__((used)); |
| 285 | |
| 286 | static SaErrorT NewSimulatorAddIdrField( void *hnd, |
| 287 | SaHpiResourceIdT id, |
| 288 | @@ -1604,7 +1604,7 @@ static SaErrorT NewSimulatorAddIdrField( |
| 289 | static SaErrorT NewSimulatorAddIdrFieldById( void *, |
| 290 | SaHpiResourceIdT, |
| 291 | SaHpiIdrIdT, |
| 292 | - SaHpiIdrFieldT * ) __attribute__((used)); |
| 293 | + SaHpiIdrFieldT * ) __asm__("NewSimulatorAddIdrFieldById") __attribute__((used)); |
| 294 | |
| 295 | static SaErrorT NewSimulatorAddIdrFieldById( void *hnd, |
| 296 | SaHpiResourceIdT id, |
| 297 | @@ -1637,7 +1637,7 @@ static SaErrorT NewSimulatorAddIdrFieldB |
| 298 | static SaErrorT NewSimulatorSetIdrField( void *, |
| 299 | SaHpiResourceIdT, |
| 300 | SaHpiIdrIdT, |
| 301 | - SaHpiIdrFieldT * ) __attribute__((used)); |
| 302 | + SaHpiIdrFieldT * ) __asm__("NewSimulatorSetIdrField") __attribute__((used)); |
| 303 | |
| 304 | static SaErrorT NewSimulatorSetIdrField( void *hnd, |
| 305 | SaHpiResourceIdT id, |
| 306 | @@ -1672,7 +1672,7 @@ static SaErrorT NewSimulatorDelIdrField( |
| 307 | SaHpiResourceIdT, |
| 308 | SaHpiIdrIdT, |
| 309 | SaHpiEntryIdT, |
| 310 | - SaHpiEntryIdT ) __attribute__((used)); |
| 311 | + SaHpiEntryIdT ) __asm__("NewSimulatorDelIdrField") __attribute__((used)); |
| 312 | |
| 313 | static SaErrorT NewSimulatorDelIdrField( void *hnd, |
| 314 | SaHpiResourceIdT id, |
| 315 | @@ -1704,7 +1704,7 @@ static SaErrorT NewSimulatorDelIdrField( |
| 316 | **/ |
| 317 | static SaErrorT NewSimulatorGetSelInfo( void *, |
| 318 | SaHpiResourceIdT, |
| 319 | - SaHpiEventLogInfoT * ) __attribute__((used)); |
| 320 | + SaHpiEventLogInfoT * ) __asm__("NewSimulatorGetSelInfo") __attribute__((used)); |
| 321 | |
| 322 | static SaErrorT NewSimulatorGetSelInfo( void *hnd, |
| 323 | SaHpiResourceIdT id, |
| 324 | @@ -1736,7 +1736,7 @@ static SaErrorT NewSimulatorGetSelInfo( |
| 325 | * |
| 326 | * @return HPI error code |
| 327 | **/ |
| 328 | -static SaErrorT NewSimulatorSetSelTime( void *, SaHpiResourceIdT, SaHpiTimeT ) __attribute__((used)); |
| 329 | +static SaErrorT NewSimulatorSetSelTime( void *, SaHpiResourceIdT, SaHpiTimeT ) __asm__("NewSimulatorSetSelTime") __attribute__((used)); |
| 330 | |
| 331 | static SaErrorT NewSimulatorSetSelTime( void *hnd, SaHpiResourceIdT id, SaHpiTimeT t ) { |
| 332 | SaErrorT rv = SA_ERR_HPI_INTERNAL_ERROR; |
| 333 | @@ -1766,7 +1766,7 @@ static SaErrorT NewSimulatorSetSelTime( |
| 334 | * |
| 335 | * @return HPI error code |
| 336 | **/ |
| 337 | -static SaErrorT NewSimulatorAddSelEntry( void *, SaHpiResourceIdT, const SaHpiEventT * ) __attribute__((used)); |
| 338 | +static SaErrorT NewSimulatorAddSelEntry( void *, SaHpiResourceIdT, const SaHpiEventT * ) __asm__("NewSimulatorAddSelEntry") __attribute__((used)); |
| 339 | |
| 340 | static SaErrorT NewSimulatorAddSelEntry( void *hnd, SaHpiResourceIdT id, |
| 341 | const SaHpiEventT *Event ) { |
| 342 | @@ -1809,7 +1809,7 @@ static SaErrorT NewSimulatorGetSelEntry( |
| 343 | SaHpiEventLogEntryIdT *, |
| 344 | SaHpiEventLogEntryT *, |
| 345 | SaHpiRdrT *, |
| 346 | - SaHpiRptEntryT * ) __attribute__((used)); |
| 347 | + SaHpiRptEntryT * ) __asm__("NewSimulatorGetSelEntry") __attribute__((used)); |
| 348 | |
| 349 | static SaErrorT NewSimulatorGetSelEntry( void *hnd, SaHpiResourceIdT id, |
| 350 | SaHpiEventLogEntryIdT current, |
| 351 | @@ -1844,7 +1844,7 @@ static SaErrorT NewSimulatorGetSelEntry( |
| 352 | * |
| 353 | * @return HPI error code |
| 354 | **/ |
| 355 | -static SaErrorT NewSimulatorClearSel( void *, SaHpiResourceIdT ) __attribute__((used)); |
| 356 | +static SaErrorT NewSimulatorClearSel( void *, SaHpiResourceIdT ) __asm__("NewSimulatorClearSel") __attribute__((used)); |
| 357 | |
| 358 | static SaErrorT NewSimulatorClearSel( void *hnd, SaHpiResourceIdT id ) { |
| 359 | SaErrorT rv = SA_ERR_HPI_INTERNAL_ERROR; |
| 360 | @@ -1875,7 +1875,7 @@ static SaErrorT NewSimulatorClearSel( vo |
| 361 | * @return HPI error code |
| 362 | **/ |
| 363 | static SaErrorT NewSimulatorSetSelState(void *, SaHpiResourceIdT, |
| 364 | - SaHpiBoolT) __attribute__((used)); |
| 365 | + SaHpiBoolT) __asm__("NewSimulatorSetSelState") __attribute__((used)); |
| 366 | |
| 367 | static SaErrorT NewSimulatorSetSelState( void *hnd, SaHpiResourceIdT id, |
| 368 | SaHpiBoolT state ) { |
| 369 | @@ -1907,7 +1907,7 @@ static SaErrorT NewSimulatorSetSelState( |
| 370 | * @return HPI error code |
| 371 | **/ |
| 372 | static SaErrorT NewSimulatorGetSelState(void *, SaHpiResourceIdT, |
| 373 | - SaHpiBoolT *) __attribute__((used)); |
| 374 | + SaHpiBoolT *) __asm__("NewSimulatorGetSelState") __attribute__((used)); |
| 375 | |
| 376 | static SaErrorT NewSimulatorGetSelState( void *hnd, SaHpiResourceIdT id, |
| 377 | SaHpiBoolT *state ) { |
| 378 | @@ -1939,7 +1939,7 @@ static SaErrorT NewSimulatorGetSelState( |
| 379 | * @return HPI error code |
| 380 | **/ |
| 381 | static SaErrorT NewSimulatorGetSelCapability(void *, SaHpiResourceIdT, |
| 382 | - SaHpiEventLogCapabilitiesT *) __attribute__((used)); |
| 383 | + SaHpiEventLogCapabilitiesT *) __asm__("NewSimulatorGetSelCapability") __attribute__((used)); |
| 384 | |
| 385 | static SaErrorT NewSimulatorGetSelCapability( void *hnd, SaHpiResourceIdT id, |
| 386 | SaHpiEventLogCapabilitiesT *caps ) { |
| 387 | @@ -1970,7 +1970,7 @@ static SaErrorT NewSimulatorGetSelCapabi |
| 388 | * @return HPI error code |
| 389 | **/ |
| 390 | static SaErrorT NewSimulatorResetSelOverflow(void *, SaHpiResourceIdT) |
| 391 | - __attribute__((used)); |
| 392 | + __asm__("NewSimulatorResetSelOverflow") __attribute__((used)); |
| 393 | |
| 394 | static SaErrorT NewSimulatorResetSelOverflow( void *hnd, SaHpiResourceIdT id ) { |
| 395 | |
| 396 | @@ -2002,7 +2002,7 @@ static SaErrorT NewSimulatorResetSelOver |
| 397 | * @return HPI error code |
| 398 | **/ |
| 399 | static SaErrorT NewSimulatorHotswapPolicyCancel( void *, SaHpiResourceIdT, |
| 400 | - SaHpiTimeoutT ) __attribute__((used)); |
| 401 | + SaHpiTimeoutT ) __asm__("NewSimulatorHotswapPolicyCancel") __attribute__((used)); |
| 402 | |
| 403 | static SaErrorT NewSimulatorHotswapPolicyCancel( void *hnd, SaHpiResourceIdT id, |
| 404 | SaHpiTimeoutT timeout) { |
| 405 | @@ -2032,7 +2032,7 @@ static SaErrorT NewSimulatorHotswapPolic |
| 406 | * @return HPI error code |
| 407 | **/ |
| 408 | static SaErrorT NewSimulatorGetHotswapState( void *, SaHpiResourceIdT , |
| 409 | - SaHpiHsStateT * ) __attribute__((used)); |
| 410 | + SaHpiHsStateT * ) __asm__("NewSimulatorGetHotswapState") __attribute__((used)); |
| 411 | |
| 412 | static SaErrorT NewSimulatorGetHotswapState( void *hnd, SaHpiResourceIdT id, |
| 413 | SaHpiHsStateT *state ) { |
| 414 | @@ -2063,7 +2063,7 @@ static SaErrorT NewSimulatorGetHotswapSt |
| 415 | * @return HPI error code |
| 416 | **/ |
| 417 | static SaErrorT NewSimulatorSetHotswapState( void *, SaHpiResourceIdT, |
| 418 | - SaHpiHsStateT ) __attribute__((used)); |
| 419 | + SaHpiHsStateT ) __asm__("NewSimulatorSetHotswapState") __attribute__((used)); |
| 420 | |
| 421 | static SaErrorT NewSimulatorSetHotswapState( void *hnd, SaHpiResourceIdT id, |
| 422 | SaHpiHsStateT state ) { |
| 423 | @@ -2105,7 +2105,7 @@ static SaErrorT NewSimulatorSetHotswapSt |
| 424 | * @return HPI error code |
| 425 | **/ |
| 426 | static SaErrorT NewSimulatorRequestHotswapAction( void *, SaHpiResourceIdT, |
| 427 | - SaHpiHsActionT ) __attribute__((used)); |
| 428 | + SaHpiHsActionT ) __asm__("NewSimulatorRequestHotswapAction") __attribute__((used)); |
| 429 | |
| 430 | static SaErrorT NewSimulatorRequestHotswapAction( void *hnd, SaHpiResourceIdT id, |
| 431 | SaHpiHsActionT act ) { |
| 432 | @@ -2139,7 +2139,7 @@ static SaErrorT NewSimulatorRequestHotsw |
| 433 | static SaErrorT NewSimulatorGetWatchdogInfo(void *, |
| 434 | SaHpiResourceIdT, |
| 435 | SaHpiWatchdogNumT, |
| 436 | - SaHpiWatchdogT *) __attribute__((used)); |
| 437 | + SaHpiWatchdogT *) __asm__("NewSimulatorGetWatchdogInfo") __attribute__((used)); |
| 438 | |
| 439 | static SaErrorT NewSimulatorGetWatchdogInfo(void *hnd, |
| 440 | SaHpiResourceIdT id, |
| 441 | @@ -2170,7 +2170,7 @@ static SaErrorT NewSimulatorGetWatchdogI |
| 442 | static SaErrorT NewSimulatorSetWatchdogInfo(void *, |
| 443 | SaHpiResourceIdT, |
| 444 | SaHpiWatchdogNumT, |
| 445 | - SaHpiWatchdogT *) __attribute__((used)); |
| 446 | + SaHpiWatchdogT *) __asm__("NewSimulatorSetWatchdogInfo") __attribute__((used)); |
| 447 | |
| 448 | static SaErrorT NewSimulatorSetWatchdogInfo(void *hnd, |
| 449 | SaHpiResourceIdT id, |
| 450 | @@ -2199,7 +2199,7 @@ static SaErrorT NewSimulatorSetWatchdogI |
| 451 | **/ |
| 452 | static SaErrorT NewSimulatorResetWatchdog(void *, |
| 453 | SaHpiResourceIdT, |
| 454 | - SaHpiWatchdogNumT) __attribute__((used)); |
| 455 | + SaHpiWatchdogNumT) __asm__("NewSimulatorResetWatchdog") __attribute__((used)); |
| 456 | |
| 457 | static SaErrorT NewSimulatorResetWatchdog(void *hnd, |
| 458 | SaHpiResourceIdT id, |
| 459 | @@ -2229,7 +2229,7 @@ static SaErrorT NewSimulatorResetWatchdo |
| 460 | static SaErrorT NewSimulatorGetFumiSpec(void *, |
| 461 | SaHpiResourceIdT, |
| 462 | SaHpiFumiNumT, |
| 463 | - SaHpiFumiSpecInfoT *) __attribute__((used)); |
| 464 | + SaHpiFumiSpecInfoT *) __asm__("NewSimulatorGetFumiSpec") __attribute__((used)); |
| 465 | |
| 466 | static SaErrorT NewSimulatorGetFumiSpec(void *hnd, |
| 467 | SaHpiResourceIdT id, |
| 468 | @@ -2260,7 +2260,7 @@ static SaErrorT NewSimulatorGetFumiSpec( |
| 469 | static SaErrorT NewSimulatorGetFumiServImpact(void *, |
| 470 | SaHpiResourceIdT, |
| 471 | SaHpiFumiNumT, |
| 472 | - SaHpiFumiServiceImpactDataT *) __attribute__((used)); |
| 473 | + SaHpiFumiServiceImpactDataT *) __asm__("NewSimulatorGetFumiServImpact") __attribute__((used)); |
| 474 | |
| 475 | static SaErrorT NewSimulatorGetFumiServImpact(void *hnd, |
| 476 | SaHpiResourceIdT id, |
| 477 | @@ -2294,7 +2294,7 @@ static SaErrorT NewSimulatorSetFumiSourc |
| 478 | SaHpiResourceIdT, |
| 479 | SaHpiFumiNumT, |
| 480 | SaHpiBankNumT, |
| 481 | - SaHpiTextBufferT *) __attribute__((used)); |
| 482 | + SaHpiTextBufferT *) __asm__("NewSimulatorSetFumiSource") __attribute__((used)); |
| 483 | |
| 484 | static SaErrorT NewSimulatorSetFumiSource(void *hnd, |
| 485 | SaHpiResourceIdT id, |
| 486 | @@ -2327,7 +2327,7 @@ static SaErrorT NewSimulatorSetFumiSourc |
| 487 | static SaErrorT NewSimulatorValidateFumiSource(void *, |
| 488 | SaHpiResourceIdT, |
| 489 | SaHpiFumiNumT, |
| 490 | - SaHpiBankNumT) __attribute__((used)); |
| 491 | + SaHpiBankNumT) __asm__("NewSimulatorValidateFumiSource") __attribute__((used)); |
| 492 | |
| 493 | static SaErrorT NewSimulatorValidateFumiSource(void *hnd, |
| 494 | SaHpiResourceIdT id, |
| 495 | @@ -2361,7 +2361,7 @@ static SaErrorT NewSimulatorGetFumiSourc |
| 496 | SaHpiResourceIdT, |
| 497 | SaHpiFumiNumT, |
| 498 | SaHpiBankNumT, |
| 499 | - SaHpiFumiSourceInfoT *) __attribute__((used)); |
| 500 | + SaHpiFumiSourceInfoT *) __asm__("NewSimulatorGetFumiSource") __attribute__((used)); |
| 501 | |
| 502 | static SaErrorT NewSimulatorGetFumiSource(void *hnd, |
| 503 | SaHpiResourceIdT id, |
| 504 | @@ -2400,7 +2400,7 @@ static SaErrorT NewSimulatorGetFumiSourc |
| 505 | SaHpiBankNumT, |
| 506 | SaHpiEntryIdT, |
| 507 | SaHpiEntryIdT *, |
| 508 | - SaHpiFumiComponentInfoT *) __attribute__((used)); |
| 509 | + SaHpiFumiComponentInfoT *) __asm__("NewSimulatorGetFumiSourceComponent") __attribute__((used)); |
| 510 | |
| 511 | static SaErrorT NewSimulatorGetFumiSourceComponent(void *hnd, |
| 512 | SaHpiResourceIdT id, |
| 513 | @@ -2437,7 +2437,7 @@ static SaErrorT NewSimulatorGetFumiTarge |
| 514 | SaHpiResourceIdT, |
| 515 | SaHpiFumiNumT, |
| 516 | SaHpiBankNumT, |
| 517 | - SaHpiFumiBankInfoT *) __attribute__((used)); |
| 518 | + SaHpiFumiBankInfoT *) __asm__("NewSimulatorGetFumiTarget") __attribute__((used)); |
| 519 | |
| 520 | static SaErrorT NewSimulatorGetFumiTarget(void *hnd, |
| 521 | SaHpiResourceIdT id, |
| 522 | @@ -2476,7 +2476,7 @@ static SaErrorT NewSimulatorGetFumiTarge |
| 523 | SaHpiBankNumT, |
| 524 | SaHpiEntryIdT, |
| 525 | SaHpiEntryIdT *, |
| 526 | - SaHpiFumiComponentInfoT *) __attribute__((used)); |
| 527 | + SaHpiFumiComponentInfoT *) __asm__("NewSimulatorGetFumiTargetComponent") __attribute__((used)); |
| 528 | |
| 529 | static SaErrorT NewSimulatorGetFumiTargetComponent(void *hnd, |
| 530 | SaHpiResourceIdT id, |
| 531 | @@ -2511,7 +2511,7 @@ static SaErrorT NewSimulatorGetFumiTarge |
| 532 | static SaErrorT NewSimulatorGetFumiLogicalTarget(void *, |
| 533 | SaHpiResourceIdT, |
| 534 | SaHpiFumiNumT, |
| 535 | - SaHpiFumiLogicalBankInfoT *) __attribute__((used)); |
| 536 | + SaHpiFumiLogicalBankInfoT *) __asm__("NewSimulatorGetFumiLogicalTarget") __attribute__((used)); |
| 537 | |
| 538 | static SaErrorT NewSimulatorGetFumiLogicalTarget(void *hnd, |
| 539 | SaHpiResourceIdT id, |
| 540 | @@ -2547,7 +2547,7 @@ static SaErrorT NewSimulatorGetFumiLogic |
| 541 | SaHpiFumiNumT, |
| 542 | SaHpiEntryIdT, |
| 543 | SaHpiEntryIdT *, |
| 544 | - SaHpiFumiLogicalComponentInfoT *) __attribute__((used)); |
| 545 | + SaHpiFumiLogicalComponentInfoT *) __asm__("NewSimulatorGetFumiLogicalTargetComponent") __attribute__((used)); |
| 546 | |
| 547 | static SaErrorT NewSimulatorGetFumiLogicalTargetComponent(void *hnd, |
| 548 | SaHpiResourceIdT id, |
| 549 | @@ -2579,7 +2579,7 @@ static SaErrorT NewSimulatorGetFumiLogic |
| 550 | **/ |
| 551 | static SaErrorT NewSimulatorStartFumiBackup(void *, |
| 552 | SaHpiResourceIdT, |
| 553 | - SaHpiFumiNumT) __attribute__((used)); |
| 554 | + SaHpiFumiNumT) __asm__("NewSimulatorStartFumiBackup") __attribute__((used)); |
| 555 | |
| 556 | static SaErrorT NewSimulatorStartFumiBackup(void *hnd, |
| 557 | SaHpiResourceIdT id, |
| 558 | @@ -2612,7 +2612,7 @@ static SaErrorT NewSimulatorSetFumiBankO |
| 559 | SaHpiResourceIdT, |
| 560 | SaHpiFumiNumT, |
| 561 | SaHpiBankNumT, |
| 562 | - SaHpiUint32T) __attribute__((used)); |
| 563 | + SaHpiUint32T) __asm__("NewSimulatorSetFumiBankOrder") __attribute__((used)); |
| 564 | |
| 565 | static SaErrorT NewSimulatorSetFumiBankOrder(void *hnd, |
| 566 | SaHpiResourceIdT id, |
| 567 | @@ -2647,7 +2647,7 @@ static SaErrorT NewSimulatorStartFumiBan |
| 568 | SaHpiResourceIdT, |
| 569 | SaHpiFumiNumT, |
| 570 | SaHpiBankNumT, |
| 571 | - SaHpiBankNumT) __attribute__((used)); |
| 572 | + SaHpiBankNumT) __asm__("NewSimulatorStartFumiBankCopy") __attribute__((used)); |
| 573 | |
| 574 | static SaErrorT NewSimulatorStartFumiBankCopy(void *hnd, |
| 575 | SaHpiResourceIdT id, |
| 576 | @@ -2680,7 +2680,7 @@ static SaErrorT NewSimulatorStartFumiBan |
| 577 | static SaErrorT NewSimulatorStartFumiInstall(void *, |
| 578 | SaHpiResourceIdT, |
| 579 | SaHpiFumiNumT, |
| 580 | - SaHpiBankNumT) __attribute__((used)); |
| 581 | + SaHpiBankNumT) __asm__("NewSimulatorStartFumiInstall") __attribute__((used)); |
| 582 | |
| 583 | static SaErrorT NewSimulatorStartFumiInstall(void *hnd, |
| 584 | SaHpiResourceIdT id, |
| 585 | @@ -2714,7 +2714,7 @@ static SaErrorT NewSimulatorGetFumiStatu |
| 586 | SaHpiResourceIdT, |
| 587 | SaHpiFumiNumT, |
| 588 | SaHpiBankNumT, |
| 589 | - SaHpiFumiUpgradeStatusT *) __attribute__((used)); |
| 590 | + SaHpiFumiUpgradeStatusT *) __asm__("NewSimulatorGetFumiStatus") __attribute__((used)); |
| 591 | |
| 592 | static SaErrorT NewSimulatorGetFumiStatus(void *hnd, |
| 593 | SaHpiResourceIdT id, |
| 594 | @@ -2747,7 +2747,7 @@ static SaErrorT NewSimulatorGetFumiStatu |
| 595 | static SaErrorT NewSimulatorStartFumiVerification(void *, |
| 596 | SaHpiResourceIdT, |
| 597 | SaHpiFumiNumT, |
| 598 | - SaHpiBankNumT) __attribute__((used)); |
| 599 | + SaHpiBankNumT) __asm__("NewSimulatorStartFumiVerification") __attribute__((used)); |
| 600 | |
| 601 | static SaErrorT NewSimulatorStartFumiVerification(void *hnd, |
| 602 | SaHpiResourceIdT id, |
| 603 | @@ -2776,7 +2776,7 @@ static SaErrorT NewSimulatorStartFumiVer |
| 604 | **/ |
| 605 | static SaErrorT NewSimulatorStartFumiVerificationMain(void *, |
| 606 | SaHpiResourceIdT, |
| 607 | - SaHpiFumiNumT) __attribute__((used)); |
| 608 | + SaHpiFumiNumT) __asm__("NewSimulatorStartFumiVerificationMain") __attribute__((used)); |
| 609 | |
| 610 | static SaErrorT NewSimulatorStartFumiVerificationMain(void *hnd, |
| 611 | SaHpiResourceIdT id, |
| 612 | @@ -2807,7 +2807,7 @@ static SaErrorT NewSimulatorStartFumiVer |
| 613 | static SaErrorT NewSimulatorCancelFumiUpgrade(void *, |
| 614 | SaHpiResourceIdT, |
| 615 | SaHpiFumiNumT, |
| 616 | - SaHpiBankNumT) __attribute__((used)); |
| 617 | + SaHpiBankNumT) __asm__("NewSimulatorCancelFumiUpgrade") __attribute__((used)); |
| 618 | |
| 619 | static SaErrorT NewSimulatorCancelFumiUpgrade(void *hnd, |
| 620 | SaHpiResourceIdT id, |
| 621 | @@ -2838,7 +2838,7 @@ static SaErrorT NewSimulatorCancelFumiUp |
| 622 | static SaErrorT NewSimulatorGetFumiRollback(void *, |
| 623 | SaHpiResourceIdT, |
| 624 | SaHpiFumiNumT, |
| 625 | - SaHpiBoolT *) __attribute__((used)); |
| 626 | + SaHpiBoolT *) __asm__("NewSimulatorGetFumiRollback") __attribute__((used)); |
| 627 | |
| 628 | static SaErrorT NewSimulatorGetFumiRollback(void *hnd, |
| 629 | SaHpiResourceIdT id, |
| 630 | @@ -2870,7 +2870,7 @@ static SaErrorT NewSimulatorGetFumiRollb |
| 631 | static SaErrorT NewSimulatorSetFumiRollback(void *, |
| 632 | SaHpiResourceIdT, |
| 633 | SaHpiFumiNumT, |
| 634 | - SaHpiBoolT) __attribute__((used)); |
| 635 | + SaHpiBoolT) __asm__("NewSimulatorSetFumiRollback") __attribute__((used)); |
| 636 | |
| 637 | static SaErrorT NewSimulatorSetFumiRollback(void *hnd, |
| 638 | SaHpiResourceIdT id, |
| 639 | @@ -2900,7 +2900,7 @@ static SaErrorT NewSimulatorSetFumiRollb |
| 640 | **/ |
| 641 | static SaErrorT NewSimulatorStartFumiRollback(void *, |
| 642 | SaHpiResourceIdT, |
| 643 | - SaHpiFumiNumT) __attribute__((used)); |
| 644 | + SaHpiFumiNumT) __asm__("NewSimulatorStartFumiRollback") __attribute__((used)); |
| 645 | |
| 646 | static SaErrorT NewSimulatorStartFumiRollback(void *hnd, |
| 647 | SaHpiResourceIdT id, |
| 648 | @@ -2929,7 +2929,7 @@ static SaErrorT NewSimulatorStartFumiRol |
| 649 | **/ |
| 650 | static SaErrorT NewSimulatorActivateFumi(void *, |
| 651 | SaHpiResourceIdT, |
| 652 | - SaHpiFumiNumT) __attribute__((used)); |
| 653 | + SaHpiFumiNumT) __asm__("NewSimulatorActivateFumi") __attribute__((used)); |
| 654 | |
| 655 | static SaErrorT NewSimulatorActivateFumi(void *hnd, |
| 656 | SaHpiResourceIdT id, |
| 657 | @@ -2960,7 +2960,7 @@ static SaErrorT NewSimulatorActivateFumi |
| 658 | static SaErrorT NewSimulatorStartFumiActivation(void *, |
| 659 | SaHpiResourceIdT, |
| 660 | SaHpiFumiNumT, |
| 661 | - SaHpiBoolT) __attribute__((used)); |
| 662 | + SaHpiBoolT) __asm__("NewSimulatorStartFumiActivation") __attribute__((used)); |
| 663 | |
| 664 | static SaErrorT NewSimulatorStartFumiActivation(void *hnd, |
| 665 | SaHpiResourceIdT id, |
| 666 | @@ -2992,7 +2992,7 @@ static SaErrorT NewSimulatorStartFumiAct |
| 667 | static SaErrorT NewSimulatorCleanupFumi(void *, |
| 668 | SaHpiResourceIdT, |
| 669 | SaHpiFumiNumT, |
| 670 | - SaHpiBankNumT) __attribute__((used)); |
| 671 | + SaHpiBankNumT) __asm__("NewSimulatorCleanupFumi") __attribute__((used)); |
| 672 | |
| 673 | static SaErrorT NewSimulatorCleanupFumi(void *hnd, |
| 674 | SaHpiResourceIdT id, |
| 675 | @@ -3023,7 +3023,7 @@ static SaErrorT NewSimulatorCleanupFumi( |
| 676 | static SaErrorT NewSimulatorGetDimiInfo( void *, |
| 677 | SaHpiResourceIdT, |
| 678 | SaHpiDimiNumT, |
| 679 | - SaHpiDimiInfoT *) __attribute__((used)); |
| 680 | + SaHpiDimiInfoT *) __asm__("NewSimulatorGetDimiInfo") __attribute__((used)); |
| 681 | |
| 682 | static SaErrorT NewSimulatorGetDimiInfo( void *hnd, |
| 683 | SaHpiResourceIdT id, |
| 684 | @@ -3057,7 +3057,7 @@ static SaErrorT NewSimulatorGetDimiTestI |
| 685 | SaHpiResourceIdT, |
| 686 | SaHpiDimiNumT, |
| 687 | SaHpiDimiTestNumT, |
| 688 | - SaHpiDimiTestT *) __attribute__((used)); |
| 689 | + SaHpiDimiTestT *) __asm__("NewSimulatorGetDimiTestInfo") __attribute__((used)); |
| 690 | |
| 691 | static SaErrorT NewSimulatorGetDimiTestInfo( void *hnd, |
| 692 | SaHpiResourceIdT id, |
| 693 | @@ -3092,7 +3092,7 @@ static SaErrorT NewSimulatorGetDimiTestR |
| 694 | SaHpiResourceIdT, |
| 695 | SaHpiDimiNumT, |
| 696 | SaHpiDimiTestNumT, |
| 697 | - SaHpiDimiReadyT *) __attribute__((used)); |
| 698 | + SaHpiDimiReadyT *) __asm__("NewSimulatorGetDimiTestReadiness") __attribute__((used)); |
| 699 | |
| 700 | static SaErrorT NewSimulatorGetDimiTestReadiness( void *hnd, |
| 701 | SaHpiResourceIdT id, |
| 702 | @@ -3129,7 +3129,7 @@ static SaErrorT NewSimulatorStartDimiTes |
| 703 | SaHpiDimiNumT, |
| 704 | SaHpiDimiTestNumT, |
| 705 | SaHpiUint8T, |
| 706 | - SaHpiDimiTestVariableParamsT *) __attribute__((used)); |
| 707 | + SaHpiDimiTestVariableParamsT *) __asm__("NewSimulatorStartDimiTest") __attribute__((used)); |
| 708 | |
| 709 | static SaErrorT NewSimulatorStartDimiTest( void *hnd, |
| 710 | SaHpiResourceIdT id, |
| 711 | @@ -3163,7 +3163,7 @@ static SaErrorT NewSimulatorStartDimiTes |
| 712 | static SaErrorT NewSimulatorCancelDimiTest( void *, |
| 713 | SaHpiResourceIdT, |
| 714 | SaHpiDimiNumT, |
| 715 | - SaHpiDimiTestNumT) __attribute__((used)); |
| 716 | + SaHpiDimiTestNumT) __asm__("NewSimulatorCancelDimiTest") __attribute__((used)); |
| 717 | |
| 718 | static SaErrorT NewSimulatorCancelDimiTest( void *hnd, |
| 719 | SaHpiResourceIdT id, |
| 720 | @@ -3199,7 +3199,7 @@ static SaErrorT NewSimulatorGetDimiTestS |
| 721 | SaHpiDimiNumT, |
| 722 | SaHpiDimiTestNumT, |
| 723 | SaHpiDimiTestPercentCompletedT *, |
| 724 | - SaHpiDimiTestRunStatusT *) __attribute__((used)); |
| 725 | + SaHpiDimiTestRunStatusT *) __asm__("NewSimulatorGetDimiTestStatus") __attribute__((used)); |
| 726 | |
| 727 | static SaErrorT NewSimulatorGetDimiTestStatus( void *hnd, |
| 728 | SaHpiResourceIdT id, |
| 729 | @@ -3234,7 +3234,7 @@ static SaErrorT NewSimulatorGetDimiTestR |
| 730 | SaHpiResourceIdT, |
| 731 | SaHpiDimiNumT, |
| 732 | SaHpiDimiTestNumT, |
| 733 | - SaHpiDimiTestResultsT *) __attribute__((used)); |
| 734 | + SaHpiDimiTestResultsT *) __asm__("NewSimulatorGetDimiTestResults") __attribute__((used)); |
| 735 | |
| 736 | static SaErrorT NewSimulatorGetDimiTestResults( void *hnd, |
| 737 | SaHpiResourceIdT id, |
| 738 | @@ -3263,7 +3263,7 @@ static SaErrorT NewSimulatorGetDimiTestR |
| 739 | * @return HPI error code |
| 740 | **/ |
| 741 | static SaErrorT NewSimulatorSetAutoInsertTimeout( void *, |
| 742 | - SaHpiTimeoutT ) __attribute__((used)); |
| 743 | + SaHpiTimeoutT ) __asm__("NewSimulatorSetAutoInsertTimeout") __attribute__((used)); |
| 744 | |
| 745 | static SaErrorT NewSimulatorSetAutoInsertTimeout( void *hnd, SaHpiTimeoutT timeout) { |
| 746 | NewSimulator *newsim = VerifyNewSimulator( hnd ); |
| 747 | @@ -3289,7 +3289,7 @@ static SaErrorT NewSimulatorSetAutoInser |
| 748 | * @return HPI error code |
| 749 | **/ |
| 750 | static SaErrorT NewSimulatorGetAutoExtractTimeout( void *, SaHpiResourceIdT, |
| 751 | - SaHpiTimeoutT * ) __attribute__((used)); |
| 752 | + SaHpiTimeoutT * ) __asm__("NewSimulatorGetAutoExtractTimeout") __attribute__((used)); |
| 753 | |
| 754 | static SaErrorT NewSimulatorGetAutoExtractTimeout( void *hnd, SaHpiResourceIdT id, |
| 755 | SaHpiTimeoutT *timeout ) { |
| 756 | @@ -3319,7 +3319,7 @@ static SaErrorT NewSimulatorGetAutoExtra |
| 757 | * @return HPI error code |
| 758 | **/ |
| 759 | static SaErrorT NewSimulatorSetAutoExtractTimeout( void *, SaHpiResourceIdT, |
| 760 | - SaHpiTimeoutT ) __attribute__((used)); |
| 761 | + SaHpiTimeoutT ) __asm__("NewSimulatorSetAutoExtractTimeout") __attribute__((used)); |
| 762 | |
| 763 | static SaErrorT NewSimulatorSetAutoExtractTimeout( void *hnd, SaHpiResourceIdT id, |
| 764 | SaHpiTimeoutT timeout ) { |
| 765 | @@ -3350,7 +3350,7 @@ static SaErrorT NewSimulatorSetAutoExtra |
| 766 | * @return HPI error code |
| 767 | **/ |
| 768 | static SaErrorT NewSimulatorGetPowerState( void *, SaHpiResourceIdT, |
| 769 | - SaHpiPowerStateT * ) __attribute__((used)); |
| 770 | + SaHpiPowerStateT * ) __asm__("NewSimulatorGetPowerState") __attribute__((used)); |
| 771 | |
| 772 | static SaErrorT NewSimulatorGetPowerState( void *hnd, SaHpiResourceIdT id, |
| 773 | SaHpiPowerStateT *state ) { |
| 774 | @@ -3382,7 +3382,7 @@ static SaErrorT NewSimulatorGetPowerStat |
| 775 | * @return HPI error code |
| 776 | **/ |
| 777 | static SaErrorT NewSimulatorSetPowerState( void *, SaHpiResourceIdT, |
| 778 | - SaHpiPowerStateT ) __attribute__((used)); |
| 779 | + SaHpiPowerStateT ) __asm__("NewSimulatorSetPowerState") __attribute__((used)); |
| 780 | |
| 781 | static SaErrorT NewSimulatorSetPowerState( void *hnd, SaHpiResourceIdT id, |
| 782 | SaHpiPowerStateT state ) { |
| 783 | @@ -3414,7 +3414,7 @@ static SaErrorT NewSimulatorSetPowerStat |
| 784 | * @return HPI error code |
| 785 | **/ |
| 786 | static SaErrorT NewSimulatorGetIndicatorState( void *, SaHpiResourceIdT, |
| 787 | - SaHpiHsIndicatorStateT * ) __attribute__((used)); |
| 788 | + SaHpiHsIndicatorStateT * ) __asm__("NewSimulatorGetIndicatorState") __attribute__((used)); |
| 789 | |
| 790 | static SaErrorT NewSimulatorGetIndicatorState( void *hnd, SaHpiResourceIdT id, |
| 791 | SaHpiHsIndicatorStateT *state ) { |
| 792 | @@ -3446,7 +3446,7 @@ static SaErrorT NewSimulatorGetIndicator |
| 793 | * @return HPI error code |
| 794 | **/ |
| 795 | static SaErrorT NewSimulatorSetIndicatorState( void *, SaHpiResourceIdT, |
| 796 | - SaHpiHsIndicatorStateT ) __attribute__((used)); |
| 797 | + SaHpiHsIndicatorStateT ) __asm__("NewSimulatorSetIndicatorState") __attribute__((used)); |
| 798 | |
| 799 | static SaErrorT NewSimulatorSetIndicatorState( void *hnd, SaHpiResourceIdT id, |
| 800 | SaHpiHsIndicatorStateT state ) { |
| 801 | @@ -3479,7 +3479,7 @@ static SaErrorT NewSimulatorSetIndicator |
| 802 | **/ |
| 803 | static SaErrorT NewSimulatorControlParm( void *, |
| 804 | SaHpiResourceIdT, |
| 805 | - SaHpiParmActionT ) __attribute__((used)); |
| 806 | + SaHpiParmActionT ) __asm__("NewSimulatorControlParm") __attribute__((used)); |
| 807 | |
| 808 | static SaErrorT NewSimulatorControlParm( void *hnd, |
| 809 | SaHpiResourceIdT id, |
| 810 | @@ -3512,7 +3512,7 @@ static SaErrorT NewSimulatorControlParm( |
| 811 | * @return HPI error code |
| 812 | **/ |
| 813 | static SaErrorT NewSimulatorGetResetState( void *, SaHpiResourceIdT, |
| 814 | - SaHpiResetActionT * ) __attribute__((used)); |
| 815 | + SaHpiResetActionT * ) __asm__("NewSimulatorGetResetState") __attribute__((used)); |
| 816 | |
| 817 | static SaErrorT NewSimulatorGetResetState( void *hnd, SaHpiResourceIdT id, |
| 818 | SaHpiResetActionT *act ) { |
| 819 | @@ -3545,7 +3545,7 @@ static SaErrorT NewSimulatorGetResetStat |
| 820 | **/ |
| 821 | static SaErrorT NewSimulatorSetResetState( void *, |
| 822 | SaHpiResourceIdT, |
| 823 | - SaHpiResetActionT ) __attribute__((used)); |
| 824 | + SaHpiResetActionT ) __asm__("NewSimulatorSetResetState") __attribute__((used)); |
| 825 | |
| 826 | static SaErrorT NewSimulatorSetResetState( void *hnd, |
| 827 | SaHpiResourceIdT id, |
| 828 | Index: openhpi-3.6.1/plugins/dynamic_simulator/new_sim_file.cpp |
| 829 | =================================================================== |
| 830 | --- openhpi-3.6.1.orig/plugins/dynamic_simulator/new_sim_file.cpp |
| 831 | +++ openhpi-3.6.1/plugins/dynamic_simulator/new_sim_file.cpp |
| 832 | @@ -44,9 +44,9 @@ |
| 833 | ///< Global skip characters for oh_scanner_config |
| 834 | static gchar skip_characters[] = " \t\n"; |
| 835 | ///< Global identifier_first for oh_scanner_config |
| 836 | -static gchar identifier_first[] = G_CSET_a_2_z"_/."G_CSET_A_2_Z; |
| 837 | +static gchar identifier_first[] = G_CSET_a_2_z "_/." G_CSET_A_2_Z; |
| 838 | ///< Global identifier_nth for oh_scanner_config |
| 839 | -static gchar identifier_nth[] = G_CSET_a_2_z"_-0123456789/."G_CSET_A_2_Z; |
| 840 | +static gchar identifier_nth[] = G_CSET_a_2_z "_-0123456789/." G_CSET_A_2_Z; |
| 841 | ///< Global comment signs for oh_scanner_config |
| 842 | static gchar comment_single[] = "#\n"; |
| 843 | |
| 844 | Index: openhpi-3.6.1/plugins/ipmidirect/ipmi.cpp |
| 845 | =================================================================== |
| 846 | --- openhpi-3.6.1.orig/plugins/ipmidirect/ipmi.cpp |
| 847 | +++ openhpi-3.6.1/plugins/ipmidirect/ipmi.cpp |
| 848 | @@ -279,7 +279,7 @@ extern "C" { |
| 849 | // ABI Interface functions |
| 850 | |
| 851 | static void * |
| 852 | -IpmiOpen( GHashTable *, unsigned int, oh_evt_queue * ) __attribute__((used)); |
| 853 | +IpmiOpen( GHashTable *, unsigned int, oh_evt_queue * ) __asm__("IpmiOpen") __attribute__((used)); |
| 854 | |
| 855 | static void * |
| 856 | IpmiOpen( GHashTable *handler_config, unsigned int hid, oh_evt_queue *eventq ) |
| 857 | @@ -388,7 +388,7 @@ IpmiOpen( GHashTable *handler_config, un |
| 858 | |
| 859 | |
| 860 | static void |
| 861 | -IpmiClose( void * ) __attribute__((used)); |
| 862 | +IpmiClose( void * ) __asm__("IpmiClose") __attribute__((used)); |
| 863 | |
| 864 | static void |
| 865 | IpmiClose( void *hnd ) |
| 866 | @@ -436,7 +436,7 @@ IpmiClose( void *hnd ) |
| 867 | |
| 868 | |
| 869 | static SaErrorT |
| 870 | -IpmiGetEvent( void * ) __attribute__((used)); |
| 871 | +IpmiGetEvent( void * ) __asm__("IpmiGetEvent") __attribute__((used)); |
| 872 | |
| 873 | static SaErrorT |
| 874 | IpmiGetEvent( void *hnd ) |
| 875 | @@ -458,7 +458,7 @@ IpmiGetEvent( void *hnd ) |
| 876 | |
| 877 | |
| 878 | static SaErrorT |
| 879 | -IpmiDiscoverResources( void * ) __attribute__((used)); |
| 880 | +IpmiDiscoverResources( void * ) __asm__("IpmiDiscoverResources") __attribute__((used)); |
| 881 | |
| 882 | static SaErrorT |
| 883 | IpmiDiscoverResources( void *hnd ) |
| 884 | @@ -479,7 +479,7 @@ IpmiDiscoverResources( void *hnd ) |
| 885 | |
| 886 | |
| 887 | static SaErrorT |
| 888 | -IpmiSetResourceTag( void *, SaHpiResourceIdT, SaHpiTextBufferT * ) __attribute__((used)); |
| 889 | +IpmiSetResourceTag( void *, SaHpiResourceIdT, SaHpiTextBufferT * ) __asm__("IpmiSetResourceTag") __attribute__((used)); |
| 890 | |
| 891 | static SaErrorT |
| 892 | IpmiSetResourceTag( void *hnd, SaHpiResourceIdT id, SaHpiTextBufferT *tag ) |
| 893 | @@ -499,7 +499,7 @@ IpmiSetResourceTag( void *hnd, SaHpiReso |
| 894 | |
| 895 | |
| 896 | static SaErrorT |
| 897 | -IpmiSetResourceSeverity( void *, SaHpiResourceIdT, SaHpiSeverityT ) __attribute__((used)); |
| 898 | +IpmiSetResourceSeverity( void *, SaHpiResourceIdT, SaHpiSeverityT ) __asm__("IpmiSetResourceSeverity") __attribute__((used)); |
| 899 | |
| 900 | static SaErrorT |
| 901 | IpmiSetResourceSeverity( void *hnd, SaHpiResourceIdT id, SaHpiSeverityT sev ) |
| 902 | @@ -523,7 +523,7 @@ IpmiGetSensorReading( void *, |
| 903 | SaHpiResourceIdT id, |
| 904 | SaHpiSensorNumT num, |
| 905 | SaHpiSensorReadingT *data, |
| 906 | - SaHpiEventStateT *state ) __attribute__((used)); |
| 907 | + SaHpiEventStateT *state ) __asm__("IpmiGetSensorReading") __attribute__((used)); |
| 908 | |
| 909 | static SaErrorT |
| 910 | IpmiGetSensorReading( void *hnd, |
| 911 | @@ -550,7 +550,7 @@ static SaErrorT |
| 912 | IpmiGetSensorThresholds( void *hnd, |
| 913 | SaHpiResourceIdT, |
| 914 | SaHpiSensorNumT, |
| 915 | - SaHpiSensorThresholdsT * ) __attribute__((used)); |
| 916 | + SaHpiSensorThresholdsT * ) __asm__("IpmiGetSensorThresholds") __attribute__((used)); |
| 917 | |
| 918 | static SaErrorT |
| 919 | IpmiGetSensorThresholds( void *hnd, |
| 920 | @@ -581,7 +581,7 @@ static SaErrorT |
| 921 | IpmiSetSensorThresholds( void *, |
| 922 | SaHpiResourceIdT, |
| 923 | SaHpiSensorNumT, |
| 924 | - const SaHpiSensorThresholdsT * ) __attribute__((used)); |
| 925 | + const SaHpiSensorThresholdsT * ) __asm__("IpmiSetSensorThresholds") __attribute__((used)); |
| 926 | |
| 927 | static SaErrorT |
| 928 | IpmiSetSensorThresholds( void *hnd, |
| 929 | @@ -612,7 +612,7 @@ static SaErrorT |
| 930 | IpmiGetSensorEnable( void *, |
| 931 | SaHpiResourceIdT, |
| 932 | SaHpiSensorNumT, |
| 933 | - SaHpiBoolT * ) __attribute__((used)); |
| 934 | + SaHpiBoolT * ) __asm__("IpmiGetSensorEnable") __attribute__((used)); |
| 935 | |
| 936 | static SaErrorT |
| 937 | IpmiGetSensorEnable( void *hnd, |
| 938 | @@ -638,7 +638,7 @@ static SaErrorT |
| 939 | IpmiSetSensorEnable( void *, |
| 940 | SaHpiResourceIdT, |
| 941 | SaHpiSensorNumT, |
| 942 | - SaHpiBoolT ) __attribute__((used)); |
| 943 | + SaHpiBoolT ) __asm__("IpmiSetSensorEnable") __attribute__((used)); |
| 944 | |
| 945 | static SaErrorT |
| 946 | IpmiSetSensorEnable( void *hnd, |
| 947 | @@ -664,7 +664,7 @@ static SaErrorT |
| 948 | IpmiGetSensorEventEnables( void *, |
| 949 | SaHpiResourceIdT, |
| 950 | SaHpiSensorNumT, |
| 951 | - SaHpiBoolT * ) __attribute__((used)); |
| 952 | + SaHpiBoolT * ) __asm__("IpmiGetSensorEventEnables") __attribute__((used)); |
| 953 | |
| 954 | static SaErrorT |
| 955 | IpmiGetSensorEventEnables( void *hnd, |
| 956 | @@ -690,7 +690,7 @@ static SaErrorT |
| 957 | IpmiSetSensorEventEnables( void *, |
| 958 | SaHpiResourceIdT, |
| 959 | SaHpiSensorNumT, |
| 960 | - SaHpiBoolT ) __attribute__((used)); |
| 961 | + SaHpiBoolT ) __asm__("IpmiSetSensorEventEnables") __attribute__((used)); |
| 962 | |
| 963 | static SaErrorT |
| 964 | IpmiSetSensorEventEnables( void *hnd, |
| 965 | @@ -717,7 +717,7 @@ IpmiGetSensorEventMasks( void *, |
| 966 | SaHpiResourceIdT, |
| 967 | SaHpiSensorNumT, |
| 968 | SaHpiEventStateT *, |
| 969 | - SaHpiEventStateT * ) __attribute__((used)); |
| 970 | + SaHpiEventStateT * ) __asm__("IpmiGetSensorEventMasks") __attribute__((used)); |
| 971 | |
| 972 | static SaErrorT |
| 973 | IpmiGetSensorEventMasks( void *hnd, |
| 974 | @@ -747,7 +747,7 @@ IpmiSetSensorEventMasks( void *, |
| 975 | SaHpiSensorNumT, |
| 976 | SaHpiSensorEventMaskActionT, |
| 977 | SaHpiEventStateT, |
| 978 | - SaHpiEventStateT ) __attribute__((used)); |
| 979 | + SaHpiEventStateT ) __asm__("IpmiSetSensorEventMasks") __attribute__((used)); |
| 980 | |
| 981 | static SaErrorT |
| 982 | IpmiSetSensorEventMasks( void *hnd, |
| 983 | @@ -776,7 +776,7 @@ static SaErrorT |
| 984 | IpmiGetControlState( void *, SaHpiResourceIdT, |
| 985 | SaHpiCtrlNumT, |
| 986 | SaHpiCtrlModeT *, |
| 987 | - SaHpiCtrlStateT * ) __attribute__((used)); |
| 988 | + SaHpiCtrlStateT * ) __asm__("IpmiGetControlState") __attribute__((used)); |
| 989 | |
| 990 | static SaErrorT |
| 991 | IpmiGetControlState( void *hnd, SaHpiResourceIdT id, |
| 992 | @@ -802,7 +802,7 @@ static SaErrorT |
| 993 | IpmiSetControlState( void *, SaHpiResourceIdT, |
| 994 | SaHpiCtrlNumT, |
| 995 | SaHpiCtrlModeT, |
| 996 | - SaHpiCtrlStateT * ) __attribute__((used)); |
| 997 | + SaHpiCtrlStateT * ) __asm__("IpmiSetControlState") __attribute__((used)); |
| 998 | |
| 999 | static SaErrorT |
| 1000 | IpmiSetControlState( void *hnd, SaHpiResourceIdT id, |
| 1001 | @@ -828,7 +828,7 @@ static SaErrorT |
| 1002 | IpmiGetIdrInfo( void *, |
| 1003 | SaHpiResourceIdT, |
| 1004 | SaHpiIdrIdT, |
| 1005 | - SaHpiIdrInfoT * ) __attribute__((used)); |
| 1006 | + SaHpiIdrInfoT * ) __asm__("IpmiGetIdrInfo") __attribute__((used)); |
| 1007 | |
| 1008 | static SaErrorT |
| 1009 | IpmiGetIdrInfo( void *hnd, |
| 1010 | @@ -857,7 +857,7 @@ IpmiGetIdrAreaHeader( void *, |
| 1011 | SaHpiIdrAreaTypeT, |
| 1012 | SaHpiEntryIdT, |
| 1013 | SaHpiEntryIdT *, |
| 1014 | - SaHpiIdrAreaHeaderT * ) __attribute__((used)); |
| 1015 | + SaHpiIdrAreaHeaderT * ) __asm__("IpmiGetIdrAreaHeader") __attribute__((used)); |
| 1016 | |
| 1017 | static SaErrorT |
| 1018 | IpmiGetIdrAreaHeader( void *hnd, |
| 1019 | @@ -887,7 +887,7 @@ IpmiAddIdrArea( void *, |
| 1020 | SaHpiResourceIdT, |
| 1021 | SaHpiIdrIdT, |
| 1022 | SaHpiIdrAreaTypeT, |
| 1023 | - SaHpiEntryIdT * ) __attribute__((used)); |
| 1024 | + SaHpiEntryIdT * ) __asm__("IpmiAddIdrArea") __attribute__((used)); |
| 1025 | |
| 1026 | static SaErrorT |
| 1027 | IpmiAddIdrArea( void *hnd, |
| 1028 | @@ -914,7 +914,7 @@ static SaErrorT |
| 1029 | IpmiDelIdrArea( void *, |
| 1030 | SaHpiResourceIdT, |
| 1031 | SaHpiIdrIdT, |
| 1032 | - SaHpiEntryIdT ) __attribute__((used)); |
| 1033 | + SaHpiEntryIdT ) __asm__("IpmiDelIdrArea") __attribute__((used)); |
| 1034 | |
| 1035 | static SaErrorT |
| 1036 | IpmiDelIdrArea( void *hnd, |
| 1037 | @@ -944,7 +944,7 @@ IpmiGetIdrField( void *, |
| 1038 | SaHpiIdrFieldTypeT, |
| 1039 | SaHpiEntryIdT, |
| 1040 | SaHpiEntryIdT *, |
| 1041 | - SaHpiIdrFieldT * ) __attribute__((used)); |
| 1042 | + SaHpiIdrFieldT * ) __asm__("IpmiGetIdrField") __attribute__((used)); |
| 1043 | |
| 1044 | static SaErrorT |
| 1045 | IpmiGetIdrField( void *hnd, |
| 1046 | @@ -974,7 +974,7 @@ static SaErrorT |
| 1047 | IpmiAddIdrField( void *, |
| 1048 | SaHpiResourceIdT, |
| 1049 | SaHpiIdrIdT, |
| 1050 | - SaHpiIdrFieldT * ) __attribute__((used)); |
| 1051 | + SaHpiIdrFieldT * ) __asm__("IpmiAddIdrField") __attribute__((used)); |
| 1052 | |
| 1053 | static SaErrorT |
| 1054 | IpmiAddIdrField( void *hnd, |
| 1055 | @@ -1000,7 +1000,7 @@ static SaErrorT |
| 1056 | IpmiSetIdrField( void *, |
| 1057 | SaHpiResourceIdT, |
| 1058 | SaHpiIdrIdT, |
| 1059 | - SaHpiIdrFieldT * ) __attribute__((used)); |
| 1060 | + SaHpiIdrFieldT * ) __asm__("IpmiSetIdrField") __attribute__((used)); |
| 1061 | |
| 1062 | static SaErrorT |
| 1063 | IpmiSetIdrField( void *hnd, |
| 1064 | @@ -1027,7 +1027,7 @@ IpmiDelIdrField( void *, |
| 1065 | SaHpiResourceIdT, |
| 1066 | SaHpiIdrIdT, |
| 1067 | SaHpiEntryIdT, |
| 1068 | - SaHpiEntryIdT ) __attribute__((used)); |
| 1069 | + SaHpiEntryIdT ) __asm__("IpmiDelIdrField") __attribute__((used)); |
| 1070 | |
| 1071 | static SaErrorT |
| 1072 | IpmiDelIdrField( void *hnd, |
| 1073 | @@ -1053,7 +1053,7 @@ IpmiDelIdrField( void *hnd, |
| 1074 | static SaErrorT |
| 1075 | IpmiGetSelInfo( void *, |
| 1076 | SaHpiResourceIdT, |
| 1077 | - SaHpiEventLogInfoT * ) __attribute__((used)); |
| 1078 | + SaHpiEventLogInfoT * ) __asm__("IpmiGetSelInfo") __attribute__((used)); |
| 1079 | |
| 1080 | static SaErrorT |
| 1081 | IpmiGetSelInfo( void *hnd, |
| 1082 | @@ -1075,7 +1075,7 @@ IpmiGetSelInfo( void *hnd, |
| 1083 | |
| 1084 | |
| 1085 | static SaErrorT |
| 1086 | -IpmiSetSelTime( void *, SaHpiResourceIdT, SaHpiTimeT ) __attribute__((used)); |
| 1087 | +IpmiSetSelTime( void *, SaHpiResourceIdT, SaHpiTimeT ) __asm__("IpmiSetSelTime") __attribute__((used)); |
| 1088 | |
| 1089 | static SaErrorT |
| 1090 | IpmiSetSelTime( void *hnd, SaHpiResourceIdT id, SaHpiTimeT t ) |
| 1091 | @@ -1096,7 +1096,7 @@ IpmiSetSelTime( void *hnd, SaHpiResource |
| 1092 | |
| 1093 | static SaErrorT |
| 1094 | IpmiAddSelEntry( void *, SaHpiResourceIdT, |
| 1095 | - const SaHpiEventT * ) __attribute__((used)); |
| 1096 | + const SaHpiEventT * ) __asm__("IpmiAddSelEntry") __attribute__((used)); |
| 1097 | |
| 1098 | static SaErrorT |
| 1099 | IpmiAddSelEntry( void *hnd, SaHpiResourceIdT id, |
| 1100 | @@ -1118,7 +1118,7 @@ IpmiAddSelEntry( void *hnd, SaHpiResourc |
| 1101 | #ifdef NOTUSED |
| 1102 | static SaErrorT |
| 1103 | IpmiDelSelEntry( void *, SaHpiResourceIdT, |
| 1104 | - SaHpiEventLogEntryIdT ) __attribute__((used)); |
| 1105 | + SaHpiEventLogEntryIdT ) __asm__("IpmiDelSelEntry") __attribute__((used)); |
| 1106 | |
| 1107 | static SaErrorT |
| 1108 | IpmiDelSelEntry( void *hnd, SaHpiResourceIdT id, |
| 1109 | @@ -1145,7 +1145,7 @@ IpmiGetSelEntry( void *hnd, SaHpiResourc |
| 1110 | SaHpiEventLogEntryIdT *, SaHpiEventLogEntryIdT *, |
| 1111 | SaHpiEventLogEntryT *, |
| 1112 | SaHpiRdrT *, |
| 1113 | - SaHpiRptEntryT * ) __attribute__((used)); |
| 1114 | + SaHpiRptEntryT * ) __asm__("IpmiGetSelEntry") __attribute__((used)); |
| 1115 | |
| 1116 | static SaErrorT |
| 1117 | IpmiGetSelEntry( void *hnd, SaHpiResourceIdT id, |
| 1118 | @@ -1170,7 +1170,7 @@ IpmiGetSelEntry( void *hnd, SaHpiResourc |
| 1119 | |
| 1120 | |
| 1121 | static SaErrorT |
| 1122 | -IpmiClearSel( void *, SaHpiResourceIdT ) __attribute__((used)); |
| 1123 | +IpmiClearSel( void *, SaHpiResourceIdT ) __asm__("IpmiClearSel") __attribute__((used)); |
| 1124 | |
| 1125 | static SaErrorT |
| 1126 | IpmiClearSel( void *hnd, SaHpiResourceIdT id ) |
| 1127 | @@ -1190,7 +1190,7 @@ IpmiClearSel( void *hnd, SaHpiResourceId |
| 1128 | |
| 1129 | static SaErrorT |
| 1130 | IpmiHotswapPolicyCancel( void *, SaHpiResourceIdT, |
| 1131 | - SaHpiTimeoutT ) __attribute__((used)); |
| 1132 | + SaHpiTimeoutT ) __asm__("IpmiHotswapPolicyCancel") __attribute__((used)); |
| 1133 | |
| 1134 | static SaErrorT |
| 1135 | IpmiHotswapPolicyCancel( void *hnd, SaHpiResourceIdT id, |
| 1136 | @@ -1210,7 +1210,7 @@ IpmiHotswapPolicyCancel( void *hnd, SaHp |
| 1137 | } |
| 1138 | |
| 1139 | static SaErrorT |
| 1140 | -IpmiSetAutoInsertTimeout( void *, SaHpiTimeoutT ) __attribute__((used)); |
| 1141 | +IpmiSetAutoInsertTimeout( void *, SaHpiTimeoutT ) __asm__("IpmiSetAutoInsertTimeout") __attribute__((used)); |
| 1142 | |
| 1143 | static SaErrorT |
| 1144 | IpmiSetAutoInsertTimeout( void *hnd, SaHpiTimeoutT timeout) |
| 1145 | @@ -1229,7 +1229,7 @@ IpmiSetAutoInsertTimeout( void *hnd, SaH |
| 1146 | |
| 1147 | static SaErrorT |
| 1148 | IpmiGetAutoExtractTimeout( void *, SaHpiResourceIdT, |
| 1149 | - SaHpiTimeoutT * ) __attribute__((used)); |
| 1150 | + SaHpiTimeoutT * ) __asm__("IpmiGetAutoExtractTimeout") __attribute__((used)); |
| 1151 | |
| 1152 | static SaErrorT |
| 1153 | IpmiGetAutoExtractTimeout( void *hnd, SaHpiResourceIdT id, |
| 1154 | @@ -1250,7 +1250,7 @@ IpmiGetAutoExtractTimeout( void *hnd, Sa |
| 1155 | |
| 1156 | static SaErrorT |
| 1157 | IpmiSetAutoExtractTimeout( void *, SaHpiResourceIdT, |
| 1158 | - SaHpiTimeoutT ) __attribute__((used)); |
| 1159 | + SaHpiTimeoutT ) __asm__("IpmiSetAutoExtractTimeout") __attribute__((used)); |
| 1160 | |
| 1161 | static SaErrorT |
| 1162 | IpmiSetAutoExtractTimeout( void *hnd, SaHpiResourceIdT id, |
| 1163 | @@ -1271,7 +1271,7 @@ IpmiSetAutoExtractTimeout( void *hnd, Sa |
| 1164 | |
| 1165 | static SaErrorT |
| 1166 | IpmiGetHotswapState( void *, SaHpiResourceIdT , |
| 1167 | - SaHpiHsStateT * ) __attribute__((used)); |
| 1168 | + SaHpiHsStateT * ) __asm__("IpmiGetHotswapState") __attribute__((used)); |
| 1169 | |
| 1170 | static SaErrorT |
| 1171 | IpmiGetHotswapState( void *hnd, SaHpiResourceIdT id, |
| 1172 | @@ -1293,7 +1293,7 @@ IpmiGetHotswapState( void *hnd, SaHpiRes |
| 1173 | |
| 1174 | static SaErrorT |
| 1175 | IpmiSetHotswapState( void *, SaHpiResourceIdT, |
| 1176 | - SaHpiHsStateT ) __attribute__((used)); |
| 1177 | + SaHpiHsStateT ) __asm__("IpmiSetHotswapState") __attribute__((used)); |
| 1178 | |
| 1179 | static SaErrorT |
| 1180 | IpmiSetHotswapState( void *hnd, SaHpiResourceIdT id, |
| 1181 | @@ -1315,7 +1315,7 @@ IpmiSetHotswapState( void *hnd, SaHpiRes |
| 1182 | |
| 1183 | static SaErrorT |
| 1184 | IpmiRequestHotswapAction( void *, SaHpiResourceIdT, |
| 1185 | - SaHpiHsActionT ) __attribute__((used)); |
| 1186 | + SaHpiHsActionT ) __asm__("IpmiRequestHotswapAction") __attribute__((used)); |
| 1187 | |
| 1188 | static SaErrorT |
| 1189 | IpmiRequestHotswapAction( void *hnd, SaHpiResourceIdT id, |
| 1190 | @@ -1337,7 +1337,7 @@ IpmiRequestHotswapAction( void *hnd, SaH |
| 1191 | |
| 1192 | static SaErrorT |
| 1193 | IpmiGetPowerState( void *, SaHpiResourceIdT, |
| 1194 | - SaHpiPowerStateT * ) __attribute__((used)); |
| 1195 | + SaHpiPowerStateT * ) __asm__("IpmiGetPowerState") __attribute__((used)); |
| 1196 | |
| 1197 | static SaErrorT |
| 1198 | IpmiGetPowerState( void *hnd, SaHpiResourceIdT id, |
| 1199 | @@ -1359,7 +1359,7 @@ IpmiGetPowerState( void *hnd, SaHpiResou |
| 1200 | |
| 1201 | static SaErrorT |
| 1202 | IpmiSetPowerState( void *, SaHpiResourceIdT, |
| 1203 | - SaHpiPowerStateT ) __attribute__((used)); |
| 1204 | + SaHpiPowerStateT ) __asm__("IpmiSetPowerState") __attribute__((used)); |
| 1205 | |
| 1206 | static SaErrorT |
| 1207 | IpmiSetPowerState( void *hnd, SaHpiResourceIdT id, |
| 1208 | @@ -1381,7 +1381,7 @@ IpmiSetPowerState( void *hnd, SaHpiResou |
| 1209 | |
| 1210 | static SaErrorT |
| 1211 | IpmiGetIndicatorState( void *, SaHpiResourceIdT, |
| 1212 | - SaHpiHsIndicatorStateT * ) __attribute__((used)); |
| 1213 | + SaHpiHsIndicatorStateT * ) __asm__("IpmiGetIndicatorState") __attribute__((used)); |
| 1214 | |
| 1215 | static SaErrorT |
| 1216 | IpmiGetIndicatorState( void *hnd, SaHpiResourceIdT id, |
| 1217 | @@ -1403,7 +1403,7 @@ IpmiGetIndicatorState( void *hnd, SaHpiR |
| 1218 | |
| 1219 | static SaErrorT |
| 1220 | IpmiSetIndicatorState( void *, SaHpiResourceIdT, |
| 1221 | - SaHpiHsIndicatorStateT ) __attribute__((used)); |
| 1222 | + SaHpiHsIndicatorStateT ) __asm__("IpmiSetIndicatorState") __attribute__((used)); |
| 1223 | |
| 1224 | static SaErrorT |
| 1225 | IpmiSetIndicatorState( void *hnd, SaHpiResourceIdT id, |
| 1226 | @@ -1426,7 +1426,7 @@ IpmiSetIndicatorState( void *hnd, SaHpiR |
| 1227 | static SaErrorT |
| 1228 | IpmiControlParm( void *, |
| 1229 | SaHpiResourceIdT, |
| 1230 | - SaHpiParmActionT ) __attribute__((used)); |
| 1231 | + SaHpiParmActionT ) __asm__("IpmiControlParm") __attribute__((used)); |
| 1232 | |
| 1233 | static SaErrorT |
| 1234 | IpmiControlParm( void *hnd, |
| 1235 | @@ -1449,7 +1449,7 @@ IpmiControlParm( void *hnd, |
| 1236 | |
| 1237 | static SaErrorT |
| 1238 | IpmiGetResetState( void *, SaHpiResourceIdT, |
| 1239 | - SaHpiResetActionT * ) __attribute__((used)); |
| 1240 | + SaHpiResetActionT * ) __asm__("IpmiGetResetState") __attribute__((used)); |
| 1241 | |
| 1242 | static SaErrorT |
| 1243 | IpmiGetResetState( void *hnd, SaHpiResourceIdT id, |
| 1244 | @@ -1472,7 +1472,7 @@ IpmiGetResetState( void *hnd, SaHpiResou |
| 1245 | static SaErrorT |
| 1246 | IpmiSetResetState( void *, |
| 1247 | SaHpiResourceIdT, |
| 1248 | - SaHpiResetActionT ) __attribute__((used)); |
| 1249 | + SaHpiResetActionT ) __asm__("IpmiSetResetState") __attribute__((used)); |
| 1250 | |
| 1251 | static SaErrorT |
| 1252 | IpmiSetResetState( void *hnd, |
| 1253 | @@ -1496,7 +1496,7 @@ static SaErrorT |
| 1254 | IpmiGetWatchdogInfo(void *, |
| 1255 | SaHpiResourceIdT, |
| 1256 | SaHpiWatchdogNumT, |
| 1257 | - SaHpiWatchdogT *) __attribute__((used)); |
| 1258 | + SaHpiWatchdogT *) __asm__("IpmiGetWatchdogInfo") __attribute__((used)); |
| 1259 | |
| 1260 | static SaErrorT |
| 1261 | IpmiGetWatchdogInfo(void *hnd, |
| 1262 | @@ -1517,7 +1517,7 @@ static SaErrorT |
| 1263 | IpmiSetWatchdogInfo(void *, |
| 1264 | SaHpiResourceIdT, |
| 1265 | SaHpiWatchdogNumT, |
| 1266 | - SaHpiWatchdogT *) __attribute__((used)); |
| 1267 | + SaHpiWatchdogT *) __asm__("IpmiSetWatchdogInfo") __attribute__((used)); |
| 1268 | |
| 1269 | static SaErrorT |
| 1270 | IpmiSetWatchdogInfo(void *hnd, |
| 1271 | @@ -1537,7 +1537,7 @@ IpmiSetWatchdogInfo(void *hnd, |
| 1272 | static SaErrorT |
| 1273 | IpmiResetWatchdog(void *, |
| 1274 | SaHpiResourceIdT, |
| 1275 | - SaHpiWatchdogNumT) __attribute__((used)); |
| 1276 | + SaHpiWatchdogNumT) __asm__("IpmiResetWatchdog") __attribute__((used)); |
| 1277 | |
| 1278 | static SaErrorT |
| 1279 | IpmiResetWatchdog(void *hnd, |