headers_check: better search for functions in headers
authorakpm@linux-foundation.org <akpm@linux-foundation.org>
Tue, 30 Nov 2010 21:51:13 +0000 (13:51 -0800)
committerMichal Marek <mmarek@suse.cz>
Tue, 14 Dec 2010 16:02:45 +0000 (17:02 +0100)
Some headers don't bother with "extern" in function prototypes, which
results in said prototypes being unnoticed and exported to userland.

This patch slightly improves detection of such cases by checking for C
type names as well in the beginning of a line.

Signed-off-by: Alexander Shishkin <virtuoso@slind.org>
Cc: Stephen Hemminger <shemminger@vyatta.com>
Cc: Michal Marek <mmarek@suse.cz>
Cc: WANG Cong <amwang@redhat.com>
Cc: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>

No differences found