Re: [PATCH] h8300: Fix build error due to missing word-at-a-time.h

From: Guenter Roeck
Date: Wed Oct 07 2015 - 12:35:41 EST


On 10/07/2015 06:41 AM, Chris Metcalf wrote:
On 10/06/2015 01:32 AM, Guenter Roeck wrote:
h8300 builds fail with

lib/string.c:31:32: fatal error: asm/word-at-a-time.h: No such file or directory

Fixes: 30035e45753b ("string: provide strscpy()")
Cc: Chris Metcalf <cmetcalf@xxxxxxxxxx>
Signed-off-by: Guenter Roeck <linux@xxxxxxxxxxxx>
---
arch/h8300/include/asm/Kbuild | 1 +
1 file changed, 1 insertion(+)

Acked-by: Chris Metcalf <cmetcalf@xxxxxxxxxx>


lib/string.c: In function 'strscpy':
lib/string.c:209:4: error: implicit declaration of function 'zero_bytemask' [-Werror=implicit-function-declaration]
*(unsigned long *)(dest+res) = c & zero_bytemask(data);

Now seen upstream for all powerpc builds. Seems to be due to
'strscpy: zero any trailing garbage bytes in the destination'.

Guenter

--
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/