Skip to content

Commit

Permalink
chg: [kunai-common] remove unused imports in eBPF
Browse files Browse the repository at this point in the history
  • Loading branch information
qjerome committed Jul 11, 2024
1 parent 0201214 commit 5c1e2a3
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 9 deletions.
1 change: 0 additions & 1 deletion kunai-common/src/bpf_events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ not_bpf_target_code! {

bpf_target_code! {
mod bpf;
pub use bpf::*;
}

mod events;
Expand Down
1 change: 0 additions & 1 deletion kunai-common/src/buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ not_bpf_target_code! {

bpf_target_code! {
mod bpf;
pub use bpf::*;
}

#[repr(C)]
Expand Down
3 changes: 1 addition & 2 deletions kunai-common/src/cgroup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ use kunai_macros::BpfError;

not_bpf_target_code! {
mod user;

}

bpf_target_code! {
mod bpf;
pub use bpf::*;
}

const CGROUP_PATH_MAX: usize = 128;
Expand Down
1 change: 0 additions & 1 deletion kunai-common/src/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ not_bpf_target_code! {

bpf_target_code! {
mod bpf;
pub use bpf::*;
}

#[repr(C)]
Expand Down
1 change: 0 additions & 1 deletion kunai-common/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ not_bpf_target_code! {

bpf_target_code! {
mod bpf;
pub use bpf::*;
}

// for path resolution
Expand Down
1 change: 0 additions & 1 deletion kunai-common/src/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ not_bpf_target_code! {

bpf_target_code! {
mod bpf;
pub use bpf::*;
}

#[repr(C)]
Expand Down
3 changes: 1 addition & 2 deletions kunai-common/src/uuid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ use crate::macros::{bpf_target_code, not_bpf_target_code};

not_bpf_target_code! {
mod user;

}

bpf_target_code! {
mod bpf;
pub use bpf::*;
}

#[repr(C)]
Expand Down

0 comments on commit 5c1e2a3

Please sign in to comment.