From patchwork Tue Jun 23 07:09:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 217344 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=-10.1 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 CDE05C433E1 for ; Tue, 23 Jun 2020 07:10:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AECD2206A5 for ; Tue, 23 Jun 2020 07:10:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592896224; bh=GHrKaLhO/989idTWGwHGPWFsd6gCI+ixIZgFs90bt20=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=WSFHuS6sH8P+KfMEz+vjNQqQiUjlznYoFHk4+JubqJ30B4j0OoDwrDXwjibTU6mMT 6y3dIVeWRom5SKhvQcN3vD0xp9P5QzJpoJrYO0H19qKZbnCwZHhspZJ83XDBAjhsOa b+0lHc2xdpGY6tTCPmOX/xzpezfnArypPOgiBshI= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731806AbgFWHKX (ORCPT ); Tue, 23 Jun 2020 03:10:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:39776 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730852AbgFWHJP (ORCPT ); Tue, 23 Jun 2020 03:09:15 -0400 Received: from mail.kernel.org (unknown [95.90.213.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0D8A520738; Tue, 23 Jun 2020 07:09:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592896155; bh=GHrKaLhO/989idTWGwHGPWFsd6gCI+ixIZgFs90bt20=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=N6dcVhISMiUfMn3zgLqHv58wrFthF48mbQ85LYI5Nw/E88OfB8kGWJdKZ+FML2MLn yPSpI3sDwg1gCzD//srd1kUMra8cObH8m6W5SFzL1nCcUSzyau9fUY2rbwCbd6whPB /YfvoktSrQ5iZ06xtnby5QhV5LStIoWpInOi8Bsk= Received: from mchehab by mail.kernel.org with local (Exim 4.93) (envelope-from ) id 1jnd3R-003qiw-2R; Tue, 23 Jun 2020 09:09:13 +0200 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet , Russell King , netdev@vger.kernel.org Subject: [PATCH v2 04/15] scripts/kernel-doc: parse __ETHTOOL_DECLARE_LINK_MODE_MASK Date: Tue, 23 Jun 2020 09:09:00 +0200 Message-Id: X-Mailer: git-send-email 2.26.2 In-Reply-To: References: MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The __ETHTOOL_DECLARE_LINK_MODE_MASK macro is a variant of DECLARE_BITMAP(), used by phylink.h. As we have already a parser for DECLARE_BITMAP(), let's add one for this macro, in order to avoid such warnings: ./include/linux/phylink.h:54: warning: Function parameter or member '__ETHTOOL_DECLARE_LINK_MODE_MASK(advertising' not described in 'phylink_link_state' ./include/linux/phylink.h:54: warning: Function parameter or member '__ETHTOOL_DECLARE_LINK_MODE_MASK(lp_advertising' not described in 'phylink_link_state' Signed-off-by: Mauro Carvalho Chehab --- scripts/kernel-doc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/kernel-doc b/scripts/kernel-doc index b4c963f8364e..43b8312363a5 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -1083,7 +1083,9 @@ sub dump_struct($$) { $members =~ s/\s*__packed\s*/ /gos; $members =~ s/\s*CRYPTO_MINALIGN_ATTR/ /gos; $members =~ s/\s*____cacheline_aligned_in_smp/ /gos; + # replace DECLARE_BITMAP + $members =~ s/__ETHTOOL_DECLARE_LINK_MODE_MASK\s*\(([^\)]+)\)/DECLARE_BITMAP($1, __ETHTOOL_LINK_MODE_MASK_NBITS)/gos; $members =~ s/DECLARE_BITMAP\s*\(([^,)]+),\s*([^,)]+)\)/unsigned long $1\[BITS_TO_LONGS($2)\]/gos; # replace DECLARE_HASHTABLE $members =~ s/DECLARE_HASHTABLE\s*\(([^,)]+),\s*([^,)]+)\)/unsigned long $1\[1 << (($2) - 1)\]/gos;