public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [arnd-playground:randconfig-5.16-min 165/191] drivers/usb/host/fhci.h:245:26: error: array type has incomplete element type 'struct gpio_desc'
Date: Wed, 1 Dec 2021 00:45:48 +0800	[thread overview]
Message-ID: <202112010005.F7PgW900-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git randconfig-5.16-min
head:   7a16665b8fd19f170c0c15f1432c90e4750183f2
commit: d072f346046db778b5a416898383e8a1bb860aa6 [165/191] replace most of_gpio_get
config: powerpc-allyesconfig (https://download.01.org/0day-ci/archive/20211201/202112010005.F7PgW900-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 11.2.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://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/commit/?id=d072f346046db778b5a416898383e8a1bb860aa6
        git remote add arnd-playground https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git
        git fetch --no-tags arnd-playground randconfig-5.16-min
        git checkout d072f346046db778b5a416898383e8a1bb860aa6
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from drivers/usb/host/fhci-hcd.c:32:
>> drivers/usb/host/fhci.h:245:26: error: array type has incomplete element type 'struct gpio_desc'
     245 |         struct gpio_desc gpios[NUM_GPIOS];
         |                          ^~~~~
   In file included from include/linux/device.h:15,
                    from arch/powerpc/include/asm/io.h:27,
                    from include/linux/io.h:13,
                    from include/linux/irq.h:20,
                    from arch/powerpc/include/asm/hardirq.h:6,
                    from include/linux/hardirq.h:11,
                    from include/linux/interrupt.h:11,
                    from drivers/usb/host/fhci-hcd.c:21:
   drivers/usb/host/fhci-hcd.c: In function 'of_fhci_probe':
>> drivers/usb/host/fhci-hcd.c:636:67: error: 'gpio' undeclared (first use in this function)
     636 |                         dev_err(dev, "incorrect GPIO%d: %d\n", i, gpio);
         |                                                                   ^~~~
   include/linux/dev_printk.h:110:37: note: in definition of macro 'dev_printk_index_wrap'
     110 |                 _p_func(dev, fmt, ##__VA_ARGS__);                       \
         |                                     ^~~~~~~~~~~
   drivers/usb/host/fhci-hcd.c:636:25: note: in expansion of macro 'dev_err'
     636 |                         dev_err(dev, "incorrect GPIO%d: %d\n", i, gpio);
         |                         ^~~~~~~
   drivers/usb/host/fhci-hcd.c:636:67: note: each undeclared identifier is reported only once for each function it appears in
     636 |                         dev_err(dev, "incorrect GPIO%d: %d\n", i, gpio);
         |                                                                   ^~~~
   include/linux/dev_printk.h:110:37: note: in definition of macro 'dev_printk_index_wrap'
     110 |                 _p_func(dev, fmt, ##__VA_ARGS__);                       \
         |                                     ^~~~~~~~~~~
   drivers/usb/host/fhci-hcd.c:636:25: note: in expansion of macro 'dev_err'
     636 |                         dev_err(dev, "incorrect GPIO%d: %d\n", i, gpio);
         |                         ^~~~~~~
--
   In file included from drivers/usb/host/fhci-hub.c:24:
>> drivers/usb/host/fhci.h:245:26: error: array type has incomplete element type 'struct gpio_desc'
     245 |         struct gpio_desc gpios[NUM_GPIOS];
         |                          ^~~~~


vim +245 drivers/usb/host/fhci.h

   240	
   241	struct fhci_hcd {
   242		enum qe_clock fullspeed_clk;
   243		enum qe_clock lowspeed_clk;
   244		struct qe_pin *pins[NUM_PINS];
 > 245		struct gpio_desc gpios[NUM_GPIOS];
   246	
   247		struct qe_usb_ctlr __iomem *regs; /* I/O memory used to communicate */
   248		struct fhci_pram __iomem *pram;	/* Parameter RAM */
   249		struct gtm_timer *timer;
   250	
   251		spinlock_t lock;
   252		struct fhci_usb *usb_lld; /* Low-level driver */
   253		struct virtual_root_hub *vroot_hub; /* the virtual root hub */
   254		int active_urbs;
   255		struct fhci_controller_list *hc_list;
   256		struct tasklet_struct *process_done_task; /* tasklet for done list */
   257	
   258		struct list_head empty_eds;
   259		struct list_head empty_tds;
   260	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

                 reply	other threads:[~2021-11-30 16:46 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=202112010005.F7PgW900-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=arnd@arndb.de \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    /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