Commit 8884de6a authored by Bob Moore's avatar Bob Moore Committed by Rafael J. Wysocki

ACPICA: Work around an ancient GCC bug.

warning: cast from function call of type 'char *' to non-matching type 'long unsigned int'

Since acpi_ut_format_number() hasn't been enabled for the Linux kernel,
this patch doesn't affect the Linux kernel.
Signed-off-by: default avatarBob Moore <robert.moore@intel.com>
Signed-off-by: default avatarLv Zheng <lv.zheng@intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent c12f07d1
...@@ -242,6 +242,7 @@ static char *acpi_ut_format_number(char *string, ...@@ -242,6 +242,7 @@ static char *acpi_ut_format_number(char *string,
u64 number, u64 number,
u8 base, s32 width, s32 precision, u8 type) u8 base, s32 width, s32 precision, u8 type)
{ {
char *pos;
char sign; char sign;
char zero; char zero;
u8 need_prefix; u8 need_prefix;
...@@ -289,9 +290,8 @@ static char *acpi_ut_format_number(char *string, ...@@ -289,9 +290,8 @@ static char *acpi_ut_format_number(char *string,
/* Generate full string in reverse order */ /* Generate full string in reverse order */
i = ACPI_PTR_DIFF(acpi_ut_put_number pos = acpi_ut_put_number(reversed_string, number, base, upper);
(reversed_string, number, base, upper), i = ACPI_PTR_DIFF(pos, reversed_string);
reversed_string);
/* Printing 100 using %2d gives "100", not "00" */ /* Printing 100 using %2d gives "100", not "00" */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment