lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.00.1110261329240.23111@chino.kir.corp.google.com>
Date:	Wed, 26 Oct 2011 13:30:07 -0700 (PDT)
From:	David Rientjes <rientjes@...gle.com>
To:	Wolfram Sang <w.sang@...gutronix.de>
cc:	linux-kernel@...r.kernel.org, Jonathan Cameron <jic23@....ac.uk>,
	Andy Whitcroft <apw@...onical.com>
Subject: Re: [PATCH] checkpatch: improve error message for p1-check

On Wed, 19 Oct 2011, Wolfram Sang wrote:

> The old error message was not precise. State now explicitly that the
> prefix exists as a file/directory. Also change the conclusion ("appears
> to be") into an instruction ("make sure").
> 

Why can't we suppress this warning unless both prefixes appear as files or 
directories in the cwd?  ('a' and 'b' if using git format-patch)

> Signed-off-by: Wolfram Sang <w.sang@...gutronix.de>
> Acked-by: Jonathan Cameron <jic23@....ac.uk>
> Cc: Andy Whitcroft <apw@...onical.com>
> ---
>  scripts/checkpatch.pl |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
> index 3dfc471..4bb4f88 100755
> --- a/scripts/checkpatch.pl
> +++ b/scripts/checkpatch.pl
> @@ -1506,7 +1506,7 @@ sub process {
>  			if (!$file && $tree && $p1_prefix ne '' &&
>  			    -e "$root/$p1_prefix") {
>  				WARN("PATCH_PREFIX",
> -				     "patch prefix '$p1_prefix' exists, appears to be a -p0 patch\n");
> +				     "patch prefix '$p1_prefix' exists as file/directory. Make sure this isn't a -p0 patch\n");
>  			}
>  
>  			if ($realfile =~ m@...clude/asm/@) {
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ