Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp190437imu; Wed, 21 Nov 2018 17:56:27 -0800 (PST) X-Google-Smtp-Source: AJdET5cIideQvIIjsnVvzFtBdX7sAKifItcFJf6Oz6aaJr7gBluNeKS6hX8d4nIgW/UfWk00giPr X-Received: by 2002:a62:5793:: with SMTP id i19mr9439344pfj.49.1542851787883; Wed, 21 Nov 2018 17:56:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542851787; cv=none; d=google.com; s=arc-20160816; b=XpbOogsTzLc4jo8uQ1jHEJIVPeKG1EYZ0TAxXki3v4y2iq38NBZnSFx/coQtbQwmEC lCxp2W7SK8lMMlVoDoldlQSrAOXot6FU7KSv2AhxgAWJ7ZmodD3iDNB6he4ePS+hgEi2 T7SVw4BlesxgyPNybj8qrBgI9WYHqKRFGZpXOb5Qsn87ZuobGzuzzgkvJoADnBB4Q2Rg 9EQxMRur2VEfXTEheAezWXTI8Gx7oydzGsZ5xD4K9a0rNrRFY8osNvgUXvWrDirfIZeq 6wafm+fUmIhB5JHuZu27y5w6x8SrBsoHqkJ61c09lFCSU1XhGGIPKsUOwcogyADUD/c0 2JPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=DVUuoxECr3Iskq/jkbtUpL7iumOd6QX7oDYXUdfGcCQ=; b=hbQkAAXlgXPj3oaM67m2KtwilxaDAnx8A4IAe592akziT/mTn7n3e7gmRPkt3Zi7fH +8fw2Bp6N0RJO3kI3C8WzHJxcIC6Dbg1SrIXrAPGNqj3xskGF74XKm69Pway7A9P84zr lMAkHzDoiblsmSdZ/uYqXeKY0JZX5vFHzQIu80SLXbBXKvoBK5ymBHCLVdQbUibP47Zk l6jqBZYU3Pohnf21lqWY5meHr5WSGE8/UhNeka0m70xi3Gi0XnRWz/cIZImYqFTQDsrC jMvEmxD3g0CSunTya6yYRSmRG11edaM4K39hDKUl91iBpH1cgqdTaT0z4u/RkIZ/6DUF x1+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AIqV3FNl; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e33si11434800pld.397.2018.11.21.17.56.13; Wed, 21 Nov 2018 17:56:27 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=AIqV3FNl; 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 S2389153AbeKVFrc (ORCPT + 99 others); Thu, 22 Nov 2018 00:47:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:43080 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389139AbeKVFrb (ORCPT ); Thu, 22 Nov 2018 00:47:31 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 00D1821527; Wed, 21 Nov 2018 19:11:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542827518; bh=Oj1VqjABVcOhitaAkge67jBKhaKLlKqEsTyw6gvcoT4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AIqV3FNlIWBlzerk0/3+ZdSrv+Q9lh704R5e1O7lvPMxZSyrdmgetvHx9BRpgEUq9 mHqibPFWh4/c3B725OJFUjh6hCSO/RKJo3Zfsl+nXbnXrvs2beUTMsok3fAdXYCLKA Zgza0zY0S/cuf6TodT9zyY2MC1nLwFit4ownJxkw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , David Vrabel , Masahiro Yamada , Nick Desaulniers Subject: [PATCH 4.9 34/59] Kbuild: use -fshort-wchar globally Date: Wed, 21 Nov 2018 20:06:49 +0100 Message-Id: <20181121183509.586441101@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181121183508.262873520@linuxfoundation.org> References: <20181121183508.262873520@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann commit 8c97023cf0518f172b8cb7a9fffc28b89401abbf upstream. Commit 971a69db7dc0 ("Xen: don't warn about 2-byte wchar_t in efi") added the --no-wchar-size-warning to the Makefile to avoid this harmless warning: arm-linux-gnueabi-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 Changing kbuild to use thin archives instead of recursive linking unfortunately brings the same warning back during the final link. The kernel does not use wchar_t string literals at this point, and xen does not use wchar_t at all (only efi_char16_t), so the flag has no effect, but as pointed out by Jan Beulich, adding a wchar_t string literal would be bad here. Since wchar_t is always defined as u16, independent of the toolchain default, always passing -fshort-wchar is correct and lets us remove the Xen specific hack along with fixing the warning. Link: https://patchwork.kernel.org/patch/9275217/ Fixes: 971a69db7dc0 ("Xen: don't warn about 2-byte wchar_t in efi") Signed-off-by: Arnd Bergmann Acked-by: David Vrabel Signed-off-by: Masahiro Yamada Signed-off-by: Nick Desaulniers Signed-off-by: Greg Kroah-Hartman --- Makefile | 2 +- drivers/xen/Makefile | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) --- a/Makefile +++ b/Makefile @@ -394,7 +394,7 @@ LINUXINCLUDE += $(filter-out $(LINUXINCL KBUILD_AFLAGS := -D__ASSEMBLY__ KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ - -fno-strict-aliasing -fno-common \ + -fno-strict-aliasing -fno-common -fshort-wchar \ -Werror-implicit-function-declaration \ -Wno-format-security \ -std=gnu89 --- a/drivers/xen/Makefile +++ b/drivers/xen/Makefile @@ -7,9 +7,6 @@ obj-y += xenbus/ 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 dom0-$(CONFIG_USB_SUPPORT) += dbgp.o