Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2bb4e345 authored by Hsin-chen Chuang's avatar Hsin-chen Chuang
Browse files

floss: topshim: Fix build failure

One cast_to_ffi_address is added in 2295878 while the macro was removed
by 2287276.

Bug: 249685703
Tag: #floss
Test: ./build.py --target clean && ./build.py --target all && ./build.py --target test
Change-Id: Id72860ca28418d9682424b5c1b38f518176e2f30
parent baadeb45
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -307,11 +307,11 @@ impl HidHost {
        report: &mut [u8],
        size: u16,
    ) -> BtStatus {
        let ffi_addr = cast_to_ffi_address!(addr as *mut RawAddress);
        let addr_ptr = LTCheckedPtrMut::from_ref(addr);
        BtStatus::from(ccall!(
            self,
            get_report_reply,
            ffi_addr,
            addr_ptr.into(),
            status as bindings::bthh_status_t,
            report.as_mut_ptr() as *mut std::os::raw::c_char,
            size