Skip to content

Commit c3f3d1e

Browse files
format chore
1 parent e773462 commit c3f3d1e

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

pythonbpf/functions/functions_pass.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,9 +356,7 @@ def process_func_body(
356356
builder.ret(ir.Constant(ir.IntType(64), 0))
357357

358358

359-
def process_bpf_chunk(
360-
func_node, module, return_type, map_sym_tab, structs_sym_tab
361-
):
359+
def process_bpf_chunk(func_node, module, return_type, map_sym_tab, structs_sym_tab):
362360
"""Process a single BPF chunk (function) and emit corresponding LLVM IR."""
363361

364362
func_name = func_node.name
@@ -420,7 +418,7 @@ def func_proc(tree, module, chunks, map_sym_tab, structs_sym_tab):
420418
module,
421419
ctypes_to_ir(infer_return_type(func_node)),
422420
map_sym_tab,
423-
structs_sym_tab
421+
structs_sym_tab,
424422
)
425423

426424

pythonbpf/vmlinux_parser/vmlinux_exports_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def handle_vmlinux_struct_field(
7171
"""Handle access to vmlinux struct fields"""
7272
# Check if it's a variable of vmlinux struct type
7373
if struct_var_name in local_sym_tab:
74-
var_info = local_sym_tab[struct_var_name]
74+
var_info = local_sym_tab[struct_var_name] # noqa: F841
7575
# Need to check if this variable is a vmlinux struct
7676
# This will depend on how you track vmlinux struct types in your symbol table
7777
logger.info(

0 commit comments

Comments
 (0)