Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6e596084 authored by Robert Moore's avatar Robert Moore Committed by Rafael J. Wysocki
Browse files

ACPICA: Revert "Headers: Deploy #pragma pack (push) and (pop)."



This reverts commit aae576e5faefa8ba70647efa320d4747b6375f1e.
Push and Pop are not portable "enough", and caused problems for
some ACPICA customers.

Signed-off-by: default avatarRobert Moore <Robert.Moore@intel.com>
Signed-off-by: default avatarLv Zheng <lv.zheng@intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent bcef5081
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -44,8 +44,6 @@
#ifndef __ACDEBUG_H__
#define __ACDEBUG_H__

#pragma pack(push)		/* Set default struct packing */

#define ACPI_DEBUG_BUFFER_SIZE  0x4000	/* 16K buffer for return objects */

struct acpi_db_command_info {
@@ -284,6 +282,4 @@ struct acpi_namespace_node *acpi_db_local_ns_lookup(char *name);

void acpi_db_uint32_to_hex_string(u32 value, char *buffer);

#pragma pack(pop)		/* Restore original struct packing */

#endif				/* __ACDEBUG_H__ */
+0 −4
Original line number Diff line number Diff line
@@ -44,8 +44,6 @@
#ifndef _ACDISPAT_H_
#define _ACDISPAT_H_

#pragma pack(push)		/* Set default struct packing */

#define NAMEOF_LOCAL_NTE    "__L0"
#define NAMEOF_ARG_NTE      "__A0"

@@ -353,6 +351,4 @@ acpi_status
acpi_ds_result_push(union acpi_operand_object *object,
		    struct acpi_walk_state *walk_state);

#pragma pack(pop)		/* Restore original struct packing */

#endif				/* _ACDISPAT_H_ */
+0 −3
Original line number Diff line number Diff line
@@ -44,8 +44,6 @@
#ifndef __ACEVENTS_H__
#define __ACEVENTS_H__

#pragma pack(push)		/* Set default struct packing */

/*
 * evevent
 */
@@ -253,5 +251,4 @@ u32 acpi_ev_install_sci_handler(void);
acpi_status acpi_ev_remove_all_sci_handlers(void);

ACPI_HW_DEPENDENT_RETURN_VOID(void acpi_ev_terminate(void))
#pragma pack(pop)		/* Restore original struct packing */
#endif				/* __ACEVENTS_H__  */
+0 −4
Original line number Diff line number Diff line
@@ -44,8 +44,6 @@
#ifndef __ACGLOBAL_H__
#define __ACGLOBAL_H__

#pragma pack(push)		/* Set default struct packing */

/*
 * Ensure that the globals are actually defined and initialized only once.
 *
@@ -511,6 +509,4 @@ ACPI_INIT_GLOBAL(ACPI_FILE, acpi_gbl_debug_file, NULL);

extern const struct ah_predefined_name asl_predefined_info[];

#pragma pack(pop)		/* Restore original struct packing */

#endif				/* __ACGLOBAL_H__ */
+0 −4
Original line number Diff line number Diff line
@@ -44,8 +44,6 @@
#ifndef __ACHWARE_H__
#define __ACHWARE_H__

#pragma pack(push)		/* Set default struct packing */

/* Values for the _SST predefined method */

#define ACPI_SST_INDICATOR_OFF  0
@@ -149,6 +147,4 @@ acpi_status
acpi_hw_derive_pci_id(struct acpi_pci_id *pci_id,
		      acpi_handle root_pci_device, acpi_handle pci_region);

#pragma pack(pop)		/* Restore original struct packing */

#endif				/* __ACHWARE_H__ */
Loading