Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1131703rwi; Fri, 14 Oct 2022 13:26:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM74oxbkyeExQsndtxTMOSvzfMSSL+cCep9OdF0NrLJAX/RFTtnYE0fLkiJ8PaC0BLNTpo4m X-Received: by 2002:a63:90c8:0:b0:458:b70b:b16d with SMTP id a191-20020a6390c8000000b00458b70bb16dmr6087870pge.366.1665779171914; Fri, 14 Oct 2022 13:26:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665779171; cv=none; d=google.com; s=arc-20160816; b=eQIAFK4D2BDd7JjAt8qqlnbSAjVKu7gmxa9X3YduOowIDr+l6EFOcek6ulGwkY2gOb NoI0x4Gz8K+Qbs/OzGkGvmx+ndH0Ut8tX6n7bBWdFjdi124sO+NGgVgnyiL6KQfi+nfI Uq4pLdx8weMXCROiu8LDU6NCb0e8UwvCcUakwvc5apimn/WyT9Mul8bqRZwb2TSqqzVF p2M+8fNVCDbzc3DCuR+x2avQFkXzKhO0ODpGBeoyJ7q/2N5PYYkadNEn3qBDvQoOWUwo iEkRi+BKw9VcSN+ZpPAUkArJP6EAxIGmxUsVuthPFnDhMoFOFUakhMz66u/M5CVvf7A0 Q26g== 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=M8IVK8k7k9gOGjXG9NHmvjgor4/KedW5P7/8L1lQGUs=; b=O3x601Hd/fFsvsDlk89jgsQ0khCDnpjEUafZ8WrX6Xnih120xRraoTsBwifUadf2lE FnZPuWy7N5Wp9mjCAPUWP586I28rTRGfvKPWHF2Zjd3cX1BclRMji/Yv9wMFMfz4w8rg vG6NrOhEwg9tgWoxYMiVwob8bvmgZHJUXPS0hnJrpreh2yQ5HkNSPhHGXWMC/JY887+H LRG1PBa2v4lHsHIxhfu2vAw2wYT3GsIoDIolQdDicKTElqniFobBzOdOvWOtgUsnPcrP u1y8CVsp2kOSmNS+CXus2+gh8iu3/mbfVZRcJroWloWWl+wgJfXlqjjY3kk6wQFjHMVU fSbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=l7NuPTgK; 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 u11-20020a655c0b000000b0043a93738a14si3657435pgr.167.2022.10.14.13.26.00; Fri, 14 Oct 2022 13:26:11 -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=l7NuPTgK; 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 S231294AbiJNUTa (ORCPT + 99 others); Fri, 14 Oct 2022 16:19:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231258AbiJNUT1 (ORCPT ); Fri, 14 Oct 2022 16:19:27 -0400 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 689481D3C57 for ; Fri, 14 Oct 2022 13:19:26 -0700 (PDT) Received: by mail-pf1-x430.google.com with SMTP id y8so5873145pfp.13 for ; Fri, 14 Oct 2022 13:19:26 -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=M8IVK8k7k9gOGjXG9NHmvjgor4/KedW5P7/8L1lQGUs=; b=l7NuPTgKJF77glfTg5wUM0i6Q1IBcSYKNmIAmbVOrS58xzVMla3V3aoAS25ZQIUKQi dbJi/3AGnfBgfwfQsywObFaIUWAEy3rJ41PT8pwaNNaS4VLPsBVEdBrEi+z4af3TsPRS zR+hhvenq+Tzp4+/xhyTQDKDrx/rgaqXIoRHftUS6gljtbwBt3XwZulKmH4NCRZa4gc7 8jsphkevXa52aYaPftluIg3M62is4x/ZdDMdi3WCNvxSnJcAIFBeAJsmERI0DKCykVQs 3VIoXi58mU1wngSQkYfJiSMJMDjF67PPnEcfgW3X9Z7wWBv69C6cI6ipKt1pxq3JMo2+ oSGg== 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=M8IVK8k7k9gOGjXG9NHmvjgor4/KedW5P7/8L1lQGUs=; b=Jc1ZZJnTxjIqhBfXOXAxz0C0J1xphVzQL/RuGBayv1HTI+IIStQD1HjZDt5RJZ0KPz +XTzX8VBp3hDzSLyxWEwnC8QqeBI0mvML8rumxoQGUm5RVV9tZASv/HrQmFID3gIkJRz Y9NNn6g4pCQfnIgG8C3zdg5p2BBDMweZEPYuU4LlirN9BCg2ozq2qjr4XpO6eZXXfqi7 vYE7P26AY9dN+eyD5LxgFuiLZXKKcSEqR8kjOFmFm/1HSJKdGlU32DKBqtjk1Hh2Vh07 s+EA//rIBskQFDKvT1AQxjFaZHKDs+9657lrAiu3tRDOjvKNLwGxMAEz1dr9vzuyuC9v gn5w== X-Gm-Message-State: ACrzQf2oySTBIdEd3/d8OXWZts4MWjFJADDKBsIv11sPApuZnkaHomfr AeALXglLsOYdaRSjI12/Dibwv6regA1bJ5dbGFh1nQ== X-Received: by 2002:a63:80c7:0:b0:46b:2ccb:ff93 with SMTP id j190-20020a6380c7000000b0046b2ccbff93mr3283676pgd.403.1665778765642; Fri, 14 Oct 2022 13:19:25 -0700 (PDT) MIME-Version: 1.0 References: <20221012180118.331005-1-masahiroy@kernel.org> In-Reply-To: From: Nick Desaulniers Date: Fri, 14 Oct 2022 13:19:13 -0700 Message-ID: Subject: Re: [PATCH v3 1/2] kbuild: move -Werror from KBUILD_CFLAGS to KBUILD_CPPFLAGS To: Nathan Chancellor Cc: Masahiro Yamada , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, llvm@lists.linux.dev 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=unavailable 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 9:03 AM Nathan Chancellor wrote: > > On Thu, Oct 13, 2022 at 03:01:17AM +0900, Masahiro Yamada wrote: > > CONFIG_WERROR turns warnings into errors, which happens only for *.c > > files because -Werror is added to KBUILD_CFLAGS. > > > > Adding it to KBUILD_CPPFLAGS makes more sense because preprocessors > > understand the -Werror option. > > > For what it's worth, this is going to break 32-bit ARM builds with clang > plus the integrated assembler due to > https://github.com/ClangBuiltLinux/linux/issues/1315: > > clang-16: error: argument unused during compilation: '-march=armv7-a' [-Werror,-Wunused-command-line-argument] Ah, sorry, I should have finished off that series back then. I've rebased the series and sent a v4. https://lore.kernel.org/llvm/20221014201354.3190007-1-ndesaulniers@google.com/ You mentioned to me on IRC https://lore.kernel.org/linux-next/CAK7LNARg8OpqLR_71PJV3ZoLuDV8+mz9mphg=CzEeEEMY0G3rw@mail.gmail.com/ maybe will be a conflict. > > Ultimately, I want -Wunused-command-line-argument to be an error anyways > (https://github.com/ClangBuiltLinux/linux/issues/1587) but it would be > nice to get these cleaned up before this goes in. > > Cheers, > Nathan -- Thanks, ~Nick Desaulniers