From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.kernel.org ([198.145.29.99]:54118 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390708AbfFJOVs (ORCPT ); Mon, 10 Jun 2019 10:21:48 -0400 Date: Mon, 10 Jun 2019 16:21:45 +0200 From: Greg KH Subject: Re: Linux 4.19 and GCC 9 Message-ID: <20190610142145.GC5937@kroah.com> References: <20190517073813.GB2589@hirez.programming.kicks-ass.net> <20190517085126.GA3249@kroah.com> <20190517152200.GI8945@kernel.org> <4FE2D490-F379-4CAE-9784-9BF81B7FE258@kernel.org> <20190610074510.GA24746@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: Ignat Korchagin Cc: Ivan Babrou , Arnaldo Carvalho de Melo , Miguel Ojeda , Peter Zijlstra , Josh Poimboeuf , Ingo Molnar , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-kernel , Linux Kbuild mailing list , kernel-team On Mon, Jun 10, 2019 at 10:32:25AM +0100, Ignat Korchagin wrote: > Hi Greg, > > For us it seems applying the following 4 mainline patches makes 4.19.x > branch perf compile with GCC-9: > > 4d0f16d059ddb91424480d88473f7392f24aebdc: perf ui helpline: Use > strlcpy() as a shorter form of strncpy() + explicit set nul > b6313899f4ed2e76b8375cf8069556f5b94fbff0: perf help: Remove needless > use of strncpy() > 5192bde7d98c99f2cd80225649e3c2e7493722f7: perf header: Fix unchecked > usage of strncpy() > 97acec7df172cd1e450f81f5e293c0aa145a2797: perf data: Fix 'strncat may > truncate' build failure with recent gcc > > I also checked that 4.19.49 compiles fine with GCC 9, although with a > lot of warnings, mostly from objtool, like "warning: objtool: > sock_register()+0xd: sibling call from callable instruction with > modified stack frame". But it's a start. > > Can we apply the above-mentioned patches, please? I'll look into these after the next round of kernels are released. I guess I'll go find a distro that has gcc9 on it to actually test things... thanks, greg k-h