lkml.org 
[lkml]   [2015]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 26/32] ACPICA: Clib: Correct memset() declarations.
Date
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@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
---
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


\
 
 \ /
  Last update: 2015-06-19 06:01    [W:0.553 / U:0.472 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site