• Linus Torvalds's avatar
    genksyms: fix gperf removal conversion · 3aea311c
    Linus Torvalds authored
    I had stupidly missed one special use of 'is_reserved_word()' when I
    converted the code to avoid gperf.
    
    I had changed that function to return the token ID directly rather than
    a pointer to the token descriptor structure, but that meant that the
    test for "is this a reserved word" changed from checking the return
    value against NULL, to checking that it wasn't negative.
    
    And while I had converted the main token parser over, I missed the
    special case of the typeof phrase handling.  And since our dependency
    chain for genksyms does not include the genksyms program itself
    changing, my kernel rebuild didn't show the problem.
    
    Fixes: bb3290d9 ("Remove gperf usage from toolchain")
    Reported-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    3aea311c
lex.lex.c_shipped 57.1 KB