Skip to content

Commit 13cb9da

Browse files
committed
Fix nr_from_src.py
1 parent c382132 commit 13cb9da

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/nr_from_src.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ def load_headers(names: Iterable[Tuple[str, str]], arch: str, extra: str = ''):
4444
f.write('\n')
4545
f.write('#include <asm/unistd.h>\n')
4646
for prefix, name in names:
47+
if prefix is None:
48+
prefix = ''
4749
f.write('gen_nr {prefix}{name} __{prefix}NR_{name}\n'.format(prefix=prefix, name=name))
4850
f.flush()
4951
lines = subprocess.check_output(['gcc', '-nostdinc',

0 commit comments

Comments
 (0)