Re: Pointer Cast to Different Type Warnings in sh_mmcif.c

From: Kuninori Morimoto
Date: Mon May 11 2015 - 01:26:04 EST



Hi nick

Thank you for your feedback

> > I guess this warning happen from
> > 5f48dd0690cbcea3f35b9ef2f05d5468dedc80b0
> > (mmc: sh_mmcif: remove slave_id settings for DMAEngine)
> >
> > I didn't check, but does cast issue is solved by this ?
> >
> > - (void *)pdata->slave_id_tx :
> > - (void *)pdata->slave_id_rx;
> > + (void *)(unsigned long)pdata->slave_id_tx :
> > + (void *)(unsigned long)pdata->slave_id_rx;
> >
> >
> > Best regards
> > ---
> > Kuninori Morimoto
> >
> Kuninori,
> After running a allmodconfig on my machine the warnings are no longer there. Either I can send in a patch fixing this or
> you can one with my name on a suggested by line, in the signed off part of your patch. The choice is up to you, I don't
> care either way.

Thank you.
Can you please send this patch ?
I can send Acked-by to your patch.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/