All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [intel-linux-intel-lts:4.19/android_r 18601/22631] drivers/usb/host/xhci-dbgtty.c:497:6: warning: no previous prototype for 'xhci_dbc_tty_unregister_device'
Date: Sat, 10 Apr 2021 06:56:33 +0800	[thread overview]
Message-ID: <202104100627.JBdrwBPb-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 6701 bytes --]

tree:   https://github.com/intel/linux-intel-lts.git 4.19/android_r
head:   072f407465e8e25a3c2c22590e1ab72ccf335151
commit: 77896075c455635a9e8c59ade5e30b75711cc099 [18601/22631] usb: xhci: dbc: DbC TTY driver to use new interface
config: ia64-randconfig-r034-20210409 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.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://github.com/intel/linux-intel-lts/commit/77896075c455635a9e8c59ade5e30b75711cc099
        git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
        git fetch --no-tags intel-linux-intel-lts 4.19/android_r
        git checkout 77896075c455635a9e8c59ade5e30b75711cc099
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64 

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

All warnings (new ones prefixed by >>):

   In file included from arch/ia64/include/asm/pgtable.h:154,
                    from include/linux/memremap.h:7,
                    from include/linux/mm.h:27,
                    from arch/ia64/include/asm/uaccess.h:38,
                    from include/linux/uaccess.h:14,
                    from arch/ia64/include/asm/sections.h:11,
                    from include/linux/interrupt.h:20,
                    from include/linux/usb.h:16,
                    from drivers/usb/host/xhci.h:15,
                    from drivers/usb/host/xhci-dbgtty.c:14:
   arch/ia64/include/asm/mmu_context.h: In function 'reload_context':
   arch/ia64/include/asm/mmu_context.h:137:41: warning: variable 'old_rr4' set but not used [-Wunused-but-set-variable]
     137 |  unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
         |                                         ^~~~~~~
   In file included from include/linux/kernel.h:10,
                    from include/linux/list.h:9,
                    from include/linux/module.h:9,
                    from drivers/usb/host/xhci-dbgtty.c:10:
   include/linux/scatterlist.h: In function 'sg_set_buf':
   arch/ia64/include/asm/page.h:118:36: error: 'max_mapnr' undeclared (first use in this function); did you mean 'set_max_mapnr'?
     118 | # define pfn_valid(pfn)  (((pfn) < max_mapnr) && ia64_pfn_valid(pfn))
         |                                    ^~~~~~~~~
   include/linux/compiler.h:77:42: note: in definition of macro 'unlikely'
      77 | # define unlikely(x) __builtin_expect(!!(x), 0)
         |                                          ^
   include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
     143 |  BUG_ON(!virt_addr_valid(buf));
         |  ^~~~~~
   arch/ia64/include/asm/page.h:96:32: note: in expansion of macro 'pfn_valid'
      96 | #define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
         |                                ^~~~~~~~~
   include/linux/scatterlist.h:143:10: note: in expansion of macro 'virt_addr_valid'
     143 |  BUG_ON(!virt_addr_valid(buf));
         |          ^~~~~~~~~~~~~~~
   arch/ia64/include/asm/page.h:118:36: note: each undeclared identifier is reported only once for each function it appears in
     118 | # define pfn_valid(pfn)  (((pfn) < max_mapnr) && ia64_pfn_valid(pfn))
         |                                    ^~~~~~~~~
   include/linux/compiler.h:77:42: note: in definition of macro 'unlikely'
      77 | # define unlikely(x) __builtin_expect(!!(x), 0)
         |                                          ^
   include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
     143 |  BUG_ON(!virt_addr_valid(buf));
         |  ^~~~~~
   arch/ia64/include/asm/page.h:96:32: note: in expansion of macro 'pfn_valid'
      96 | #define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
         |                                ^~~~~~~~~
   include/linux/scatterlist.h:143:10: note: in expansion of macro 'virt_addr_valid'
     143 |  BUG_ON(!virt_addr_valid(buf));
         |          ^~~~~~~~~~~~~~~
   drivers/usb/host/xhci-dbgtty.c: At top level:
>> drivers/usb/host/xhci-dbgtty.c:497:6: warning: no previous prototype for 'xhci_dbc_tty_unregister_device' [-Wmissing-prototypes]
     497 | void xhci_dbc_tty_unregister_device(struct xhci_hcd *xhci)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for NUMA
   Depends on !IA64_HP_SIM && !FLATMEM
   Selected by
   - IA64_SGI_UV && <choice>


vim +/xhci_dbc_tty_unregister_device +497 drivers/usb/host/xhci-dbgtty.c

dfba2174dc421e Lu Baolu             2017-12-08  496  
dfba2174dc421e Lu Baolu             2017-12-08 @497  void xhci_dbc_tty_unregister_device(struct xhci_hcd *xhci)
dfba2174dc421e Lu Baolu             2017-12-08  498  {
dfba2174dc421e Lu Baolu             2017-12-08  499  	struct xhci_dbc		*dbc = xhci->dbc;
dfba2174dc421e Lu Baolu             2017-12-08  500  	struct dbc_port		*port = &dbc->port;
77896075c45563 Prabhat Chand Pandey 2019-01-30  501  	struct tty_driver	*dbc_tty_driver =
77896075c45563 Prabhat Chand Pandey 2019-01-30  502  					(struct tty_driver *) dbc->func_priv;
dfba2174dc421e Lu Baolu             2017-12-08  503  
dfba2174dc421e Lu Baolu             2017-12-08  504  	tty_unregister_device(dbc_tty_driver, 0);
dfba2174dc421e Lu Baolu             2017-12-08  505  	xhci_dbc_tty_exit_port(port);
dfba2174dc421e Lu Baolu             2017-12-08  506  	port->registered = false;
dfba2174dc421e Lu Baolu             2017-12-08  507  
dfba2174dc421e Lu Baolu             2017-12-08  508  	kfifo_free(&port->write_fifo);
dfba2174dc421e Lu Baolu             2017-12-08  509  	xhci_dbc_free_requests(get_out_ep(xhci), &port->read_pool);
dfba2174dc421e Lu Baolu             2017-12-08  510  	xhci_dbc_free_requests(get_out_ep(xhci), &port->read_queue);
dfba2174dc421e Lu Baolu             2017-12-08  511  	xhci_dbc_free_requests(get_in_ep(xhci), &port->write_pool);
dfba2174dc421e Lu Baolu             2017-12-08  512  }
77896075c45563 Prabhat Chand Pandey 2019-01-30  513  

:::::: The code at line 497 was first introduced by commit
:::::: dfba2174dc421ecad8dc50741054a305cd3ba681 usb: xhci: Add DbC support in xHCI driver

:::::: TO: Lu Baolu <baolu.lu@linux.intel.com>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 27532 bytes --]

                 reply	other threads:[~2021-04-09 22:56 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=202104100627.JBdrwBPb-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.