Skip to content

Commit f987029

Browse files
marc-hbnashif
authored andcommitted
gen_syscalls.py: make 'noweak' a list instead of a random order set
Python's Sets are not deterministic. This causes the following lines to be emitted in random order in generated/syscall_dispatch.c extern u32_t z_mrsh_k_object_release(u32_t arg1, ... extern u32_t z_mrsh_k_object_access_grant(u32_t arg1, ... extern u32_t z_mrsh_k_object_alloc(u32_t arg1, ... Change noweak to a basic list. Reproducibility regression introduced by commit 6564974 Signed-off-by: Marc Herbert <[email protected]>
1 parent 85c1d90 commit f987029

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/gen_syscalls.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
# order runs afoul of a comment in CMakeLists.txt that the order is
4040
# critical. These are core syscalls that won't ever be unconfigured,
4141
# just disable the fallback mechanism as a simple workaround.
42-
noweak = set(["z_mrsh_k_object_release",
43-
"z_mrsh_k_object_access_grant",
44-
"z_mrsh_k_object_alloc"])
42+
noweak = ["z_mrsh_k_object_release",
43+
"z_mrsh_k_object_access_grant",
44+
"z_mrsh_k_object_alloc"]
4545

4646
table_template = """/* auto-generated by gen_syscalls.py, don't edit */
4747

0 commit comments

Comments
 (0)