Received: by 2002:a05:6a10:5594:0:0:0:0 with SMTP id ee20csp279040pxb; Mon, 25 Apr 2022 09:51:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgpej0Q/hVDu+Hokg683/oSnAi7pBYrcMEmdtEIJIqNNj3H5gx0QV6tMzFPSxruE3v0YAK X-Received: by 2002:a17:906:e87:b0:6df:8602:5801 with SMTP id p7-20020a1709060e8700b006df86025801mr17583333ejf.140.1650905501194; Mon, 25 Apr 2022 09:51:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650905501; cv=none; d=google.com; s=arc-20160816; b=JIuCPnpHQjKZojQyfoFaigKPjEebQ/UYvdBFfXifM3uGnBn4257axHTGZPzBL3BtaG 0K54yU1RXKTYfCMA04BE0v3th6VxSZKAo7ua5GGlzaIkN2S1EjITfRk5y8KDpUj4+xiR XY8ogqhabsdR8HhYJGmw9XFsVBb7MIgSRqzEUoRl6N7+hnV0ksw72f8jK4Eyg7y4+uZm eFc8q2H+y4rGYbKZst2L4yPP2MgQyXJ1OApJSQPhE/W9+9yUd+ZxmvwKebENlUD2HzJn nFUc2snjrIUQZuwdXQVG9m7zP6YRTop1ZtPo5N+EvDQAArpobqG5CU82wr7/bF0Fblgz VqVg== 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; bh=PCtKQYSTps0VrLDUq04agqNEXmphYahJ7hA7Tsk3PTM=; b=oJhtteZG9KaIHDSYHN1GoMg4aCM7pTAA89UC8gJsUVxPGT/XTZ2oDTxYoULq4mDzRR NpHvJBQtJsbE1TPdQVxByo2RsnWtpC0pSbK7GE4mG9UNTNExsxJmB8+0q3ZJEPQ1ExaY NPwfa2vUmGdKgacNCmkVkhmqbAuzAWkW+gb1cJ4aQz0+Ay/H8CgB72cCeS/m6SM9St3i m1Vmoz2HxjeU92xXzEPmD7/U+NJIonVUZqgfd37oNQWSFi/ZUMt/DR39PDjMdKwdQ+OR 2AN0IwtunhOS2vnEY+ml5tDbHqcqcIXlXRpeN8EtMPIKvZ3lW0Ef6WAu0SsxTw7DoLwi aU4g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jz14-20020a17090775ee00b006f379d6f423si5856221ejc.582.2022.04.25.09.51.15; Mon, 25 Apr 2022 09:51:41 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234664AbiDYGUq (ORCPT + 99 others); Mon, 25 Apr 2022 02:20:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230169AbiDYGUo (ORCPT ); Mon, 25 Apr 2022 02:20:44 -0400 Received: from mail-yb1-f172.google.com (mail-yb1-f172.google.com [209.85.219.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6FB528989 for ; Sun, 24 Apr 2022 23:17:40 -0700 (PDT) Received: by mail-yb1-f172.google.com with SMTP id r189so25215270ybr.6 for ; Sun, 24 Apr 2022 23:17:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PCtKQYSTps0VrLDUq04agqNEXmphYahJ7hA7Tsk3PTM=; b=y87zLxXLd7YWRCsK5HoU9vnzAOjFhAz4Uu2o+I3q65DqAb6PYR97pM/VYKPZQdZH9m t6HqzuAVlEtKaDPX08wNGQRjc9aM+h+FIIFZL75IFD+R5u7ly6t0yTchtwIabrQtMi94 MfLDqq8xC2lyjorgn8wF7yPfp4LXEXF6OvVCe4ZrZidf45eJ6m6d55OggzH6qpcRsWhD +GPSiY8OKR9YhmDFT2m44DTNVEYaTlHmgX5ZhSFRyri/JxJ4mAkBPbalTKdhDUxN2Z+f +gJC7CWEZmqrC1fx2gLpSqSgqPH7GrzGavmHQY0b9Ot2PmqSLuQ4d05wUQ9ANTUxGVVV yqVw== X-Gm-Message-State: AOAM530UdEhESrDvRzTbsty/ZsPXmbgtnG0PugBKJdC3250qOJ83qOdA ZkBsL9HZ670IK7U3m93w5qcJjxeat+nS03LMyvs= X-Received: by 2002:a25:76c6:0:b0:648:5616:ca50 with SMTP id r189-20020a2576c6000000b006485616ca50mr4091431ybc.423.1650867460065; Sun, 24 Apr 2022 23:17:40 -0700 (PDT) MIME-Version: 1.0 References: <20220422151725.1336997-1-mailhol.vincent@wanadoo.fr> In-Reply-To: From: Vincent MAILHOL Date: Mon, 25 Apr 2022 15:17:29 +0900 Message-ID: Subject: Re: [PATCH] checksyscalls: ignore -Wunused-macros To: Nathan Chancellor Cc: Nick Desaulniers , Tom Rix , linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Arnd Bergmann Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 Hi Nathan, Thanks for the comments! On Mon. 25 Apr 2022 at 07:17, Nathan Chancellor wrote: > Hi Vincent, > > On Sat, Apr 23, 2022 at 12:17:25AM +0900, Vincent Mailhol wrote: > > The macros defined in this file are for testing only and are purposely > > not used. When compiled with W=2, both gcc and clang yield some > > -Wunused-macros warnings. Ignore them. > > > > Signed-off-by: Vincent Mailhol > > The change itself looks fine but a couple of comments: > > 1. Nick and I do not pick up patches, we rely on others to do so. > Additionally, this is not really something within our domain, despite > what get_maintainer.pl might say. This change should be sent to > either > > Masahiro Yamada > linux-kbuild@vger.kernel.org > > or > > Andrew Morton > > so that it can be applied by one of them. Ack. As you pointed out, I indeed just followed get_maintainer.pl. I will resend a v2 to the people you pointed out (and exclude you). > 2. I am not sure that silencing warnings from W=2 is that useful, as > they are unlikely to be real issues. Not to discourage you by any > means but it might be more useful to focus on cleaning up warnings > from W=1 and getting those promoted to regular build warnings. Normally I agree, but there is one reason to fix this W=2: this warning appears when building other files. Example: | $ make W=2 drivers/net/dummy.o | CALL scripts/checksyscalls.sh | :21: warning: macro "__IGNORE_stat64" is not used [-Wunused-macros] | :22: warning: macro "__IGNORE_lstat64" is not used [-Wunused-macros] | :75: warning: macro "__IGNORE_llseek" is not used [-Wunused-macros] | :159: warning: macro "__IGNORE_madvise1" is not used [-Wunused-macros] (rest of the output redacted). When I run W=2, I want to only see the warnings of the file I am working on. So I find it useful to fix the W=2 warnings which show up when building other files to not get spammed by irrelevant issues and to simplify the triage. My initial message lacked the rationale. I will add additional explanations in the v2 of this patch. Yours sincerely, Vincent Mailhol