diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-03-23 09:04:37 -0400 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-04-07 06:04:02 -0400 |
commit | 4fa8bc949de11c99ee2433c602d43f87c452f4f2 (patch) | |
tree | 63c75a716af9a76798f17cc4c7f4341f0decf39f /scripts/asn1_compiler.c | |
parent | 3ca3273eaa509a6a17e33fc7d31714bfd9f65a38 (diff) |
kbuild: rename *-asn1.[ch] to *.asn1.[ch]
Our convention is to distinguish file types by suffixes with a period
as a separator.
*-asn1.[ch] is a different pattern from other generated sources such
as *.lex.c, *.tab.[ch], *.dtb.S, etc. More confusing, files with
'-asn1.[ch]' are generated files, but '_asn1.[ch]' are checked-in
files:
net/netfilter/nf_conntrack_h323_asn1.c
include/linux/netfilter/nf_conntrack_h323_asn1.h
include/linux/sunrpc/gss_asn1.h
Rename generated files to *.asn1.[ch] for consistency.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/asn1_compiler.c')
-rw-r--r-- | scripts/asn1_compiler.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/asn1_compiler.c b/scripts/asn1_compiler.c index c1b7ef3e24c1..c146020fc783 100644 --- a/scripts/asn1_compiler.c +++ b/scripts/asn1_compiler.c | |||
@@ -1319,7 +1319,7 @@ static void render(FILE *out, FILE *hdr) | |||
1319 | fprintf(out, " * ASN.1 parser for %s\n", grammar_name); | 1319 | fprintf(out, " * ASN.1 parser for %s\n", grammar_name); |
1320 | fprintf(out, " */\n"); | 1320 | fprintf(out, " */\n"); |
1321 | fprintf(out, "#include <linux/asn1_ber_bytecode.h>\n"); | 1321 | fprintf(out, "#include <linux/asn1_ber_bytecode.h>\n"); |
1322 | fprintf(out, "#include \"%s-asn1.h\"\n", grammar_name); | 1322 | fprintf(out, "#include \"%s.asn1.h\"\n", grammar_name); |
1323 | fprintf(out, "\n"); | 1323 | fprintf(out, "\n"); |
1324 | if (ferror(out)) { | 1324 | if (ferror(out)) { |
1325 | perror(outputname); | 1325 | perror(outputname); |