kbuild Development List
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Daniel Palmer <daniel@0x0f.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [chenxing:mstar_v6_5_reorder 587/700] drivers/usb/host/ehci-fotg210.c:180:6: warning: no previous prototype for 'fotg210_port_oc'
Date: Wed, 05 Aug 2026 06:18:13 +0800	[thread overview]
Message-ID: <202608050607.nCLKilkK-lkp@intel.com> (raw)

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/202608050607.nCLKilkK-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260805/202608050607.nCLKilkK-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202608050607.nCLKilkK-lkp@intel.com/

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

                 reply	other threads:[~2026-08-04 22:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202608050607.nCLKilkK-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=daniel@0x0f.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox