Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp948114pxb; Fri, 22 Apr 2022 15:05:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxYcC7s7i6gm1vQeYuwFACYibNC3t6xIuv0Gq6fN4wgtLsCY6yoUhx6vr3MOCCqrrA50Ct X-Received: by 2002:a63:d10d:0:b0:39c:d17a:7b08 with SMTP id k13-20020a63d10d000000b0039cd17a7b08mr5562023pgg.180.1650665144664; Fri, 22 Apr 2022 15:05:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650665144; cv=none; d=google.com; s=arc-20160816; b=JLZ4SdDZ22pfierGS5HZx8xoBnLlgYbA8X9ABBnQog2Gmt/rgMS902FzdAXUoMBcFi 2l877XHH6Rg61+NmoOAw2HemdXx/IHmSauGXBUsxnCHOzF3RhhGh70Ue1IzgTsL0jFeI qr6ajnEWx80JzHMfbX6pJFuqMzvO15M0/moVoXuvZsHSZ0t+2rK9HL6XGd3Mk5VQRrS6 8EdAZnI+U7hB3K9kafa9UfOMfdkMg3I3NZpKguJeZt69CAdKlsZZyVIBDA1bHtgicfW/ TFRO/wP7NjlD2hdziB60Jm3DpgKBfmfJcJQFxkoNE9A0D1XyhnDEmYf1oWe9AQc9TPoP 8Jtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=ugUPrPCeG+4KNh4o4UU3L2XGTAsONRbVSCUPTlkzE7s=; b=u/2ySzzCxs8x6vjN9RyQuQY4VLfcbJO8t92FmHp0+xIvg0PRhaajSzfu5ATdx2zQ6t lJwOPUHYmXqA+b5S/nXVPpz+uHEs36nw+ceQth6xZRgZU945gMwclqJSVyG/ZN2+dmGT 6Bs/kcFBbFFDSbTaMAQKqEmrqhxY0EE9We2ARZNrmTwl/0LxrUzk0sPB5vXkIxEtvCpg QPL11YsC1Q25mEFHPiRkc0VOmf9pkJ/Gd/ueWMgqf7ihRLMNh9Uecq+IB+YbOTj1XXCN ceMfARBnnSmylmBoLhFpgT3jlsCd+3YJ2AbgdIYrmjemxvh8zO5rQymh+U3OtIO810PJ 0RLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=a9+lKlXL; 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 m67-20020a632646000000b003aa52e8ec5esi10154394pgm.236.2022.04.22.15.05.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 15:05:44 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=a9+lKlXL; 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 CE65E384D94; Fri, 22 Apr 2022 13:12:30 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1449379AbiDVPVA (ORCPT + 99 others); Fri, 22 Apr 2022 11:21:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1449385AbiDVPUx (ORCPT ); Fri, 22 Apr 2022 11:20:53 -0400 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EE955DA4F for ; Fri, 22 Apr 2022 08:17:59 -0700 (PDT) Received: by mail-pl1-x635.google.com with SMTP id s17so11498971plg.9 for ; Fri, 22 Apr 2022 08:17:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ugUPrPCeG+4KNh4o4UU3L2XGTAsONRbVSCUPTlkzE7s=; b=a9+lKlXL3U13tWvDJ6tIe5Q55LL14Jf6zP882Dk0M4Bn8LCTX5wKMesGdJR9Kwkv9p Fr7H1cRJiofWgoj74aJUCUiCnHt5riiH/hUtlhavaUdyhjP8DgQ/8JP7VRhIbFuvvqEx hQVg01WfwiThjfFqmOqJkrXQfGHwEySV3DgWt8gu93HrwIDOgoK4zzseRN50ZoULGFw7 mJkRVZU9dYxiZPNh46lxZM9MryhlTMGsjBYLPPUXiD6zw4oBlbmIkLlKQyi+FfLRBikq igpMyXwdJ6Qkk5MSDpbaiaYxnqgZwgIhIv3medhzTBWfKRB59oVa33b1Sa/AndcLvZEu 3HeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=ugUPrPCeG+4KNh4o4UU3L2XGTAsONRbVSCUPTlkzE7s=; b=c53HnsfhlRej82vFWR5M4Dciz2kkAps2DZuoWJZdkMO6x9YfonC0ke/cRvEHBxyfwb ZECxLQjXkIRgEOm0/0pAim6JnRNs6HjIbo3RdFINbGHIc0y4jNWfyTTEdlHqdA8NsMO4 ixPkP8lghKvLOFR7xpEy/ssZLFxP+BJjQSL8GTTxpdMIP1TLa7aoqBuixY5lZBfLvvBz E5n8bnTzrxxSwWIScstcFfpm0h04dqTycD6uZuyDgw3ocqp1wh2Fl2N0KLQHZj8PqVNn jn/UVii2BjVJXzbSqqVzr9r9nB+yLVj8kvncw+DPBhlSGW0GNOP15DGlzn2+uBHVO85X Dl2Q== X-Gm-Message-State: AOAM531JW8VcywuYmX379lNsDCapzRJVBXZ3MLoTfjP1h3cjfrzOWyTb YpZ7F1NUBPagEfKR8rtafEM= X-Received: by 2002:a17:902:f64e:b0:14d:20db:8478 with SMTP id m14-20020a170902f64e00b0014d20db8478mr5245444plg.158.1650640678527; Fri, 22 Apr 2022 08:17:58 -0700 (PDT) Received: from localhost.localdomain (124x33x176x97.ap124.ftth.ucom.ne.jp. [124.33.176.97]) by smtp.gmail.com with ESMTPSA id o11-20020a62cd0b000000b0050ce8f98136sm2980459pfg.149.2022.04.22.08.17.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 08:17:58 -0700 (PDT) Sender: Vincent Mailhol From: Vincent Mailhol To: Nathan Chancellor , Nick Desaulniers , Tom Rix Cc: linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Palmer Dabbelt , Arnd Bergmann , Vincent Mailhol Subject: [PATCH] checksyscalls: ignore -Wunused-macros Date: Sat, 23 Apr 2022 00:17:25 +0900 Message-Id: <20220422151725.1336997-1-mailhol.vincent@wanadoo.fr> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 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 --- 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 } @@ -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