{"action":"created","issue":{"url":"https://api.github.com/repos/gnab/rtl8812au/issues/144","repository_url":"https://api.github.com/repos/gnab/rtl8812au","labels_url":"https://api.github.com/repos/gnab/rtl8812au/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/gnab/rtl8812au/issues/144/comments","events_url":"https://api.github.com/repos/gnab/rtl8812au/issues/144/events","html_url":"https://github.com/gnab/rtl8812au/issues/144","id":322635892,"node_id":"MDU6SXNzdWUzMjI2MzU4OTI=","number":144,"title":"Compilation error on kernel 4.15.0-20-generic (Ubuntu 18.04)","user":{"login":"siddharth99","id":3825449,"node_id":"MDQ6VXNlcjM4MjU0NDk=","avatar_url":"https://avatars0.githubusercontent.com/u/3825449?v=4","gravatar_id":"","url":"https://api.github.com/users/siddharth99","html_url":"https://github.com/siddharth99","followers_url":"https://api.github.com/users/siddharth99/followers","following_url":"https://api.github.com/users/siddharth99/following{/other_user}","gists_url":"https://api.github.com/users/siddharth99/gists{/gist_id}","starred_url":"https://api.github.com/users/siddharth99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siddharth99/subscriptions","organizations_url":"https://api.github.com/users/siddharth99/orgs","repos_url":"https://api.github.com/users/siddharth99/repos","events_url":"https://api.github.com/users/siddharth99/events{/privacy}","received_events_url":"https://api.github.com/users/siddharth99/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-05-13T23:18:05Z","updated_at":"2018-06-22T14:12:52Z","closed_at":null,"author_association":"NONE","body":"I am running into compilation error with kernel 4.15 since the timer interface has changed.\r\n\r\n```\r\nmake[1]: Entering directory '/usr/src/linux-headers-4.15.0-20-generic'\r\n  CC [M]  /usr/local/src/rtl8812au/core/rtw_cmd.o\r\nIn file included from /usr/local/src/rtl8812au/include/osdep_service.h:41:0,\r\n                 from /usr/local/src/rtl8812au/include/drv_types.h:32,\r\n                 from /usr/local/src/rtl8812au/core/rtw_cmd.c:22:\r\n/usr/local/src/rtl8812au/include/osdep_service_linux.h: In function ‘_init_timer’:\r\n/usr/local/src/rtl8812au/include/osdep_service_linux.h:257:8: error: ‘_timer {aka struct timer_list}’ has no member named ‘data’\r\n  ptimer->data = (unsigned long)cntx;\r\n        ^~\r\n/usr/local/src/rtl8812au/include/osdep_service_linux.h:258:2: error: implicit declaration of function ‘init_timer’; did you mean ‘_init_timer’? [-Werror=implicit-function-declaration]\r\n  init_timer(ptimer);\r\n  ^~~~~~~~~~\r\n  _init_timer\r\n```\r\n\r\nI made a small change to make it compile but I obviously did something wrong since the code compiles but the kernel hangs as soon as I try to do `insmod 8812au.ko`\r\n\r\n```\r\n __inline static void _init_timer(_timer *ptimer,_nic_hdl nic_hdl,void *pfunc,void* cntx)\r\n {\r\n        //setup_timer(ptimer, pfunc,(u32)cntx); \r\n-       ptimer->function = pfunc;\r\n-       ptimer->data = (unsigned long)cntx;\r\n-       init_timer(ptimer);\r\n+       //ptimer->function = pfunc;\r\n+       //ptimer->data = (unsigned long)cntx;\r\n+       // init_timer(ptimer);\r\n+       timer_setup(ptimer, pfunc, (unsigned long)cntx);\r\n }\r\n```\r\nAny help would be greatly appreciated."},"comment":{"url":"https://api.github.com/repos/gnab/rtl8812au/issues/comments/399456392","html_url":"https://github.com/gnab/rtl8812au/issues/144#issuecomment-399456392","issue_url":"https://api.github.com/repos/gnab/rtl8812au/issues/144","id":399456392,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTQ1NjM5Mg==","user":{"login":"penguin360","id":37666460,"node_id":"MDQ6VXNlcjM3NjY2NDYw","avatar_url":"https://avatars3.githubusercontent.com/u/37666460?v=4","gravatar_id":"","url":"https://api.github.com/users/penguin360","html_url":"https://github.com/penguin360","followers_url":"https://api.github.com/users/penguin360/followers","following_url":"https://api.github.com/users/penguin360/following{/other_user}","gists_url":"https://api.github.com/users/penguin360/gists{/gist_id}","starred_url":"https://api.github.com/users/penguin360/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/penguin360/subscriptions","organizations_url":"https://api.github.com/users/penguin360/orgs","repos_url":"https://api.github.com/users/penguin360/repos","events_url":"https://api.github.com/users/penguin360/events{/privacy}","received_events_url":"https://api.github.com/users/penguin360/received_events","type":"User","site_admin":false},"created_at":"2018-06-22T14:12:52Z","updated_at":"2018-06-22T14:12:52Z","author_association":"NONE","body":"@kimocoder thanks for your reply. I am just a regular Ubuntu end user and I don't do Linux programming, so I don't know how to do it. I will be very grateful for anyone who can do it."}}
{"actor":{"display_login":"penguin360"}}