Skip to contentSkip to conversation

ACPICA: remove duplicate u8 typedef

PATCH Applied Olaf Hering 3 participants 4 messages Apr 28, 2015 – Apr 29, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPICA: remove duplicate u8 typedef

During commit e252652fb2664d42de19f933aa3688bbc470de3f ("ACPICA:
acpidump: Remove integer types translation protection.") two 'unsigned char' types got converted to 'u8'.

The result does not compile with gcc-4.5, it can not cope with duplicate typedefs.

---
 include/acpi/actypes.h | 1 -
 1 file changed, 1 deletion(-)
include/acpi/actypes.h +0 -1
index f5ca0e9..1c3002e 100644
@@ -124,7 +124,6 @@
 #ifndef ACPI_USE_SYSTEM_INTTYPES
 
 typedef unsigned char u8;
-typedef unsigned char u8;
 typedef unsigned short u16;
 typedef short s16;
 typedef COMPILER_DEPENDENT_UINT64 u64;
#1 lore raw
Quoted 8 lines · Olaf Hering

During commit e252652fb2664d42de19f933aa3688bbc470de3f ("ACPICA:
acpidump: Remove integer types translation protection.") two 'unsigned char' types got converted to 'u8'.

The result does not compile with gcc-4.5, it can not cope with duplicate typedefs.

Applied, thanks!

Lv, can you please see if that's an upstream issue too?

Quoted 20 lines
---
 include/acpi/actypes.h | 1 -
 1 file changed, 1 deletion(-)
include/acpi/actypes.h +0 -2
index f5ca0e9..1c3002e 100644
@@ -124,7 +124,6 @@
 #ifndef ACPI_USE_SYSTEM_INTTYPES
 
 typedef unsigned char u8;
-typedef unsigned char u8;
 typedef unsigned short u16;
 typedef short s16;
 typedef COMPILER_DEPENDENT_UINT64 u64;
--

To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
#2 lore raw

Hi,

Quoted 9 lines

From: Rafael J. Wysocki [mailto:rjw(a)rjwysocki.net]
Sent: Wednesday, April 29, 2015 8:44 AM
Subject: Re: [PATCH] ACPICA: remove duplicate u8 typedef

Quoted 4 lines · Olaf Hering

During commit e252652fb2664d42de19f933aa3688bbc470de3f ("ACPICA:
acpidump: Remove integer types translation protection.") two 'unsigned char' types got converted to 'u8'.

Quoted 8 lines
Quoted 4 lines

The result does not compile with gcc-4.5, it can not cope with duplicate typedefs.

Signed-off-by Olaf Hering <olaf(a)aepfle.de>

Applied, thanks!

Lv, can you please see if that's an upstream issue too?

In ACPICA, one u8 is UINT8 and the other is for BOOLEAN. Pleas merge this first.
I'll think about a solution to reduce this divergence.

Thanks and best regards
-Lv

Quoted 25 lines
Quoted 18 lines
---
 include/acpi/actypes.h | 1 -
 1 file changed, 1 deletion(-)
include/acpi/actypes.h +0 -2
index f5ca0e9..1c3002e 100644
@@ -124,7 +124,6 @@
 #ifndef ACPI_USE_SYSTEM_INTTYPES
 
 typedef unsigned char u8;
-typedef unsigned char u8;
 typedef unsigned short u16;
 typedef short s16;
 typedef COMPILER_DEPENDENT_UINT64 u64;
--
Quoted 3 lines

To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.

#3 lore raw
In reply to Olaf Hering

Hi,

Quoted 10 lines

From: Olaf Hering [mailto:olaf(a)aepfle.de]
Sent: Tuesday, April 28, 2015 10:54 PM
Subject: [PATCH] ACPICA: remove duplicate u8 typedef

During commit e252652fb2664d42de19f933aa3688bbc470de3f ("ACPICA:
acpidump: Remove integer types translation protection.") two 'unsigned char' types got converted to 'u8'.

The result does not compile with gcc-4.5, it can not cope with duplicate typedefs.

The 2 u8 typedefs actually are different types in ACPICA.
If this really causes problem, I'm OK with deleting it from Linux side. We'll take care of introducing a new type to eliminate such "divergence".

Thanks
-Lv

Quoted 18 lines
Signed-off-by Olaf Hering <olaf(a)aepfle.de>
---
 include/acpi/actypes.h | 1 -
 1 file changed, 1 deletion(-)
include/acpi/actypes.h +0 -1
index f5ca0e9..1c3002e 100644
@@ -124,7 +124,6 @@
 #ifndef ACPI_USE_SYSTEM_INTTYPES
 
 typedef unsigned char u8;
-typedef unsigned char u8;
 typedef unsigned short u16;
 typedef short s16;
 typedef COMPILER_DEPENDENT_UINT64 u64;