Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5607196imu; Mon, 26 Nov 2018 02:56:04 -0800 (PST) X-Google-Smtp-Source: AJdET5d2tTTHYZ6ayI9oc1F988Cy/F6odvcKYlqZtpnIsAjL/V41rl6CA+d5s/tWNx7/5XTe501e X-Received: by 2002:a62:870e:: with SMTP id i14mr27912333pfe.41.1543229764712; Mon, 26 Nov 2018 02:56:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543229764; cv=none; d=google.com; s=arc-20160816; b=X3Mc7NVy5t3Ic8N4FbkRoelnRcpQYfmEMlGAADmoEvk4Auu8C+3CpSesbFW6v54a7v I8oVr6U+WICcQD8hn6EarO2hvYOdFcnfJ0pS3RWJWbtZK5i28DOobR9iTUYi8vbZVEyw 345SOKWQ+if5OhgO1lHGND6xZ+x+dgxpxJGk9btIP86rJK7WbqkNFvSUGkJ253bghEkC 8kAMbR5FBsgWlvLLGG28wTrVNbnpSsOtXwCV5CbnzvSwnPVgz4LYa1B8TEfy7Ta2Rt3e 5zAi6fzU3dYUrIqDU2plKG9h/mNdJ6fSto5+XFdcuz7YDBgNvuSQ4gyVxFBGBX4fiPKY Pc2Q== 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=dwdW4au/zvm4/t3NfbeCrOJRpffHqVFauf7TrqLCIxk=; b=DMPlY/VKYF58sJLTyRtbFqMsQ8BUfSA/rjUR8gOm2g5xUCvy995Jykq3i4K8FbQDAQ u9hsh1mlWVi0yja8gV7/apDvpX3ieV8IdHpM92anmdojuB+2ZOE0ByBjqe4ulTGYj69E +lx6NqoK3ZWJ6WJlrUc/NeHDR7NcH35+iC6RdhFqY/Kx7tp/xC8OCeqAwmiuGA8hLrBP syKmdNIzmuiozWsAMQsjhuEuCikThplRUmJEZGRKuqvq3UL2CfkcyOCEt6UTb/gWddl8 F078R4wMATiw88/iqiNCCjld6O5cF4UGgKLeqHnCaVbLuUK54OPHTPG0swqv3LJTbL6s iBqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jiX9Ex2U; 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 d9si47570370pgv.123.2018.11.26.02.55.49; Mon, 26 Nov 2018 02:56:04 -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=jiX9Ex2U; 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 S1727523AbeKZVsS (ORCPT + 99 others); Mon, 26 Nov 2018 16:48:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:56774 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726614AbeKZVsS (ORCPT ); Mon, 26 Nov 2018 16:48:18 -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 B457E21104; Mon, 26 Nov 2018 10:54:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543229674; bh=ATFqqJQm4xNXVbA1fV+XurdPHlPOaf+Na9Z88jcesIQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jiX9Ex2UPctw2OV5BiXrqGe7kGQhCMsG1CGLXl+IZUTnAVXSah4Gr1N+vAb3jMdub JpLKofLJLlAEpB98aUhu47pATEIdrFJse8NsdbFo2y/P/sz0HsGlZumdKdk1vrsUT4 W+9ET5gwhjV2UwPf1akqMPMCdy4JQh+hs2YEgbRU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Matthias Kaehlcke , Nathan Chancellor Subject: [PATCH 4.4 28/70] arm64: Disable asm-operand-width warning for clang Date: Mon, 26 Nov 2018 11:50:43 +0100 Message-Id: <20181126105049.506839265@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181126105046.722096341@linuxfoundation.org> References: <20181126105046.722096341@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.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Matthias Kaehlcke clang raises 'asm-operand-widths' warnings in inline assembly code when the size of an operand is < 64 bits and the operand width is unspecified. Most warnings are raised in macros, i.e. the datatype of the operand may vary. Signed-off-by: Matthias Kaehlcke nc: I trimmed the original commit message since I'm not a part of CrOS and can't speak on their behalf. To fix these warnings, it requires a fairly intrusive backport of the sysreg conversion that Mark Rutland did in 4.9. I think disabling the warning is smarter, similar to commit d41d0fe374d4 ("turn off -Wattribute-alias") in this tree. Signed-off-by: Nathan Chancellor Signed-off-by: Greg Kroah-Hartman --- arch/arm64/Makefile | 4 ++++ 1 file changed, 4 insertions(+) --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -56,6 +56,10 @@ else TEXT_OFFSET := 0x00080000 endif +ifeq ($(cc-name),clang) +KBUILD_CFLAGS += $(call cc-disable-warning, asm-operand-widths) +endif + # KASAN_SHADOW_OFFSET = VA_START + (1 << (VA_BITS - 3)) - (1 << 61) # in 32-bit arithmetic KASAN_SHADOW_OFFSET := $(shell printf "0x%08x00000000\n" $$(( \