Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp587736pxb; Sat, 18 Sep 2021 11:21:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVg0hc8pXtELWrpErYfk3Qrjdl7O4vljNd6M2O3q7Tld2EOX68pvR+0t0pZpLWaC6xqBu3 X-Received: by 2002:a05:6e02:1a8c:: with SMTP id k12mr12636210ilv.312.1631989294509; Sat, 18 Sep 2021 11:21:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631989294; cv=none; d=google.com; s=arc-20160816; b=yb3oX65JPKF2mulbUUo0Q/2dDvSF5coZY+yHToy9ZeMavBk76ycOuBlHA6oBnt8r74 Ctf3cGJJSe74pd6vZnWcxR/lvMaqdYxpyTnREZjVTyojMm4UT3T1vPOewKMuWlwR72+E +d1CTzgN5BxjEsN4VQg9FoNOLcwv89zupJHBELeIFDj8V8R8ssG4z6d3AUXMFZgNU1ET Idzn/NgEoaHxcKO+yj1drsC6fRcEF4ZUIsPHgqrtNahBhsvt3vGrh/2nSVZbmzngOOxM IbThcUid81EDK1Hho/Sdz1BJL45HWL9r2Up2NwawVRczpMS/uCPdOd0FD9QS75YIjNlf b1ZA== 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=cMCd3n8zlNC/IOfQsoM08ZFEvMq33CVA+SirrYmvKNs=; b=wh7ewsmd9A6gcshe/uhG6wbJiyn5/p1YHzUd1FeyUOFcd0th0y2aBjnXWj7dwxgKAA DtdP9D1qJrzvCbMbOa6P2T/oTAGGr8NmxVtkjMwK7hauGuxztVbMMpubqNgtrGDIQddA YPNENOUQ68/LpKqiaN2jehu5e8bgFpDR1fqrnpSvjVmCnzM8oIdEmYmrPENDLTOd+LCS FXNdVEbDnuuFhGcW0wG8ec+YSL5ALYLfsU/HGRPnmxyz3AG0HkN4C4JHRI3B67FrK0eR VzSAxYbVLGdzdLiBHlao8QITaCCU3d6mf4UjnFRIm7Mm3GY+sDE1KV8VnD44J5KzouwU GL+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VV3BdIXV; 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 a9si8925443ila.32.2021.09.18.11.21.19; Sat, 18 Sep 2021 11:21:34 -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=VV3BdIXV; 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 S243977AbhIRJxq (ORCPT + 99 others); Sat, 18 Sep 2021 05:53:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:54602 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232402AbhIRJxp (ORCPT ); Sat, 18 Sep 2021 05:53:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 787BF60FBF; Sat, 18 Sep 2021 09:52:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631958742; bh=/gBq9WaVAB2ddDxlG8S7n9tm8RzG3UvJT7jEMSKGqFs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VV3BdIXVPdpktqlRfnnE5lFhtSm8TDtOkNJ6bYmkWu7SnpsUuMY6G2dQUS2SpC8dw pFYv13WMoxNLPz16NOT8BPQMv8ZSDSypP+4I7dw9AcxfN8Est2167ZF5eoDyTwhjK2 iiRKwfFe8RBLo2UMlNGVV4zmYsLqt/rKZedyKCeeGxo0/rqk9BlMzSt+0UZQEMUc5F U6VymCy/QsFTAwxy3GBe6tmK5H1J+G6hVjwrBzzhXg5WzxcWSKo2QC9s/d4wdQLy/e FY8ifYv5h9Ghf3OYPzXC5M6DxeC7StNC7IJW4SNzl3iHLoIRVi1G7Qa+Oe1+9uUNse Vq9bNm5tYEJ8Q== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mRX1A-003b0q-HO; Sat, 18 Sep 2021 11:52:20 +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 v3 1/7] scripts: get_abi.pl: Better handle multiple What parameters Date: Sat, 18 Sep 2021 11:52:11 +0200 Message-Id: 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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/get_abi.pl b/scripts/get_abi.pl index d7aa82094296..cfc107df59f4 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) { -- 2.31.1