Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1131149rwi; Fri, 14 Oct 2022 13:25:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7CJfULh4Xihh1eVFPxT85oXybk2tCgKEsLHIUb9yu4TnPQSricEM4cSi6MEPONMcHpS6ic X-Received: by 2002:a17:902:ab89:b0:17a:67c:b9e9 with SMTP id f9-20020a170902ab8900b0017a067cb9e9mr6964465plr.55.1665779126326; Fri, 14 Oct 2022 13:25:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665779126; cv=none; d=google.com; s=arc-20160816; b=j3Ac3Xj7grTjnTP2SN/8hLZ2HUwm0UP94D02Bc8abqaJy20RP2mBt0kFu1zVbDDNDF qNKIcLqcJpzuQMUX+ANKc78t4B8CK9xw1BR6UB0/Qy6plE5f+LV5S2CtYfr/5OWCGPUO ZThnxVI4tGM9H5xdnKFC7imV+fdOns2Ykd3ApTXgdwflhwf6nvutwDOhPQvOW+ZrAS6g LMv4nw/WOxYcOZq52MPxzChzi3pDj3qte73o+C4gXqiCm8fekwAokF/Wbr/fSvg2nThd t40CZpesnY4dEoVVYCYxNDmqIRtpTCTqrQnu6s+M4OgdJufIU/rGzRqboqWpkaA57G4s ONVQ== 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=d9uRIcoHHJz9/gFQgE1VQpj6K6kcy16s5GCXSPDSWz4=; b=UpYbFp07VY7dHkMBNrlgXFSpcwncCP12KON+ZELsGckpL3QEQ4GXY+pgA7FpRCk2qE PjkwFQNFDwjEDVXtxEPAIDYWF1oFb78ZbAZce1/TGtRUgg8e8SPSL1mEyZ4Vv6/DTigx hpEAHd7rgXWjF5UQIYbDyC/GS1ObGHj7LYPp+Q932CjRuKL5f/5X0GMxsDBbZqHwDQbH z9xDpdoAhYrHgPoend8gn8JOOigDvTRToIRMyhM3741Zo9Othudy+Ysojwv0nIeiZc2I wK9w+0y4/O4klHZ2/S9/Yrey2yLTRWyRup8cF9SG+UNJ30Zv82AypsT1I1bFJ9NARpzY syLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=HNA6dMTA; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t11-20020a170902d14b00b00176e4ac448esi3366836plt.224.2022.10.14.13.25.14; Fri, 14 Oct 2022 13:25:26 -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=@google.com header.s=20210112 header.b=HNA6dMTA; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231185AbiJNURF (ORCPT + 99 others); Fri, 14 Oct 2022 16:17:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229964AbiJNURD (ORCPT ); Fri, 14 Oct 2022 16:17:03 -0400 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B314F7D1F2 for ; Fri, 14 Oct 2022 13:17:00 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id 67so5878693pfz.12 for ; Fri, 14 Oct 2022 13:17:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=d9uRIcoHHJz9/gFQgE1VQpj6K6kcy16s5GCXSPDSWz4=; b=HNA6dMTAcvloY9M5J90Db+W0xpQ45C2srAwJ1pL0+gxkF1JbTwXp/LqhGKlbAlzdTY 60H49gCz+iDQL2gbl+RNuwngV0a+jL6REBC6XYZA9uj4YugIfa1EAIRrq7LuLMxKIPr5 EADYMgZJgxiiTr+YVX9jbyIxvTOmyEhGq2Qw5NYLz0wi+4xjrukjgsVPfRK+wPIb/Rzr eD2FjSLtdx1xgHjxXU9QPMAzO99i1tydmNWzZ0XJ1GE49+EIE2xqDx6IhwxYRCQ5BMpS ikxj7fU7hZE59fz0AeWVV6mSRtSYH7O29VZbQMhyyfEqMbbnISu5W8IP5CgSj5OnMCR4 W6rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=d9uRIcoHHJz9/gFQgE1VQpj6K6kcy16s5GCXSPDSWz4=; b=r4zzeXq+cWO6LIVV5LvRC2tccWtiMPYBJNOJ/jJRD+WWSiBxXYq2gAVySBEbkC5u2F fKDv1vcQHk4SLht4U0JyVuer13BzHJIOhCoRR2eVjGMVqXUDdZPhtHnr22WGS4dwXntn 4Cp4/s9rhD7j1W7TDY1Mo1QqhehvMPK9BphdV8L4gh+0ZNgdUFA0Lhth6ZskQ3YTnZdG se2eaX7pZkT9chBIXG5dxekxCze9btFEfhvUNhm7PYCH/0rOutPObu5FbzG4W1rcwv7k GMeEG49w0W+h6BE+PpCHrhqaJ4iuNCzWxa6nzo9xL9Wj8a5KwgAeQ7FN7aFaBBQOF/M1 52dw== X-Gm-Message-State: ACrzQf1EvQ/PS5PvgG2M6qQPWYbm434v75ySBfjyQBkFTPhgzKF0LXye +7fsagJmAWSSFuaFxrV6apGUMmGerVrwHNdm7B3zxQ== X-Received: by 2002:a62:1a97:0:b0:562:5587:12d6 with SMTP id a145-20020a621a97000000b00562558712d6mr6952880pfa.37.1665778619944; Fri, 14 Oct 2022 13:16:59 -0700 (PDT) MIME-Version: 1.0 References: <20221014201354.3190007-1-ndesaulniers@google.com> In-Reply-To: <20221014201354.3190007-1-ndesaulniers@google.com> From: Nick Desaulniers Date: Fri, 14 Oct 2022 13:16:47 -0700 Message-ID: Subject: Re: [PATCH v4 0/4] pass -march= only to compiler To: Masahiro Yamada Cc: Arnd Bergmann , Ard Biesheuvel , Linus Walleij , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Nathan Chancellor , Russell King Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham 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 Fri, Oct 14, 2022 at 1:14 PM Nick Desaulniers wrote: > > When both -march= and -Wa,-march= are specified for assembler or > assembler-with-cpp sources, GCC and Clang will prefer the -Wa,-march= > value but Clang will warn that -march= is unused. > > warning: argument unused during compilation: '-march=armv6k' > [-Wunused-command-line-argument] > > This is the top group of warnings we observe when using clang to > assemble the kernel via `ARCH=arm make LLVM=1`. > > Arnd sent a v2 of my previous patch > https://lore.kernel.org/linux-arm-kernel/20210928154143.2106903-14-arnd@kernel.org/ > I added yet a few more instances I found since then. Nathan pointed out > a new one too that I've fixed since v3. > > Fixing this will allow us to enable > -Werror=unused-command-line-argument for clang builds. > > v3 had an issue wrt. __thumb2__ > https://lore.kernel.org/llvm/CAKwvOdmkd2PxvMUZA=A-72eATGDZkqDj--Bv1W+Xt_K_LWdROA@mail.gmail.com/ > I've incorporated idea from Nathan and Ard on that. I probably should have made a note: the base of this series is a little funny. It's based on today's linux-next (20221014) but with 0a7606a9832ab375a38425a659bda13712ca89ae reverted. It sounds like 0a7606a9832ab375a38425a659bda13712ca89ae might be dropped from -next imminently https://lore.kernel.org/linux-next/CAK7LNARg8OpqLR_71PJV3ZoLuDV8+mz9mphg=CzEeEEMY0G3rw@mail.gmail.com/. -- Thanks, ~Nick Desaulniers