]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit657846d07622fd03d78cb9d06a922dc52f9e9333
tree9a25f7df6103854aa4b78a0ec07a3760fa374734
parent8533979c1c09c5af1a7f4e0b9eee32f35b3efdb8
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