[Buildroot] [PATCH 1/1] support/kconfig: fix compiler warnings by increasing buffer sizes

Mark Corbin mark.corbin at embecosm.com
Fri Aug 2 11:25:57 UTC 2019


Hello Thomas

On 01/08/2019 17:09, Thomas Petazzoni wrote:
> Hello,
>
> On Thu,  1 Aug 2019 16:20:05 +0100
> Mark Corbin <mark.corbin at embecosm.com> wrote:
>
>> When compiling kconfig with host gcc 8.3.0 several compiler
>> '-Wformat-overflow=' warnings are generated. This is due to a
>> number of temporary buffers used by sprintf being too small.
>> The sizes of these buffers have been increased to remove the
>> warnings.
>>
>> Signed-off-by: Mark Corbin <mark.corbin at embecosm.com>
>> ---
>>  support/kconfig/confdata.c | 4 ++--
>>  support/kconfig/util.c     | 2 +-
>>  2 files changed, 3 insertions(+), 3 deletions(-)
> This was fixed in upstream Linux by commit
> 2ae89c7a82ea9d81a19b4fc2df23bef4b112f24e, which is part of Linux since
> 4.18. Our kconfig code base is based on 4.17-rc2, so the best thing is
> to update our kconfig code base, to re-use the fixes from the kernel.
>
> Could you do this ? Be careful that patches in support/kconfig/patches/
> need to be refreshed and re-applied on top of the kernel kconfig code
> base.

I can take a look at this if I get some time.

Regards

Mark

-- 
Mark Corbin
Embecosm Ltd.
https://www.embecosm.com



More information about the buildroot mailing list