Wedson Almeida Filho <wedsonaf@xxxxxxxxx> writes: <snip> > + unsafe extern "C" fn fill_super_callback( > + sb_ptr: *mut bindings::super_block, > + _fc: *mut bindings::fs_context, > + ) -> core::ffi::c_int { > + from_result(|| { > + // SAFETY: The callback contract guarantees that `sb_ptr` is a unique pointer to a > + // newly-created superblock. > + let sb = unsafe { &mut *sb_ptr.cast() }; > + let params = T::super_params(sb)?; > + > + sb.0.s_magic = params.magic as _; I would prefer an explicit target type for the cast. BR Andreas