[haiku-commits] haiku: hrev50968 - src/add-ons/kernel/bus_managers/acpi/acpica/include/platform build/jam

  • From: fredrik.holmqvist@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 21 Feb 2017 19:29:13 +0100 (CET)

hrev50968 adds 2 changesets to branch 'master'
old head: 95c239a3fba969d9cd1beb184cd6cf49bcd3a90d
new head: 9b264ecce1df35f17c36c25cb6faac44c0aaecca
overview: 
http://cgit.haiku-os.org/haiku/log/?qt=range&q=9b264ecce1df+%5E95c239a3fba9

----------------------------------------------------------------------------

f18e21a83299: Cast ACPI UINT32* to uint32* to avoid warning on 32 bit builds.

9b264ecce1df: Second try att enabling Werror for ACPI

                         [ Fredrik Holmqvist <fredrik.holmqvist@xxxxxxxxx> ]

----------------------------------------------------------------------------

2 files changed, 3 insertions(+), 3 deletions(-)
build/jam/ArchitectureRules                                       | 2 +-
.../kernel/bus_managers/acpi/acpica/include/platform/achaiku.h    | 4 ++--

############################################################################

Commit:      f18e21a832995f44de502712854a1660a22e9b00
URL:         http://cgit.haiku-os.org/haiku/commit/?id=f18e21a83299
Author:      Fredrik Holmqvist <fredrik.holmqvist@xxxxxxxxx>
Date:        Tue Feb 21 18:27:13 2017 UTC

Cast ACPI UINT32* to uint32* to avoid warning on 32 bit builds.

----------------------------------------------------------------------------

diff --git 
a/src/add-ons/kernel/bus_managers/acpi/acpica/include/platform/achaiku.h 
b/src/add-ons/kernel/bus_managers/acpi/acpica/include/platform/achaiku.h
index 6fc2489..ccff28e 100644
--- a/src/add-ons/kernel/bus_managers/acpi/acpica/include/platform/achaiku.h
+++ b/src/add-ons/kernel/bus_managers/acpi/acpica/include/platform/achaiku.h
@@ -165,11 +165,11 @@ extern int AcpiOsAcquireGlobalLock(uint32 *lock);
 extern int AcpiOsReleaseGlobalLock(uint32 *lock);
 
 #define ACPI_ACQUIRE_GLOBAL_LOCK(GLptr, Acq)    do {                \
-        (Acq) = AcpiOsAcquireGlobalLock(&((GLptr)->GlobalLock));    \
+        (Acq) = AcpiOsAcquireGlobalLock((uint32 *)&((GLptr)->GlobalLock));    \
 } while (0)
 
 #define ACPI_RELEASE_GLOBAL_LOCK(GLptr, Acq)    do {                \
-        (Acq) = AcpiOsReleaseGlobalLock(&((GLptr)->GlobalLock));    \
+        (Acq) = AcpiOsReleaseGlobalLock((uint32 *)&((GLptr)->GlobalLock));    \
 } while (0)
 
 #else /* _KERNEL_MODE */

############################################################################

Revision:    hrev50968
Commit:      9b264ecce1df35f17c36c25cb6faac44c0aaecca
URL:         http://cgit.haiku-os.org/haiku/commit/?id=9b264ecce1df
Author:      Fredrik Holmqvist <fredrik.holmqvist@xxxxxxxxx>
Date:        Tue Feb 21 18:28:33 2017 UTC

Second try att enabling Werror for ACPI

----------------------------------------------------------------------------

diff --git a/build/jam/ArchitectureRules b/build/jam/ArchitectureRules
index 03a6f3b..e55eba9 100644
--- a/build/jam/ArchitectureRules
+++ b/build/jam/ArchitectureRules
@@ -519,7 +519,7 @@ rule ArchitectureSetupWarnings architecture
 #      EnableWerror src add-ons input_server methods pen ;
        EnableWerror src add-ons input_server methods t9 ;
        EnableWerror src add-ons kernel bluetooth ;
-#      EnableWerror src add-ons kernel bus_managers acpi ;
+       EnableWerror src add-ons kernel bus_managers acpi ;
        EnableWerror src add-ons kernel bus_managers agp_gart ;
        EnableWerror src add-ons kernel bus_managers ata ;
        EnableWerror src add-ons kernel bus_managers config_manager ;


Other related posts:

  • » [haiku-commits] haiku: hrev50968 - src/add-ons/kernel/bus_managers/acpi/acpica/include/platform build/jam - fredrik . holmqvist