Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1240152 > unrolled thread

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

Started byGuenter Roeck <linux@roeck-us.net>
First post2015-10-06 07:40 +0200
Last post2015-10-08 14:40 +0200
Articles 6 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] h8300: Fix build error due to missing word-at-a-time.h Guenter Roeck <linux@roeck-us.net> - 2015-10-06 07:40 +0200
    Re: [PATCH] h8300: Fix build error due to missing word-at-a-time.h Chris Metcalf <cmetcalf@ezchip.com> - 2015-10-07 15:50 +0200
      Re: [PATCH] h8300: Fix build error due to missing word-at-a-time.h Guenter Roeck <linux@roeck-us.net> - 2015-10-07 18:40 +0200
        Re: [PATCH] h8300: Fix build error due to missing word-at-a-time.h Chris Metcalf <cmetcalf@ezchip.com> - 2015-10-07 19:10 +0200
    Re: [PATCH] h8300: Fix build error due to missing word-at-a-time.h Yoshinori Sato <ysato@users.sourceforge.jp> - 2015-10-08 09:50 +0200
      Re: [PATCH] h8300: Fix build error due to missing word-at-a-time.h Guenter Roeck <linux@roeck-us.net> - 2015-10-08 14:40 +0200

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

FromGuenter Roeck <linux@roeck-us.net>
Date2015-10-06 07:40 +0200
Subject[PATCH] h8300: Fix build error due to missing word-at-a-time.h
Message-ID<qgt8J-5bf-1@gated-at.bofh.it>
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(+)

diff --git a/arch/h8300/include/asm/Kbuild b/arch/h8300/include/asm/Kbuild
index 70e6ae1e7006..373cb23301e3 100644
--- a/arch/h8300/include/asm/Kbuild
+++ b/arch/h8300/include/asm/Kbuild
@@ -73,4 +73,5 @@ generic-y += uaccess.h
 generic-y += ucontext.h
 generic-y += unaligned.h
 generic-y += vga.h
+generic-y += word-at-a-time.h
 generic-y += xor.h
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1241508

FromChris Metcalf <cmetcalf@ezchip.com>
Date2015-10-07 15:50 +0200
Message-ID<qgXgt-6rH-9@gated-at.bofh.it>
In reply to#1240152
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>

-- 
Chris Metcalf, EZChip Semiconductor
http://www.ezchip.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1241672

FromGuenter Roeck <linux@roeck-us.net>
Date2015-10-07 18:40 +0200
Message-ID<qgZV0-1TQ-23@gated-at.bofh.it>
In reply to#1241508
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1241693

FromChris Metcalf <cmetcalf@ezchip.com>
Date2015-10-07 19:10 +0200
Message-ID<qh0o1-2H0-11@gated-at.bofh.it>
In reply to#1241672
On 10/7/2015 12:35 PM, Guenter Roeck wrote:
> 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'.

See:

http://lkml.kernel.org/r/1444229188-19640-1-git-send-email-cmetcalf@ezchip.com

-- 
Chris Metcalf, EZChip Semiconductor
http://www.ezchip.com

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1242026

FromYoshinori Sato <ysato@users.sourceforge.jp>
Date2015-10-08 09:50 +0200
Message-ID<qhe7E-5rB-11@gated-at.bofh.it>
In reply to#1240152
On Tue, 06 Oct 2015 14:32:58 +0900,
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(+)
> 
> diff --git a/arch/h8300/include/asm/Kbuild b/arch/h8300/include/asm/Kbuild
> index 70e6ae1e7006..373cb23301e3 100644
> --- a/arch/h8300/include/asm/Kbuild
> +++ b/arch/h8300/include/asm/Kbuild
> @@ -73,4 +73,5 @@ generic-y += uaccess.h
>  generic-y += ucontext.h
>  generic-y += unaligned.h
>  generic-y += vga.h
> +generic-y += word-at-a-time.h
>  generic-y += xor.h
> -- 
> 2.1.4
> 

Merged in my tree.
Thanks.

-- 
Yoshinori Sato
<ysato@users.sourceforge.jp>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1242304

FromGuenter Roeck <linux@roeck-us.net>
Date2015-10-08 14:40 +0200
Message-ID<qhiEi-3AP-27@gated-at.bofh.it>
In reply to#1242026
On 10/08/2015 12:49 AM, Yoshinori Sato wrote:
> On Tue, 06 Oct 2015 14:32:58 +0900,
> 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(+)
>>
>> diff --git a/arch/h8300/include/asm/Kbuild b/arch/h8300/include/asm/Kbuild
>> index 70e6ae1e7006..373cb23301e3 100644
>> --- a/arch/h8300/include/asm/Kbuild
>> +++ b/arch/h8300/include/asm/Kbuild
>> @@ -73,4 +73,5 @@ generic-y += uaccess.h
>>   generic-y += ucontext.h
>>   generic-y += unaligned.h
>>   generic-y += vga.h
>> +generic-y += word-at-a-time.h
>>   generic-y += xor.h
>> --
>> 2.1.4
>>
>
> Merged in my tree.
> Thanks.
>
Chris already applied and pushed a different patch.

Guenter

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web