md_trans_ioctl() has incorrect declaration
driver - device drivers
md_trans_ioctl(dev_t dev, int cmd, caddr_t data, int mode, IOLOCK *lockp)
It implements md_ioctl which should have data as (void *).
In the code path then even trans_admin_ioctl() has the same problem.