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.

tools: ynl-gen-c: don't require -o argument

Without -o the tool currently crashes, but it's not marked
as required. The only thing we can't do without it is to
generate the correct #include for user source files, but
we can put a placeholder instead.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Link: https://patch.msgid.link/20241206113100.89d35bf124d6.I9228fb704e6d5c9d8e046ef15025a47a48439c1e@changeid
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Johannes Berg and committed by
Jakub Kicinski
81d89e6e 00ab2467

+4 -1
+4 -1
tools/net/ynl/ynl-gen-c.py
··· 2761 2761 cw.p('#define ' + hdr_prot) 2762 2762 cw.nl() 2763 2763 2764 - hdr_file=os.path.basename(args.out_file[:-2]) + ".h" 2764 + if args.out_file: 2765 + hdr_file = os.path.basename(args.out_file[:-2]) + ".h" 2766 + else: 2767 + hdr_file = "generated_header_file.h" 2765 2768 2766 2769 if args.mode == 'kernel': 2767 2770 cw.p('#include <net/netlink.h>')