Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp708387pxb; Fri, 29 Oct 2021 19:13:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQZWSrhbfkk/EZ9bIEsEpsMmJLtezn0jS4YW9eLdhkeUrOyKIsJcauR26L6H5AQUj9R8Av X-Received: by 2002:a05:6e02:1a2d:: with SMTP id g13mr11028953ile.153.1635559998325; Fri, 29 Oct 2021 19:13:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635559998; cv=none; d=google.com; s=arc-20160816; b=umb0/B8DOx2iZXEi/+5Unot7DDBylujQ5jqDLK+vfhB/LELJm6U2Sd2Q6ELasHDUsd mdzHIbwTYydT1VgcdUiQkJrvT6e5ZzOXU+1vYO20g8ay37CFvYxlAYRs8KkBOy1bgfC1 WKggdK7TtGnI5TWPfpL2fr+XGbBgPK22kg02BC6lzooQIONiL5Go5rUR45uadJNOPYow x6nuUpCl4Ok8pO9ae6j5fnGzU/lIsDMidtMaTP6f6MRHO5o0bajoxZTNf7VEEJggcrZP PfP4VO1yaUJPCkzfdsj1+xMUh04TABki9aEqfuBkjkhzs87EkgYZqdy74xzaZQ/J4EDI 3PPA== 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:dkim-signature; bh=nrEW7kuECysc7G8mItdbNyq/4urjerjQyoisk20/bT0=; b=C+NAJzWSv+SbXGbXB17tsFNuvV7/mzj8y+huikQ+KnKEpVDtWhuppooFYF+MPUVrm8 yRdJqMp4ng5hynjnMtBySRl0bEj5C3pTjr7m8kYnwOeuONy8/tuBOW3RBsxScu/TkRxY bQxtoI5LRAEmIB3FM6kOj+LRQb7OqAra/DvtjWWAeOGaZ4hmS5RQskri1NChLrBFPkFh hM0xPI8KHJfx92PNOTgTo0vBhbD7v/j5kzkQYbZmsJsa2pNsHr1riw2+pn+JVvc4zM1l BgzvSsJ36p/cqtjJcwYTMQ6bRKyuYsQAxCK9zQX7pm8xmn2VdkRDjQfmYz+pNoyoyiv2 WK8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=iADe1WDR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u18si12766892jat.31.2021.10.29.19.12.52; Fri, 29 Oct 2021 19:13:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=iADe1WDR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231520AbhJ3CKq (ORCPT + 99 others); Fri, 29 Oct 2021 22:10:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229784AbhJ3CKq (ORCPT ); Fri, 29 Oct 2021 22:10:46 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC6B3C061570; Fri, 29 Oct 2021 19:08:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=nrEW7kuECysc7G8mItdbNyq/4urjerjQyoisk20/bT0=; b=iADe1WDRPoJUq7ZNlMhrY4Df8F wG+rrC1nGgufZ8KKfDCajpkSE4Kab+a4DrU7bQwx3ijereQSov2/thKJ9zojMLhxQM77Wz3YglBH7 7ooO6apQal0ymUdgHpXluIV0qllEwOI01KQGjegJ5pdYyIJH7gjnEMf8L39bjj1eqStBI3z9ZmPwZ Zy8DQ6HjoNZni+tWdCtKBGvoiVxt98NqtyKdTr26ha87hGyUXEGH1YsksrcN48A/8ptkm/pWjwF86 B4Fwb4L3Yf8Mkw+R32SCpqrGXhACF3cCGEsU+crL1x5qwl9aEdaQXOwcwzLeujM64N/+AGQeQJ34K NYNSVKew==; Received: from [2601:1c0:6280:3f0::aa0b] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mgdn4-00CdTw-Uq; Sat, 30 Oct 2021 02:08:15 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Stephen Rothwell , Russell King , linux-doc@vger.kernel.org Subject: [PATCH] kernel-doc: support DECLARE_PHY_INTERFACE_MASK() Date: Fri, 29 Oct 2021 19:08:13 -0700 Message-Id: <20211030020813.32654-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Support the DECLARE_PHY_INTERFACE_MASK() macro that is used to declare a bitmap by converting the macro to DECLARE_BITMAP(), as has been done for the __ETHTOOL_DECLARE_LINK_MODE_MASK() macro. This fixes a 'make htmldocs' warning: include/linux/phylink.h:82: warning: Function parameter or member 'DECLARE_PHY_INTERFACE_MASK(supported_interfaces' not described in 'phylink_config' that was introduced by commit 38c310eb46f5 ("net: phylink: add MAC phy_interface_t bitmap") Signed-off-by: Randy Dunlap Reported-by: Stephen Rothwell Cc: Russell King (Oracle) Cc: linux-doc@vger.kernel.org To: Jonathan Corbet --- scripts/kernel-doc | 1 + 1 file changed, 1 insertion(+) --- linux-next-20211029.orig/scripts/kernel-doc +++ linux-next-20211029/scripts/kernel-doc @@ -1256,6 +1256,7 @@ sub dump_struct($$) { my $args = qr{([^,)]+)}; # replace DECLARE_BITMAP $members =~ s/__ETHTOOL_DECLARE_LINK_MODE_MASK\s*\(([^\)]+)\)/DECLARE_BITMAP($1, __ETHTOOL_LINK_MODE_MASK_NBITS)/gos; + $members =~ s/DECLARE_PHY_INTERFACE_MASK\s*\(([^\)]+)\)/DECLARE_BITMAP($1, PHY_INTERFACE_MODE_MAX)/gos; $members =~ s/DECLARE_BITMAP\s*\($args,\s*$args\)/unsigned long $1\[BITS_TO_LONGS($2)\]/gos; # replace DECLARE_HASHTABLE $members =~ s/DECLARE_HASHTABLE\s*\($args,\s*$args\)/unsigned long $1\[1 << (($2) - 1)\]/gos;