From: sunil.kovv...@gmail.com Date: Sat, 6 Oct 2018 11:36:22 +0530 > + tx_hdr = (struct mbox_hdr *)(mdev->mbase + mbox->tx_start); > + rx_hdr = (struct mbox_hdr *)(mdev->mbase + mbox->rx_start);
Since mdev->mbase is a void pointer, you do not need these casts, nor the parenthesis, at all. Please remove them.