tree:
https://github.com/Freescale/linux-fslc 5.4-2.3.x-imx
head: a8a2b9ee4bec0b29d031324160b7f11af42a563a
commit: d74f8108dce77b0fb2496cfe92461de9766e060e [8473/16543] MLK-23677-4 usb: chipidea:
add tracepoint support for udc
config: x86_64-randconfig-a004-20210114 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
6077d55381a6aa3e947ef7abdc36a7515c598c8a)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
#
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=clang make.cross ARCH=x86_64
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.c:11:
In file included from drivers/usb/chipidea/trace.h:18:
> drivers/usb/chipidea/ci.h:476:47: error: incomplete definition of
type 'struct ci_hdrc_platform_data'
struct usb_otg_caps *otg_caps
= &ci->platdata->ci_otg_caps;
~~~~~~~~~~~~^
drivers/usb/chipidea/ci.h:251:9: note: forward declaration of 'struct
ci_hdrc_platform_data'
struct ci_hdrc_platform_data *platdata;
^
1 error generated.
--
In file included from drivers/usb/chipidea/trace.c:11:
In file included from drivers/usb/chipidea/trace.h:18:
> drivers/usb/chipidea/ci.h:476:47: error: incomplete definition of
type 'struct ci_hdrc_platform_data'
struct usb_otg_caps *otg_caps
= &ci->platdata->ci_otg_caps;
~~~~~~~~~~~~^
drivers/usb/chipidea/ci.h:251:9: note: forward declaration of 'struct
ci_hdrc_platform_data'
struct ci_hdrc_platform_data *platdata;
^
In file included from drivers/usb/chipidea/trace.c:11:
In file included from drivers/usb/chipidea/trace.h:91:
include/trace/define_trace.h:95:10: fatal error: './trace.h' file not found
#include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/define_trace.h:90:32: note: expanded from macro 'TRACE_INCLUDE'
# define TRACE_INCLUDE(system) __TRACE_INCLUDE(system)
^~~~~~~~~~~~~~~~~~~~~~~
include/trace/define_trace.h:87:34: note: expanded from macro
'__TRACE_INCLUDE'
# define __TRACE_INCLUDE(system) __stringify(TRACE_INCLUDE_PATH/system.h)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/stringify.h:10:27: note: expanded from macro '__stringify'
#define __stringify(x...) __stringify_1(x)
^~~~~~~~~~~~~~~~
include/linux/stringify.h:9:29: note: expanded from macro '__stringify_1'
#define __stringify_1(x...) #x
^~
<scratch space>:49:1: note: expanded from here
"./trace.h"
^~~~~~~~~~~
2 errors generated.
vim +476 drivers/usb/chipidea/ci.h
e443b333629f82ca Alexander Shishkin 2012-05-11 466
57677be5ef838743 Li Jun 2014-04-23 467 /**
57677be5ef838743 Li Jun 2014-04-23 468 * ci_otg_is_fsm_mode: runtime check
if otg controller
57677be5ef838743 Li Jun 2014-04-23 469 * is in otg fsm mode.
19353881b4afc9e2 Peter Chen 2014-09-22 470 *
19353881b4afc9e2 Peter Chen 2014-09-22 471 * @ci: chipidea device
57677be5ef838743 Li Jun 2014-04-23 472 */
57677be5ef838743 Li Jun 2014-04-23 473 static inline bool
ci_otg_is_fsm_mode(struct ci_hdrc *ci)
57677be5ef838743 Li Jun 2014-04-23 474 {
57677be5ef838743 Li Jun 2014-04-23 475 #ifdef CONFIG_USB_OTG_FSM
b0930d4cafb487a6 Li Jun 2015-07-09 @476 struct usb_otg_caps *otg_caps =
&ci->platdata->ci_otg_caps;
b0930d4cafb487a6 Li Jun 2015-07-09 477
57677be5ef838743 Li Jun 2014-04-23 478 return ci->is_otg &&
ci->roles[CI_ROLE_HOST] &&
b0930d4cafb487a6 Li Jun 2015-07-09 479 ci->roles[CI_ROLE_GADGET]
&& (otg_caps->srp_support ||
b0930d4cafb487a6 Li Jun 2015-07-09 480 otg_caps->hnp_support ||
otg_caps->adp_support);
57677be5ef838743 Li Jun 2014-04-23 481 #else
57677be5ef838743 Li Jun 2014-04-23 482 return false;
57677be5ef838743 Li Jun 2014-04-23 483 #endif
57677be5ef838743 Li Jun 2014-04-23 484 }
57677be5ef838743 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