Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4121885imm; Tue, 25 Sep 2018 11:42:37 -0700 (PDT) X-Google-Smtp-Source: ACcGV62au7Cs0UFRENmC/0I5PPOW+0Xm25DI7VH9Wpc5ukR8hinQJpoxltaRXYeBNBcL//q67ADf X-Received: by 2002:a17:902:722:: with SMTP id 31-v6mr2366165pli.207.1537900957118; Tue, 25 Sep 2018 11:42:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537900957; cv=none; d=google.com; s=arc-20160816; b=L+pSpC7kL9bzwYk0rGgObp1/n9c062Q+PMy1NHeLg6S4/ZU5GeN5zSHKq+fEEm+zf9 BB4vx3Rim78GNDJ0wtXY5+bndh2Q18JF8N9tAqoDLSl5ghB887zw9hIde9ID2s7RzAbQ fIpwuph8r9SJgwaVIJCNDL4hbTJDrpLqJZJJT9SHeNINvXQG93cT2OP0oHF3lqbcaIew QwBLilF0W6fhakjpHzrSplElgf0YYw76tFYNiqtU8gLSx/v0DzNZlpXZjTU258NPSlz5 JoybkYnZsPMr5YmXOe7LwEUrC0i7DIv05a5Wj4iZscHnPrIbTrYzdFovUWG/LvOUcflY vAqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=UGiuWKNdvAxS7VGSt6kGx+xo0rQqNbhwpom7U8foitE=; b=Xg1NhRdjwQgsW6NRquaaFoUJoa3mzDeLUdry32mJwjNy7W0y8i8gR7WN78BgDrEclL eG6NcwCfCICsvzEr6SJMH3h63SMa70CUaNCz2djV8oRX+taztbrG76oiG0Owwuuh8RWO 7dxF/l3cOlYvnV64Z7LAcPlYCjIDRUUgtfelXZDcCnYciUUsxYpffOws5WPkMSjrNUor re5Vp+GWclToPtWKm3GPLkxgEueWyrXisjbNtUjr8kRLqq5XxrIsmYcXe7NWWDCusHUW 96b6YD5b+muVKYGNz3ZRwUFnYJM0Fzjg6srrhqQ+Ct5PZSTUC4JJz0ABfPRCiN4dxpEV 96gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=VfSwZ40s; 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 s12-v6si2910888plp.464.2018.09.25.11.42.22; Tue, 25 Sep 2018 11:42:37 -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=VfSwZ40s; 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 S1727594AbeIZAuW (ORCPT + 99 others); Tue, 25 Sep 2018 20:50:22 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:42502 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727448AbeIZAuW (ORCPT ); Tue, 25 Sep 2018 20:50:22 -0400 Received: by mail-pf1-f194.google.com with SMTP id l9-v6so11822182pff.9 for ; Tue, 25 Sep 2018 11:41:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UGiuWKNdvAxS7VGSt6kGx+xo0rQqNbhwpom7U8foitE=; b=VfSwZ40sNu6Y9qhN3v7KKgD9kZTg2kiwpJd7tVEPhpkWS3vtRTviolM4dbU/5u8y/W vAk0RFfotF/gs/jXvh6WDBWPNCIBVaHijLWyyf5sVTJ+1U2GyWLUlhL5AlCmjLrc3Vx5 3TAzsZV2k94uABicspwbkd13eVbDQVDIAmQ1fNic7IyWKyWH5qkOY6lWAu6Y+Zy8lLN2 ozBwJ93G67XkjuNVV0vi3WK5j3/WngC1gglK0er8Sh1BEKQaKs9zx5VI5XMVnnKe4s2r YqjB2HKWiCtWOFJX6Dq7gayooBZ4b1mqoqjbNS/PFmjsSzL4iTXSEwtVB/ybZG7lHnkw agOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=UGiuWKNdvAxS7VGSt6kGx+xo0rQqNbhwpom7U8foitE=; b=QS0Rzv2q6kHPu4JrZ/rSm5YSAHLJNehl3o/aZwJJdTACj40mR3DzJZf2qV+hxtdrzI A5aa5uYhurY7tHy8f/vX+KSuDInpNgqsHr5COxUvgSURSc9uYo6nYUJKmb/pA4gI1BTX I30vIa8nLvt1zWkydX89sh7M8SZ1s+tNncknZcaT3mL+In1eFCMHjenBTX0JFId6E7iX G64CqGaHk90z4BEW5GOUEtTdinRfc7lef4tixIfSRva8YZI4KiWX2KwfieUkIX5V4df4 kwpHZOnYlPBC/S6eUUVhDVZVBPphY3lvha6LKdGW2EfoZcBmdalHwsBZyQdAZx1u80ib HS5A== X-Gm-Message-State: ABuFfogFir0t1wpyucuffncsc0E9WLjtrCZRBQL7s+adzR8qfg1VSiJg Y2eO3Bv00RhtJNlvat7WIkd5NKfHskfd1Wf8VF+t2w== X-Received: by 2002:a17:902:b7c2:: with SMTP id v2-v6mr2410733plz.238.1537900891106; Tue, 25 Sep 2018 11:41:31 -0700 (PDT) MIME-Version: 1.0 References: <20180907202618.258569-1-ndesaulniers@google.com> In-Reply-To: <20180907202618.258569-1-ndesaulniers@google.com> From: Nick Desaulniers Date: Tue, 25 Sep 2018 11:41:19 -0700 Message-ID: Subject: Re: [PATCH] x86/boot: define CC_HAVE_ASM_GOTO To: Thomas Gleixner , mingo@redhat.com, bp@suse.de Cc: hpa@zytor.com, x86@kernel.org, "Kirill A . Shutemov" , Masahiro Yamada , Matthias Kaehlcke , Kees Cook , Cao jin , LKML 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 bumping for review. On Fri, Sep 7, 2018 at 1:26 PM Nick Desaulniers wrote: > > 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 > -- Thanks, ~Nick Desaulniers