From b3d33f16315f8fd9a6676d3065a449817479f8d2 Mon Sep 17 00:00:00 2001
From: Murai Takashi <tmurai01@gmail.com>
Date: Fri, 13 May 2016 18:24:29 +0900
Subject: [PATCH 23/23] acpica: fix gcc6 warnings
---
.../kernel/bus_managers/acpi/acpica/components/utilities/utdelete.c | 6 +++---
.../kernel/bus_managers/acpi/acpica/components/utilities/utinit.c | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/add-ons/kernel/bus_managers/acpi/acpica/components/utilities/utdelete.c b/src/add-ons/kernel/bus_managers/acpi/acpica/components/utilities/utdelete.c
index 0921b38..4a09400 100644
a
|
b
|
AcpiUtDeleteInternalObj (
|
257 | 257 | /* Global Lock has extra semaphore */ |
258 | 258 | |
259 | 259 | (void) AcpiOsDeleteSemaphore (AcpiGbl_GlobalLockSemaphore); |
260 | | AcpiGbl_GlobalLockSemaphore = NULL; |
| 260 | AcpiGbl_GlobalLockSemaphore = -1; |
261 | 261 | |
262 | 262 | AcpiOsDeleteMutex (Object->Mutex.OsMutex); |
263 | 263 | AcpiGbl_GlobalLockMutex = NULL; |
… |
… |
AcpiUtDeleteInternalObj (
|
272 | 272 | case ACPI_TYPE_EVENT: |
273 | 273 | |
274 | 274 | ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS, |
275 | | "***** Event %p, OS Semaphore %p\n", |
| 275 | "***** Event %p, OS Semaphore %ld\n", |
276 | 276 | Object, Object->Event.OsSemaphore)); |
277 | 277 | |
278 | 278 | (void) AcpiOsDeleteSemaphore (Object->Event.OsSemaphore); |
279 | | Object->Event.OsSemaphore = NULL; |
| 279 | Object->Event.OsSemaphore = -1; |
280 | 280 | break; |
281 | 281 | |
282 | 282 | case ACPI_TYPE_METHOD: |
diff --git a/src/add-ons/kernel/bus_managers/acpi/acpica/components/utilities/utinit.c b/src/add-ons/kernel/bus_managers/acpi/acpica/components/utilities/utinit.c
index 7a80f43..c94f79d 100644
a
|
b
|
AcpiUtInitGlobals (
|
280 | 280 | |
281 | 281 | /* Global Lock support */ |
282 | 282 | |
283 | | AcpiGbl_GlobalLockSemaphore = NULL; |
| 283 | AcpiGbl_GlobalLockSemaphore = -1; |
284 | 284 | AcpiGbl_GlobalLockMutex = NULL; |
285 | 285 | AcpiGbl_GlobalLockAcquired = FALSE; |
286 | 286 | AcpiGbl_GlobalLockHandle = 0; |