From: "Jan Beulich" Subject: Re: [PATCH] arm32: fix build after 063188f4b3 Date: Fri, 10 Oct 2014 17:18:10 +0100 Message-ID: <543822E2020000780003DEE1@mail.emea.novell.com> References: <54380211020000780003DC42@mail.emea.novell.com> <5437E94E.9010202@linaro.org> <54380E91020000780003DD61@mail.emea.novell.com> <5438018D.1000308@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XcctP-0004zO-Hw for xen-devel@lists.xenproject.org; Fri, 10 Oct 2014 16:18:11 +0000 In-Reply-To: <5438018D.1000308@linaro.org> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: Ian Campbell , Suriyan Ramasami , Tim Deegan , Stefano Stabellini , xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 10.10.14 at 17:55, wrote: > On 10/10/2014 15:51, Jan Beulich wrote: >>>>> On 10.10.14 at 16:12, wrote: >>> This function is duplicate in 3 different places in Xen: >>> - arch/arm/psci.c >>> - arch/platforms/exynos5.c >>> - arch/platforms/seattle.c >>> >>> So all those functions should be fixed. I think it's time to introduce a >>> global SMC function... >> >> Okay, I got the build failure only in this one place. But if and when >> the compiler choses to do such transformations is entirely up to it, >> so yes, if there are multiple instances likely they all would need >> fixing. > > BTW, named register is a GNU extension and not supported by clang. Can > you avoid to use them? Maybe by writing the function in assembly. So we > are safe against any compiler optimization. I don't think I'm the right one to write ARM assembly code at this point. I really just want the build fixed - anything beyond that I'd rather leave to you guys. Jan