From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C7CF572 for ; Wed, 13 Oct 2021 12:03:20 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id E007560EB4; Wed, 13 Oct 2021 12:03:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634126600; bh=6Lpra3ez8JWIpg3SdW3vfWuYRu+xZGQ3by9f1A53ShY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TE077WFAvKOf+ldex8I6AHVm2qgh3cbckzUT+koRTwIjsEVpPaAJSCb9hDWVT3kGg N3pqSyHto9aPTY6jsNFiYrduG8CjwfYXLjRtOmjltNttVgW+YNea6MgbXHM5s1KZw8 CXIQHzIA/7Q2QmKbnje49x5Io7JBxUvsqGdbXXSg= Date: Wed, 13 Oct 2021 14:03:18 +0200 From: Greg Kroah-Hartman To: Arnd Bergmann Cc: Daniel Mack , Haojian Zhuang , Robert Jarzmik , Felipe Balbi , Nathan Chancellor , Nick Desaulniers , Arnd Bergmann , Rikard Falkeborn , linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH] [RFC] usb: gadget: avoid unusual inline assembly Message-ID: References: <20210927123830.1278953-1-arnd@kernel.org> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210927123830.1278953-1-arnd@kernel.org> On Mon, Sep 27, 2021 at 02:38:20PM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > clang does not understand the "mrc%?" syntax: > > drivers/usb/gadget/udc/pxa25x_udc.c:2330:11: error: invalid % escape in inline assembly string > > I don't understand it either, but removing the %? here gets it to build. > This is probably wrong and someone else should do a proper patch. > > Any suggestions? > > Signed-off-by: Arnd Bergmann > --- > drivers/usb/gadget/udc/pxa25x_udc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/gadget/udc/pxa25x_udc.c b/drivers/usb/gadget/udc/pxa25x_udc.c > index a09ec1d826b2..52cdfd8212d6 100644 > --- a/drivers/usb/gadget/udc/pxa25x_udc.c > +++ b/drivers/usb/gadget/udc/pxa25x_udc.c > @@ -2325,7 +2325,7 @@ static int pxa25x_udc_probe(struct platform_device *pdev) > pr_info("%s: version %s\n", driver_name, DRIVER_VERSION); > > /* insist on Intel/ARM/XScale */ > - asm("mrc%? p15, 0, %0, c0, c0" : "=r" (chiprev)); > + asm("mrc p15, 0, %0, c0, c0" : "=r" (chiprev)); > if ((chiprev & CP15R0_VENDOR_MASK) != CP15R0_XSCALE_VALUE) { > pr_err("%s: not XScale!\n", driver_name); > return -ENODEV; > -- > 2.29.2 > Given that no one had any objections, I'll queue this up and see what breaks :) thanks, greg k-h