On Fri, Oct 9, 2009 at 1:05 AM, Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote: > On Thu, 2009-10-08 at 20:14 -0400, Luis R. Rodriguez wrote: > >> > There are some harmless warnings from using the old header, but >> > otherwise it is working as it should: >> > CC [M] /home/Hin-Tak/tmp-git/compat-wireless-2.6/net/wireless/sme.o >> > /home/Hin-Tak/tmp-git/compat-wireless-2.6/net/wireless/sme.c: In >> > function ‘__cfg80211_connect_result’: >> > /home/Hin-Tak/tmp-git/compat-wireless-2.6/net/wireless/sme.c:370: >> > warning: passing argument 4 of ‘wireless_send_event’ discards >> > qualifiers from pointer target type >> > include/net/iw_handler.h:443: note: expected ‘char *’ but argument is >> > of type ‘const u8 *’ > >> The last argument to wireless_send_event() was changed to be const on >> 2.6.32, cant think of a way to avoid this warning. > > Yeah, it was never modified though so the warning is harmless. OK so casting was enough to avoid these warnings, will use that for older kernels. #define wireless_send_event(a, b, c, d) wireless_send_event(a, b, c, (char * ) d) Luis -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html