From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8E481C433F5 for ; Mon, 25 Oct 2021 20:57:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 76AD460FDC for ; Mon, 25 Oct 2021 20:57:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234804AbhJYU7V (ORCPT ); Mon, 25 Oct 2021 16:59:21 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:47994 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234676AbhJYU7Q (ORCPT ); Mon, 25 Oct 2021 16:59:16 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 9F21F1C0B7F; Mon, 25 Oct 2021 22:56:52 +0200 (CEST) Date: Mon, 25 Oct 2021 22:56:52 +0200 From: Pavel Machek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Kees Cook , Brendan Higgins , David Gow , Shuah Khan , Sasha Levin Subject: Re: [PATCH 5.10 70/95] gcc-plugins/structleak: add makefile var for disabling structleak Message-ID: <20211025205652.GA2807@duo.ucw.cz> References: <20211025190956.374447057@linuxfoundation.org> <20211025191007.069144838@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bg08WKrSYDhXBjb5" Content-Disposition: inline In-Reply-To: <20211025191007.069144838@linuxfoundation.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --bg08WKrSYDhXBjb5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > [ Upstream commit 554afc3b9797511e3245864e32aebeb6abbab1e3 ] >=20 > KUnit and structleak don't play nice, so add a makefile variable for > enabling structleak when it complains. AFAICT, this patch does nothing useful in 5.10. Unlike mainline, DISABLE_STRUCTLEAK_PLUGIN is not used elsewhere in the tree. Best regards, Pavel =09 > +++ b/scripts/Makefile.gcc-plugins > @@ -19,6 +19,10 @@ gcc-plugin-cflags-$(CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF= ) \ > +=3D -fplugin-arg-structleak_plugin-byref > gcc-plugin-cflags-$(CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF_ALL) \ > +=3D -fplugin-arg-structleak_plugin-byref-all > +ifdef CONFIG_GCC_PLUGIN_STRUCTLEAK > + DISABLE_STRUCTLEAK_PLUGIN +=3D -fplugin-arg-structleak_plugin-disable > +endif > +export DISABLE_STRUCTLEAK_PLUGIN > gcc-plugin-cflags-$(CONFIG_GCC_PLUGIN_STRUCTLEAK) \ > +=3D -DSTRUCTLEAK_PLUGIN > =20 --=20 DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany --bg08WKrSYDhXBjb5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCYXcaFAAKCRAw5/Bqldv6 8o/OAKCiM8x6f9KGiz6S/S9gWP0zGgzGAgCfRdEvHcLYqaiNbgM+h/ZvlVnoOAE= =hBS9 -----END PGP SIGNATURE----- --bg08WKrSYDhXBjb5--