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

From: Geert Uytterhoeven
Date: Mon Sep 29 2014 - 04:54:45 EST

On Wed, Aug 13, 2014 at 12:28 PM, Thierry Reding
<thierry.reding@xxxxxxxxx> wrote:
> #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


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'



Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at