missing-syscalls: add license header in the version-controlled generated file

If the file was always generated on the fly, the header would be pointless.
But since we distribute it, it should be there. C.f.
a0e150b2f4.
This was forgotten in 35b42e5600.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2021-01-27 13:14:51 +01:00
parent 7058df3593
commit cb1f01a5f8
2 changed files with 8 additions and 2 deletions

View file

@ -1,4 +1,5 @@
/* This file is generated. Do not edit! */
/* SPDX-License-Identifier: LGPL-2.1-or-later
* This file is generated. Do not edit! */
#ifndef __IGNORE_bpf
# if defined(__aarch64__)

View file

@ -1,4 +1,6 @@
#!/usr/bin/env python3
# SPDX-License-Identifier: LGPL-2.1-or-later
import sys
import functools
@ -99,7 +101,10 @@ def print_syscall_def(syscall, tables, out):
file=out)
def print_syscall_defs(syscalls, tables, out):
print('/* This file is generated. Do not edit! */\n', file=out)
print('''\
/* SPDX-License-Identifier: LGPL-2.1-or-later
* This file is generated. Do not edit! */
''' , file=out)
for syscall in syscalls:
print_syscall_def(syscall, tables, out)