* [PATCH] Documentation/CodingStyle: fix example macro parenthesis imbalance
@ 2015-04-19 3:35 Baruch Siach
2015-05-07 15:52 ` Jonathan Corbet
0 siblings, 1 reply; 2+ messages in thread
From: Baruch Siach @ 2015-04-19 3:35 UTC (permalink / raw)
To: linux-kernel, Jonathan Corbet
Cc: linux-doc, Baruch Siach, Bartosz Golaszewski, Andrew Morton
Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Fixes: f2027543b9 ('documentation: update CodingStyle on local variables naming in macros')
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
Documentation/CodingStyle | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/CodingStyle b/Documentation/CodingStyle
index f4b78eafd92a..b713c35f8543 100644
--- a/Documentation/CodingStyle
+++ b/Documentation/CodingStyle
@@ -670,7 +670,7 @@ functions:
typeof(x) ret; \
ret = calc_ret(x); \
(ret); \
-)}
+})
ret is a common name for a local variable - __foo_ret is less likely
to collide with an existing variable.
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Documentation/CodingStyle: fix example macro parenthesis imbalance
2015-04-19 3:35 [PATCH] Documentation/CodingStyle: fix example macro parenthesis imbalance Baruch Siach
@ 2015-05-07 15:52 ` Jonathan Corbet
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Corbet @ 2015-05-07 15:52 UTC (permalink / raw)
To: Baruch Siach; +Cc: linux-kernel, linux-doc, Bartosz Golaszewski, Andrew Morton
On Sun, 19 Apr 2015 06:35:01 +0300
Baruch Siach <baruch@tkos.co.il> wrote:
> -)}
> +})
Makes sense. Applied to the docs tree, thanks.
jon
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-05-07 15:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-19 3:35 [PATCH] Documentation/CodingStyle: fix example macro parenthesis imbalance Baruch Siach
2015-05-07 15:52 ` Jonathan Corbet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox