Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2262001imm; Fri, 7 Sep 2018 13:28:26 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZYXS3gwUCSBD2et14bq0B6vyDAH9XwTEtaNCS8mTf6lHsTQlmwV7/EUB82nlAMUChYxjff X-Received: by 2002:a63:1363:: with SMTP id 35-v6mr10129622pgt.202.1536352106067; Fri, 07 Sep 2018 13:28:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536352106; cv=none; d=google.com; s=arc-20160816; b=iwy5Ta0pI8VtuzseE5qh5eA2T/YdkxvYsfGvqIT1Prrw10CyMQIJKhlcnxsi5/LF/l f09JWHJJDOutjN9+PDkfnALU7ky86JjJ44QVTlM3zGsHp0E/MF/i3SMiTCByhzSXPANd IdCbnlgjX1xxjphJYsSiTr8zV2bxxfgAZ+AEYbszqvxNFN4xWfBj8E3u9CUTzTJo93y+ LaSlxw3hvf0Pg3wHecWcqSvrFwh/f7A1WSCX81Tx/iJ1Tf2m1mPA5SO56O5/qUzd5/uz ayFB/i+CvCgbMUTW19JohpVog8/z2VxEWqtKzsOjVsHEnk9mmDjPG/wqQ/I0DnUN+LdW ZQqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:mime-version :message-id:date:dkim-signature; bh=HPeS88KNIjQVlbvUr7jP09u90T8uU//QpUwSNI1RzRs=; b=sSzdmzwN+zv1LJzECfasZZNIJlcBkyGPw2eDIhnPEQABK619IP8pTuPKbEJ7EYaVHF vRq6z0sUxHXYbPw+kcl596SVdJM4PSJQcC6EtBteKdf3scYK0dxh1q7tC/k8dYIGOsoV sUehiNDICE/HdeHqUlLj+YzuqVddBJMxtLEhU86qykD7rBLGxAAOmYlt8dwkN9QwXiQw NduFO39e/tkERY/Pd2LhSqWrGEXkizU5Vo0haXqX5byQYa5jIxEax/mIEsXMwH9fUHRP gYMfxt8u2sOMPowe6OhTBmOd+ApODbztWqWzymUrC9h3x5VTyzTe9bSAdmf8d4kvUB7N KqVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Zqp1SGab; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b128-v6si9516136pfb.352.2018.09.07.13.28.10; Fri, 07 Sep 2018 13:28:26 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=Zqp1SGab; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726506AbeIHBJM (ORCPT + 99 others); Fri, 7 Sep 2018 21:09:12 -0400 Received: from mail-pg1-f202.google.com ([209.85.215.202]:45880 "EHLO mail-pg1-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726060AbeIHBJM (ORCPT ); Fri, 7 Sep 2018 21:09:12 -0400 Received: by mail-pg1-f202.google.com with SMTP id 186-v6so7627273pgc.12 for ; Fri, 07 Sep 2018 13:26:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=HPeS88KNIjQVlbvUr7jP09u90T8uU//QpUwSNI1RzRs=; b=Zqp1SGabBIHAg7e/rC0NyUUFXDZE0UjIA0BzorcSjGmpA4fkREYhT8KuaPFDj2S95B RjWoNs426NWUePhol4xuCOU76cqu4AAYk1d162dVaBWCSYLY3Kfal8aOzEbxLctbg2FI Osk+0P41AZoNvmwQEucR1ABTCvbo5ICdlLbHFL4y5z9KE3alTPk+R1JdQkvPADOBcEP8 mAoFjHwVtgL1ukxmtkoqzSf9+wqZ375thEUwXJmogg/SBXhTJ1/qou8pIAVsWpOw7GVV 66iWcfKpyzsU2koHckzsb0mfmbXetuywq48v7dtWs6NalX76q+UaC5AjM1jS+WxxUNoW Qviw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=HPeS88KNIjQVlbvUr7jP09u90T8uU//QpUwSNI1RzRs=; b=XuaojxcF6NJeeJOAfIEn7nHQLoJ3C/3I3aWz5uMqySVyb7wq+i89uj+kcKylBReGEB keaY5thigEQiFIoOyYLJP5y15Bn+0Rsw8yPSMi2FavDH4aE8KGHgPgxSpddaDzfM/PxQ XOoZjFq6O/D7xpZRu1w0PZS06HwLZE4xWfKkOhfKDq0vP5Emj1aHHi9/YEaJYcCYjl8c IxYRGc+Y6eB8HxxOO7U7NQyVw/CVCevqr7dhrrR8N2zypkC9IvzO5UWczcpT6+TQBnWL 0ZlrGFWZyQtcwqSXIygPM6QKEYbiNQApZYq4lwN3h5PtYFYf3Bq3StchuXeFVSHtROja tXYA== X-Gm-Message-State: APzg51D1O7o+8DA0qHTVm/A/CKuVUvWoepiO4pgK5lpdxYf9ojdfxXbQ mMSdLO7YFSMKnlU7pYb4pAgbuA1nebOSOfjPxgM= X-Received: by 2002:a63:a505:: with SMTP id n5-v6mr715951pgf.31.1536351997128; Fri, 07 Sep 2018 13:26:37 -0700 (PDT) Date: Fri, 7 Sep 2018 13:26:16 -0700 Message-Id: <20180907202618.258569-1-ndesaulniers@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.19.0.rc2.392.g5ba43deb5a-goog Subject: [PATCH] x86/boot: define CC_HAVE_ASM_GOTO From: Nick Desaulniers To: tglx@linutronix.de, mingo@redhat.com Cc: Nick Desaulniers , "H. Peter Anvin" , x86@kernel.org, "Kirill A. Shutemov" , Masahiro Yamada , Borislav Petkov , Matthias Kaehlcke , Kees Cook , Cao jin , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since this file steamrolls KBUILD_CFLAGS, we have to redefine these symbols. This will prevent warnings in source files in this directory when Clang supports asm goto. Signed-off-by: Nick Desaulniers --- arch/x86/boot/compressed/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/x86/boot/compressed/Makefile b/arch/x86/boot/compressed/Makefile index 28764dacf018..158c0b4e178a 100644 --- a/arch/x86/boot/compressed/Makefile +++ b/arch/x86/boot/compressed/Makefile @@ -56,6 +56,13 @@ KBUILD_LDFLAGS += $(shell $(LD) --help 2>&1 | grep -q "\-z noreloc-overflow" \ endif LDFLAGS_vmlinux := -T +# check for 'asm goto' +ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC) $(KBUILD_CFLAGS)), y) + CC_HAVE_ASM_GOTO := 1 + KBUILD_CFLAGS += -DCC_HAVE_ASM_GOTO + KBUILD_AFLAGS += -DCC_HAVE_ASM_GOTO +endif + hostprogs-y := mkpiggy HOST_EXTRACFLAGS += -I$(srctree)/tools/include -- 2.19.0.rc2.392.g5ba43deb5a-goog