Received: by 2002:a05:6a10:8a4f:0:0:0:0 with SMTP id dn15csp2600143pxb; Mon, 31 Jan 2022 03:40:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJx/05Bk+iHLMK//pRvHo8daeHftI8S6Tuc/miGK3FTCeb+L6lq4wdI+58aCx1E081T+XrcB X-Received: by 2002:a17:90b:3886:: with SMTP id mu6mr16699681pjb.231.1643629206449; Mon, 31 Jan 2022 03:40:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643629206; cv=none; d=google.com; s=arc-20160816; b=EE0OKjDeK4OjbcxHSatS3vHJTFsP9NLAL42XsMKLzExkcWTjkVY0iqLx4THzOvGTFN jRfMdC5eQC/nS6QMt6vKxHw7SUcPRkuJAS2RN49fL30PKNjGlNE4aqw+INSGnVO69eZt U9cWHROBZIJN8srgNHWmUAvtK1ZMyBUamP1dIuqm3QyRt02FL8VdRSxs2EO/F651lqUE 42LS0eI8RsxCh0pnC1FELTsLF9O7/8thBZ2b9RfI4Op9SMM8kfo77h1KwW2W/+JYja6P U3PxmA4yZwspVOWu6BHyOCqDx3yVITiqrFvzyPuSA7dbuluQi0ajQPju16bzDQnNzC88 Twbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=fjII+HuIyudKEKoqH8nW8MNlduxYa/+YLY5ze4+N2uA=; b=YRgB93BLllfOVppmUWXnwc2qXlkgOCTbS167ttUUAF6eTL0uaV9RCp9FxVibs7fl2g PmRsKIrtDdAEd4MCvfXpWRpxBy9qPM0G+DBJ3XsMArzgRvoyyj9rfp3AN59qPygG+L1D +pESloGVTd2I4X6AxPLf9b8e95A1qAEUwe/15jRCR32ELXdyg97tmk457lJqfEDGq9lH /rVGXSqLpDc1zmR+wJJauGi1V0MAet1ybp8yZZZBh1Z+MnYj6XLE43QA1x10Q0lxH6OU dgXBr/HQ4xfAROsqobvyhUkL8vXxTPsu9rukPZbgvmUeZUyrzbSuiUooR1130gOubzHw wOqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B1NubrGu; 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 x27si3679606pgu.844.2022.01.31.03.39.54; Mon, 31 Jan 2022 03:40:06 -0800 (PST) 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=B1NubrGu; 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 S241084AbiA1VBF (ORCPT + 99 others); Fri, 28 Jan 2022 16:01:05 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:42380 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231409AbiA1VBE (ORCPT ); Fri, 28 Jan 2022 16:01:04 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D3CEC61DDE; Fri, 28 Jan 2022 21:01:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E895DC340E7; Fri, 28 Jan 2022 21:01:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643403663; bh=OO220eVKGYUZ5Gb3hkrywvL1gvt+thYAdPFvpS3OVo4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=B1NubrGueLPC7okx9X23rg+Q9HR72JeXOrlPsgCmcM+80zk3iwhIuyEcbCeJVmDXr tPwQYOuN+q7+IQSOhFi7GRvkfamIrh6lyDCZXTdX3Sx4gB1NzV2xM7k2QYxKZZFKsR /nKt4lLsvKgxmSKeqKAAm/KRw+7SaxCHFNJm2OLdyhiJ3fMxdFY90nF5rsbOEc2QP3 DWxD3PYUTUlQq/cIYf7PYUitSaUnyeCSjTDODM7Ng33IW1p42VOtcRQB5OIu/xLRjh tUYGMt5t/yW0VYvHAN6t1UqJu6NXbexRGc+qJRxGrayE2Z3rMakJ0vE6WpE2GKKfcH aayEEljVunXUQ== Date: Fri, 28 Jan 2022 22:00:59 +0100 From: Mauro Carvalho Chehab To: Jonathan =?UTF-8?B?TmV1c2Now6RmZXI=?= Cc: linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Greg Kroah-Hartman , Jonathan Corbet Subject: Re: [PATCH] scripts/get_abi.pl: Ignore hidden files Message-ID: <20220128220007.085021a8@coco.lan> In-Reply-To: References: <20220128201354.1928412-1-j.neuschaefer@gmx.net> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.31; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Fri, 28 Jan 2022 21:45:52 +0100 Jonathan Neusch=C3=A4fer escreveu: > On Fri, Jan 28, 2022 at 09:13:53PM +0100, Jonathan Neusch=C3=A4fer wrote: > > get_abi.pl currently collects every file in Documentation/ABI. This > > causes a UnicodeDecodeError in Documentation/sphinx/kernel_api.py, =20 >=20 > Ooops, this should be kernel_abi.py. >=20 After addressing your comment about the kernel_abi.py file, feel free to add: Reviewed-by: Mauro Carvalho Chehab >=20 > > when it finds my Vim swap files (.foo.swp) in the directory. > >=20 > > To avoid such issues, ignore hidden files in get_api.pl. =20 >=20 > ... and get_abi.pl. >=20 >=20 > >=20 > > Signed-off-by: Jonathan Neusch=C3=A4fer > > --- > > scripts/get_abi.pl | 1 + > > 1 file changed, 1 insertion(+) > >=20 > > diff --git a/scripts/get_abi.pl b/scripts/get_abi.pl > > index 6212f58b69c61..47b7eca5b0b71 100755 > > --- a/scripts/get_abi.pl > > +++ b/scripts/get_abi.pl > > @@ -92,6 +92,7 @@ sub parse_abi { > > my $mode =3D (stat($file))[2]; > > return if ($mode & S_IFDIR); > > return if ($file =3D~ m,/README,); > > + return if ($file =3D~ m,/\.,); > >=20 > > my $name =3D $file; > > $name =3D~ s,.*/,,; > > -- > > 2.34.1 Thanks, Mauro