Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2840061iob; Sat, 30 Apr 2022 22:15:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfxgEqFWw05Hzoxc2CkfnEsyXa3tFevD0etFPyAfUmgUTiQ6rR8fcBIFE9sAEXFr5ZVPIJ X-Received: by 2002:a17:90b:3884:b0:1dc:53dc:2703 with SMTP id mu4-20020a17090b388400b001dc53dc2703mr436298pjb.104.1651382153723; Sat, 30 Apr 2022 22:15:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651382153; cv=none; d=google.com; s=arc-20160816; b=G/CrV9BFajUbqlnaCd1t2XmUwjxPso+Osy1MqBL4rW+vFcx4b37Rakv2wuMSq3Ftpg KHzDMBtLnrE27LLYXlzA//b+CORzD9yIDQWLen2wyMK0+UZf5LrZK3a1CrJ6CblSqNJw A4xj90Czep3xg0EGd9JxLZ0QcWnlkX3Xg0Zoj/6gy91kKY0Jmt+4ugXTatU+x73MFttf dQNhkv9JuxlxfrQ1xUrh6c+Q7blchgkIwZeK7sp2yQgzC5kD2aR3S6nAjbeAXPLYnGUp Al5/B6dAbQHYQh83Y/XKqDy+mp3vqjEA2lYOsbrCLEp62oeLL4Lekwa/3blvk5z9ob7P bFww== 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=2vpSHisjjsnf9NfbpwTfPLzqRn0BtksbaOiDQMdZIhY=; b=UQTk2zuIXh4n4qWyGb3EvhTDycfJ+j12q0raBfwBokApwhbMRXALmxBHtYaTRIkhzK XgZj9RxrlVFDKwAJ6XHmPbgUkp3Wi0yYiivGWB9MlhIGNns6GETP2hS3t7hphZg8dBBH mi3I6yV/SCbpjBNql2qvevD03nCxxQ5qmxWNBudSrf5+/c6jDDAGzQ22+eIiw8eey+ZC 2oHp8yF0eCnhW4rsotk+viq89fg9JTHYsAC08n8OHBQQlPHMnuVlW5FHUHI85Sy74+wI w9tFNh8X4oz0Hm7kEkKveinLxa5NqPETK8v3pcyF3x/frzZFTXRNUtkIAQj19spjGitz eo3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=vIZKmixv; 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 by13-20020a056a00400d00b0050dd86727b8si1520656pfb.349.2022.04.30.22.15.37; Sat, 30 Apr 2022 22:15:53 -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=vIZKmixv; 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 S1378535AbiD2RHJ (ORCPT + 99 others); Fri, 29 Apr 2022 13:07:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347686AbiD2RHI (ORCPT ); Fri, 29 Apr 2022 13:07:08 -0400 Received: from conssluserg-03.nifty.com (conssluserg-03.nifty.com [210.131.2.82]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BE49CE136 for ; Fri, 29 Apr 2022 10:03:49 -0700 (PDT) Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) (authenticated) by conssluserg-03.nifty.com with ESMTP id 23TH3RUn022680 for ; Sat, 30 Apr 2022 02:03:28 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com 23TH3RUn022680 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1651251808; bh=2vpSHisjjsnf9NfbpwTfPLzqRn0BtksbaOiDQMdZIhY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=vIZKmixvU3vr2L5AM0NRMs6Js+aaHTAUpjPmRsHYlD5bN0Z5suE+z4fPNRck9lLwY 9OhL5IeMww9wXpimeozNQUifnf7B/A48CioSTRkFjOEZx4x+GUggqd/6KHorFx04oO r8J4y+qlitJaoI+gNbzG9DHCAxHri4RjZv8EGE3uywnsygVFleDHHyDUP+qmD8a7bz peFt01GltVqHLatiy9e82YOwbvsL1ooF0mnioAfyxzXQCcI9juATsu0Wl4hfRxLmON 52rIlHEKuwQvNHp7HQC1mBOwHKCX1UfUM2iVHTlpL682CKfVJtbUPn92rSq3JehAlD plDZDEbrLlf5g== X-Nifty-SrcIP: [209.85.216.46] Received: by mail-pj1-f46.google.com with SMTP id fv2so7618955pjb.4 for ; Fri, 29 Apr 2022 10:03:28 -0700 (PDT) X-Gm-Message-State: AOAM531gWQiM2ImmhljskT9t/eG2GFvc9zQE1OY7cKIE2EKaKyjn2qn8 niiTpy6tKtA54PqAhrKl1sOLB+jdpnyuUTToVLM= X-Received: by 2002:a17:902:f54e:b0:15e:6c3f:5b5 with SMTP id h14-20020a170902f54e00b0015e6c3f05b5mr342925plf.99.1651251807401; Fri, 29 Apr 2022 10:03:27 -0700 (PDT) MIME-Version: 1.0 References: <20220422151725.1336997-1-mailhol.vincent@wanadoo.fr> In-Reply-To: <20220422151725.1336997-1-mailhol.vincent@wanadoo.fr> From: Masahiro Yamada Date: Sat, 30 Apr 2022 02:02:24 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] checksyscalls: ignore -Wunused-macros To: Vincent Mailhol Cc: Nathan Chancellor , Nick Desaulniers , Tom Rix , Linux Kernel Mailing List , clang-built-linux , Palmer Dabbelt , Arnd Bergmann 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 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 Sat, Apr 23, 2022 at 12:18 AM 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 > --- Applied to linux-kbuild (only the second hunk) Thanks. The current check is not nice, but this does not hurt. > scripts/checksyscalls.sh | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/scripts/checksyscalls.sh b/scripts/checksyscalls.sh > index 9dbab13329fa..cde15f22ec98 100755 > --- a/scripts/checksyscalls.sh > +++ b/scripts/checksyscalls.sh > @@ -255,6 +255,7 @@ cat << EOF > /* 64-bit ports never needed these, and new 32-bit ports can use statx */ > #define __IGNORE_fstat64 > #define __IGNORE_fstatat64 > + > EOF > } Noise. I dropped it. > > @@ -268,4 +269,4 @@ syscall_list() { > } > > (ignore_list && syscall_list $(dirname $0)/../arch/x86/entry/syscalls/syscall_32.tbl) | \ > -$* -Wno-error -E -x c - > /dev/null > +$* -Wno-error -Wno-unused-macros -E -x c - > /dev/null > -- > 2.35.1 > -- Best Regards Masahiro Yamada