From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755225AbbJGQfi (ORCPT ); Wed, 7 Oct 2015 12:35:38 -0400 Received: from bh-25.webhostbox.net ([208.91.199.152]:54526 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753818AbbJGQfg (ORCPT ); Wed, 7 Oct 2015 12:35:36 -0400 Subject: Re: [PATCH] h8300: Fix build error due to missing word-at-a-time.h To: Chris Metcalf References: <1444109578-19767-1-git-send-email-linux@roeck-us.net> <56152101.5020108@ezchip.com> Cc: linux-kernel@vger.kernel.org From: Guenter Roeck Message-ID: <561549D6.1020506@roeck-us.net> Date: Wed, 7 Oct 2015 09:35:34 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <56152101.5020108@ezchip.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated_sender: linux@roeck-us.net X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-Get-Message-Sender-Via: bh-25.webhostbox.net: authenticated_id: linux@roeck-us.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 >> Signed-off-by: Guenter Roeck >> --- >> arch/h8300/include/asm/Kbuild | 1 + >> 1 file changed, 1 insertion(+) > > Acked-by: Chris Metcalf > 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