Daniel Santos bfe3887cc2 kernel-doc: bugfix - multi-line macros
commit 654784284430bf2739985914b65e09c7c35a7273 upstream.

Prior to this patch the following code breaks:

/**
 * multiline_example - this breaks kernel-doc
 */
 #define multiline_example( \
myparam)

Producing this error:

Error(somefile.h:983): cannot understand prototype: 'multiline_example( \ '

This patch fixes the issue by appending all lines ending in a blackslash
(optionally followed by whitespace), removing the backslash and any
whitespace after it prior to appending (just like the C pre-processor
would).

This fixes a break in kerel-doc introduced by the additions to rbtree.h.

Signed-off-by: Daniel Santos <daniel.santos@pobox.com>
Cc: Randy Dunlap <rdunlap@xenotime.net>
Cc: Michal Marek <mmarek@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-10-01 08:55:48 -07:00
..
2011-03-31 11:26:23 -03:00
2012-11-26 11:34:37 -08:00
2005-04-16 15:20:36 -07:00
2012-05-07 08:56:34 -07:00
2011-03-31 11:26:23 -03:00
2011-05-19 15:59:38 -07:00
2005-04-16 15:20:36 -07:00
2010-10-28 00:32:23 +02:00
2008-07-25 22:12:41 +02:00
2012-11-26 11:34:37 -08:00
2010-03-23 12:26:38 +01:00
2012-11-26 11:34:37 -08:00
2008-04-25 20:18:48 +02:00
2011-04-18 14:24:36 +02:00
2011-03-31 11:26:23 -03:00
2010-08-17 11:47:40 +02:00
2005-04-16 15:20:36 -07:00
2009-06-09 22:37:54 +02:00