Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kconfig: fix off-by-one in zconf_error()

yyerror() reports the line number of the next line.

This +1 adjustment was introduced more than 20 years ago [1]. At that
time, the line number was decremented then incremented back and forth.

The line number management was refactored in a more maintainable way.
Such compensation is no longer needed.

[1]: https://git.kernel.org/pub/scm/linux/kernel/git/history/history.git/commit/?id=d4f8a4530eb07a1385fd17b0e62a7dce97486f49

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

+1 -1
+1 -1
scripts/kconfig/parser.y
··· 557 557 558 558 static void yyerror(const char *err) 559 559 { 560 - fprintf(stderr, "%s:%d: %s\n", zconf_curname(), zconf_lineno() + 1, err); 560 + fprintf(stderr, "%s:%d: %s\n", zconf_curname(), zconf_lineno(), err); 561 561 } 562 562 563 563 static void print_quoted_string(FILE *out, const char *str)