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=-9.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham 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 64C78C282DC for ; Fri, 5 Apr 2019 21:45:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3AF0C20663 for ; Fri, 5 Apr 2019 21:45:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726672AbfDEVpN (ORCPT ); Fri, 5 Apr 2019 17:45:13 -0400 Received: from mga11.intel.com ([192.55.52.93]:51871 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725973AbfDEVo4 (ORCPT ); Fri, 5 Apr 2019 17:44:56 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Apr 2019 14:44:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,313,1549958400"; d="scan'208";a="140486248" Received: from sjchrist-coffee.jf.intel.com ([10.54.74.181]) by fmsmga007.fm.intel.com with ESMTP; 05 Apr 2019 14:44:54 -0700 From: Sean Christopherson To: Jonathan Corbet Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] kernel-doc: Rename -nofunction option to -nosymbol Date: Fri, 5 Apr 2019 14:44:51 -0700 Message-Id: <20190405214453.18768-3-sean.j.christopherson@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190405214453.18768-1-sean.j.christopherson@intel.com> References: <20190405214453.18768-1-sean.j.christopherson@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ...now that it applies to all symbol types. Do the rename before Sphinx starts using the existing option. Signed-off-by: Sean Christopherson --- scripts/kernel-doc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/kernel-doc b/scripts/kernel-doc index 1b40b10794da..9190110b9802 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -66,8 +66,8 @@ Output selection (mutually exclusive): -function NAME Only output documentation for the given function(s) or DOC: section title(s). All other functions and DOC: sections are ignored. May be specified multiple times. - -nofunction NAME Do NOT output documentation for the given function(s); - only output documentation for the other functions and + -nosymbol NAME Do NOT output documentation for the given symbol(s); + only output documentation for the other symbols and DOC: sections. May be specified multiple times. Output selection modifiers: @@ -409,11 +409,11 @@ while ($ARGV[0] =~ m/^--?(.*)/) { $output_mode = "none"; } elsif ($cmd eq "module") { # not needed for XML, inherits from calling document $modulename = shift @ARGV; - } elsif ($cmd eq "function") { # to only output specific functions + } elsif ($cmd eq "function") { # to only output specific function $output_selection = OUTPUT_INCLUDE; $function = shift @ARGV; $function_table{$function} = 1; - } elsif ($cmd eq "nofunction") { # output all except specific functions + } elsif ($cmd eq "nosymbol") { # output all except specific symbols $output_selection = OUTPUT_EXCLUDE; $function = shift @ARGV; $function_table{$function} = 1; -- 2.21.0