fix kernel build -Wno-sizeof-pointer-memaccess