Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1138799pxf; Fri, 26 Mar 2021 01:44:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNv4gp2gXrBEAjNDMJ58/bgbQ5TZ8fs7hlYt6+T9QQ0Nal6xJT5x22qNRYX15Rfq/2CbGo X-Received: by 2002:a05:6402:549:: with SMTP id i9mr14031250edx.379.1616748275794; Fri, 26 Mar 2021 01:44:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616748275; cv=none; d=google.com; s=arc-20160816; b=IAVpdqZtWDrpboiCutni8LWnfYQTUAKK07XIH7uHsdQgM0ymnuuavzZ4421A34kaYt L9Nfg0NWOtVhphZCHsPiMHrrZXkiqAy8qXbng7aE7zEOa+tvE6M/LGAmVUNoaHbyPEpe 5nMnzWNLKbl0Urh5JlspYhC+CfOmIr63FDewdczlHtCTOEeRAubbLIR9eAzl9G/qLKH6 riaHAfsHpcaTJEM2QCM432S+tJEsQbg6t+ievcVPQftGXpbmzoXfYEnlWg3sR1B7f0WR WI7FQo8Gdzm9VhH6KVDfaJHBBdNfFEp22n3ANWQvY99pOctsx1a7ILF7OZAiFaB68mPg ojlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ScPPC0LjnoMNtr3tslxU/SJmIGb8QvQW8ixdd7uz1io=; b=VYTuJKDYjp1ASqhJvFSCU/6ACfsx1pc3OEPaBOzJTmfF0HydrgPAZ7HzkdQFxPJWcB 10kJEIzoR3efcRteZYB+Zwc1HDUNs4HdcCtjE3gXDxhObvAmR0hle55wZIdAIq2BrVvw Yq8SAs3Ce3bheGPZINnG1kEKufvpnq6EhIbBsF2qRmDMqBebGRvRV0LfCkHrMFZVIJS1 rCmwWhVZYIpKLo+EyFOATRj8/ENSpg8O85pl9GRJo99t1rCmA0XM/puzjvHS+z1P/4M/ aeg9Cr4YQrDA/p+0cy25o6DqNJJyf6tWsvPplM3t4bk1quI+IP/jQdFY5xvagTomsxjw hUlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HjhYLnV1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f21si6042625edy.337.2021.03.26.01.44.13; Fri, 26 Mar 2021 01:44:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HjhYLnV1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229761AbhCZInQ (ORCPT + 99 others); Fri, 26 Mar 2021 04:43:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:51554 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229573AbhCZInM (ORCPT ); Fri, 26 Mar 2021 04:43:12 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6A266619BB; Fri, 26 Mar 2021 08:43:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616748192; bh=auPK4qEVEfZq7Im80hPIJ7nXvIOJt1yosAJO7vVnmqw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=HjhYLnV1E+BKpuQI57WIVzVYJf2ey6I4NdgPGJUERWrr5XQNsYDypxVnH9WzQWFZX PZEnCkshDSFnOpxNSo/fI/mtNa4ealAhVg9P3mCpo2UI1NI5y6UxAUgChGB3in59s6 QevFFiJ4JO03XPPrKtsEJquehCyq4j1tKxtAon4aKR5dKpNy/xgR5g9zi5/oAlHVmu ZXEdy86G0rsnybM4g5zgkGi6yYdfeRwTO9XIRdAESlYODGttO1iMLNU/a0Ie4BlFka nP+nAW8aANaTPRob3nZ4osjVAmoWjeHPzdlzWuvRgqM2YByp3RV9ael57BW19/zbID pVYYvJu2khblw== Received: by mail-ot1-f41.google.com with SMTP id l12-20020a9d6a8c0000b0290238e0f9f0d8so4539486otq.8; Fri, 26 Mar 2021 01:43:12 -0700 (PDT) X-Gm-Message-State: AOAM531jlIZQPqeeDDrq/cWskZW4FJSw0Xv2H77guJJFHSlFY7rgJlIn ZJRXwOuADl37o0Ang2sWUlD7hs2mRpme1QTJZ10= X-Received: by 2002:a9d:12cb:: with SMTP id g69mr10624384otg.77.1616748191665; Fri, 26 Mar 2021 01:43:11 -0700 (PDT) MIME-Version: 1.0 References: <20210326000435.4785-1-nathan@kernel.org> In-Reply-To: <20210326000435.4785-1-nathan@kernel.org> From: Ard Biesheuvel Date: Fri, 26 Mar 2021 09:43:00 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/3] Fix cross compiling x86 with clang To: Nathan Chancellor Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , X86 ML , Nick Desaulniers , linux-efi , Linux Kernel Mailing List , clang-built-linux Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 26 Mar 2021 at 01:04, Nathan Chancellor wrote: > > Hi all, > > This series fixes cross compiling x86 with clang, which was initially > brought up by John here: > > https://lore.kernel.org/r/cceb074c-861c-d716-5e19-834a8492f245@gmail.com/ > > I have picked up that patch and added the same fix in a couple of other > places where it is needed. > > I have tested this on an ARM based server with both defconfig and > allmodconfig, where the build now passes. > > Please let me know if there are any problems. > > Cheers, > Nathan > > John Millikin (1): > x86: Propagate $(CLANG_FLAGS) to $(REALMODE_FLAGS) > > Nathan Chancellor (2): > x86/boot: Add $(CLANG_FLAGS) to compressed KBUILD_CFLAGS > efi/libstub: Add $(CLANG_FLAGS) to x86 flags > Acked-by: Ard Biesheuvel > arch/x86/Makefile | 1 + > arch/x86/boot/compressed/Makefile | 1 + > drivers/firmware/efi/libstub/Makefile | 3 ++- > 3 files changed, 4 insertions(+), 1 deletion(-) > > > base-commit: 0d02ec6b3136c73c09e7859f0d0e4e2c4c07b49b > -- > 2.31.0 >