From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen Subject: Re: [PATCH 00/33] Compile-time stack metadata validation Date: Mon, 15 Feb 2016 21:02:01 +0100 Message-ID: <20160215200201.GN3696@two.firstfloor.org> References: <56BDB5A8.9030006@suse.cz> <20160212144543.GA29004@treble.redhat.com> <20160212171037.GV6357@twins.programming.kicks-ass.net> <20160212183206.GB29004@treble.redhat.com> <20160212201011.GW6357@twins.programming.kicks-ass.net> <20160215163134.GA20585@treble.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Josh Poimboeuf , Thomas Gleixner , Alok Kataria , Ingo Molnar , Guenter Roeck , Anil S Keshavamurthy , Herbert Xu , Andrew Morton , Rusty Russell , Bernd Petrovitsch , linux-watchdog-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Pedro Alves , Pavel Machek , Konrad Rzeszutek Wilk , Michal Marek , Namhyung Kim , Jeremy Fitzhardinge , Waiman Long , "Rafael J. Wysocki" , Jiri Slaby , kvm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, x86-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, Arnaldo Carvalho de Melo , Paolo Bonzini Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-watchdog-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: netdev.vger.kernel.org > > There are two ways to fix the warnings: > > > > 1. get rid of the thunks and call the C functions directly; or > > No. Not until gcc learns about per-function callibg conventions (so that it can > be marked as not clobbering registers). It does already for static functions in 5.x (with -fipa-ra). And with LTO it can be used even somewhat globally. Even older version supported it, for only for x86->SSE on 32bit, which is useless for the kernel. But the new IPA-RA propagates which registers are clobbered. That said it will probably be a long time until we can drop support for older compilers. So for now the manual method is still needed. -Andi -- To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html