Re: [PATCH] ACPI: Fix debugfs_create_*() usage

2018-01-12 Thread Rafael J. Wysocki
On Tuesday, January 2, 2018 4:26:31 PM CET Geert Uytterhoeven wrote: > acpi_ec.gpe is "unsigned long", hence treating it as "u32" would expose > the wrong half on big-endian 64-bit systems. Fix this by changing its > type to "u32" and removing the cast, as all other code already uses u32 > or

Re: [PATCH] ACPI: Fix debugfs_create_*() usage

2018-01-12 Thread Rafael J. Wysocki
On Tuesday, January 2, 2018 4:26:31 PM CET Geert Uytterhoeven wrote: > acpi_ec.gpe is "unsigned long", hence treating it as "u32" would expose > the wrong half on big-endian 64-bit systems. Fix this by changing its > type to "u32" and removing the cast, as all other code already uses u32 > or

[PATCH] ACPI: Fix debugfs_create_*() usage

2018-01-02 Thread Geert Uytterhoeven
acpi_ec.gpe is "unsigned long", hence treating it as "u32" would expose the wrong half on big-endian 64-bit systems. Fix this by changing its type to "u32" and removing the cast, as all other code already uses u32 or sometimes even only u8. Fixes: 1195a098168fcacf ("ACPI: Provide

[PATCH] ACPI: Fix debugfs_create_*() usage

2018-01-02 Thread Geert Uytterhoeven
acpi_ec.gpe is "unsigned long", hence treating it as "u32" would expose the wrong half on big-endian 64-bit systems. Fix this by changing its type to "u32" and removing the cast, as all other code already uses u32 or sometimes even only u8. Fixes: 1195a098168fcacf ("ACPI: Provide