[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <56151E38.5030006@ezchip.com>
Date: Wed, 7 Oct 2015 09:29:28 -0400
From: Chris Metcalf <cmetcalf@...hip.com>
To: Michal Sojka <sojkam1@....cvut.cz>
CC: lkml <linux-kernel@...r.kernel.org>
Subject: Re: error: implicit declaration of function 'zero_bytemask'
On 10/07/2015 08:53 AM, Michal Sojka wrote:
> Dear Chris,
>
> the following commit breaks my Linux build.
>
> commit 990486c8af044f89bddfbde1d1cf9fde449bedbf
> Author: Chris Metcalf <cmetcalf@...hip.com>
> Date: Tue Oct 6 12:37:41 2015 -0400
>
> strscpy: zero any trailing garbage bytes in the destination
>
> It's possible that the destination can be shadowed in userspace
> (as, for example, the perf buffers are now). So we should take
> care not to leak data that could be inspected by userspace.
>
> The error message is:
>
> lib/string.c: In function 'strscpy':
> lib/string.c:209:4: error: implicit declaration of function 'zero_bytemask' [-Werror=implicit-function-declaration]
> cc1: some warnings being treated as errors
>
> I compile the kernel for PowerPC (32 bit) with the attached config.
Ah, it appears that big-endian powerpc does not provide
zero_bytemask(), only little-endian. I'll fix this in v3 of
the patch series - thanks!
--
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists