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: 102365 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp206163qge; Wed, 11 May 2016 05:49:17 -0700 (PDT) X-Received: by 10.98.22.193 with SMTP id 184mr4618351pfw.116.1462970957858; Wed, 11 May 2016 05:49:17 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p188si54896pfb.228.2016.05.11.05.49.17; Wed, 11 May 2016 05:49:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932306AbcEKMtP (ORCPT + 29 others); Wed, 11 May 2016 08:49:15 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:54204 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932086AbcEKMtM (ORCPT ); Wed, 11 May 2016 08:49:12 -0400 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 Cc: Arnd Bergmann , Stefano Stabellini , Ian Campbell , Shannon Zhao , Konrad Rzeszutek Wilk , xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org Subject: [PATCH] Xen: don't warn about 2-byte wchar_t in efi 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= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- 2.7.0 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