projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[POWERPC] Fix might-sleep warning on removing cpus
[powerpc.git]
/
include
/
acpi
/
acresrc.h
diff --git
a/include/acpi/acresrc.h
b/include/acpi/acresrc.h
index
ad11fc1
..
80a3b33
100644
(file)
--- a/
include/acpi/acresrc.h
+++ b/
include/acpi/acresrc.h
@@
-50,9
+50,13
@@
/*
* If possible, pack the following structures to byte alignment, since we
/*
* If possible, pack the following structures to byte alignment, since we
- * don't care about performance for debug output
+ * don't care about performance for debug output. Two cases where we cannot
+ * pack the structures:
+ *
+ * 1) Hardware does not support misaligned memory transfers
+ * 2) Compiler does not support pointers within packed structures
*/
*/
-#if
ndef ACPI_MISALIGNMENT_NOT_SUPPORTED
+#if
(!defined(ACPI_MISALIGNMENT_NOT_SUPPORTED) && !defined(ACPI_PACKED_POINTERS_NOT_SUPPORTED))
#pragma pack(1)
#endif
#pragma pack(1)
#endif