Hi Peter,
FYI, the error/warning still remains.
tree:
https://github.com/Freescale/linux-fslc pr/257
head: 5df3672236fb7ca1b04a8e8fa65bf039400b5020
commit: d74f8108dce77b0fb2496cfe92461de9766e060e [8473/17025] MLK-23677-4 usb: chipidea:
add tracepoint support for udc
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
#
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 pr/257
git checkout d74f8108dce77b0fb2496cfe92461de9766e060e
# save the attached .config to linux build tree
make W=1 ARCH=i386
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: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.
--
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 include/trace/define_trace.h:102,
from drivers/usb/chipidea/trace.h:91,
from drivers/usb/chipidea/trace.c:11:
drivers/usb/chipidea/./trace.h: In function 'trace_raw_output_ci_log_trb':
drivers/usb/chipidea/./trace.h:62:12: warning: format '%llx' expects argument
of type 'long long unsigned int', but argument 6 has type 'dma_addr_t'
{aka 'unsigned int'} [-Wformat=]
62 | TP_printk("%s: req: %p, td %p, td_dma_address: 0x%llx, remaining_size:
%d,"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/trace_events.h:360:22: note: in definition of macro
'DECLARE_EVENT_CLASS'
360 | trace_seq_printf(s, print); \
| ^~~~~
drivers/usb/chipidea/./trace.h:62:2: note: in expansion of macro 'TP_printk'
62 | TP_printk("%s: req: %p, td %p, td_dma_address: 0x%llx, remaining_size:
%d,"
| ^~~~~~~~~
In file included from include/trace/trace_events.h:394,
from include/trace/define_trace.h:102,
from drivers/usb/chipidea/trace.h:91,
from drivers/usb/chipidea/trace.c:11:
drivers/usb/chipidea/./trace.h:62:54: note: format string is defined here
62 | TP_printk("%s: req: %p, td %p, td_dma_address: 0x%llx, remaining_size:
%d,"
| ~~~^
| |
| long long unsigned int
| %x
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for IMX_IRQSTEER
Depends on ARCH_MXC || COMPILE_TEST
Selected by
- DRM_IMX_DCSS && HAS_IOMEM
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