Skip to content

Commit 7c44bf3

Browse files
committed
revert "build: support newlines in syscall decls"
This reverts commit 1993ea0 because the `parse_syscalls.py` script has been modified to not output whitespace characters other than spaces in the generated JSON file. Signed-off-by: Loek Le Blansch <loek.le-blansch.pv@renesas.com>
1 parent 0278bdc commit 7c44bf3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/build/gen_syscalls.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ class SyscallParseException(Exception):
201201

202202

203203
def typename_split(item):
204-
item = item.strip().replace("\n", " ")
205204
if "[" in item:
206205
raise SyscallParseException(
207206
"Please pass arrays to syscalls as pointers, unable to process '%s'" %
@@ -414,7 +413,7 @@ def analyze_fn(match_group, fn, userspace_only):
414413
if args == "void" or len(args) == 0:
415414
args = []
416415
else:
417-
args = [typename_split(a) for a in args.split(",")]
416+
args = [typename_split(a.strip()) for a in args.split(",")]
418417

419418
func_type, func_name = typename_split(func)
420419
except SyscallParseException:

0 commit comments

Comments
 (0)