{"action":"opened","issue":{"url":"https://api.github.com/repos/lwfinger/rtlwifi_new/issues/75","labels_url":"https://api.github.com/repos/lwfinger/rtlwifi_new/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/lwfinger/rtlwifi_new/issues/75/comments","events_url":"https://api.github.com/repos/lwfinger/rtlwifi_new/issues/75/events","html_url":"https://github.com/lwfinger/rtlwifi_new/issues/75","id":114390010,"number":75,"title":"Not compatible with kernel 4.2.3 and above (atleast)","user":{"login":"saksham0808","id":10418596,"avatar_url":"https://avatars.githubusercontent.com/u/10418596?v=3","gravatar_id":"","url":"https://api.github.com/users/saksham0808","html_url":"https://github.com/saksham0808","followers_url":"https://api.github.com/users/saksham0808/followers","following_url":"https://api.github.com/users/saksham0808/following{/other_user}","gists_url":"https://api.github.com/users/saksham0808/gists{/gist_id}","starred_url":"https://api.github.com/users/saksham0808/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saksham0808/subscriptions","organizations_url":"https://api.github.com/users/saksham0808/orgs","repos_url":"https://api.github.com/users/saksham0808/repos","events_url":"https://api.github.com/users/saksham0808/events{/privacy}","received_events_url":"https://api.github.com/users/saksham0808/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-31T06:02:39Z","updated_at":"2015-10-31T06:02:39Z","closed_at":null,"body":"I have been using this for a long time. I last build it on 4.1.12 on my Arch Linux. Later shifted to gentoo, whose patched kernel is at 4.0.3 . So far so good. I had it working on both Arch and Gentoo.\r\nNow I wanted to shift to vanilla sources on Gentoo, landing me at 4.2.3 in Gentoo. Doesn't compile. (errors posted below). I get back to my Arch (which has been upgraded to 4.2.3 since a while). It doesn't compile there too (thus, you can't say that some package is missing). I fear there was some change which wasn't backward compatible in between 4.1.12 and 4.2.3\r\nHere is the error log:\r\n```\r\n/home/saksham/rtlwifi_new/debug.c: In function ‘dl_proc_open_mac_0’:\r\n/home/saksham/rtlwifi_new/debug.c:109:2: error: implicit declaration of function ‘PDE_DATA’ [-Werror=implicit-function-declaration]\r\n  return single_open(file, rtl_proc_get_mac_0, GET_INODE_DATA(inode));\r\n  ^\r\n/home/saksham/rtlwifi_new/debug.c:38:34: warning: passing argument 3 of ‘single_open’ makes pointer from integer without a cast\r\n  #define GET_INODE_DATA(__node)  PDE_DATA(__node)\r\n                                  ^\r\n/home/saksham/rtlwifi_new/debug.c:109:47: note: in expansion of macro ‘GET_INODE_DATA’\r\n  return single_open(file, rtl_proc_get_mac_0, GET_INODE_DATA(inode));\r\n                                               ^\r\nIn file included from include/linux/seq_file_net.h:4:0,\r\n                 from include/net/net_namespace.h:141,\r\n                 from include/linux/netdevice.h:43,\r\n                 from include/linux/etherdevice.h:26,\r\n                 from /home/saksham/rtlwifi_new/wifi.h:37,\r\n                 from /home/saksham/rtlwifi_new/debug.c:30:\r\ninclude/linux/seq_file.h:131:5: note: expected ‘void *’ but argument is of type ‘int’\r\n int single_open(struct file *, int (*)(struct seq_file *, void *), void *);\r\n     ^\r\n/home/saksham/rtlwifi_new/debug.c: In function ‘dl_proc_open_mac_1’:\r\n/home/saksham/rtlwifi_new/debug.c:38:34: warning: passing argument 3 of ‘single_open’ makes pointer from integer without a cast\r\n  #define GET_INODE_DATA(__node)  PDE_DATA(__node)\r\n                                  ^\r\n/home/saksham/rtlwifi_new/debug.c:143:47: note: in expansion of macro ‘GET_INODE_DATA’\r\n  return single_open(file, rtl_proc_get_mac_1, GET_INODE_DATA(inode));\r\n                                               ^\r\nIn file included from include/linux/seq_file_net.h:4:0,\r\n                 from include/net/net_namespace.h:141,\r\n                 from include/linux/netdevice.h:43,\r\n                 from include/linux/etherdevice.h:26,\r\n                 from /home/saksham/rtlwifi_new/wifi.h:37,\r\n                 from /home/saksham/rtlwifi_new/debug.c:30:\r\ninclude/linux/seq_file.h:131:5: note: expected ‘void *’ but argument is of type ‘int’\r\n int single_open(struct file *, int (*)(struct seq_file *, void *), void *);\r\n     ^\r\n/home/saksham/rtlwifi_new/debug.c: In function ‘dl_proc_open_mac_2’:\r\n/home/saksham/rtlwifi_new/debug.c:38:34: warning: passing argument 3 of ‘single_open’ makes pointer from integer without a cast\r\n  #define GET_INODE_DATA(__node)  PDE_DATA(__node)\r\n                                  ^\r\n/home/saksham/rtlwifi_new/debug.c:177:47: note: in expansion of macro ‘GET_INODE_DATA’\r\n  return single_open(file, rtl_proc_get_mac_2, GET_INODE_DATA(inode));\r\n                                               ^\r\nIn file included from include/linux/seq_file_net.h:4:0,\r\n                 from include/net/net_namespace.h:141,\r\n                 from include/linux/netdevice.h:43,\r\n                 from include/linux/etherdevice.h:26,\r\n                 from /home/saksham/rtlwifi_new/wifi.h:37,\r\n                 from /home/saksham/rtlwifi_new/debug.c:30:\r\ninclude/linux/seq_file.h:131:5: note: expected ‘void *’ but argument is of type ‘int’\r\n int single_open(struct file *, int (*)(struct seq_file *, void *), void *);\r\n     ^\r\n/home/saksham/rtlwifi_new/debug.c: In function ‘dl_proc_open_mac_3’:\r\n/home/saksham/rtlwifi_new/debug.c:38:34: warning: passing argument 3 of ‘single_open’ makes pointer from integer without a cast\r\n  #define GET_INODE_DATA(__node)  PDE_DATA(__node)\r\n                                  ^\r\n/home/saksham/rtlwifi_new/debug.c:211:47: note: in expansion of macro ‘GET_INODE_DATA’\r\n  return single_open(file, rtl_proc_get_mac_3, GET_INODE_DATA(inode));\r\n                                               ^\r\nIn file included from include/linux/seq_file_net.h:4:0,\r\n                 from include/net/net_namespace.h:141,\r\n                 from include/linux/netdevice.h:43,\r\n                 from include/linux/etherdevice.h:26,\r\n                 from /home/saksham/rtlwifi_new/wifi.h:37,\r\n                 from /home/saksham/rtlwifi_new/debug.c:30:\r\ninclude/linux/seq_file.h:131:5: note: expected ‘void *’ but argument is of type ‘int’\r\n int single_open(struct file *, int (*)(struct seq_file *, void *), void *);\r\n     ^\r\n/home/saksham/rtlwifi_new/debug.c: In function ‘dl_proc_open_mac_4’:\r\n/home/saksham/rtlwifi_new/debug.c:38:34: warning: passing argument 3 of ‘single_open’ makes pointer from integer without a cast\r\n  #define GET_INODE_DATA(__node)  PDE_DATA(__node)\r\n                                  ^\r\n/home/saksham/rtlwifi_new/debug.c:245:47: note: in expansion of macro ‘GET_INODE_DATA’\r\n  return single_open(file, rtl_proc_get_mac_4, GET_INODE_DATA(inode));\r\n                                               ^\r\nIn file included from include/linux/seq_file_net.h:4:0,\r\n                 from include/net/net_namespace.h:141,\r\n                 from include/linux/netdevice.h:43,\r\n                 from include/linux/etherdevice.h:26,\r\n                 from /home/saksham/rtlwifi_new/wifi.h:37,\r\n                 from /home/saksham/rtlwifi_new/debug.c:30:\r\ninclude/linux/seq_file.h:131:5: note: expected ‘void *’ but argument is of type ‘int’\r\n int single_open(struct file *, int (*)(struct seq_file *, void *), void *);\r\n     ^\r\n/home/saksham/rtlwifi_new/debug.c: In function ‘dl_proc_open_mac_5’:\r\n/home/saksham/rtlwifi_new/debug.c:38:34: warning: passing argument 3 of ‘single_open’ makes pointer from integer without a cast\r\n  #define GET_INODE_DATA(__node)  PDE_DATA(__node)\r\n                                  ^\r\n/home/saksham/rtlwifi_new/debug.c:279:47: note: in expansion of macro ‘GET_INODE_DATA’\r\n  return single_open(file, rtl_proc_get_mac_5, GET_INODE_DATA(inode));\r\n                                               ^\r\nIn file included from include/linux/seq_file_net.h:4:0,\r\n                 from include/net/net_namespace.h:141,\r\n                 from include/linux/netdevice.h:43,\r\n                 from include/linux/etherdevice.h:26,\r\n                 from /home/saksham/rtlwifi_new/wifi.h:37,\r\n                 from /home/saksham/rtlwifi_new/debug.c:30:\r\ninclude/linux/seq_file.h:131:5: note: expected ‘void *’ but argument is of type ‘int’\r\n int single_open(struct file *, int (*)(struct seq_file *, void *), void *);\r\n     ^\r\n/home/saksham/rtlwifi_new/debug.c: In function ‘dl_proc_open_mac_6’:\r\n/home/saksham/rtlwifi_new/debug.c:38:34: warning: passing argument 3 of ‘single_open’ makes pointer from integer without a cast\r\n  #define GET_INODE_DATA(__node)  PDE_DATA(__node)\r\n                                  ^\r\n/home/saksham/rtlwifi_new/debug.c:313:47: note: in expansion of macro ‘GET_INODE_DATA’\r\n  return single_open(file, rtl_proc_get_mac_6, GET_INODE_DATA(inode));\r\n                                               ^\r\nIn file included from include/linux/seq_file_net.h:4:0,\r\n                 from include/net/net_namespace.h:141,\r\n                 from include/linux/netdevice.h:43,\r\n                 from include/linux/etherdevice.h:26,\r\n                 from /home/saksham/rtlwifi_new/wifi.h:37,\r\n                 from /home/saksham/rtlwifi_new/debug.c:30:\r\ninclude/linux/seq_file.h:131:5: note: expected ‘void *’ but argument is of type ‘int’\r\n int single_open(struct file *, int (*)(struct seq_file *, void *), void *);\r\n     ^\r\n/home/saksham/rtlwifi_new/debug.c: In function ‘dl_proc_open_mac_7’:\r\n/home/saksham/rtlwifi_new/debug.c:38:34: warning: passing argument 3 of ‘single_open’ makes pointer from integer without a cast\r\n  #define GET_INODE_DATA(__node)  PDE_DATA(__node)\r\n                                  ^\r\n/home/saksham/rtlwifi_new/debug.c:347:47: note: in expansion of macro ‘GET_INODE_DATA’\r\n  return single_open(file, rtl_proc_get_mac_7, GET_INODE_DATA(inode));\r\n                                               ^\r\nIn file included from include/linux/seq_file_net.h:4:0,\r\n                 from include/net/net_namespace.h:141,\r\n                 from include/linux/netdevice.h:43,\r\n                 from include/linux/etherdevice.h:26,\r\n                 from /home/saksham/rtlwifi_new/wifi.h:37,\r\n                 from /home/saksham/rtlwifi_new/debug.c:30:\r\ninclude/linux/seq_file.h:131:5: note: expected ‘void *’ but argument is of type ‘int’\r\n int single_open(struct file *, int (*)(struct seq_file *, void *), void *);\r\n     ^\r\n/home/saksham/rtlwifi_new/debug.c: In function ‘dl_proc_open_bb_8’:\r\n/home/saksham/rtlwifi_new/debug.c:38:34: warning: passing argument 3 of ‘single_open’ makes pointer from integer without a cast\r\n  #define GET_INODE_DATA(__node)  PDE_DATA(__node)\r\n                                  ^\r\n/home/saksham/rtlwifi_new/debug.c:380:46: note: in expansion of macro ‘GET_INODE_DATA’\r\n  return single_open(file, rtl_proc_get_bb_8, GET_INODE_DATA(inode));\r\n                                              ^\r\nIn file included from include/linux/seq_file_net.h:4:0,\r\n                 from include/net/net_namespace.h:141,\r\n                 from include/linux/netdevice.h:43,\r\n                 from include/linux/etherdevice.h:26,\r\n                 from /home/saksham/rtlwifi_new/wifi.h:37,\r\n                 from /home/saksham/rtlwifi_new/debug.c:30:\r\ninclude/linux/seq_file.h:131:5: note: expected ‘void *’ but argument is of type ‘int’\r\n int single_open(struct file *, int (*)(struct seq_file *, void *), void *);\r\n     ^\r\n/home/saksham/rtlwifi_new/debug.c: In function ‘dl_proc_open_bb_9’:\r\n/home/saksham/rtlwifi_new/debug.c:38:34: warning: passing argument 3 of ‘single_open’ makes pointer from integer without a cast\r\n  #define GET_INODE_DATA(__node)  PDE_DATA(__node)\r\n                                  ^\r\n/home/saksham/rtlwifi_new/debug.c:413:46: note: in expansion of macro ‘GET_INODE_DATA’\r\n  return single_open(file, rtl_proc_get_bb_9, GET_INODE_DATA(inode));\r\n                                              ^\r\nIn file included from include/linux/seq_file_net.h:4:0,\r\n                 from include/net/net_namespace.h:141,\r\n                 from include/linux/netdevice.h:43,\r\n                 from include/linux/etherdevice.h:26,\r\n                 from /home/saksham/rtlwifi_new/wifi.h:37,\r\n                 from /home/saksham/rtlwifi_new/debug.c:30:\r\ninclude/linux/seq_file.h:131:5: note: expected ‘void *’ but argument is of type ‘int’\r\n int single_open(struct file *, int (*)(struct seq_file *, void *), void *);\r\n     ^\r\n/home/saksham/rtlwifi_new/debug.c: In function ‘dl_proc_open_bb_a’:\r\n/home/saksham/rtlwifi_new/debug.c:38:34: warning: passing argument 3 of ‘single_open’ makes pointer from integer without a cast\r\n  #define GET_INODE_DATA(__node)  PDE_DATA(__node)\r\n                                  ^\r\n/home/saksham/rtlwifi_new/debug.c:446:46: note: in expansion of macro ‘GET_INODE_DATA’\r\n  return single_open(file, rtl_proc_get_bb_a, GET_INODE_DATA(inode));\r\n                                              ^\r\nIn file included from include/linux/seq_file_net.h:4:0,\r\n                 from include/net/net_namespace.h:141,\r\n                 from include/linux/netdevice.h:43,\r\n                 from include/linux/etherdevice.h:26,\r\n                 from /home/saksham/rtlwifi_new/wifi.h:37,\r\n                 from /home/saksham/rtlwifi_new/debug.c:30:\r\ninclude/linux/seq_file.h:131:5: note: expected ‘void *’ but argument is of type ‘int’\r\n int single_open(struct file *, int (*)(struct seq_file *, void *), void *);\r\n     ^\r\n/home/saksham/rtlwifi_new/debug.c: In function ‘dl_proc_open_bb_b’:\r\n/home/saksham/rtlwifi_new/debug.c:38:34: warning: passing argument 3 of ‘single_open’ makes pointer from integer without a cast\r\n  #define GET_INODE_DATA(__node)  PDE_DATA(__node)\r\n                                  ^\r\n/home/saksham/rtlwifi_new/debug.c:479:46: note: in expansion of macro ‘GET_INODE_DATA’\r\n  return single_open(file, rtl_proc_get_bb_b, GET_INODE_DATA(inode));\r\n                                              ^\r\nIn file included from include/linux/seq_file_net.h:4:0,\r\n                 from include/net/net_namespace.h:141,\r\n                 from include/linux/netdevice.h:43,\r\n                 from include/linux/etherdevice.h:26,\r\n                 from /home/saksham/rtlwifi_new/wifi.h:37,\r\n                 from /home/saksham/rtlwifi_new/debug.c:30:\r\ninclude/linux/seq_file.h:131:5: note: expected ‘void *’ but argument is of type ‘int’\r\n int single_open(struct file *, int (*)(struct seq_file *, void *), void *);\r\n     ^\r\n/home/saksham/rtlwifi_new/debug.c: In function ‘dl_proc_open_bb_c’:\r\n/home/saksham/rtlwifi_new/debug.c:38:34: warning: passing argument 3 of ‘single_open’ makes pointer from integer without a cast\r\n  #define GET_INODE_DATA(__node)  PDE_DATA(__node)\r\n                                  ^\r\n/home/saksham/rtlwifi_new/debug.c:512:46: note: in expansion of macro ‘GET_INODE_DATA’\r\n  return single_open(file, rtl_proc_get_bb_c, GET_INODE_DATA(inode));\r\n                                              ^\r\nIn file included from include/linux/seq_file_net.h:4:0,\r\n                 from include/net/net_namespace.h:141,\r\n                 from include/linux/netdevice.h:43,\r\n                 from include/linux/etherdevice.h:26,\r\n                 from /home/saksham/rtlwifi_new/wifi.h:37,\r\n                 from /home/saksham/rtlwifi_new/debug.c:30:\r\ninclude/linux/seq_file.h:131:5: note: expected ‘void *’ but argument is of type ‘int’\r\n int single_open(struct file *, int (*)(struct seq_file *, void *), void *);\r\n     ^\r\n/home/saksham/rtlwifi_new/debug.c: In function ‘dl_proc_open_bb_d’:\r\n/home/saksham/rtlwifi_new/debug.c:38:34: warning: passing argument 3 of ‘single_open’ makes pointer from integer without a cast\r\n  #define GET_INODE_DATA(__node)  PDE_DATA(__node)\r\n                                  ^\r\n/home/saksham/rtlwifi_new/debug.c:545:46: note: in expansion of macro ‘GET_INODE_DATA’\r\n  return single_open(file, rtl_proc_get_bb_d, GET_INODE_DATA(inode));\r\n                                              ^\r\nIn file included from include/linux/seq_file_net.h:4:0,\r\n                 from include/net/net_namespace.h:141,\r\n                 from include/linux/netdevice.h:43,\r\n                 from include/linux/etherdevice.h:26,\r\n                 from /home/saksham/rtlwifi_new/wifi.h:37,\r\n                 from /home/saksham/rtlwifi_new/debug.c:30:\r\ninclude/linux/seq_file.h:131:5: note: expected ‘void *’ but argument is of type ‘int’\r\n int single_open(struct file *, int (*)(struct seq_file *, void *), void *);\r\n     ^\r\n/home/saksham/rtlwifi_new/debug.c: In function ‘dl_proc_open_bb_e’:\r\n/home/saksham/rtlwifi_new/debug.c:38:34: warning: passing argument 3 of ‘single_open’ makes pointer from integer without a cast\r\n  #define GET_INODE_DATA(__node)  PDE_DATA(__node)\r\n                                  ^\r\n/home/saksham/rtlwifi_new/debug.c:578:46: note: in expansion of macro ‘GET_INODE_DATA’\r\n  return single_open(file, rtl_proc_get_bb_e, GET_INODE_DATA(inode));\r\n                                              ^\r\nIn file included from include/linux/seq_file_net.h:4:0,\r\n                 from include/net/net_namespace.h:141,\r\n                 from include/linux/netdevice.h:43,\r\n                 from include/linux/etherdevice.h:26,\r\n                 from /home/saksham/rtlwifi_new/wifi.h:37,\r\n                 from /home/saksham/rtlwifi_new/debug.c:30:\r\ninclude/linux/seq_file.h:131:5: note: expected ‘void *’ but argument is of type ‘int’\r\n int single_open(struct file *, int (*)(struct seq_file *, void *), void *);\r\n     ^\r\n/home/saksham/rtlwifi_new/debug.c: In function ‘dl_proc_open_bb_f’:\r\n/home/saksham/rtlwifi_new/debug.c:38:34: warning: passing argument 3 of ‘single_open’ makes pointer from integer without a cast\r\n  #define GET_INODE_DATA(__node)  PDE_DATA(__node)\r\n                                  ^\r\n/home/saksham/rtlwifi_new/debug.c:611:46: note: in expansion of macro ‘GET_INODE_DATA’\r\n  return single_open(file, rtl_proc_get_bb_f, GET_INODE_DATA(inode));\r\n                                              ^\r\nIn file included from include/linux/seq_file_net.h:4:0,\r\n                 from include/net/net_namespace.h:141,\r\n                 from include/linux/netdevice.h:43,\r\n                 from include/linux/etherdevice.h:26,\r\n                 from /home/saksham/rtlwifi_new/wifi.h:37,\r\n                 from /home/saksham/rtlwifi_new/debug.c:30:\r\ninclude/linux/seq_file.h:131:5: note: expected ‘void *’ but argument is of type ‘int’\r\n int single_open(struct file *, int (*)(struct seq_file *, void *), void *);\r\n     ^\r\n/home/saksham/rtlwifi_new/debug.c: In function ‘dl_proc_open_rf_a’:\r\n/home/saksham/rtlwifi_new/debug.c:38:34: warning: passing argument 3 of ‘single_open’ makes pointer from integer without a cast\r\n  #define GET_INODE_DATA(__node)  PDE_DATA(__node)\r\n                                  ^\r\n/home/saksham/rtlwifi_new/debug.c:644:50: note: in expansion of macro ‘GET_INODE_DATA’\r\n  return single_open(file, rtl_proc_get_reg_rf_a, GET_INODE_DATA(inode));\r\n                                                  ^\r\nIn file included from include/linux/seq_file_net.h:4:0,\r\n                 from include/net/net_namespace.h:141,\r\n                 from include/linux/netdevice.h:43,\r\n                 from include/linux/etherdevice.h:26,\r\n                 from /home/saksham/rtlwifi_new/wifi.h:37,\r\n                 from /home/saksham/rtlwifi_new/debug.c:30:\r\ninclude/linux/seq_file.h:131:5: note: expected ‘void *’ but argument is of type ‘int’\r\n int single_open(struct file *, int (*)(struct seq_file *, void *), void *);\r\n     ^\r\n/home/saksham/rtlwifi_new/debug.c: In function ‘dl_proc_open_rf_b’:\r\n/home/saksham/rtlwifi_new/debug.c:38:34: warning: passing argument 3 of ‘single_open’ makes pointer from integer without a cast\r\n  #define GET_INODE_DATA(__node)  PDE_DATA(__node)\r\n                                  ^\r\n/home/saksham/rtlwifi_new/debug.c:677:50: note: in expansion of macro ‘GET_INODE_DATA’\r\n  return single_open(file, rtl_proc_get_reg_rf_b, GET_INODE_DATA(inode));\r\n                                                  ^\r\nIn file included from include/linux/seq_file_net.h:4:0,\r\n                 from include/net/net_namespace.h:141,\r\n                 from include/linux/netdevice.h:43,\r\n                 from include/linux/etherdevice.h:26,\r\n                 from /home/saksham/rtlwifi_new/wifi.h:37,\r\n                 from /home/saksham/rtlwifi_new/debug.c:30:\r\ninclude/linux/seq_file.h:131:5: note: expected ‘void *’ but argument is of type ‘int’\r\n int single_open(struct file *, int (*)(struct seq_file *, void *), void *);\r\n     ^\r\n/home/saksham/rtlwifi_new/debug.c: In function ‘dl_proc_open_cam_1’:\r\n/home/saksham/rtlwifi_new/debug.c:38:34: warning: passing argument 3 of ‘single_open’ makes pointer from integer without a cast\r\n  #define GET_INODE_DATA(__node)  PDE_DATA(__node)\r\n                                  ^\r\n/home/saksham/rtlwifi_new/debug.c:737:7: note: in expansion of macro ‘GET_INODE_DATA’\r\n       GET_INODE_DATA(inode));\r\n       ^\r\nIn file included from include/linux/seq_file_net.h:4:0,\r\n                 from include/net/net_namespace.h:141,\r\n                 from include/linux/netdevice.h:43,\r\n                 from include/linux/etherdevice.h:26,\r\n                 from /home/saksham/rtlwifi_new/wifi.h:37,\r\n                 from /home/saksham/rtlwifi_new/debug.c:30:\r\ninclude/linux/seq_file.h:131:5: note: expected ‘void *’ but argument is of type ‘int’\r\n int single_open(struct file *, int (*)(struct seq_file *, void *), void *);\r\n     ^\r\n/home/saksham/rtlwifi_new/debug.c: In function ‘dl_proc_open_cam_2’:\r\n/home/saksham/rtlwifi_new/debug.c:38:34: warning: passing argument 3 of ‘single_open’ makes pointer from integer without a cast\r\n  #define GET_INODE_DATA(__node)  PDE_DATA(__node)\r\n                                  ^\r\n/home/saksham/rtlwifi_new/debug.c:795:7: note: in expansion of macro ‘GET_INODE_DATA’\r\n       GET_INODE_DATA(inode));\r\n       ^\r\nIn file included from include/linux/seq_file_net.h:4:0,\r\n                 from include/net/net_namespace.h:141,\r\n                 from include/linux/netdevice.h:43,\r\n                 from include/linux/etherdevice.h:26,\r\n                 from /home/saksham/rtlwifi_new/wifi.h:37,\r\n                 from /home/saksham/rtlwifi_new/debug.c:30:\r\ninclude/linux/seq_file.h:131:5: note: expected ‘void *’ but argument is of type ‘int’\r\n int single_open(struct file *, int (*)(struct seq_file *, void *), void *);\r\n     ^\r\n/home/saksham/rtlwifi_new/debug.c: In function ‘dl_proc_open_cam_3’:\r\n/home/saksham/rtlwifi_new/debug.c:38:34: warning: passing argument 3 of ‘single_open’ makes pointer from integer without a cast\r\n  #define GET_INODE_DATA(__node)  PDE_DATA(__node)\r\n                                  ^\r\n/home/saksham/rtlwifi_new/debug.c:852:7: note: in expansion of macro ‘GET_INODE_DATA’\r\n       GET_INODE_DATA(inode));\r\n       ^\r\nIn file included from include/linux/seq_file_net.h:4:0,\r\n                 from include/net/net_namespace.h:141,\r\n                 from include/linux/netdevice.h:43,\r\n                 from include/linux/etherdevice.h:26,\r\n                 from /home/saksham/rtlwifi_new/wifi.h:37,\r\n                 from /home/saksham/rtlwifi_new/debug.c:30:\r\ninclude/linux/seq_file.h:131:5: note: expected ‘void *’ but argument is of type ‘int’\r\n int single_open(struct file *, int (*)(struct seq_file *, void *), void *);\r\n     ^\r\n/home/saksham/rtlwifi_new/debug.c: In function ‘rtl_proc_add_one’:\r\n/home/saksham/rtlwifi_new/debug.c:876:2: error: implicit declaration of function ‘proc_mkdir’ [-Werror=implicit-function-declaration]\r\n  rtlpriv->dbg.proc_dir = proc_mkdir(rtlpriv->dbg.proc_name, proc_topdir);\r\n  ^\r\n/home/saksham/rtlwifi_new/debug.c:876:24: warning: assignment makes pointer from integer without a cast\r\n  rtlpriv->dbg.proc_dir = proc_mkdir(rtlpriv->dbg.proc_name, proc_topdir);\r\n                        ^\r\n/home/saksham/rtlwifi_new/debug.c:884:2: error: implicit declaration of function ‘proc_create_data’ [-Werror=implicit-function-declaration]\r\n  entry = proc_create_data(\"mac-0\", S_IFREG | S_IRUGO,\r\n  ^\r\n/home/saksham/rtlwifi_new/debug.c:884:8: warning: assignment makes pointer from integer without a cast\r\n  entry = proc_create_data(\"mac-0\", S_IFREG | S_IRUGO,\r\n        ^\r\n/home/saksham/rtlwifi_new/debug.c:891:8: warning: assignment makes pointer from integer without a cast\r\n  entry = proc_create_data(\"mac-1\", S_IFREG | S_IRUGO,\r\n        ^\r\n/home/saksham/rtlwifi_new/debug.c:898:8: warning: assignment makes pointer from integer without a cast\r\n  entry = proc_create_data(\"mac-2\", S_IFREG | S_IRUGO,\r\n        ^\r\n/home/saksham/rtlwifi_new/debug.c:905:8: warning: assignment makes pointer from integer without a cast\r\n  entry = proc_create_data(\"mac-3\", S_IFREG | S_IRUGO,\r\n        ^\r\n/home/saksham/rtlwifi_new/debug.c:912:8: warning: assignment makes pointer from integer without a cast\r\n  entry = proc_create_data(\"mac-4\", S_IFREG | S_IRUGO,\r\n        ^\r\n/home/saksham/rtlwifi_new/debug.c:919:8: warning: assignment makes pointer from integer without a cast\r\n  entry = proc_create_data(\"mac-5\", S_IFREG | S_IRUGO,\r\n        ^\r\n/home/saksham/rtlwifi_new/debug.c:926:8: warning: assignment makes pointer from integer without a cast\r\n  entry = proc_create_data(\"mac-6\", S_IFREG | S_IRUGO,\r\n        ^\r\n/home/saksham/rtlwifi_new/debug.c:933:8: warning: assignment makes pointer from integer without a cast\r\n  entry = proc_create_data(\"mac-7\", S_IFREG | S_IRUGO,\r\n        ^\r\n/home/saksham/rtlwifi_new/debug.c:940:8: warning: assignment makes pointer from integer without a cast\r\n  entry = proc_create_data(\"bb-8\", S_IFREG | S_IRUGO,\r\n        ^\r\n/home/saksham/rtlwifi_new/debug.c:947:8: warning: assignment makes pointer from integer without a cast\r\n  entry = proc_create_data(\"bb-9\", S_IFREG | S_IRUGO,\r\n        ^\r\n/home/saksham/rtlwifi_new/debug.c:954:8: warning: assignment makes pointer from integer without a cast\r\n  entry = proc_create_data(\"bb-a\", S_IFREG | S_IRUGO,\r\n        ^\r\n/home/saksham/rtlwifi_new/debug.c:961:8: warning: assignment makes pointer from integer without a cast\r\n  entry = proc_create_data(\"bb-b\", S_IFREG | S_IRUGO,\r\n        ^\r\n/home/saksham/rtlwifi_new/debug.c:968:8: warning: assignment makes pointer from integer without a cast\r\n  entry = proc_create_data(\"bb-c\", S_IFREG | S_IRUGO,\r\n        ^\r\n/home/saksham/rtlwifi_new/debug.c:975:8: warning: assignment makes pointer from integer without a cast\r\n  entry = proc_create_data(\"bb-d\", S_IFREG | S_IRUGO,\r\n        ^\r\n/home/saksham/rtlwifi_new/debug.c:982:8: warning: assignment makes pointer from integer without a cast\r\n  entry = proc_create_data(\"bb-e\", S_IFREG | S_IRUGO,\r\n        ^\r\n/home/saksham/rtlwifi_new/debug.c:989:8: warning: assignment makes pointer from integer without a cast\r\n  entry = proc_create_data(\"bb-f\", S_IFREG | S_IRUGO,\r\n        ^\r\n/home/saksham/rtlwifi_new/debug.c:996:8: warning: assignment makes pointer from integer without a cast\r\n  entry = proc_create_data(\"rf-a\", S_IFREG | S_IRUGO,\r\n        ^\r\n/home/saksham/rtlwifi_new/debug.c:1003:8: warning: assignment makes pointer from integer without a cast\r\n  entry = proc_create_data(\"rf-b\", S_IFREG | S_IRUGO,\r\n        ^\r\n/home/saksham/rtlwifi_new/debug.c:1010:8: warning: assignment makes pointer from integer without a cast\r\n  entry = proc_create_data(\"cam-1\", S_IFREG | S_IRUGO,\r\n        ^\r\n/home/saksham/rtlwifi_new/debug.c:1017:8: warning: assignment makes pointer from integer without a cast\r\n  entry = proc_create_data(\"cam-2\", S_IFREG | S_IRUGO,\r\n        ^\r\n/home/saksham/rtlwifi_new/debug.c:1024:8: warning: assignment makes pointer from integer without a cast\r\n  entry = proc_create_data(\"cam-3\", S_IFREG | S_IRUGO,\r\n        ^\r\n/home/saksham/rtlwifi_new/debug.c: In function ‘rtl_proc_remove_one’:\r\n/home/saksham/rtlwifi_new/debug.c:1038:3: error: implicit declaration of function ‘remove_proc_entry’ [-Werror=implicit-function-declaration]\r\n   remove_proc_entry(\"mac-0\", rtlpriv->dbg.proc_dir);\r\n   ^\r\n/home/saksham/rtlwifi_new/debug.c: In function ‘rtl_proc_add_topdir’:\r\n/home/saksham/rtlwifi_new/debug.c:1069:14: warning: assignment makes pointer from integer without a cast\r\n  proc_topdir = proc_mkdir(\"rtlwifi\", init_net.proc_net);\r\n              ^\r\ncc1: some warnings being treated as errors\r\nmake[2]: *** [/home/saksham/rtlwifi_new/debug.o] Error 1\r\nmake[1]: *** [_module_/home/saksham/rtlwifi_new] Error 2\r\nmake: *** [all] Error 2\r\n```"}}