Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1963210pxb; Sat, 2 Apr 2022 09:46:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzRI3Aoqp1QnBqyVcNyBQMynrEwNw5bkcX1L7mZMo6RlzLsl8oOoBS0IbwF/6OsHsJ8U90 X-Received: by 2002:a17:907:2ce1:b0:6df:85e4:d65d with SMTP id hz1-20020a1709072ce100b006df85e4d65dmr4463037ejc.209.1648918018268; Sat, 02 Apr 2022 09:46:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648918018; cv=none; d=google.com; s=arc-20160816; b=xMOMZbULLaxIOz3GSzRppSqMqGbzhKKoVw0Qzu1yPkIfBU46eV+GnXzgU+mU1uk66C U60S6m9VVx2bvLBSXAHl6BOhQ10oAI72AJ9Q3jz4rloa9rl5TQQGprskbcvpku1tHO1w BIp+qLoVTSWw7TmTeqpQyESBzwAgetluO58bMy2F/u9B1XBT+TMXMpBV0LTcqLVBXAVq 9wJGl1/hhIytL4hnVz1xXkjzNqAFqCSQFkMne5169YiQmA8/ht/rmNuw81aFB2y4djlL 6xYUDEw9sifUGlLhsrIizyM9vhEL9SMb2YXlxXOiuWZP0rrXOmMvBpwIG3UClGLZMJay KlLw== 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:dkim-filter; bh=U4tivoNrq6M0EJH3DKmbmPRC4R9x9GkT3H+S8TbYLJc=; b=A/4wD0k/DTAMRm32iNNF6KpPFTB9OXhUZ63YUY20brwVQNtMjw5gGvo3sl4lIOjacj P1iiacvXErCmGkR1uGbpScNLfVtMrl6eeCSahM+VHQLKXsmYDy08KUY2zkeRTOWXfWII 2tyhUomDPqAB/MJ1U3Edp1qZul5vkjfc/uEm+rYDx6r4mTuPBSDssuLiygJUP3wInYQY u4SWTxeRshK8AB2sktuXNCUZwz1i0fqxxXnP+qFTKTX2BInofIoWqwur5wcu89E2cqud 2TnxAgND8XAGuP2BzYDLFYeCWZ1ywTb8yaV5NF9DO8XmZ1vNCwPZHLxyfTqXz//yYVBY sHTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=WTKWq2NM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p21-20020a1709060dd500b006df76385d6bsi3467320eji.523.2022.04.02.09.46.33; Sat, 02 Apr 2022 09:46:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=WTKWq2NM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1346157AbiDANG4 (ORCPT + 99 others); Fri, 1 Apr 2022 09:06:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345944AbiDANGx (ORCPT ); Fri, 1 Apr 2022 09:06:53 -0400 Received: from conssluserg-06.nifty.com (conssluserg-06.nifty.com [210.131.2.91]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CFDF674C7; Fri, 1 Apr 2022 06:05:03 -0700 (PDT) Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) (authenticated) by conssluserg-06.nifty.com with ESMTP id 231D4TDg016474; Fri, 1 Apr 2022 22:04:30 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com 231D4TDg016474 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1648818270; bh=U4tivoNrq6M0EJH3DKmbmPRC4R9x9GkT3H+S8TbYLJc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=WTKWq2NMSHfTrxUlVjLN3HagkNdHTVcnma3lnxXTIWuMlfHyKX7bl2C6SQUqPKMg+ 8U9B2hIUNGMOmvOMJqoP+Ao+/taWX00tI2T80zg4ctOGeb8uhplU7EB8/ytJkS7mzV pnMfkWxF8QfxI1CG3NnaRILUXkHhYQ1pWBFXcx5BNq+/6VQnkNu3YQWoVNijAm9XIX Jy/GxlkE0hA+PM+kI9ZSLrEvRMWwhWaavAtuoP2NNZ4ZdD6o5ovwLA+3VWHSVQrAvN JapjV1G0Ajdgsc2YN1z/UfaNwVHaETa18v09n3Tj9Kd6EDJojx5HuHnimnAisD63nH nOqDbjz8bTLjw== X-Nifty-SrcIP: [209.85.216.42] Received: by mail-pj1-f42.google.com with SMTP id d30so2413773pjk.0; Fri, 01 Apr 2022 06:04:29 -0700 (PDT) X-Gm-Message-State: AOAM533cnbXrA692PB7D5UheAw86EnFtydh8mODDgo3jRgzUu4uIqm0O dqJuMlLV4NX0mXlKx9CO4yvvzkGWvXGA7Es5Q1A= X-Received: by 2002:a17:902:b183:b0:14f:c266:20d5 with SMTP id s3-20020a170902b18300b0014fc26620d5mr10504064plr.136.1648818269002; Fri, 01 Apr 2022 06:04:29 -0700 (PDT) MIME-Version: 1.0 References: <20220330234528.1426991-1-nathan@kernel.org> In-Reply-To: <20220330234528.1426991-1-nathan@kernel.org> From: Masahiro Yamada Date: Fri, 1 Apr 2022 22:03:41 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/2] Remove '-mno-global-merge' from KBUILD_CFLAGS To: Nathan Chancellor Cc: Nick Desaulniers , Richard Weinberger , Anton Ivanov , Johannes Berg , Kees Cook , Linux Kbuild mailing list , Linux Kernel Mailing List , linux-um@lists.infradead.org, llvm@lists.linux.dev, patches@lists.linux.dev Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_SOFTFAIL, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 31, 2022 at 8:46 AM Nathan Chancellor wrote: > > As discussed at [1] and [2], this series removes '-mno-global-merge' > from KBUILD_CFLAGS for clang, as it causes warnings for UML, and it > no longer appears to be necessary, as I do not see any modpost warnings > with LLVM 11 through 15 with several different ARCH=arm and ARCH=arm64 > configurations. > > [1] is currently in the UML tree, destined for 5.18, but it is buggy, as > I note in [2]. This series is an alternative to [2], which has not been > picked up yet, so it is based on the current UML tree. If [2] is picked > up, I can rework the first patch to remove the '-mno-global-merge' > filtering from arch/um/Makefile; otherwise, this should be picked up in > place of [2]. > > I intentionally kept the first patch vague around what fixed the modpost > warnings, as I am not too sure. [3] seems somewhat likely, but I don't > think that will revert cleanly on main to test. I think the testing is > enough to show that the original issue is resolved but I do note that we > can add this flag back in the architecture specific Makefiles if needed. > > Please review and ack as necessary. Both applied to linux-kbuild/fixes. > [1]: https://lore.kernel.org/r/20220303090643.241747-1-davidgow@google.com/ > [2]: https://lore.kernel.org/r/20220322173547.677760-1-nathan@kernel.org/ > [3]: https://github.com/llvm/llvm-project/commit/863bfdbfb446adaef767ff514d1f2ffb5d489562 > > Nathan Chancellor (2): > kbuild: Remove '-mno-global-merge' > Revert "um: clang: Strip out -mno-global-merge from USER_CFLAGS" > > Makefile | 4 ---- > arch/um/Makefile | 4 ---- > 2 files changed, 8 deletions(-) > > > base-commit: 82017457957a550d7d00dde419435dd74a890887 > -- > 2.35.1 > -- Best Regards Masahiro Yamada