From patchwork Mon May 30 16:27:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Roger_Pau_Monn=C3=A9?= X-Patchwork-Id: 9141803 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8C00D60801 for ; Mon, 30 May 2016 16:30:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 802F42796F for ; Mon, 30 May 2016 16:30:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 73773281C2; Mon, 30 May 2016 16:30:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BCE2127B89 for ; Mon, 30 May 2016 16:30:14 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b7Q2z-0001S9-Dt; Mon, 30 May 2016 16:28:09 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b7Q2y-0001Ri-0d for xen-devel@lists.xenproject.org; Mon, 30 May 2016 16:28:08 +0000 Received: from [85.158.137.68] by server-1.bemta-3.messagelabs.com id A6/42-17405-71A6C475; Mon, 30 May 2016 16:28:07 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrGIsWRWlGSWpSXmKPExsXitHSDva5Ylk+ 4QcMXQ4vvWyYzOTB6HP5whSWAMYo1My8pvyKBNWPqtTssBZ84Kw5dXsTYwNjM0cXIySEh4C/x fPZ+dhCbTUBH4uLcnWxdjBwcIgIqErf3GnQxcnEwC7xmknh9/ysrSFxYIFji0e9ckHIWAVWJW yc+sIHYvAIuEr2vljJBjNSVeHjuN1g5p4CrxPWz0iBhIaCSp2t2skOUC0qcnPmEBcRmFtCUaN 3+mx3Clpdo3jqbGaJeUaJ/3gOwayQEuCX+dttPYOSfhaR7FpLuWUi6FzAyr2LUKE4tKkst0jU 010sqykzPKMlNzMzRNTQw1stNLS5OTE/NSUwq1kvOz93ECAw/BiDYwfjytOchRkkOJiVR3psJ PuFCfEn5KZUZicUZ8UWlOanFhxhlODiUJHgtMoBygkWp6akVaZk5wEiASUtw8CiJ8AaApHmLC xJzizPTIVKnGBWlxHn1QRICIImM0jy4Nlj0XWKUlRLmZQQ6RIinILUoN7MEVf4VozgHo5Iwbz TIFJ7MvBK46a+AFjMBLY6HWFySiJCSamAMlWJnYTtlIHBxt1vFEv8/M0pi8i44hTyty0qX5nm k8r81d0Xo2a1OW6qFv/JP3nJ4vfcSm6UGZTc/p51NUF9Xpi1uWh44+XjOjotfAq42PRW4IG51 +eb7wKA/ib/e7b1zolc3lk/w6+NTG70POog/8wq1nlbZcSLJ0km6ZeLE1bJFcyY2qkYosRRnJ BpqMRcVJwIAxxoNbbkCAAA= X-Env-Sender: prvs=951e12aa7=roger.pau@citrix.com X-Msg-Ref: server-12.tower-31.messagelabs.com!1464625684!26132755!2 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 8.34; banners=-,-,- X-VirusChecked: Checked Received: (qmail 39730 invoked from network); 30 May 2016 16:28:06 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-12.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 30 May 2016 16:28:06 -0000 X-IronPort-AV: E=Sophos;i="5.26,390,1459814400"; d="scan'208";a="364197052" From: Roger Pau Monne To: Date: Mon, 30 May 2016 18:27:56 +0200 Message-ID: <1464625676-17775-3-git-send-email-roger.pau@citrix.com> X-Mailer: git-send-email 2.7.4 (Apple Git-66) In-Reply-To: <1464625676-17775-1-git-send-email-roger.pau@citrix.com> References: <1464625676-17775-1-git-send-email-roger.pau@citrix.com> MIME-Version: 1.0 X-DLP: MIA1 Cc: Stefano Stabellini , Wei Liu , George Dunlap , Andrew Cooper , Ian Jackson , Tim Deegan , Jan Beulich , Roger Pau Monne Subject: [Xen-devel] [PATCH for-4.7 2/2] build: use CFLAGS instead of AFLAGS for as-insn checks X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP The test code is a C file with inline assembly, not plain assembly. This fixes the fallout introduced by commit 7fb252bd41 ("build/xen: fix assembler instruction tests") Signed-off-by: Roger Pau Monné --- Cc: Andrew Cooper Cc: George Dunlap Cc: Ian Jackson Cc: Jan Beulich Cc: Konrad Rzeszutek Wilk Cc: Stefano Stabellini Cc: Tim Deegan Cc: Wei Liu --- Config.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Config.mk b/Config.mk index 5ddfbf8..13475e0 100644 --- a/Config.mk +++ b/Config.mk @@ -150,7 +150,7 @@ endif # as-insn: Check whether assembler supports an instruction. # Usage: cflags-y += $(call as-insn "insn",option-yes,option-no) as-insn = $(if $(shell echo 'void _(void) { asm volatile ( $(2) ); }' \ - | $(1) $(AFLAGS) -c -x c -o /dev/null - 2>&1),$(4),$(3)) + | $(1) $(CFLAGS) -c -x c -o /dev/null - 2>&1),$(4),$(3)) # as-insn-check: Add an option to compilation flags, but only if insn is # supported by assembler.