[chenxing:mstar_v6_5_reorder 587/700] drivers/usb/host/ehci-fotg210.c:180:6: warning: no previous prototype for 'fotg210_port_oc'

kernel test robot <[email protected]> Wed, 05 Aug 2026 06:18:13 +0800
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://github.com/linux-chenxing/linux.git mstar_v6_5_reorder
head:   1a5c60e65ea399670a5384b869c4958338af2799
commit: 4c302f546c0071a42617d28de4405321db76583c [587/700] usb: ehci: Add ehci driver for fotg210
config: nios2-allmodconfig (https://download.01.org/0day-ci/archive/20260805/[email protected]/config)
compiler: nios2-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260805/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

   drivers/usb/host/ehci-fotg210.c: In function 'fotg210_port_speed':
   drivers/usb/host/ehci-fotg210.c:139:16: error: 'struct ehci_hcd' has no member named 'fusbh200'
     139 |         if(ehci->fusbh200)
         |                ^~
   drivers/usb/host/ehci-fotg210.c: In function 'fotg210_enable_occ':
   drivers/usb/host/ehci-fotg210.c:168:17: error: 'struct ehci_hcd' has no member named 'fusbh200'
     168 |         if (ehci->fusbh200) {
         |                 ^~
   drivers/usb/host/ehci-fotg210.c: At top level:
>> drivers/usb/host/ehci-fotg210.c:180:6: warning: no previous prototype for 'fotg210_port_oc' [-Wmissing-prototypes]
     180 | bool fotg210_port_oc(struct ehci_hcd *ehci) {
         |      ^~~~~~~~~~~~~~~
   drivers/usb/host/ehci-fotg210.c: In function 'fotg210_port_oc':
   drivers/usb/host/ehci-fotg210.c:184:16: error: 'struct ehci_hcd' has no member named 'fusbh200'
     184 |         if(ehci->fusbh200){
         |                ^~
   drivers/usb/host/ehci-fotg210.c: In function 'fotg210_start_ehci':
   drivers/usb/host/ehci-fotg210.c:245:17: error: 'struct ehci_hcd' has no member named 'fusbh200'
     245 |         if (ehci->fusbh200) {
         |                 ^~
   drivers/usb/host/ehci-fotg210.c: In function 'ehci_fotg210_drv_probe':
   drivers/usb/host/ehci-fotg210.c:342:21: error: 'struct ehci_hcd' has no member named 'fotg210'
     342 |                 ehci->fotg210 = 1;
         |                     ^~
   drivers/usb/host/ehci-fotg210.c:345:21: error: 'struct ehci_hcd' has no member named 'fusbh200'
     345 |                 ehci->fusbh200 = 1;
         |                     ^~
   drivers/usb/host/ehci-fotg210.c:361:13: error: 'struct ehci_hcd' has no member named 'enable_port_occ'
     361 |         ehci->enable_port_occ = fotg210_enable_occ;
         |             ^~
   drivers/usb/host/ehci-fotg210.c:362:15: error: 'struct ehci_hcd' has no member named 'port_speed'; did you mean 'port_c_suspend'?
     362 |         ehci->port_speed = fotg210_port_speed;
         |               ^~~~~~~~~~
         |               port_c_suspend


vim +/fotg210_port_oc +180 drivers/usb/host/ehci-fotg210.c

   179	
 > 180	bool fotg210_port_oc(struct ehci_hcd *ehci) {
   181		struct fotg210_regs *regs = (void *) ehci->regs;
   182		u32 isr;
   183	
   184		if(ehci->fusbh200){
   185			isr = ehci_readl(ehci, &regs->bmisr);
   186			if (isr & BMISR_OVC)
   187				return true;
   188		}
   189		else {
   190			isr = ehci_readl(ehci, &regs->otgisr);
   191			if (isr & OTGISR_OVC)
   192				return true;
   193		}
   194	
   195		return false;
   196	}
   197	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki