Messages in this thread | | | Subject | Re: [PATCH] h8300: Fix build error due to missing word-at-a-time.h | From | Guenter Roeck <> | Date | Wed, 7 Oct 2015 09:35:34 -0700 |
| |
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@ezchip.com> >> Signed-off-by: Guenter Roeck <linux@roeck-us.net> >> --- >> arch/h8300/include/asm/Kbuild | 1 + >> 1 file changed, 1 insertion(+) > > Acked-by: Chris Metcalf <cmetcalf@ezchip.com> >
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
| |