From: Horia Geanta Date: Sat, 12 Jul 2014 16:55:03 +0000 (-0700) Subject: scripts/kernel-doc: handle object-like macros X-Git-Tag: omap-for-v3.17/fixes-against-rc2~308 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbb4d3e6510b99522719c5ef0cd0482886a324c0;p=pandora-kernel.git scripts/kernel-doc: handle object-like macros Object-like macros are different than function-like macros: https://gcc.gnu.org/onlinedocs/cpp/Object-like-Macros.html https://gcc.gnu.org/onlinedocs/cpp/Function-like-Macros.html They are not parsed correctly, generating invalid intermediate files (xmls) for cases like: #define BIT_MASK (0xFF << BIT_SHIFT) where "OxFF <<" is considered to be parameter type. When parsing, we can differentiate beween these two types of macros by checking whether there is at least one whitespace b/w "#define" and first opening parenthesis. Signed-off-by: Horia Geanta Signed-off-by: Randy Dunlap Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed