public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* drivers/staging/wilc1000/host_interface.c:4135:5: error: conflicting types for 'host_int_init'
@ 2015-11-14 23:15 kbuild test robot
  2015-11-16  2:04 ` glen lee
  0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2015-11-14 23:15 UTC (permalink / raw)
  To: Glen Lee; +Cc: kbuild-all, linux-kernel, Greg Kroah-Hartman

[-- Attachment #1: Type: text/plain, Size: 2002 bytes --]

Hi Glen,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   12b76f3bf336388916ddf8047156f9e9993ff4e9
commit: d5382219138db78b82631501b0f614e5fd012ad1 staging: wilc1000: host_int_init: add argument net_device
date:   2 weeks ago
config: i386-allyesconfig (attached as .config)
reproduce:
        git checkout d5382219138db78b82631501b0f614e5fd012ad1
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   In file included from drivers/staging/wilc1000/host_interface.c:5:0:
   drivers/staging/wilc1000/host_interface.h:914:50: warning: 'struct net_device' declared inside parameter list
    s32 host_int_init(struct net_device *dev, struct host_if_drv **phWFIDrv);
                                                     ^
   drivers/staging/wilc1000/host_interface.h:914:50: warning: its scope is only this definition or declaration, which is probably not what you want
>> drivers/staging/wilc1000/host_interface.c:4135:5: error: conflicting types for 'host_int_init'
    s32 host_int_init(struct net_device *dev, struct host_if_drv **hif_drv_handler)
        ^
   In file included from drivers/staging/wilc1000/host_interface.c:5:0:
   drivers/staging/wilc1000/host_interface.h:914:5: note: previous declaration of 'host_int_init' was here
    s32 host_int_init(struct net_device *dev, struct host_if_drv **phWFIDrv);
        ^

vim +/host_int_init +4135 drivers/staging/wilc1000/host_interface.c

  4129	
  4130	void host_int_send_network_info_to_host
  4131		(u8 *macStartAddress, u16 u16RxFrameLen, s8 s8Rssi)
  4132	{
  4133	}
  4134	
> 4135	s32 host_int_init(struct net_device *dev, struct host_if_drv **hif_drv_handler)
  4136	{
  4137		s32 result = 0;
  4138		struct host_if_drv *hif_drv;

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 51145 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: drivers/staging/wilc1000/host_interface.c:4135:5: error: conflicting types for 'host_int_init'
  2015-11-14 23:15 drivers/staging/wilc1000/host_interface.c:4135:5: error: conflicting types for 'host_int_init' kbuild test robot
@ 2015-11-16  2:04 ` glen lee
  0 siblings, 0 replies; 2+ messages in thread
From: glen lee @ 2015-11-16  2:04 UTC (permalink / raw)
  To: kbuild test robot; +Cc: kbuild-all, linux-kernel, Greg Kroah-Hartman

Hi fengguang,

This was fixed on staging-testing branch but not yet merged.

8224ec3e05b626b1b18ed0c107f2a2b1da979553 fixes this error also.

regards,
glen lee.


On 2015년 11월 15일 08:15, kbuild test robot wrote:
> Hi Glen,
>
> FYI, the error/warning still remains.
>
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   12b76f3bf336388916ddf8047156f9e9993ff4e9
> commit: d5382219138db78b82631501b0f614e5fd012ad1 staging: wilc1000: host_int_init: add argument net_device
> date:   2 weeks ago
> config: i386-allyesconfig (attached as .config)
> reproduce:
>          git checkout d5382219138db78b82631501b0f614e5fd012ad1
>          # save the attached .config to linux build tree
>          make ARCH=i386
>
> All errors (new ones prefixed by >>):
>
>     In file included from drivers/staging/wilc1000/host_interface.c:5:0:
>     drivers/staging/wilc1000/host_interface.h:914:50: warning: 'struct net_device' declared inside parameter list
>      s32 host_int_init(struct net_device *dev, struct host_if_drv **phWFIDrv);
>                                                       ^
>     drivers/staging/wilc1000/host_interface.h:914:50: warning: its scope is only this definition or declaration, which is probably not what you want
>>> drivers/staging/wilc1000/host_interface.c:4135:5: error: conflicting types for 'host_int_init'
>      s32 host_int_init(struct net_device *dev, struct host_if_drv **hif_drv_handler)
>          ^
>     In file included from drivers/staging/wilc1000/host_interface.c:5:0:
>     drivers/staging/wilc1000/host_interface.h:914:5: note: previous declaration of 'host_int_init' was here
>      s32 host_int_init(struct net_device *dev, struct host_if_drv **phWFIDrv);
>          ^
>
> vim +/host_int_init +4135 drivers/staging/wilc1000/host_interface.c
>
>    4129	
>    4130	void host_int_send_network_info_to_host
>    4131		(u8 *macStartAddress, u16 u16RxFrameLen, s8 s8Rssi)
>    4132	{
>    4133	}
>    4134	
>> 4135	s32 host_int_init(struct net_device *dev, struct host_if_drv **hif_drv_handler)
>    4136	{
>    4137		s32 result = 0;
>    4138		struct host_if_drv *hif_drv;
>
> ---
> 0-DAY kernel test infrastructure                Open Source Technology Center
> https://lists.01.org/pipermail/kbuild-all                   Intel Corporation


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-11-16  2:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-14 23:15 drivers/staging/wilc1000/host_interface.c:4135:5: error: conflicting types for 'host_int_init' kbuild test robot
2015-11-16  2:04 ` glen lee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox