bpf: Remove unnecessary Sync bound on PerCpuArray<T>

pull/318/head
Tatsuyuki Ishi 2 years ago committed by GitHub
parent 82cd3e695a
commit 5e24cf7a29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save