Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4443372ioa; Wed, 27 Apr 2022 04:07:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJpMOaUWlYoCVD647Xtb6yKer3CQSviv6+o9ftubhQkSeavIWo72N9rkNqGNQXzwkTwtr3 X-Received: by 2002:a17:90a:ca89:b0:1d9:7d1a:c337 with SMTP id y9-20020a17090aca8900b001d97d1ac337mr15851763pjt.88.1651057624473; Wed, 27 Apr 2022 04:07:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651057624; cv=none; d=google.com; s=arc-20160816; b=Jrqxt0rrikgXCEUajekKnto8GWOkY3wgpqdX2uK2rfYgG5HDFmVaCcqP1buGKV6FCW DjADR92rkMvVjYQWxll4jwtT9t1xWt+JWKebg3IWwh2q5oRE8fI2LBSR+86Nf13HhVVp sPpnu4iRxR62pzU1336sOTSSmXywQOMptePyDH1h+vxO7jgbOHxVwwPI/9mjag+uA+ZQ O9dJXOEVlBfrfejfgCSShk0Awfsbi1jzg2xIT99+ZhosUZ3lVM4yuub/mK01zC9oB7PX kpPRskWgdvSA2W2TpB8iV5Pz0qHcj0KWbZEgqKGkS1fsVEG2UHKj6/iY3LLpgwl6OgGq vVlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=nXNMymOND4leUHHSr+EnAGhKkOeHZsw949ukGcbHeBw=; b=llcWlW1tZoT3+8cenu0yG96YCQCMTiYaaN+hqOFmq9aFRjYQHKwWYOGvV+KiLEIrtJ Jp5ekdkAMU/9IsCGbzAUhsgCRG0UkswiPSb8IfZcfQ+figCUrOkj6IttiPcxLCCTLp9d wxgyumTKb5SIZJlIZokicJpdiqiGmqw13+CGl50wJL2Xnbplm4gEZwHbVS4dgiL5p8mt /aDMXZBTAyCM3iLk345v1+lp1UVbp/RWhdjfRzH3rNZ3pALwgQP7C+dp28SBUpksAYxy h0ShXwWbdhoq20j8TOk/ey0sVcF/4bg1LffgQqzmPINEmuwDV7YLRaUWwbpP9Wge96FT ohSQ== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j15-20020a63fc0f000000b003ab222d7586si1124353pgi.804.2022.04.27.04.07.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 04:07:04 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CF06A7C27C; Wed, 27 Apr 2022 03:01:22 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352684AbiDZQBD convert rfc822-to-8bit (ORCPT + 99 others); Tue, 26 Apr 2022 12:01:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347456AbiDZQAx (ORCPT ); Tue, 26 Apr 2022 12:00:53 -0400 Received: from mail-yb1-f181.google.com (mail-yb1-f181.google.com [209.85.219.181]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D029D387A0; Tue, 26 Apr 2022 08:57:45 -0700 (PDT) Received: by mail-yb1-f181.google.com with SMTP id v59so20855303ybi.12; Tue, 26 Apr 2022 08:57:45 -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:content-transfer-encoding; bh=5UMIziwn3GcEpZ2EHO6PLtQUiahYmzZMqohaqW8D0IA=; b=cs/MShqilxyWrHAOk/6Kz5tTAlV7K4w8g4BSaNkIR+mFAJwlBTBPrui9zFJPm85DMH XxuaVku0rADvOqS4Ou5DV9jxa85u0Ry86uqSiUAHQQSuJ0oRDWpECyvUnpf5Pz8yIugR Ev3LGtuax6+2Se2pFAhCu7FrwxnIp8vrJ9a9GtkLTF3dSDMnH27shm8/cCW2G84b2iBe vM1isLxuXFNch+YRc55La1/RnxRxzuGf2aFMn+iHl/UlaX75xSw9GJrEIXMzIfZgDcDc 18yNKm4LNtkWdwtBsgaYudXp29R8wKdQvyGcRghtjcWYoPv9Xd5rUT0LdqY16Vm85fPO 6x/A== X-Gm-Message-State: AOAM531oTbMdDZiC5k1jbZKhtbUOI7c+AV3ai36baVk1OkTRQBjq29kS /KE5p6wf55ZCWh6OsZ8gMRF9MK9eMDSlIfTYogo= X-Received: by 2002:a25:9f8a:0:b0:628:b9f3:6d2f with SMTP id u10-20020a259f8a000000b00628b9f36d2fmr21206839ybq.151.1650988664926; Tue, 26 Apr 2022 08:57:44 -0700 (PDT) MIME-Version: 1.0 References: <20220422151725.1336997-1-mailhol.vincent@wanadoo.fr> In-Reply-To: From: Vincent MAILHOL Date: Wed, 27 Apr 2022 00:57:33 +0900 Message-ID: Subject: Re: [PATCH] checksyscalls: ignore -Wunused-macros To: Arnd Bergmann Cc: Nathan Chancellor , Nick Desaulniers , Tom Rix , Linux Kernel Mailing List , clang-built-linux , Linux API Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE 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 Mon. 25 Apr 2022 at 17:49, Arnd Bergmann wrote: > On Mon, Apr 25, 2022 at 9:42 AM Vincent MAILHOL > wrote: > > On Mon. 25 Apr 2022 at 15:50, Arnd Bergmann wrote: > > > On Mon, Apr 25, 2022 at 8:17 AM Vincent MAILHOL> wrote: > > > > 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. > > > > > > I agree this is worth fixing if we want to make W=2 have any meaning at all. > > > > > > Your approach is probably fine. We could try to improve this by comparing > > > against the list from include/uapi/asm-generic/unistd.h instead of the i386 > > > list. I suppose that would involve rewriting the script into a simpler one, > > > but I'm not sure if anyone has an interest in working on this. > > > > If someone wants to do it, great, but I do not have the > > confidence to do it myself so I hope you will forgive me for > > taking a pass here. > > Sure, no worries. > > > Another alternative I considered was to only call > > checksyscalls.sh when doing a 'make all'. This way, we keep the > > warning but people won’t be spammed when building sub projects > > because the script would not be executed. > > Right, I like that as well, one less thing to be done for every > iterative make as well. The syscall table really doesn't change > all that much that this needs to be run by most developers. I send a patch in a new thread to only call the script once: https://lore.kernel.org/lkml/20220426155229.436681-1-mailhol.vincent@wanadoo.fr/T/#u If this new patch gets rejected, then I will go back to the -Wno-unused-macros approach. Yours sincerely, Vincent Mailhol