From patchwork Wed May 11 12:47:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9069231 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 46C84BF29F for ; Wed, 11 May 2016 12:51:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6E8302010F for ; Wed, 11 May 2016 12:51:14 +0000 (UTC) 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.kernel.org (Postfix) with ESMTPS id 8A0792017D for ; Wed, 11 May 2016 12:51:13 +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 1b0TZX-0001pP-2a; Wed, 11 May 2016 12:49:03 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b0TZV-0001pE-Vf for xen-devel@lists.xenproject.org; Wed, 11 May 2016 12:49:02 +0000 Received: from [193.109.254.147] by server-13.bemta-14.messagelabs.com id 34/5E-02833-D3A23375; Wed, 11 May 2016 12:49:01 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrDLMWRWlGSWpSXmKPExsVy0+OAl66NlnG 4weeDmhbft0xmcmD0OPzhCksAYxRrZl5SfkUCa8auVZ3MBa1cFRf/LGdqYNzF0cXIxSEksJxR Yu+p/6xdjJwcbALKEq+PTgGzRQSqJTZdWsQCUsQsMIdJ4sqjI+wgCWEBG4kF/fsYQWwWAVWJi Uv2M4PYvAJ2Ej/vbgRrlhCQk2j5sZsVpFlC4DOjxMPdZ6CcbWwStyb8Z5zAyLWAkWEVo3pxal FZapGumV5SUWZ6RkluYmaOrqGhiV5uanFxYnpqTmJSsV5yfu4mRqAvGYBgB+PfCc6HGCU5mJR Eed9IG4cL8SXlp1RmJBZnxBeV5qQWH2KU4eBQkuCt1gDKCRalpqdWpGXmAIMKJi3BwaMkwnsY JM1bXJCYW5yZDpE6xagoJc6bC5IQAElklObBtcEC+RKjrJQwLyPQIUI8BalFuZklqPKvGMU5G JWEeZtBpvBk5pXATX8FtJgJaHH1dSOQxSWJCCmpBsbuSczS7b/Cb4qsXfO46tTyTp19j9YqLz A7IzPpottC5+SFwsfMzJx2XDqssPvSmSvSPS/7n7NsjpmUl/+zJfFz26uUTLH7jlc0U2VVLhy Wulg24RvDzTclUiarTotWRDzaN0X2rPP5+/NjHl53Dj9gcDR6NRtTQJX42XS9EO+tGfdvLyyK ND+uxFKckWioxVxUnAgAID5Drl8CAAA= X-Env-Sender: arnd@arndb.de X-Msg-Ref: server-12.tower-27.messagelabs.com!1462970940!40884168!1 X-Originating-IP: [217.72.192.74] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 8.34; banners=-,-,- X-VirusChecked: Checked Received: (qmail 37058 invoked from network); 11 May 2016 12:49:00 -0000 Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (217.72.192.74) by server-12.tower-27.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 11 May 2016 12:49:00 -0000 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue101) with ESMTPA (Nemesis) id 0MIvAv-1b2ORp3Dez-002Yik; Wed, 11 May 2016 14:48:52 +0200 From: Arnd Bergmann To: Boris Ostrovsky , David Vrabel , Juergen Gross Date: Wed, 11 May 2016 14:47:59 +0200 Message-Id: <1462970928-532144-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:jdU980/Fbx65rBbKhNR1fJB0rxHDv2gnObUl7WBXqgzkpB8iclV ZkYohCgPVuJ2vwP0yi0rhPYaTKqRNxi0C8kuFhATiUfzNQmxY+LpgFCaB35r8Xbz1BXEom4 9kmsYAITbXfCdd8QZt4rt/65eyYNW6W1zfx/vde7pwlU2yxYp4AowhmM7Sp/EKfISHv2es6 Fh3cWo689DnvpVo08yrUw== X-UI-Out-Filterresults: notjunk:1; V01:K0:smicuaQaC8E=:HKcmVgvkxtItWqfA8qZKfd +jj6s/DWVD3pKRFnxr80O4cJdA8Yxnb/YFnU7v4CcyQ+pJpS7KTdpokLhjZ7pH7Lbci8s/fCm BvtqCAx6lMsPJr5LwgBvsXRdgcyVWIAUQPitCPdO3TuXuamZXDUMfKPj0tJSfH80Ypvejc8f2 ln6xTsa2PJJurDgM0QIJWHbFKg+xalQm3N3YW/XNRQL7eg1m3gphDAuucz5n1HOyFayBg/uyZ 5ayTCIB7VQmrbFWNgNZaoNS/n1yQrcvFUi8rMPxvAqzkz96JWHCjpcFFLmuTZ7MT/xA1+f3Qo dGlKVmmeH08uR/rwTGvrdwW0nSoenVcvgV4mOAV4//tXgeXwKEK5gElqQGaMOZPxChZ7RUxno 0606ijMBcvzfT/6tf9pK6zds3Z6a7dqYUN8czTuUHQYx+fSOtsChl9YBS/um4ild0+UmisFPg huh31uaE4zJUbALcgAb5LH9E9072xAlUIkCsVv2Ew/uAAl2080EbhHf7rm3WwBvHpy59JxV1t LlNhrqscHYQgfILcyi9GzSZGh1orn79Q5amuidm6AWJfD8qAuY9klFpRAoTeHRStK3GO8X450 RYNmHzTdRiAjPOw4a8mj/yj6sIGMTmN88SQ19Z9VdVF/tnS5xc2pmSHZwsm6wAcGNpLuGBEu6 CfOIxxrqw9ujcOV+O/amQVPQvsHhnoy1irjUO64OzQZvjr9fH2uavyDXEOfUQzaJUFRA= Cc: Ian Campbell , Arnd Bergmann , Stefano Stabellini , linux-kernel@vger.kernel.org, Shannon Zhao , xen-devel@lists.xenproject.org Subject: [Xen-devel] [PATCH] Xen: don't warn about 2-byte wchar_t in efi 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: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The XEN UEFI code has become available on the ARM architecture recently, but now causes a link-time warning: ld: warning: drivers/xen/efi.o uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail This seems harmless, because the efi code only uses 2-byte characters when interacting with EFI, so we don't pass on those strings to elsewhere in the system, and we just need to silence the warning. It is not clear to me whether we actually need to build the file with the -fshort-wchar flag, but if we do, then we should also pass --no-wchar-size-warning to the linker, to avoid the warning. Signed-off-by: Arnd Bergmann Fixes: 37060935dc04 ("ARM64: XEN: Add a function to initialize Xen specific UEFI runtime services") --- drivers/xen/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/xen/Makefile b/drivers/xen/Makefile index 415f2869054b..8feab810aed9 100644 --- a/drivers/xen/Makefile +++ b/drivers/xen/Makefile @@ -8,6 +8,7 @@ nostackp := $(call cc-option, -fno-stack-protector) CFLAGS_features.o := $(nostackp) CFLAGS_efi.o += -fshort-wchar +LDFLAGS += $(call ld-option, --no-wchar-size-warning) dom0-$(CONFIG_ARM64) += arm-device.o dom0-$(CONFIG_PCI) += pci.o