Thread (22 messages) 22 messages, 6 authors, 2014-09-30

[PATCH v4 6/8] asm-generic/io.h: Implement generic {read, write}s*()

From: jcmvbkbc@gmail.com (Max Filippov)
Date: 2014-09-30 10:22:22
Also in: linux-arch, linux-s390, linux-serial, lkml, sparclinux

Hi Thierry,

On Mon, Sep 29, 2014 at 12:59 PM, Thierry Reding
[off-list ref] wrote:
On Mon, Sep 29, 2014 at 10:54:34AM +0200, Geert Uytterhoeven wrote:
quoted
On Wed, Aug 13, 2014 at 12:28 PM, Thierry Reding
[off-list ref] wrote:
quoted
#ifndef memset_io
-#define memset_io(a, b, c)     memset(__io_virt(a), (b), (c))
+#define memset_io memset_io
+static inline void memset_io(void __iomem *addr, int value, size_t size)
+{
+       memset(__io_virt(addr), value, size);
+}
 #endif
xtensa/allmodconfig:

include/asm-generic/io.h:820:2: error: implicit declaration of
function 'memset' [-Werror=implicit-function-declaration]
include/asm-generic/io.h:829:2: error: implicit declaration of
function 'memcpy' [-Werror=implicit-function-declaration]
arch/xtensa/include/asm/string.h:110:14: error: conflicting types for 'memset'
arch/xtensa/include/asm/string.h:113:14: error: conflicting types for 'memcpy'

http://kisskb.ellerman.id.au/kisskb/buildresult/12028900/
I think this can be fixed by including linux/string.h for memset() and
memcpy() in include/asm-generic/io.h.
Will you send that fix or do I need to do it?

-- 
Thanks.
-- Max
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help