From: Mark Corbin Date: Fri, 2 Aug 2019 12:25:57 +0100 Subject: [Buildroot] [PATCH 1/1] support/kconfig: fix compiler warnings by increasing buffer sizes In-Reply-To: <20190801180919.744284f3@windsurf.home> References: <20190801152005.12285-1-mark.corbin@embecosm.com> <20190801180919.744284f3@windsurf.home> Message-ID: <55ee313b-4e36-5fbf-56a5-e16ed2373a5b@embecosm.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hello Thomas On 01/08/2019 17:09, Thomas Petazzoni wrote: > Hello, > > On Thu, 1 Aug 2019 16:20:05 +0100 > Mark Corbin 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 >> --- >> 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