[OpenWrt-Users] compat-wireless package breaks, genlmsg_cancel() tries to return value

Robert P. J. Day rpjday at crashcourse.ca
Mon Jul 21 01:52:03 CEST 2008


  i'm trying to build with a 2.6.26 kernel, and the build fails trying
to build the compat-wireless package, specifically in the source file
compat-wireless-2008-05-26/net/wireless/nl80211.c, at four different
locations, all identical:

/home/rpjday/openwrt/trunk/build_dir/linux-brcm47xx/compat-wireless-2008-05-26/net/wireless/nl80211.c:
In function 'nl80211_send_wiphy':
/home/rpjday/openwrt/trunk/build_dir/linux-brcm47xx/compat-wireless-2008-05-26/net/wireless/nl80211.c:190:
error: void value not ignored as it ought to be
/home/rpjday/openwrt/trunk/build_dir/linux-brcm47xx/compat-wireless-2008-05-26/net/wireless/nl80211.c:
In function 'nl80211_send_iface':
/home/rpjday/openwrt/trunk/build_dir/linux-brcm47xx/compat-wireless-2008-05-26/net/wireless/nl80211.c:276:
error: void value not ignored as it ought to be
/home/rpjday/openwrt/trunk/build_dir/linux-brcm47xx/compat-wireless-2008-05-26/net/wireless/nl80211.c:
In function 'nl80211_send_station':
/home/rpjday/openwrt/trunk/build_dir/linux-brcm47xx/compat-wireless-2008-05-26/net/wireless/nl80211.c:931:
error: void value not ignored as it ought to be
/home/rpjday/openwrt/trunk/build_dir/linux-brcm47xx/compat-wireless-2008-05-26/net/wireless/nl80211.c:
In function 'nl80211_send_mpath':
/home/rpjday/openwrt/trunk/build_dir/linux-brcm47xx/compat-wireless-2008-05-26/net/wireless/nl80211.c:1270:
error: void value not ignored as it ought to be

  the error is:

return genlmsg_cancel(msg, hdr);

  which is wrong since that routine is now declared as returning void
in linux/2.6.26/net/genetlink.h:

static inline void genlmsg_cancel(struct sk_buff *skb, void *hdr)

rday
--


========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
    Have classroom, will lecture.

http://crashcourse.ca                          Waterloo, Ontario, CANADA
========================================================================


More information about the openwrt-users mailing list