{"action":"created","issue":{"url":"https://api.github.com/repos/openwrt/mt76/issues/43","repository_url":"https://api.github.com/repos/openwrt/mt76","labels_url":"https://api.github.com/repos/openwrt/mt76/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/openwrt/mt76/issues/43/comments","events_url":"https://api.github.com/repos/openwrt/mt76/issues/43/events","html_url":"https://github.com/openwrt/mt76/issues/43","id":172093741,"number":43,"title":"Compile Issue with openwrt linux version 3.10.14","user":{"login":"amulpatel","id":21122154,"avatar_url":"https://avatars.githubusercontent.com/u/21122154?v=3","gravatar_id":"","url":"https://api.github.com/users/amulpatel","html_url":"https://github.com/amulpatel","followers_url":"https://api.github.com/users/amulpatel/followers","following_url":"https://api.github.com/users/amulpatel/following{/other_user}","gists_url":"https://api.github.com/users/amulpatel/gists{/gist_id}","starred_url":"https://api.github.com/users/amulpatel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amulpatel/subscriptions","organizations_url":"https://api.github.com/users/amulpatel/orgs","repos_url":"https://api.github.com/users/amulpatel/repos","events_url":"https://api.github.com/users/amulpatel/events{/privacy}","received_events_url":"https://api.github.com/users/amulpatel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-19T09:44:08Z","updated_at":"2016-08-28T21:55:32Z","closed_at":null,"body":"Hello Team, I am trying to cross compile mt76 driver for ZBT device MT7621 using medeiatek SDK.\r\n\r\npackage details:\r\nPKG_NAME:=mt76\r\nPKG_VERSION:=2016-06-17\r\nPKG_SOURCE_VERSION:=f06ed811cda67ab2ed9932c3e87ba03229e75f4e\r\n\r\nBut seems it is not compatible with kernal version 3.10.14.\r\nCan some one help me out for compilation issue?\r\n\r\nFollowing are the compilation error:\r\n\r\nopenwrt-3.10.14/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/mt76-2016-06-17/mt76.h:295:14: error: comparison between 'enum ieee80211_band' and 'enum nl80211_band' [-Werror=enum-compare]\r\n  if (c->band == NL80211_BAND_2GHZ)\r\n              ^\r\nIn file included from openwrt-3.10.14/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include/mac80211-backport/linux/kernel.h:3:0,\r\n                 from openwrt-3.10.14/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/mt76-2016-06-17/mt76.h:17,\r\n                 from openwrt-3.10.14/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/mt76-2016-06-17/mmio.c:14:\r\nopenwrt-3.10.14/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/mt76-2016-06-17/mt76.h: In function 'mtxq_to_txq':\r\ninclude/linux/kernel.h:784:27: error: dereferencing pointer to incomplete type\r\n  const typeof( ((type *)0)->member ) *__mptr = (ptr); \\\r\n                           ^\r\nopenwrt-3.10.14/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/mt76-2016-06-17/mt76.h:317:9: note: in expansion of macro 'container_of'\r\n  return container_of(ptr, struct ieee80211_txq, drv_priv);\r\n         ^\r\nIn file included from include/linux/compiler-gcc.h:103:0,\r\n                 from include/linux/compiler.h:54,\r\n                 from openwrt-3.10.14/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include/mac80211-backport/linux/compiler.h:3,\r\n                 from include/linux/linkage.h:4,\r\n                 from include/linux/kernel.h:6,\r\n                 from openwrt-3.10.14/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include/mac80211-backport/linux/kernel.h:3,\r\n                 from openwrt-3.10.14/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/mt76-2016-06-17/mt76.h:17,\r\n                 from openwrt-3.10.14/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/mt76-2016-06-17/mmio.c:14:\r\nopenwrt-3.10.14/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/mt76-2016-06-17/mt76.h:317:34: error: invalid use of undefined type 'struct ieee80211_txq'\r\n  return container_of(ptr, struct ieee80211_txq, drv_priv);\r\n                                  ^\r\ninclude/linux/compiler-gcc4.h:14:53: note: in definition of macro '__compiler_offsetof'\r\n #define __compiler_offsetof(a,b) __builtin_offsetof(a,b)\r\n                                                     ^\r\ninclude/linux/kernel.h:785:29: note: in expansion of macro 'offsetof'\r\n  (type *)( (char *)__mptr - offsetof(type,member) );})\r\n                             ^\r\nopenwrt-3.10.14/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/mt76-2016-06-17/mt76.h:317:9: note: in expansion of macro 'container_of'\r\n  return container_of(ptr, struct ieee80211_txq, drv_priv);\r\n         ^\r\ncc1: all warnings being treated as errors\r\nmake[4]: *** [openwrt-3.10.14/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/mt76-2016-06-17/mmio.o] Error 1\r\nmake[3]: *** [_module_openwrt-3.10.14/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/mt76-2016-06-17] Error 2\r\nmake[3]: Leaving directory `openwrt-3.10.14/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/linux-3.10.14-p112871'\r\nmake[2]: *** [openwrt-3.10.14/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/mt76-2016-06-17/.built] Error 2\r\nmake[2]: Leaving directory `openwrt-3.10.14/package/kernel/mt76'\r\nmake[1]: *** [package/kernel/mt76/compile] Error 2\r\nmake[1]: Leaving directory `openwrt-3.10.14'\r\nmake: *** [package/kernel/mt76/compile] Error 2\r\n[amulpatel@Amul-PC openwrt-3.10.14]$ \r\n\r\n\r\nThanks,\r\nAmul Patel"},"comment":{"url":"https://api.github.com/repos/openwrt/mt76/issues/comments/243001941","html_url":"https://github.com/openwrt/mt76/issues/43#issuecomment-243001941","issue_url":"https://api.github.com/repos/openwrt/mt76/issues/43","id":243001941,"user":{"login":"psyborg55","id":15853469,"avatar_url":"https://avatars.githubusercontent.com/u/15853469?v=3","gravatar_id":"","url":"https://api.github.com/users/psyborg55","html_url":"https://github.com/psyborg55","followers_url":"https://api.github.com/users/psyborg55/followers","following_url":"https://api.github.com/users/psyborg55/following{/other_user}","gists_url":"https://api.github.com/users/psyborg55/gists{/gist_id}","starred_url":"https://api.github.com/users/psyborg55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psyborg55/subscriptions","organizations_url":"https://api.github.com/users/psyborg55/orgs","repos_url":"https://api.github.com/users/psyborg55/repos","events_url":"https://api.github.com/users/psyborg55/events{/privacy}","received_events_url":"https://api.github.com/users/psyborg55/received_events","type":"User","site_admin":false},"created_at":"2016-08-28T21:55:32Z","updated_at":"2016-08-28T21:55:32Z","body":"i've ran into same bug on 4.4.7 kernel. did you find out how to fix it?"}}
{"actor":{"display_login":"psyborg55"}}