lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <201509160310.FiynyPOo%fengguang.wu@intel.com>
Date:	Wed, 16 Sep 2015 03:57:11 +0800
From:	kbuild test robot <fengguang.wu@...el.com>
To:	Oliver Neukum <oneukum@...e.com>
Cc:	kbuild-all@...org, netdev@...r.kernel.org
Subject: [net-next:master 6/12] include/linux/usb/cdc.h:23: error:
 redefinition of 'struct usb_cdc_parsed_header'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head:   8b711d6db5c78a6d1969fb0fccb93daa7df53762
commit: c40a2c8817e42273a4627c48c884b805475a733f [6/12] CDC: common parser for extra headers
config: avr32-atngw100_defconfig (attached as .config)
reproduce:
  wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
  chmod +x ~/bin/make.cross
  git checkout c40a2c8817e42273a4627c48c884b805475a733f
  # save the attached .config to linux build tree
  make.cross ARCH=avr32 

All error/warnings (new ones prefixed by >>):

   In file included from drivers/usb/gadget/function/u_ether.h:20,
                    from drivers/usb/gadget/legacy/cdc2.c:16:
   include/linux/usb/cdc.h:47: warning: 'struct usb_interface' declared inside parameter list
   include/linux/usb/cdc.h:47: warning: its scope is only this definition or declaration, which is probably not what you want
   In file included from drivers/usb/gadget/function/u_serial.h:16,
                    from drivers/usb/gadget/legacy/cdc2.c:17:
>> include/linux/usb/cdc.h:23: error: redefinition of 'struct usb_cdc_parsed_header'
   include/linux/usb/cdc.h:47: warning: 'struct usb_interface' declared inside parameter list
>> include/linux/usb/cdc.h:47: error: conflicting types for 'cdc_parse_cdc_header'
   include/linux/usb/cdc.h:47: error: previous declaration of 'cdc_parse_cdc_header' was here

vim +23 include/linux/usb/cdc.h

    17	#define CDC_PHONET_MAGIC_NUMBER		0xAB
    18	
    19	/*
    20	 * parsing CDC headers
    21	 */
    22	
  > 23	struct usb_cdc_parsed_header {
    24		struct usb_cdc_union_desc *usb_cdc_union_desc;
    25		struct usb_cdc_header_desc *usb_cdc_header_desc;
    26	
    27		struct usb_cdc_call_mgmt_descriptor *usb_cdc_call_mgmt_descriptor;
    28		struct usb_cdc_acm_descriptor *usb_cdc_acm_descriptor;
    29		struct usb_cdc_country_functional_desc *usb_cdc_country_functional_desc;
    30		struct usb_cdc_network_terminal_desc *usb_cdc_network_terminal_desc;
    31		struct usb_cdc_ether_desc *usb_cdc_ether_desc;
    32		struct usb_cdc_dmm_desc *usb_cdc_dmm_desc;
    33		struct usb_cdc_mdlm_desc *usb_cdc_mdlm_desc;
    34		struct usb_cdc_mdlm_detail_desc *usb_cdc_mdlm_detail_desc;
    35		struct usb_cdc_obex_desc *usb_cdc_obex_desc;
    36		struct usb_cdc_ncm_desc *usb_cdc_ncm_desc;
    37		struct usb_cdc_mbim_desc *usb_cdc_mbim_desc;
    38		struct usb_cdc_mbim_extended_desc *usb_cdc_mbim_extended_desc;
    39	
    40		bool phonet_magic_present;
    41	};
    42	
    43	
    44	int cdc_parse_cdc_header(struct usb_cdc_parsed_header *hdr,
    45					struct usb_interface *intf,
    46					u8 *buffer,
  > 47					int buflen);

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

View attachment ".config" of type "text/plain" (47171 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ