aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/acpi/acpica/acdebug.h4
-rw-r--r--drivers/acpi/acpica/acdispat.h4
-rw-r--r--drivers/acpi/acpica/acevents.h3
-rw-r--r--drivers/acpi/acpica/acglobal.h4
-rw-r--r--drivers/acpi/acpica/achware.h4
-rw-r--r--drivers/acpi/acpica/acinterp.h4
-rw-r--r--drivers/acpi/acpica/aclocal.h4
-rw-r--r--drivers/acpi/acpica/acmacros.h4
-rw-r--r--drivers/acpi/acpica/acnamesp.h4
-rw-r--r--drivers/acpi/acpica/acobject.h4
-rw-r--r--drivers/acpi/acpica/acparser.h4
-rw-r--r--drivers/acpi/acpica/acpredef.h4
-rw-r--r--drivers/acpi/acpica/acresrc.h4
-rw-r--r--drivers/acpi/acpica/acstruct.h4
-rw-r--r--drivers/acpi/acpica/actables.h4
-rw-r--r--drivers/acpi/acpica/acutils.h4
-rw-r--r--drivers/acpi/acpica/amlcode.h4
-rw-r--r--drivers/acpi/acpica/amlresrc.h4
-rw-r--r--include/acpi/acbuffer.h4
-rw-r--r--include/acpi/acconfig.h4
-rw-r--r--include/acpi/acexcep.h4
-rw-r--r--include/acpi/acoutput.h4
-rw-r--r--include/acpi/acpiosxf.h4
-rw-r--r--include/acpi/acpixf.h4
-rw-r--r--include/acpi/acrestyp.h4
-rw-r--r--include/acpi/actbl.h4
-rw-r--r--include/acpi/actbl1.h6
-rw-r--r--include/acpi/actbl2.h6
-rw-r--r--include/acpi/actbl3.h6
-rw-r--r--include/acpi/actypes.h4
30 files changed, 10 insertions, 115 deletions
diff --git a/drivers/acpi/acpica/acdebug.h b/drivers/acpi/acpica/acdebug.h
index e9ab514a96c8..68a91eb0fa48 100644
--- a/drivers/acpi/acpica/acdebug.h
+++ b/drivers/acpi/acpica/acdebug.h
@@ -44,8 +44,6 @@
44#ifndef __ACDEBUG_H__ 44#ifndef __ACDEBUG_H__
45#define __ACDEBUG_H__ 45#define __ACDEBUG_H__
46 46
47#pragma pack(push) /* Set default struct packing */
48
49#define ACPI_DEBUG_BUFFER_SIZE 0x4000 /* 16K buffer for return objects */ 47#define ACPI_DEBUG_BUFFER_SIZE 0x4000 /* 16K buffer for return objects */
50 48
51struct acpi_db_command_info { 49struct acpi_db_command_info {
@@ -284,6 +282,4 @@ struct acpi_namespace_node *acpi_db_local_ns_lookup(char *name);
284 282
285void acpi_db_uint32_to_hex_string(u32 value, char *buffer); 283void acpi_db_uint32_to_hex_string(u32 value, char *buffer);
286 284
287#pragma pack(pop) /* Restore original struct packing */
288
289#endif /* __ACDEBUG_H__ */ 285#endif /* __ACDEBUG_H__ */
diff --git a/drivers/acpi/acpica/acdispat.h b/drivers/acpi/acpica/acdispat.h
index 53b6dd679ffa..5b472c43c31d 100644
--- a/drivers/acpi/acpica/acdispat.h
+++ b/drivers/acpi/acpica/acdispat.h
@@ -44,8 +44,6 @@
44#ifndef _ACDISPAT_H_ 44#ifndef _ACDISPAT_H_
45#define _ACDISPAT_H_ 45#define _ACDISPAT_H_
46 46
47#pragma pack(push) /* Set default struct packing */
48
49#define NAMEOF_LOCAL_NTE "__L0" 47#define NAMEOF_LOCAL_NTE "__L0"
50#define NAMEOF_ARG_NTE "__A0" 48#define NAMEOF_ARG_NTE "__A0"
51 49
@@ -353,6 +351,4 @@ acpi_status
353acpi_ds_result_push(union acpi_operand_object *object, 351acpi_ds_result_push(union acpi_operand_object *object,
354 struct acpi_walk_state *walk_state); 352 struct acpi_walk_state *walk_state);
355 353
356#pragma pack(pop) /* Restore original struct packing */
357
358#endif /* _ACDISPAT_H_ */ 354#endif /* _ACDISPAT_H_ */
diff --git a/drivers/acpi/acpica/acevents.h b/drivers/acpi/acpica/acevents.h
index 75f25eda3a6a..68ec61fff188 100644
--- a/drivers/acpi/acpica/acevents.h
+++ b/drivers/acpi/acpica/acevents.h
@@ -44,8 +44,6 @@
44#ifndef __ACEVENTS_H__ 44#ifndef __ACEVENTS_H__
45#define __ACEVENTS_H__ 45#define __ACEVENTS_H__
46 46
47#pragma pack(push) /* Set default struct packing */
48
49/* 47/*
50 * evevent 48 * evevent
51 */ 49 */
@@ -253,5 +251,4 @@ u32 acpi_ev_install_sci_handler(void);
253acpi_status acpi_ev_remove_all_sci_handlers(void); 251acpi_status acpi_ev_remove_all_sci_handlers(void);
254 252
255ACPI_HW_DEPENDENT_RETURN_VOID(void acpi_ev_terminate(void)) 253ACPI_HW_DEPENDENT_RETURN_VOID(void acpi_ev_terminate(void))
256#pragma pack(pop) /* Restore original struct packing */
257#endif /* __ACEVENTS_H__ */ 254#endif /* __ACEVENTS_H__ */
diff --git a/drivers/acpi/acpica/acglobal.h b/drivers/acpi/acpica/acglobal.h
index 7cc7ffef04d2..8f40bb972ae3 100644
--- a/drivers/acpi/acpica/acglobal.h
+++ b/drivers/acpi/acpica/acglobal.h
@@ -44,8 +44,6 @@
44#ifndef __ACGLOBAL_H__ 44#ifndef __ACGLOBAL_H__
45#define __ACGLOBAL_H__ 45#define __ACGLOBAL_H__
46 46
47#pragma pack(push) /* Set default struct packing */
48
49/* 47/*
50 * Ensure that the globals are actually defined and initialized only once. 48 * Ensure that the globals are actually defined and initialized only once.
51 * 49 *
@@ -511,6 +509,4 @@ ACPI_INIT_GLOBAL(ACPI_FILE, acpi_gbl_debug_file, NULL);
511 509
512extern const struct ah_predefined_name asl_predefined_info[]; 510extern const struct ah_predefined_name asl_predefined_info[];
513 511
514#pragma pack(pop) /* Restore original struct packing */
515
516#endif /* __ACGLOBAL_H__ */ 512#endif /* __ACGLOBAL_H__ */
diff --git a/drivers/acpi/acpica/achware.h b/drivers/acpi/acpica/achware.h
index 4a0e63457881..2ad2351a9833 100644
--- a/drivers/acpi/acpica/achware.h
+++ b/drivers/acpi/acpica/achware.h
@@ -44,8 +44,6 @@
44#ifndef __ACHWARE_H__ 44#ifndef __ACHWARE_H__
45#define __ACHWARE_H__ 45#define __ACHWARE_H__
46 46
47#pragma pack(push) /* Set default struct packing */
48
49/* Values for the _SST predefined method */ 47/* Values for the _SST predefined method */
50 48
51#define ACPI_SST_INDICATOR_OFF 0 49#define ACPI_SST_INDICATOR_OFF 0
@@ -149,6 +147,4 @@ acpi_status
149acpi_hw_derive_pci_id(struct acpi_pci_id *pci_id, 147acpi_hw_derive_pci_id(struct acpi_pci_id *pci_id,
150 acpi_handle root_pci_device, acpi_handle pci_region); 148 acpi_handle root_pci_device, acpi_handle pci_region);
151 149
152#pragma pack(pop) /* Restore original struct packing */
153
154#endif /* __ACHWARE_H__ */ 150#endif /* __ACHWARE_H__ */
diff --git a/drivers/acpi/acpica/acinterp.h b/drivers/acpi/acpica/acinterp.h
index fc222d69e2ab..c54267748be5 100644
--- a/drivers/acpi/acpica/acinterp.h
+++ b/drivers/acpi/acpica/acinterp.h
@@ -44,8 +44,6 @@
44#ifndef __ACINTERP_H__ 44#ifndef __ACINTERP_H__
45#define __ACINTERP_H__ 45#define __ACINTERP_H__
46 46
47#pragma pack(push) /* Set default struct packing */
48
49#define ACPI_WALK_OPERANDS (&(walk_state->operands [walk_state->num_operands -1])) 47#define ACPI_WALK_OPERANDS (&(walk_state->operands [walk_state->num_operands -1]))
50 48
51/* Macros for tables used for debug output */ 49/* Macros for tables used for debug output */
@@ -537,6 +535,4 @@ acpi_ex_data_table_space_handler(u32 function,
537 u64 *value, 535 u64 *value,
538 void *handler_context, void *region_context); 536 void *handler_context, void *region_context);
539 537
540#pragma pack(pop) /* Restore original struct packing */
541
542#endif /* __INTERP_H__ */ 538#endif /* __INTERP_H__ */
diff --git a/drivers/acpi/acpica/aclocal.h b/drivers/acpi/acpica/aclocal.h
index fee53b50399b..52a21dafb540 100644
--- a/drivers/acpi/acpica/aclocal.h
+++ b/drivers/acpi/acpica/aclocal.h
@@ -44,8 +44,6 @@
44#ifndef __ACLOCAL_H__ 44#ifndef __ACLOCAL_H__
45#define __ACLOCAL_H__ 45#define __ACLOCAL_H__
46 46
47#pragma pack(push) /* Set default struct packing */
48
49/* acpisrc:struct_defs -- for acpisrc conversion */ 47/* acpisrc:struct_defs -- for acpisrc conversion */
50 48
51#define ACPI_SERIALIZED 0xFF 49#define ACPI_SERIALIZED 0xFF
@@ -1149,6 +1147,4 @@ struct ah_predefined_name {
1149#endif 1147#endif
1150}; 1148};
1151 1149
1152#pragma pack(pop) /* Restore original struct packing */
1153
1154#endif /* __ACLOCAL_H__ */ 1150#endif /* __ACLOCAL_H__ */
diff --git a/drivers/acpi/acpica/acmacros.h b/drivers/acpi/acpica/acmacros.h
index 9b0ce226bf5d..4bceb11c7380 100644
--- a/drivers/acpi/acpica/acmacros.h
+++ b/drivers/acpi/acpica/acmacros.h
@@ -44,8 +44,6 @@
44#ifndef __ACMACROS_H__ 44#ifndef __ACMACROS_H__
45#define __ACMACROS_H__ 45#define __ACMACROS_H__
46 46
47#pragma pack(push) /* Set default struct packing */
48
49/* 47/*
50 * Extract data using a pointer. Any more than a byte and we 48 * Extract data using a pointer. Any more than a byte and we
51 * get into potential aligment issues -- see the STORE macros below. 49 * get into potential aligment issues -- see the STORE macros below.
@@ -429,6 +427,4 @@
429 427
430#define ACPI_IS_OCTAL_DIGIT(d) (((char)(d) >= '0') && ((char)(d) <= '7')) 428#define ACPI_IS_OCTAL_DIGIT(d) (((char)(d) >= '0') && ((char)(d) <= '7'))
431 429
432#pragma pack(pop) /* Restore original struct packing */
433
434#endif /* ACMACROS_H */ 430#endif /* ACMACROS_H */
diff --git a/drivers/acpi/acpica/acnamesp.h b/drivers/acpi/acpica/acnamesp.h
index 751083dd7793..ee1c040f321c 100644
--- a/drivers/acpi/acpica/acnamesp.h
+++ b/drivers/acpi/acpica/acnamesp.h
@@ -44,8 +44,6 @@
44#ifndef __ACNAMESP_H__ 44#ifndef __ACNAMESP_H__
45#define __ACNAMESP_H__ 45#define __ACNAMESP_H__
46 46
47#pragma pack(push) /* Set default struct packing */
48
49/* To search the entire name space, pass this as search_base */ 47/* To search the entire name space, pass this as search_base */
50 48
51#define ACPI_NS_ALL ((acpi_handle)0) 49#define ACPI_NS_ALL ((acpi_handle)0)
@@ -406,6 +404,4 @@ struct acpi_namespace_node *acpi_ns_validate_handle(acpi_handle handle);
406 404
407void acpi_ns_terminate(void); 405void acpi_ns_terminate(void);
408 406
409#pragma pack(pop) /* Restore original struct packing */
410
411#endif /* __ACNAMESP_H__ */ 407#endif /* __ACNAMESP_H__ */
diff --git a/drivers/acpi/acpica/acobject.h b/drivers/acpi/acpica/acobject.h
index 7ce7e9f1a040..1a4d61805ebc 100644
--- a/drivers/acpi/acpica/acobject.h
+++ b/drivers/acpi/acpica/acobject.h
@@ -44,8 +44,6 @@
44#ifndef _ACOBJECT_H 44#ifndef _ACOBJECT_H
45#define _ACOBJECT_H 45#define _ACOBJECT_H
46 46
47#pragma pack(push) /* Set default struct packing */
48
49/* acpisrc:struct_defs -- for acpisrc conversion */ 47/* acpisrc:struct_defs -- for acpisrc conversion */
50 48
51/* 49/*
@@ -458,6 +456,6 @@ union acpi_descriptor {
458 union acpi_parse_object op; 456 union acpi_parse_object op;
459}; 457};
460 458
461#pragma pack(pop) /* Restore original struct packing */ 459#pragma pack()
462 460
463#endif /* _ACOBJECT_H */ 461#endif /* _ACOBJECT_H */
diff --git a/drivers/acpi/acpica/acparser.h b/drivers/acpi/acpica/acparser.h
index 3d828be9dc20..6168b85463ed 100644
--- a/drivers/acpi/acpica/acparser.h
+++ b/drivers/acpi/acpica/acparser.h
@@ -44,8 +44,6 @@
44#ifndef __ACPARSER_H__ 44#ifndef __ACPARSER_H__
45#define __ACPARSER_H__ 45#define __ACPARSER_H__
46 46
47#pragma pack(push) /* Set default struct packing */
48
49#define OP_HAS_RETURN_VALUE 1 47#define OP_HAS_RETURN_VALUE 1
50 48
51/* Variable number of arguments. This field must be 32 bits */ 49/* Variable number of arguments. This field must be 32 bits */
@@ -253,6 +251,4 @@ acpi_ps_sprint_op(char *buffer_start,
253 251
254void acpi_ps_show(union acpi_parse_object *op); 252void acpi_ps_show(union acpi_parse_object *op);
255 253
256#pragma pack(pop) /* Restore original struct packing */
257
258#endif /* __ACPARSER_H__ */ 254#endif /* __ACPARSER_H__ */
diff --git a/drivers/acpi/acpica/acpredef.h b/drivers/acpi/acpica/acpredef.h
index 08c359f8a666..a48d713e9599 100644
--- a/drivers/acpi/acpica/acpredef.h
+++ b/drivers/acpi/acpica/acpredef.h
@@ -44,8 +44,6 @@
44#ifndef __ACPREDEF_H__ 44#ifndef __ACPREDEF_H__
45#define __ACPREDEF_H__ 45#define __ACPREDEF_H__
46 46
47#pragma pack(push) /* Set default struct packing */
48
49/****************************************************************************** 47/******************************************************************************
50 * 48 *
51 * Return Package types 49 * Return Package types
@@ -1088,6 +1086,4 @@ static const union acpi_predefined_info acpi_gbl_scope_names[] = {
1088extern const union acpi_predefined_info acpi_gbl_resource_names[]; 1086extern const union acpi_predefined_info acpi_gbl_resource_names[];
1089#endif 1087#endif
1090 1088
1091#pragma pack(pop) /* Restore original struct packing */
1092
1093#endif 1089#endif
diff --git a/drivers/acpi/acpica/acresrc.h b/drivers/acpi/acpica/acresrc.h
index be16da2d9f3d..4b008e8884a1 100644
--- a/drivers/acpi/acpica/acresrc.h
+++ b/drivers/acpi/acpica/acresrc.h
@@ -48,8 +48,6 @@
48 48
49#include "amlresrc.h" 49#include "amlresrc.h"
50 50
51#pragma pack(push) /* Set default struct packing */
52
53/* 51/*
54 * If possible, pack the following structures to byte alignment, since we 52 * If possible, pack the following structures to byte alignment, since we
55 * don't care about performance for debug output. Two cases where we cannot 53 * don't care about performance for debug output. Two cases where we cannot
@@ -380,6 +378,4 @@ extern struct acpi_rsdump_info acpi_rs_dump_uart_serial_bus[];
380extern struct acpi_rsdump_info acpi_rs_dump_general_flags[]; 378extern struct acpi_rsdump_info acpi_rs_dump_general_flags[];
381#endif 379#endif
382 380
383#pragma pack(pop) /* Restore original struct packing */
384
385#endif /* __ACRESRC_H__ */ 381#endif /* __ACRESRC_H__ */
diff --git a/drivers/acpi/acpica/acstruct.h b/drivers/acpi/acpica/acstruct.h
index 5a3fa0ddc1bc..5d2989a1b68c 100644
--- a/drivers/acpi/acpica/acstruct.h
+++ b/drivers/acpi/acpica/acstruct.h
@@ -44,8 +44,6 @@
44#ifndef __ACSTRUCT_H__ 44#ifndef __ACSTRUCT_H__
45#define __ACSTRUCT_H__ 45#define __ACSTRUCT_H__
46 46
47#pragma pack(push) /* Set default struct packing */
48
49/* acpisrc:struct_defs -- for acpisrc conversion */ 47/* acpisrc:struct_defs -- for acpisrc conversion */
50 48
51/***************************************************************************** 49/*****************************************************************************
@@ -243,6 +241,4 @@ struct acpi_walk_info {
243 241
244#define ACPI_DISPLAY_SHORT (u8) 2 242#define ACPI_DISPLAY_SHORT (u8) 2
245 243
246#pragma pack(pop) /* Restore original struct packing */
247
248#endif 244#endif
diff --git a/drivers/acpi/acpica/actables.h b/drivers/acpi/acpica/actables.h
index 9b0f9846e014..5fa4b2027697 100644
--- a/drivers/acpi/acpica/actables.h
+++ b/drivers/acpi/acpica/actables.h
@@ -44,8 +44,6 @@
44#ifndef __ACTABLES_H__ 44#ifndef __ACTABLES_H__
45#define __ACTABLES_H__ 45#define __ACTABLES_H__
46 46
47#pragma pack(push) /* Set default struct packing */
48
49acpi_status acpi_allocate_root_table(u32 initial_table_count); 47acpi_status acpi_allocate_root_table(u32 initial_table_count);
50 48
51/* 49/*
@@ -131,6 +129,4 @@ acpi_tb_install_table(acpi_physical_address address,
131 129
132acpi_status acpi_tb_parse_root_table(acpi_physical_address rsdp_address); 130acpi_status acpi_tb_parse_root_table(acpi_physical_address rsdp_address);
133 131
134#pragma pack(pop) /* Restore original struct packing */
135
136#endif /* __ACTABLES_H__ */ 132#endif /* __ACTABLES_H__ */
diff --git a/drivers/acpi/acpica/acutils.h b/drivers/acpi/acpica/acutils.h
index df970ffb7356..ceeec0b7ccb1 100644
--- a/drivers/acpi/acpica/acutils.h
+++ b/drivers/acpi/acpica/acutils.h
@@ -44,8 +44,6 @@
44#ifndef _ACUTILS_H 44#ifndef _ACUTILS_H
45#define _ACUTILS_H 45#define _ACUTILS_H
46 46
47#pragma pack(push) /* Set default struct packing */
48
49extern const u8 acpi_gbl_resource_aml_sizes[]; 47extern const u8 acpi_gbl_resource_aml_sizes[];
50extern const u8 acpi_gbl_resource_aml_serial_bus_sizes[]; 48extern const u8 acpi_gbl_resource_aml_serial_bus_sizes[];
51 49
@@ -739,6 +737,4 @@ acpi_ut_method_error(const char *module_name,
739 struct acpi_namespace_node *node, 737 struct acpi_namespace_node *node,
740 const char *path, acpi_status lookup_status); 738 const char *path, acpi_status lookup_status);
741 739
742#pragma pack(pop) /* Restore original struct packing */
743
744#endif /* _ACUTILS_H */ 740#endif /* _ACUTILS_H */
diff --git a/drivers/acpi/acpica/amlcode.h b/drivers/acpi/acpica/amlcode.h
index 2db27109d70e..5908ccec6aea 100644
--- a/drivers/acpi/acpica/amlcode.h
+++ b/drivers/acpi/acpica/amlcode.h
@@ -46,8 +46,6 @@
46#ifndef __AMLCODE_H__ 46#ifndef __AMLCODE_H__
47#define __AMLCODE_H__ 47#define __AMLCODE_H__
48 48
49#pragma pack(push) /* Set default struct packing */
50
51/* primary opcodes */ 49/* primary opcodes */
52 50
53#define AML_NULL_CHAR (u16) 0x00 51#define AML_NULL_CHAR (u16) 0x00
@@ -486,6 +484,4 @@ typedef enum {
486#define AML_METHOD_SERIALIZED 0x08 484#define AML_METHOD_SERIALIZED 0x08
487#define AML_METHOD_SYNC_LEVEL 0xF0 485#define AML_METHOD_SYNC_LEVEL 0xF0
488 486
489#pragma pack(pop) /* Restore original struct packing */
490
491#endif /* __AMLCODE_H__ */ 487#endif /* __AMLCODE_H__ */
diff --git a/drivers/acpi/acpica/amlresrc.h b/drivers/acpi/acpica/amlresrc.h
index 334fbeee80d2..f3f834408441 100644
--- a/drivers/acpi/acpica/amlresrc.h
+++ b/drivers/acpi/acpica/amlresrc.h
@@ -46,8 +46,6 @@
46#ifndef __AMLRESRC_H 46#ifndef __AMLRESRC_H
47#define __AMLRESRC_H 47#define __AMLRESRC_H
48 48
49#pragma pack(push) /* Set default struct packing */
50
51/* 49/*
52 * Resource descriptor tags, as defined in the ACPI specification. 50 * Resource descriptor tags, as defined in the ACPI specification.
53 * Used to symbolically reference fields within a descriptor. 51 * Used to symbolically reference fields within a descriptor.
@@ -451,6 +449,4 @@ union aml_resource {
451 u8 byte_item; 449 u8 byte_item;
452}; 450};
453 451
454#pragma pack(pop) /* Restore original struct packing */
455
456#endif 452#endif
diff --git a/include/acpi/acbuffer.h b/include/acpi/acbuffer.h
index 960c76fb69a1..88cb477524a6 100644
--- a/include/acpi/acbuffer.h
+++ b/include/acpi/acbuffer.h
@@ -44,8 +44,6 @@
44#ifndef __ACBUFFER_H__ 44#ifndef __ACBUFFER_H__
45#define __ACBUFFER_H__ 45#define __ACBUFFER_H__
46 46
47#pragma pack(push) /* Set default struct packing */
48
49/* 47/*
50 * Contains buffer structures for these predefined names: 48 * Contains buffer structures for these predefined names:
51 * _FDE, _GRT, _GTM, _PLD, _SRT 49 * _FDE, _GRT, _GTM, _PLD, _SRT
@@ -234,6 +232,4 @@ struct acpi_pld_info {
234#define ACPI_PLD_GET_HORIZ_OFFSET(dword) ACPI_GET_BITS (dword, 16, ACPI_16BIT_MASK) 232#define ACPI_PLD_GET_HORIZ_OFFSET(dword) ACPI_GET_BITS (dword, 16, ACPI_16BIT_MASK)
235#define ACPI_PLD_SET_HORIZ_OFFSET(dword,value) ACPI_SET_BITS (dword, 16, ACPI_16BIT_MASK, value) /* Offset 128+16=144, Len 16 */ 233#define ACPI_PLD_SET_HORIZ_OFFSET(dword,value) ACPI_SET_BITS (dword, 16, ACPI_16BIT_MASK, value) /* Offset 128+16=144, Len 16 */
236 234
237#pragma pack(pop) /* Restore original struct packing */
238
239#endif /* ACBUFFER_H */ 235#endif /* ACBUFFER_H */
diff --git a/include/acpi/acconfig.h b/include/acpi/acconfig.h
index d8a0ba8f88a5..932a60d6ed82 100644
--- a/include/acpi/acconfig.h
+++ b/include/acpi/acconfig.h
@@ -44,8 +44,6 @@
44#ifndef _ACCONFIG_H 44#ifndef _ACCONFIG_H
45#define _ACCONFIG_H 45#define _ACCONFIG_H
46 46
47#pragma pack(push) /* Set default struct packing */
48
49/****************************************************************************** 47/******************************************************************************
50 * 48 *
51 * Configuration options 49 * Configuration options
@@ -231,6 +229,4 @@
231#define ACPI_DEBUGGER_COMMAND_PROMPT '-' 229#define ACPI_DEBUGGER_COMMAND_PROMPT '-'
232#define ACPI_DEBUGGER_EXECUTE_PROMPT '%' 230#define ACPI_DEBUGGER_EXECUTE_PROMPT '%'
233 231
234#pragma pack(pop) /* Restore original struct packing */
235
236#endif /* _ACCONFIG_H */ 232#endif /* _ACCONFIG_H */
diff --git a/include/acpi/acexcep.h b/include/acpi/acexcep.h
index f0bcb96b1598..8b06e4c1dd5d 100644
--- a/include/acpi/acexcep.h
+++ b/include/acpi/acexcep.h
@@ -44,8 +44,6 @@
44#ifndef __ACEXCEP_H__ 44#ifndef __ACEXCEP_H__
45#define __ACEXCEP_H__ 45#define __ACEXCEP_H__
46 46
47#pragma pack(push) /* Set default struct packing */
48
49/* This module contains all possible exception codes for acpi_status */ 47/* This module contains all possible exception codes for acpi_status */
50 48
51/* 49/*
@@ -379,6 +377,4 @@ static const struct acpi_exception_info acpi_gbl_exception_names_ctrl[] = {
379 377
380#endif /* EXCEPTION_TABLE */ 378#endif /* EXCEPTION_TABLE */
381 379
382#pragma pack(pop) /* Restore original struct packing */
383
384#endif /* __ACEXCEP_H__ */ 380#endif /* __ACEXCEP_H__ */
diff --git a/include/acpi/acoutput.h b/include/acpi/acoutput.h
index 247636fb51a5..1baae6edda89 100644
--- a/include/acpi/acoutput.h
+++ b/include/acpi/acoutput.h
@@ -44,8 +44,6 @@
44#ifndef __ACOUTPUT_H__ 44#ifndef __ACOUTPUT_H__
45#define __ACOUTPUT_H__ 45#define __ACOUTPUT_H__
46 46
47#pragma pack(push) /* Set default struct packing */
48
49/* 47/*
50 * Debug levels and component IDs. These are used to control the 48 * Debug levels and component IDs. These are used to control the
51 * granularity of the output of the ACPI_DEBUG_PRINT macro -- on a 49 * granularity of the output of the ACPI_DEBUG_PRINT macro -- on a
@@ -458,6 +456,4 @@
458 456
459#endif /* ACPI_DEBUG_OUTPUT */ 457#endif /* ACPI_DEBUG_OUTPUT */
460 458
461#pragma pack(pop) /* Restore original struct packing */
462
463#endif /* __ACOUTPUT_H__ */ 459#endif /* __ACOUTPUT_H__ */
diff --git a/include/acpi/acpiosxf.h b/include/acpi/acpiosxf.h
index a4a2cd39aea9..f6f5f8af2112 100644
--- a/include/acpi/acpiosxf.h
+++ b/include/acpi/acpiosxf.h
@@ -49,8 +49,6 @@
49#include <acpi/platform/acenv.h> 49#include <acpi/platform/acenv.h>
50#include <acpi/actypes.h> 50#include <acpi/actypes.h>
51 51
52#pragma pack(push) /* Set default struct packing */
53
54/* Types for acpi_os_execute */ 52/* Types for acpi_os_execute */
55 53
56typedef enum { 54typedef enum {
@@ -401,6 +399,4 @@ char *acpi_os_get_next_filename(void *dir_handle);
401void acpi_os_close_directory(void *dir_handle); 399void acpi_os_close_directory(void *dir_handle);
402#endif 400#endif
403 401
404#pragma pack(pop) /* Restore original struct packing */
405
406#endif /* __ACPIOSXF_H__ */ 402#endif /* __ACPIOSXF_H__ */
diff --git a/include/acpi/acpixf.h b/include/acpi/acpixf.h
index 943c6d7856ca..e04f0114283f 100644
--- a/include/acpi/acpixf.h
+++ b/include/acpi/acpixf.h
@@ -55,8 +55,6 @@
55 55
56extern u8 acpi_gbl_permanent_mmap; 56extern u8 acpi_gbl_permanent_mmap;
57 57
58#pragma pack(push) /* Set default struct packing */
59
60/* 58/*
61 * Globals that are publically available 59 * Globals that are publically available
62 */ 60 */
@@ -582,6 +580,4 @@ acpi_debug_print_raw(u32 requested_debug_level,
582 u32 component_id, const char *format, ...); 580 u32 component_id, const char *format, ...);
583#endif 581#endif
584 582
585#pragma pack(pop) /* Restore original struct packing */
586
587#endif /* __ACXFACE_H__ */ 583#endif /* __ACXFACE_H__ */
diff --git a/include/acpi/acrestyp.h b/include/acpi/acrestyp.h
index 3c83a79c583f..eb760ca0b2e0 100644
--- a/include/acpi/acrestyp.h
+++ b/include/acpi/acrestyp.h
@@ -44,8 +44,6 @@
44#ifndef __ACRESTYP_H__ 44#ifndef __ACRESTYP_H__
45#define __ACRESTYP_H__ 45#define __ACRESTYP_H__
46 46
47#pragma pack(push) /* Set default struct packing */
48
49/* 47/*
50 * Definitions for Resource Attributes 48 * Definitions for Resource Attributes
51 */ 49 */
@@ -612,6 +610,4 @@ struct acpi_pci_routing_table {
612 char source[4]; /* pad to 64 bits so sizeof() works in all cases */ 610 char source[4]; /* pad to 64 bits so sizeof() works in all cases */
613}; 611};
614 612
615#pragma pack(pop) /* Restore original struct packing */
616
617#endif /* __ACRESTYP_H__ */ 613#endif /* __ACRESTYP_H__ */
diff --git a/include/acpi/actbl.h b/include/acpi/actbl.h
index b32a33f1c2df..3b30e36b53b5 100644
--- a/include/acpi/actbl.h
+++ b/include/acpi/actbl.h
@@ -44,8 +44,6 @@
44#ifndef __ACTBL_H__ 44#ifndef __ACTBL_H__
45#define __ACTBL_H__ 45#define __ACTBL_H__
46 46
47#pragma pack(push) /* Set default struct packing */
48
49/******************************************************************************* 47/*******************************************************************************
50 * 48 *
51 * Fundamental ACPI tables 49 * Fundamental ACPI tables
@@ -406,6 +404,4 @@ struct acpi_table_desc {
406#define ACPI_FADT_V3_SIZE (u32) (ACPI_FADT_OFFSET (sleep_control)) 404#define ACPI_FADT_V3_SIZE (u32) (ACPI_FADT_OFFSET (sleep_control))
407#define ACPI_FADT_V5_SIZE (u32) (sizeof (struct acpi_table_fadt)) 405#define ACPI_FADT_V5_SIZE (u32) (sizeof (struct acpi_table_fadt))
408 406
409#pragma pack(pop) /* Restore original struct packing */
410
411#endif /* __ACTBL_H__ */ 407#endif /* __ACTBL_H__ */
diff --git a/include/acpi/actbl1.h b/include/acpi/actbl1.h
index b7f0b0c6ff66..212c65de75df 100644
--- a/include/acpi/actbl1.h
+++ b/include/acpi/actbl1.h
@@ -44,8 +44,6 @@
44#ifndef __ACTBL1_H__ 44#ifndef __ACTBL1_H__
45#define __ACTBL1_H__ 45#define __ACTBL1_H__
46 46
47#pragma pack(push) /* Set default struct packing */
48
49/******************************************************************************* 47/*******************************************************************************
50 * 48 *
51 * Additional ACPI Tables (1) 49 * Additional ACPI Tables (1)
@@ -974,6 +972,8 @@ struct acpi_srat_x2apic_cpu_affinity {
974 972
975#define ACPI_SRAT_CPU_ENABLED (1) /* 00: Use affinity structure */ 973#define ACPI_SRAT_CPU_ENABLED (1) /* 00: Use affinity structure */
976 974
977#pragma pack(pop) /* Restore original struct packing */ 975/* Reset to default packing */
976
977#pragma pack()
978 978
979#endif /* __ACTBL1_H__ */ 979#endif /* __ACTBL1_H__ */
diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h
index 89a26135745b..f3372441e3a5 100644
--- a/include/acpi/actbl2.h
+++ b/include/acpi/actbl2.h
@@ -44,8 +44,6 @@
44#ifndef __ACTBL2_H__ 44#ifndef __ACTBL2_H__
45#define __ACTBL2_H__ 45#define __ACTBL2_H__
46 46
47#pragma pack(push) /* Set default struct packing */
48
49/******************************************************************************* 47/*******************************************************************************
50 * 48 *
51 * Additional ACPI Tables (2) 49 * Additional ACPI Tables (2)
@@ -1231,6 +1229,8 @@ struct acpi_table_wdrt {
1231 u8 units; 1229 u8 units;
1232}; 1230};
1233 1231
1234#pragma pack(pop) /* Restore original struct packing */ 1232/* Reset to default packing */
1233
1234#pragma pack()
1235 1235
1236#endif /* __ACTBL2_H__ */ 1236#endif /* __ACTBL2_H__ */
diff --git a/include/acpi/actbl3.h b/include/acpi/actbl3.h
index 85ebeea02b81..c2295cc4a5c0 100644
--- a/include/acpi/actbl3.h
+++ b/include/acpi/actbl3.h
@@ -44,8 +44,6 @@
44#ifndef __ACTBL3_H__ 44#ifndef __ACTBL3_H__
45#define __ACTBL3_H__ 45#define __ACTBL3_H__
46 46
47#pragma pack(push) /* Set default struct packing */
48
49/******************************************************************************* 47/*******************************************************************************
50 * 48 *
51 * Additional ACPI Tables (3) 49 * Additional ACPI Tables (3)
@@ -624,6 +622,8 @@ struct acpi_tpm2_control {
624 u64 response_address; 622 u64 response_address;
625}; 623};
626 624
627#pragma pack(pop) /* Restore original struct packing */ 625/* Reset to default packing */
626
627#pragma pack()
628 628
629#endif /* __ACTBL3_H__ */ 629#endif /* __ACTBL3_H__ */
diff --git a/include/acpi/actypes.h b/include/acpi/actypes.h
index c28573da1662..e76356574374 100644
--- a/include/acpi/actypes.h
+++ b/include/acpi/actypes.h
@@ -44,8 +44,6 @@
44#ifndef __ACTYPES_H__ 44#ifndef __ACTYPES_H__
45#define __ACTYPES_H__ 45#define __ACTYPES_H__
46 46
47#pragma pack(push) /* Set default struct packing */
48
49/* acpisrc:struct_defs -- for acpisrc conversion */ 47/* acpisrc:struct_defs -- for acpisrc conversion */
50 48
51/* 49/*
@@ -1225,6 +1223,4 @@ struct acpi_memory_list {
1225#define ACPI_OSI_WIN_7 0x0B 1223#define ACPI_OSI_WIN_7 0x0B
1226#define ACPI_OSI_WIN_8 0x0C 1224#define ACPI_OSI_WIN_8 0x0C
1227 1225
1228#pragma pack(pop) /* Restore original struct packing */
1229
1230#endif /* __ACTYPES_H__ */ 1226#endif /* __ACTYPES_H__ */