On Sat, Nov 03, 2012 at 02:33:16PM -0400, Kevin McKinney wrote: > This patch fixes the following compile warning: > "cast to pointer from integer of different size > [-Wint-to-pointer-cast]" in CmHost.c. I am replacing > one statement with two. > > The address of the buffer locations are being > taken from user space and stored in three different > structures: pstAddIndication->AdmittedSet, pstAddIn > dication->ActiveSet, and pstAddIndication->AuthorizedSet. > Before reading the address we need to convert it to > little endian notation. Therefore, we create a local > unsigned long variable, addr_conn_params, and > store the results of "ntohl". This value is then > cast to a "bcm_connect_mgr_params" structure. > I don't think this is the right thing to do. We are silencing the warning, but not fixing the bug. It's better to leave the warning in so the bug is easier to find, when we have a proper fix for this. regards, dan carpenter _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/devel