X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=scripts%2Fgenksyms%2Fparse.y;fp=scripts%2Fgenksyms%2Fparse.y;h=23c39998ad864eb328dfaa6c7da6ff9dcc6a10c9;hb=2c5925d6b7fedc8f1c325f4f85451f505ec69aca;hp=a783ad4e2b51b1b0974e34f78b647db23bd9aa41;hpb=b06fcd6c83c231f51a86448bb33c4cd717fefee8;p=karo-tx-linux.git diff --git a/scripts/genksyms/parse.y b/scripts/genksyms/parse.y index a783ad4e2b51..23c39998ad86 100644 --- a/scripts/genksyms/parse.y +++ b/scripts/genksyms/parse.y @@ -58,6 +58,13 @@ static void record_compound(struct string_list **keyw, enum symbol_type type) { struct string_list *b = *body, *i = *ident, *r; + + if (i->in_source_file) { + remove_node(keyw); + (*ident)->tag = type; + remove_list(body, ident); + return; + } r = copy_node(i); r->tag = type; r->next = (*keyw)->next; *body = r; (*keyw)->next = NULL; add_symbol(i->string, type, b, is_extern);