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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Wed, 2 May 2012 11:56:13 -0400
From:	Joe Korty <joe.korty@...r.com>
To:	Andy Whitcroft <apw@...onical.com>
Cc:	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: checkpatch: brackets around single statements fix

On Wed, May 02, 2012 at 11:32:12AM -0400, Andy Whitcroft wrote:
> On Wed, May 02, 2012 at 11:10:46AM -0400, Joe Korty wrote:
> Interesting.  Got an example I can use to add to the test suite.



Test case for scripts/checkpatch.pl: thinks '#else'
is the same as 'else', prints an error for brackets
around single statements.

Signed-off-by: Joe Korty <joe.korty@...r.com>

--- /tmp/y.c	2012-05-02 11:53:28.000000000 -0400
+++ /tmp/x.c	2012-05-02 11:52:28.000000000 -0400
@@ -1,6 +1,10 @@
 struct abc abc = {
 	{ a, "a " },
 	{ b, "b " },
+#ifdef CONFIG_REPURPOSE
+	{ d, "d " },
+#else
 	{ c, "c " },
+#endif
 	{ },
 };
--
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