소스 검색

bpf: Remove unnecessary Sync bound on PerCpuArray<T>

Tatsuyuki Ishi 3 년 전
부모
커밋
5e24cf7a29
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      bpf/aya-bpf/src/maps/per_cpu_array.rs

+ 1 - 1
bpf/aya-bpf/src/maps/per_cpu_array.rs

@@ -14,7 +14,7 @@ pub struct PerCpuArray<T> {
     _t: PhantomData<T>,
 }
 
-unsafe impl<T: Sync> Sync for PerCpuArray<T> {}
+unsafe impl<T> Sync for PerCpuArray<T> {}
 
 impl<T> PerCpuArray<T> {
     pub const fn with_max_entries(max_entries: u32, flags: u32) -> PerCpuArray<T> {