[RPC]: fix sparse gfp nocast warnings