Hi Peter,
FYI, the error/warning still remains.
tree:
https://github.com/Freescale/linux-fslc 5.4-2.3.x-imx
head: eddae7f28ad6141e734634c3acb6c6b16df76244
commit: d74f8108dce77b0fb2496cfe92461de9766e060e [8473/17762] MLK-23677-4 usb: chipidea:
add tracepoint support for udc
config: m68k-randconfig-r002-20210318 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://github.com/Freescale/linux-fslc/commit/d74f8108dce77b0fb2496cfe92...
git remote add freescale-fslc
https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc 5.4-2.3.x-imx
git checkout d74f8108dce77b0fb2496cfe92461de9766e060e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/usb/chipidea/trace.h:18,
from drivers/usb/chipidea/trace.c:11:
drivers/usb/chipidea/ci.h: In function 'ci_otg_is_fsm_mode':
> drivers/usb/chipidea/ci.h:476:47: error: dereferencing pointer to
incomplete type 'struct ci_hdrc_platform_data'
476 | struct
usb_otg_caps *otg_caps = &ci->platdata->ci_otg_caps;
| ^~
--
In file included from drivers/usb/chipidea/trace.h:18,
from drivers/usb/chipidea/trace.c:11:
drivers/usb/chipidea/ci.h: In function 'ci_otg_is_fsm_mode':
> drivers/usb/chipidea/ci.h:476:47: error: dereferencing pointer to
incomplete type 'struct ci_hdrc_platform_data'
476 | struct
usb_otg_caps *otg_caps = &ci->platdata->ci_otg_caps;
| ^~
In file included from drivers/usb/chipidea/trace.h:91,
from drivers/usb/chipidea/trace.c:11:
include/trace/define_trace.h: At top level:
include/trace/define_trace.h:95:42: fatal error: ./trace.h: No such file or directory
95 | #include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
| ^
compilation terminated.
vim +476 drivers/usb/chipidea/ci.h
e443b333629f82 Alexander Shishkin 2012-05-11 466
57677be5ef8387 Li Jun 2014-04-23 467 /**
57677be5ef8387 Li Jun 2014-04-23 468 * ci_otg_is_fsm_mode: runtime check if
otg controller
57677be5ef8387 Li Jun 2014-04-23 469 * is in otg fsm mode.
19353881b4afc9 Peter Chen 2014-09-22 470 *
19353881b4afc9 Peter Chen 2014-09-22 471 * @ci: chipidea device
57677be5ef8387 Li Jun 2014-04-23 472 */
57677be5ef8387 Li Jun 2014-04-23 473 static inline bool
ci_otg_is_fsm_mode(struct ci_hdrc *ci)
57677be5ef8387 Li Jun 2014-04-23 474 {
57677be5ef8387 Li Jun 2014-04-23 475 #ifdef CONFIG_USB_OTG_FSM
b0930d4cafb487 Li Jun 2015-07-09 @476 struct usb_otg_caps *otg_caps =
&ci->platdata->ci_otg_caps;
b0930d4cafb487 Li Jun 2015-07-09 477
57677be5ef8387 Li Jun 2014-04-23 478 return ci->is_otg &&
ci->roles[CI_ROLE_HOST] &&
b0930d4cafb487 Li Jun 2015-07-09 479 ci->roles[CI_ROLE_GADGET]
&& (otg_caps->srp_support ||
b0930d4cafb487 Li Jun 2015-07-09 480 otg_caps->hnp_support ||
otg_caps->adp_support);
57677be5ef8387 Li Jun 2014-04-23 481 #else
57677be5ef8387 Li Jun 2014-04-23 482 return false;
57677be5ef8387 Li Jun 2014-04-23 483 #endif
57677be5ef8387 Li Jun 2014-04-23 484 }
57677be5ef8387 Li Jun 2014-04-23 485
:::::: The code at line 476 was first introduced by commit
:::::: b0930d4cafb487a663ac6780a0369d1a0f461bc2 usb: chipidea: update ci_otg_is_fsm_mode
conditions
:::::: TO: Li Jun <jun.li(a)freescale.com>
:::::: CC: Felipe Balbi <balbi(a)ti.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org