[PATCH 26/32] ACPICA: Clib: Correct memset() declarations.

From: Lv Zheng
Date: Thu Jun 18 2015 - 23:43:14 EST


ACPICA commit 00f0dc83f5cfca53b27a3213ae0d7719b88c2d6b

Gcc complains memset() prototype used in the ACPICA even when the nostdinc
is specified:
../../../source/include/acutils.h:418:1: error: conflicting types for built-in function 'memset' [-Werror]

This patch corrects the declarations of memset(). Lv Zheng.

Link: https://github.com/acpica/acpica/commit/00f0dc83
Signed-off-by: Lv Zheng <lv.zheng@xxxxxxxxx>
Signed-off-by: Bob Moore <robert.moore@xxxxxxxxx>
---
drivers/acpi/acpica/acutils.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/acpi/acpica/acutils.h b/drivers/acpi/acpica/acutils.h
index 8f62703..6372a6b 100644
--- a/drivers/acpi/acpica/acutils.h
+++ b/drivers/acpi/acpica/acutils.h
@@ -234,7 +234,7 @@ int memcmp(void *buffer1, void *buffer2, acpi_size count);

void *memcpy(void *dest, const void *src, acpi_size count);

-void *memset(void *dest, u8 value, acpi_size count);
+void *memset(void *dest, int value, acpi_size count);

int toupper(int c);

--
1.7.10

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/