From: kbuild test robot <hidden> Date: 2015-09-15 19:58:00
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:
quoted
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
quoted
include/linux/usb/cdc.h:47: error: conflicting types for 'cdc_parse_cdc_header'
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:
quoted
quoted
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
quoted
quoted
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
This may be a side effect of the initial warning, does this reproduce with
that fixed? Please show me what the warning looks like in that case.
Thanks.
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:
quoted
quoted
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
quoted
quoted
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
This may be a side effect of the initial warning, does this reproduce with
that fixed? Please show me what the warning looks like in that case.
Dave, net-next/master commit ad1e7b97b3 ("cdc: Fix build warning.")
still has errors.
The problem is, the header file <linux/usb/cdc.h> is included twice.
recent_errors
├── arm-arm5
│ ├── include-linux-usb-cdc.h:error:conflicting-types-for-cdc_parse_cdc_header
│ └── include-linux-usb-cdc.h:error:redefinition-of-struct-usb_cdc_parsed_header
├── arm-arm67
│ ├── include-linux-usb-cdc.h:error:conflicting-types-for-cdc_parse_cdc_header
│ └── include-linux-usb-cdc.h:error:redefinition-of-struct-usb_cdc_parsed_header
├── arm-mmp
│ ├── include-linux-usb-cdc.h:error:conflicting-types-for-cdc_parse_cdc_header
│ └── include-linux-usb-cdc.h:error:redefinition-of-struct-usb_cdc_parsed_header
├── arm-omap2plus_defconfig
│ ├── include-linux-usb-cdc.h:error:conflicting-types-for-cdc_parse_cdc_header
│ └── include-linux-usb-cdc.h:error:redefinition-of-struct-usb_cdc_parsed_header
├── avr32-atngw100_defconfig
│ └── include-linux-usb-cdc.h:error:redefinition-of-struct-usb_cdc_parsed_header
├── avr32-atstk1006_defconfig
│ └── include-linux-usb-cdc.h:error:redefinition-of-struct-usb_cdc_parsed_header
└── i386-allmodconfig
├── include-linux-usb-cdc.h:error:conflicting-types-for-cdc_parse_cdc_header
└── include-linux-usb-cdc.h:error:redefinition-of-struct-usb_cdc_parsed_header
The error messages are now:
In file included from drivers/usb/gadget/function/u_ether.h:20:0,
from drivers/usb/gadget/function/f_ncm.c:26:
include/linux/usb/cdc.h:23:8: error: redefinition of 'struct usb_cdc_parsed_header'
struct usb_cdc_parsed_header {
^
In file included from drivers/usb/gadget/function/f_ncm.c:24:0:
include/linux/usb/cdc.h:23:8: note: originally defined here
struct usb_cdc_parsed_header {
^
In file included from drivers/usb/gadget/function/u_ether.h:20:0,
from drivers/usb/gadget/function/f_ncm.c:26:
include/linux/usb/cdc.h:44:5: error: conflicting types for 'cdc_parse_cdc_header'
int cdc_parse_cdc_header(struct usb_cdc_parsed_header *hdr,
^
In file included from drivers/usb/gadget/function/f_ncm.c:24:0:
include/linux/usb/cdc.h:44:5: note: previous declaration of 'cdc_parse_cdc_header' was here
int cdc_parse_cdc_header(struct usb_cdc_parsed_header *hdr,
^
Thanks,
Fengguang
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:
quoted
quoted
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
quoted
quoted
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
This may be a side effect of the initial warning, does this reproduce with
that fixed? Please show me what the warning looks like in that case.
Dave, net-next/master commit ad1e7b97b3 ("cdc: Fix build warning.")
still has errors.
The problem is, the header file <linux/usb/cdc.h> is included twice.
That's not possible after the patch I committed from Stephen Rothwell
which adds proper include guards:
====================
commit b84ee0d7f375ed7840c7c110d46eac24cf94b2a2
Author: Stephen Rothwell [off-list ref]
Date: Wed Sep 16 11:10:16 2015 +1000
cdc: add header guards
Signed-off-by: Stephen Rothwell [off-list ref]
Signed-off-by: David S. Miller [off-list ref]
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:
quoted
quoted
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
quoted
quoted
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
This may be a side effect of the initial warning, does this reproduce with
that fixed? Please show me what the warning looks like in that case.
Dave, net-next/master commit ad1e7b97b3 ("cdc: Fix build warning.")
still has errors.
The problem is, the header file <linux/usb/cdc.h> is included twice.
That's not possible after the patch I committed from Stephen Rothwell
which adds proper include guards:
Yes, this patch fixed the errors nicely!
Thanks,
Fengguang
quoted hunk
====================
commit b84ee0d7f375ed7840c7c110d46eac24cf94b2a2
Author: Stephen Rothwell [off-list ref]
Date: Wed Sep 16 11:10:16 2015 +1000
cdc: add header guards
Signed-off-by: Stephen Rothwell [off-list ref]
Signed-off-by: David S. Miller [off-list ref]