Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp577155pxb; Thu, 23 Sep 2021 06:32:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySCwY8ljNci3B8Ks+uNQAByKAM7ZHOJ8S/RUNjyD1DYVJSlV4dLvlDkFKuu5sPG/En4jVU X-Received: by 2002:a17:906:eca7:: with SMTP id qh7mr5085133ejb.45.1632403969478; Thu, 23 Sep 2021 06:32:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632403969; cv=none; d=google.com; s=arc-20160816; b=jdjTg1HWWLyPMv3K5z8HouhtntjGpnS8cqy25JpXA0fF6zRw8S3DjYLPN+4F33deMu fxTl41EwUZ+AZglpchpxNimL9sOMHk/0akNKz7dNH3sKsPSiNpz/rXiFnL8kvGc4SU8G 9f68kOQMIStuqvODz5PsMhqMowfl8+/Qn8EEDDU/Xsxay/RjFTRYEJosZjNf3TYcvduL 2gDurvfsONMPAzSNPPwo1MH3+qasaGSk1XbVuQH8HTSYnPFuy1eqel6A1/UOBDmdkMv0 eR37OAGD1STl5S8SsGZmV0JHf0nFEUyTDE6vlefXTGF3PpIMpEs16Dhpe/C5QreOIaAb MnvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VR3iquR8fCEJELmuSjX2VuA48qP048+Kg4Izw+GRvjo=; b=lBfNJKxRJBhz/vm44V+L//ocDnR+KP6ZxGVZA2rzTjR+GlrU/5NsFn9ZUeEflTBL5b FBrxLAOspenkDc0tC4BCoT4UzcGjdvKwS4lGjHRwnn3sK2P4DUhxmzHiStjLiIkvq+2r WVWcJ4EGRMZleNSd5uOc59oKNpAi2LjAj64GmrbptOf5B4PZjyy82IrTUG0kyCbIhLfY zqoXiBlkRX709QtOmyxOl0604CrlGwfWvshwXjhQIRNOVxKxJm/78bR6vNd8zTUDLWwV jdDEH7oEqvEALAfhoKVaOa7QLl0MCxhn6uUNgY3++DdQGC8BJvgcG0T9h4lxnxwXAp1P EwFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="lvb4/n7O"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d16si6107925edz.500.2021.09.23.06.32.25; Thu, 23 Sep 2021 06:32:49 -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=@kernel.org header.s=k20201202 header.b="lvb4/n7O"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241452AbhIWNcB (ORCPT + 99 others); Thu, 23 Sep 2021 09:32:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:44024 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232333AbhIWNbq (ORCPT ); Thu, 23 Sep 2021 09:31:46 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B5DC66124F; Thu, 23 Sep 2021 13:30:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632403814; bh=9rS4pUPSq3m5Xex2MyaSw0vSn3PD/pRn6qltbTyLvcU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lvb4/n7OO/x+Mf+Kzkbxn1vMfiRxRMpkMqJRIpdA22GNrY1z7lwoymqxTSCoCVxyS iw4dL3O9JmiF5bwFzr7DGrOzi8MgbP9S+Usq0kAlI22OBYBpLKEr7JU0psRwIJhdSP X1Wj3LbfW0OyqYP5Vjb3tqkZwUIUy6Xl5ggwYTFTHYnORcbzANb+NxS2q/KOJVfSVj cU3eLgvEnBPXb2jA2/aKVcq7JzCZ4zQgf0G6ELzsk2TqcUmmqOD3LupSjif8AGcxv3 GhGhA4Lgq1JffVUp1AgZKx79kzjrPUsUVNhNDRHDEWSoItCQCzCjVH56JChFJShzoa Z8yJGZb4ZCcZg== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mTOnk-000ndn-NO; Thu, 23 Sep 2021 15:30:12 +0200 From: Mauro Carvalho Chehab To: Linux Doc Mailing List , Greg Kroah-Hartman Cc: Mauro Carvalho Chehab , "Jonathan Corbet" , linux-kernel@vger.kernel.org Subject: [PATCH 01/13] scripts: get_abi.pl: Better handle multiple What parameters Date: Thu, 23 Sep 2021 15:29:59 +0200 Message-Id: <9907e61130f9839a165d039ed434f28ec80cd031.1632402570.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Using a comma here is problematic, as some What: expressions may already contain a comma. So, use \xac character instead. Signed-off-by: Mauro Carvalho Chehab --- scripts/get_abi.pl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/get_abi.pl b/scripts/get_abi.pl index d7aa82094296..48077feea89c 100755 --- a/scripts/get_abi.pl +++ b/scripts/get_abi.pl @@ -129,12 +129,12 @@ sub parse_abi { push @{$symbols{$content}->{file}}, " $file:" . ($ln - 1); if ($tag =~ m/what/) { - $what .= ", " . $content; + $what .= "\xac" . $content; } else { if ($what) { parse_error($file, $ln, "What '$what' doesn't have a description", "") if (!$data{$what}->{description}); - foreach my $w(split /, /, $what) { + foreach my $w(split /\xac/, $what) { $symbols{$w}->{xref} = $what; }; } @@ -239,7 +239,7 @@ sub parse_abi { if ($what) { parse_error($file, $ln, "What '$what' doesn't have a description", "") if (!$data{$what}->{description}); - foreach my $w(split /, /,$what) { + foreach my $w(split /\xac/,$what) { $symbols{$w}->{xref} = $what; }; } @@ -328,7 +328,7 @@ sub output_rest { printf ".. _%s:\n\n", $data{$what}->{label}; - my @names = split /, /,$w; + my @names = split /\xac/,$w; my $len = 0; foreach my $name (@names) { @@ -492,6 +492,7 @@ sub search_symbols { my $file = $data{$what}->{filepath}; + $what =~ s/\xac/, /g; my $bar = $what; $bar =~ s/./-/g; -- 2.31.1