]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.0-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Sep 2013 23:57:11 +0000 (16:57 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Sep 2013 23:57:11 +0000 (16:57 -0700)
added patches:
kernel-doc-bugfix-multi-line-macros.patch

queue-3.0/kernel-doc-bugfix-multi-line-macros.patch [new file with mode: 0644]
queue-3.0/series

diff --git a/queue-3.0/kernel-doc-bugfix-multi-line-macros.patch b/queue-3.0/kernel-doc-bugfix-multi-line-macros.patch
new file mode 100644 (file)
index 0000000..2b13874
--- /dev/null
@@ -0,0 +1,52 @@
+From 654784284430bf2739985914b65e09c7c35a7273 Mon Sep 17 00:00:00 2001
+From: Daniel Santos <daniel.santos@pobox.com>
+Date: Thu, 4 Oct 2012 17:15:05 -0700
+Subject: kernel-doc: bugfix - multi-line macros
+
+From: Daniel Santos <daniel.santos@pobox.com>
+
+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>
+
+---
+ scripts/kernel-doc |    3 +++
+ 1 file changed, 3 insertions(+)
+
+--- a/scripts/kernel-doc
++++ b/scripts/kernel-doc
+@@ -2044,6 +2044,9 @@ sub process_file($) {
+     $section_counter = 0;
+     while (<IN>) {
++      while (s/\\\s*$//) {
++          $_ .= <IN>;
++      }
+       if ($state == 0) {
+           if (/$doc_start/o) {
+               $state = 1;             # next line is always the function name
index 425ed9f15ef6d3a211a8295478e21aa34659dc12..85ad5c778cf306b4dc03cfe6565446440779ad20 100644 (file)
@@ -14,3 +14,4 @@ perf-fix-perf_cgroup_switch-for-sw-events.patch
 fanotify-dont-merge-permission-events.patch
 perf-tools-handle-jited-code-in-shared-memory.patch
 sfc-Fix-efx_rx_buf_offset-for-recycled-pages-3.0.patch
+kernel-doc-bugfix-multi-line-macros.patch