]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tools: ynl: Specify --no-line-number in ynl-regen.sh.
authorKuniyuki Iwashima <kuniyu@google.com>
Thu, 15 Jan 2026 17:24:47 +0000 (17:24 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sun, 18 Jan 2026 00:00:23 +0000 (16:00 -0800)
commit68578370f9b3a2aba5964b273312d51c581b6aad
treee713c688078af0ed399243a43ee5fa8385f3fb35
parent9a56796ad258786d3624eef5aefba394fc9bdded
tools: ynl: Specify --no-line-number in ynl-regen.sh.

If grep.lineNumber is enabled in .gitconfig,

  [grep]
  lineNumber = true

ynl-regen.sh fails with the following error:

  $ ./tools/net/ynl/ynl-regen.sh -f
  ...
  ynl_gen_c.py: error: argument --mode: invalid choice: '4:' (choose from user, kernel, uapi)
   GEN 4: net/ipv4/fou_nl.c

Let's specify --no-line-number explicitly.

Fixes: be5bea1cc0bf ("net: add basic C code generators for Netlink")
Suggested-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260115172533.693652-3-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/ynl-regen.sh