kbuild: genksyms fix for typeof handling
authorNicholas Piggin <npiggin@gmail.com>
Thu, 25 Aug 2016 09:53:08 +0000 (19:53 +1000)
committerMichal Marek <mmarek@suse.com>
Thu, 25 Aug 2016 16:55:37 +0000 (18:55 +0200)
commit4fab91605a6bcd0c303bcbc292a8bffcf27b3a27
tree9a25f7df6103854aa4b78a0ec07a3760fa374734
parentdee81e9886748594babac67c14b0f720148e255d
kbuild: genksyms fix for typeof handling

The tokenizer misses counting an open-parenthesis when parsing a
non-trivial typeof beginning with an open-parenthesis. This function
in include/linux/ceph/libceph.h

static type *lookup_##name(struct rb_root *root,
                           typeof(((type *)0)->keyfld) key)

When instantiated in net/ceph/mon_client.c, causes subsequent symbols
including an EXPORT_SYMBOL in that file to be lost.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.com>
scripts/genksyms/lex.l