[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87plyi86zg.fsf@meer.lwn.net>
Date: Wed, 03 Jan 2024 14:03:31 -0700
From: Jonathan Corbet <corbet@....net>
To: Randy Dunlap <rdunlap@...radead.org>, linux-kernel@...r.kernel.org
Cc: Randy Dunlap <rdunlap@...radead.org>, Greg Kroah-Hartman
<gregkh@...uxfoundation.org>, linux-doc@...r.kernel.org, Mauro Carvalho
Chehab <mchehab@...nel.org>
Subject: Re: [PATCH] scripts/get_abi.pl: ignore some temp files
Randy Dunlap <rdunlap@...radead.org> writes:
> When there are filenames of the form ".orig" or ".rej" in
> the Documenatation/ABI/ subdirectories, there can be confusing or
> erroneous output generated. Example: the file
> Documenation/ABI/testing/sysfs-bus-papr-pmem.orig causes this
> warning message:
>
> Documentation/ABI/testing/sysfs-bus-papr-pmem:2: WARNING: unknown document: '/powerpc/papr_hcalls'
>
> Prevent this by skipping over filenames that may be created by
> patch/diff tools etc.
>
> Signed-off-by: Randy Dunlap <rdunlap@...radead.org>
> Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
> Cc: Jonathan Corbet <corbet@....net>
> Cc: linux-doc@...r.kernel.org
> Acked-by: Mauro Carvalho Chehab <mchehab@...nel.org>
> ---
> scripts/get_abi.pl | 1 +
> 1 file changed, 1 insertion(+)
>
> diff -- a/scripts/get_abi.pl b/scripts/get_abi.pl
> --- a/scripts/get_abi.pl
> +++ b/scripts/get_abi.pl
> @@ -93,6 +93,7 @@ sub parse_abi {
> return if ($mode & S_IFDIR);
> return if ($file =~ m,/README,);
> return if ($file =~ m,/\.,);
> + return if ($file =~ m,\.(rej|org|orig|bak)$,);
Applied, thanks.
It would have been nice to create all of those files with a .abi
extension so we didn't have to do this kind of blocklisting, but so be
it.
Should we exclude emacs-style ~ files too?
jon
Powered by blists - more mailing lists