diff --git a/pythonbpf/globals_pass.py b/pythonbpf/globals_pass.py index 198d813..4c6ed97 100644 --- a/pythonbpf/globals_pass.py +++ b/pythonbpf/globals_pass.py @@ -49,6 +49,7 @@ def emit_global(module: ir.Module, node, name): gvar.global_constant = False return gvar + def globals_processing(tree, module): """Process stuff decorated with @bpf and @bpfglobal except license and return the section name""" globals_sym_tab = [] diff --git a/tests/failing_tests/globals.py b/tests/failing_tests/globals.py index 6b914fd..ae526a5 100644 --- a/tests/failing_tests/globals.py +++ b/tests/failing_tests/globals.py @@ -18,9 +18,6 @@ def somevalue2() -> c_int64: def somevalue1() -> c_int32: return c_int32(0) -import ast -from dataclasses import dataclass -from typing import List # --- Passing examples ---