Re: [PATCH] staging: wilc1000: fix undefined reference to `__this_module' compilation error

2018-08-09 Thread Greg KH
On Thu, Aug 09, 2018 at 03:51:55PM +0300, Dan Carpenter wrote: > On Thu, Aug 09, 2018 at 02:13:24PM +0200, Greg KH wrote: > > On Thu, Aug 09, 2018 at 01:43:58PM +0300, Dan Carpenter wrote: > > > On Thu, Aug 09, 2018 at 01:08:38PM +0300, Dan Carpenter wrote: > > > > On Thu, Aug 09, 2018 at

Re: [PATCH] staging: wilc1000: fix undefined reference to `__this_module' compilation error

2018-08-09 Thread Dan Carpenter
On Thu, Aug 09, 2018 at 02:13:24PM +0200, Greg KH wrote: > On Thu, Aug 09, 2018 at 01:43:58PM +0300, Dan Carpenter wrote: > > On Thu, Aug 09, 2018 at 01:08:38PM +0300, Dan Carpenter wrote: > > > On Thu, Aug 09, 2018 at 12:13:06PM +0530, Ajay Singh wrote: > > > > wilc_dir =

Re: [PATCH] staging: wilc1000: fix undefined reference to `__this_module' compilation error

2018-08-09 Thread Greg KH
On Thu, Aug 09, 2018 at 01:43:58PM +0300, Dan Carpenter wrote: > On Thu, Aug 09, 2018 at 01:08:38PM +0300, Dan Carpenter wrote: > > On Thu, Aug 09, 2018 at 12:13:06PM +0530, Ajay Singh wrote: > > > wilc_dir = debugfs_create_dir("wilc_wifi", NULL); > > > - for (i = 0; i <

Re: [PATCH] staging: wilc1000: fix undefined reference to `__this_module' compilation error

2018-08-09 Thread Ajay Singh
On Thu, 9 Aug 2018 13:43:58 +0300 Dan Carpenter wrote: > On Thu, Aug 09, 2018 at 01:08:38PM +0300, Dan Carpenter wrote: > > On Thu, Aug 09, 2018 at 12:13:06PM +0530, Ajay Singh wrote: > > > wilc_dir = debugfs_create_dir("wilc_wifi", NULL); > > > - for (i = 0; i < ARRAY_SIZE(debugfs_info);

Re: [PATCH] staging: wilc1000: fix undefined reference to `__this_module' compilation error

2018-08-09 Thread Ajay Singh
Hi Dan, On Thu, 9 Aug 2018 13:08:38 +0300 Dan Carpenter wrote: > On Thu, Aug 09, 2018 at 12:13:06PM +0530, Ajay Singh wrote: > > wilc_debug.o object file is included for both SDIO and SPI module. > > When anyone(either SDIO or SPI) module is compiled as loaded module > > and another as buildin

Re: [PATCH] staging: wilc1000: fix undefined reference to `__this_module' compilation error

2018-08-09 Thread Dan Carpenter
On Thu, Aug 09, 2018 at 01:08:38PM +0300, Dan Carpenter wrote: > On Thu, Aug 09, 2018 at 12:13:06PM +0530, Ajay Singh wrote: > > wilc_dir = debugfs_create_dir("wilc_wifi", NULL); > > - for (i = 0; i < ARRAY_SIZE(debugfs_info); i++) { > > - info = _info[i]; > > -

Re: [PATCH] staging: wilc1000: fix undefined reference to `__this_module' compilation error

2018-08-09 Thread Dan Carpenter
On Thu, Aug 09, 2018 at 12:13:06PM +0530, Ajay Singh wrote: > wilc_debug.o object file is included for both SDIO and SPI module. When > anyone(either SDIO or SPI) module is compiled as loaded module and another > as buildin module then below compilation error occurs. > >

[PATCH] staging: wilc1000: fix undefined reference to `__this_module' compilation error

2018-08-09 Thread Ajay Singh
wilc_debug.o object file is included for both SDIO and SPI module. When anyone(either SDIO or SPI) module is compiled as loaded module and another as buildin module then below compilation error occurs. "drivers/staging/wilc1000/wilc_debugfs.o:(.data+0x10): undefined reference to `__this_module'"