From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EF35AC433ED for ; Sun, 4 Apr 2021 20:05:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BAE0361381 for ; Sun, 4 Apr 2021 20:05:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231435AbhDDUFf convert rfc822-to-8bit (ORCPT ); Sun, 4 Apr 2021 16:05:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231514AbhDDUF2 (ORCPT ); Sun, 4 Apr 2021 16:05:28 -0400 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [IPv6:2a0a:51c0:0:12e:520::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68B9BC061788 for ; Sun, 4 Apr 2021 13:05:23 -0700 (PDT) Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1lT8zl-0006oe-F2; Sun, 04 Apr 2021 22:05:17 +0200 Date: Sun, 4 Apr 2021 22:05:17 +0200 From: Florian Westphal To: "Alejandro Colomar (man-pages)" Cc: Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , Harald Welte , netfilter-devel@vger.kernel.org, coreteam@netfilter.org Subject: Re: Unused macro Message-ID: <20210404200517.GN13699@breakpoint.cc> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org Alejandro Colomar (man-pages) wrote: > I was updating the includes on some manual pages, when I found that a > macro used ARRAY_SIZE() without including a header that defines it. > That surprised me, because it would more than likely result in a compile > error, but of course, the macro wasn't being used: > > .../linux$ grep -rn SCTP_CHUNKMAP_IS_ALL_SET > include/uapi/linux/netfilter/xt_sctp.h:80:#define > SCTP_CHUNKMAP_IS_ALL_SET(chunkmap) \ > .../linux$ This is an UAPI header, this macro is used by userspace software, e.g. iptables.