• D
    kernel-doc: bugfix - multi-line macros · 65478428
    Daniel Santos 提交于
    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: NDaniel Santos <daniel.santos@pobox.com>
    Cc: Randy Dunlap <rdunlap@xenotime.net>
    Cc: Michal Marek <mmarek@suse.cz>
    Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
    65478428
kernel-doc 62.4 KB