Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp742037pxb; Tue, 14 Sep 2021 07:49:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx75LA4FeMVY9h+FM0xxN6Xy1huUCk1wbWm7IMcBAOFmTMU/cxtx6UopW6oTBu3mE/4jtEo X-Received: by 2002:a2e:b8cf:: with SMTP id s15mr2534408ljp.141.1631630941912; Tue, 14 Sep 2021 07:49:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631630941; cv=none; d=google.com; s=arc-20160816; b=AJY2kttrN+mTnWKsYbwvDahZjdSZMwRdCoE7ykJg+PTFEMW/Xv3z/0CkzjxWPC3dfw /2vSy8voUQGDkjk0L9DcJPy4oYIt2f8nmxXlhuWEOGLX8rRqPlHm8MZFQzOJIcuvd1hl gKvAi7jCxq4ns6lTWrsyJThFvguOba3p8Zt4PjkxoSl2gKhF4BQCnFIZB1N1ky7fDLQa PUlqvUsTCae+tQNkz8vY9Tck6mqGmUbczwj0yvUv7OoE94IV/wpNewx7l3bp3TAGHOMr dkT4LJJn2Emy45bvAom4pBh1m0ZjAvLIvuzOfe3G/Gnt5oqqwWxGnQQxrlzlGcLnggZu 2d5g== 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=vcsBhkr+1opgVJENwpKnvLTtIW0L6b04MynwGAUrD8A=; b=NS/dINJ6GQDQrzYijy/YU3aeQrWyV5QuHQWVvw9/i6e1d8U8bAb5lJyWfU6mo2zwVH LHnCeo1wAC7Rx4/zodB16hDWju/wmDmjQMpRpq9C0OaZsSGXNlYtGjSKTASkeeOiGF5j 9hQPyW5N8efFpzSNFynLgvEtt/iJVQpd0ulyq+bAkCJVc/8fDGdJlaKMoPlH6NMXm/zq iT+cWxR34CGMcCUOAr9APnqXDwGrJd6YuJwsr7YOU0i4at6YIbO6X49Tkbez5YMzdqbp cUldr0c9ASWSG7j2nXLMK4ptqCLpaSISg6D9tIJrg0XZ/l3keo7DLn+ZBjrlj8K6sDcX pVbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Txcuju1f; 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 f9si14584012ljg.51.2021.09.14.07.48.34; Tue, 14 Sep 2021 07:49:01 -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=Txcuju1f; 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 S234208AbhINOrg (ORCPT + 99 others); Tue, 14 Sep 2021 10:47:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:40254 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234727AbhINOrV (ORCPT ); Tue, 14 Sep 2021 10:47:21 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 472A66113B; Tue, 14 Sep 2021 14:46:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631630763; bh=lI1w9x4hOGt7ahglETEdAwjjs375/M+trlKJhjqNggw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Txcuju1ffTI3KgmwFFEb7P0D/rgQFRYnn+0901J6YR7W9IEL/9P31SL/hq4OsbxhW nwTIaY8Qtx148csOAiBXmWufxs0eti9nbv+7dfhXDoM8En+4spNhXD6Gdt2aIF6ChL KUh5MomTzJQEYtp8V8eLKJCyP2Q+1OvnRoXWNcuzRtCO7Vh1oE1OrGWyuQkiTEL/Vd qC1Sx1OIs3EMHDwB1nbjrEEvm4Ec5nBAo3o2p2dJaqaubMrT4B4FAPYW0UweSFoPXB D/chSZ8H9+dpkVhEPoUFIuQnjzQ3l4QxaEOhFO0Zzkp8AyS+UmKcYkgdIhRS4jWewt FexjUvBVwTPTw== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mQ9hB-000Kz6-AV; Tue, 14 Sep 2021 16:46:01 +0200 From: Mauro Carvalho Chehab To: Greg Kroah-Hartman , Linux Doc Mailing List Cc: Mauro Carvalho Chehab , "Jonathan Corbet" , linux-kernel@vger.kernel.org Subject: [PATCH v2 1/5] scripts: get_abi.pl: Better handle multiple What parameters Date: Tue, 14 Sep 2021 16:45:54 +0200 Message-Id: <482520587937d412d9114b0c0a35fdc6ddefd444.1631629987.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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/get_abi.pl b/scripts/get_abi.pl index d7aa82094296..3b25d0a855ad 100755 --- a/scripts/get_abi.pl +++ b/scripts/get_abi.pl @@ -129,7 +129,7 @@ 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}); @@ -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