All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: oe-kbuild-all@lists.linux.dev, Sasha Levin <sashal@kernel.org>,
	Michael Ellerman <mpe@ellerman.id.au>
Subject: [linux-stable-rc:queue/5.4 63/68] drivers/tty/ehv_bytechan.c:121:27: error: 'NO_IRQ' undeclared; did you mean 'do_IRQ'?
Date: Wed, 15 Mar 2023 15:55:45 +0800	[thread overview]
Message-ID: <202303151555.yBEhtAp3-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git queue/5.4
head:   88ec32cc649883f1cbb6e0cbdd1be0cc11314709
commit: cd6ffca552d537428e7a4f48b608f76137c59532 [63/68] powerpc: Check !irq instead of irq == NO_IRQ and remove NO_IRQ
config: powerpc-allmodconfig (https://download.01.org/0day-ci/archive/20230315/202303151555.yBEhtAp3-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 12.1.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/stable/linux-stable-rc.git/commit/?id=cd6ffca552d537428e7a4f48b608f76137c59532
        git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
        git fetch --no-tags linux-stable-rc queue/5.4
        git checkout cd6ffca552d537428e7a4f48b608f76137c59532
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=powerpc olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash drivers/tty/ drivers/uio/ drivers/usb/host/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303151555.yBEhtAp3-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/tty/ehv_bytechan.c: In function 'find_console_handle':
>> drivers/tty/ehv_bytechan.c:121:27: error: 'NO_IRQ' undeclared (first use in this function); did you mean 'do_IRQ'?
     121 |         if (stdout_irq == NO_IRQ) {
         |                           ^~~~~~
         |                           do_IRQ
   drivers/tty/ehv_bytechan.c:121:27: note: each undeclared identifier is reported only once for each function it appears in
   drivers/tty/ehv_bytechan.c: In function 'ehv_bc_tty_probe':
   drivers/tty/ehv_bytechan.c:699:28: error: 'NO_IRQ' undeclared (first use in this function); did you mean 'do_IRQ'?
     699 |         if ((bc->rx_irq == NO_IRQ) || (bc->tx_irq == NO_IRQ)) {
         |                            ^~~~~~
         |                            do_IRQ
--
   drivers/uio/uio_fsl_elbc_gpcm.c: In function 'uio_fsl_elbc_gpcm_probe':
>> drivers/uio/uio_fsl_elbc_gpcm.c:397:20: error: 'NO_IRQ' undeclared (first use in this function); did you mean 'do_IRQ'?
     397 |         if (irq != NO_IRQ) {
         |                    ^~~~~~
         |                    do_IRQ
   drivers/uio/uio_fsl_elbc_gpcm.c:397:20: note: each undeclared identifier is reported only once for each function it appears in
--
   In file included from drivers/usb/host/ehci-hcd.c:1292:
   drivers/usb/host/ehci-ppc-of.c: In function 'ehci_hcd_ppc_of_probe':
>> drivers/usb/host/ehci-ppc-of.c:122:20: error: 'NO_IRQ' undeclared (first use in this function); did you mean 'do_IRQ'?
     122 |         if (irq == NO_IRQ) {
         |                    ^~~~~~
         |                    do_IRQ
   drivers/usb/host/ehci-ppc-of.c:122:20: note: each undeclared identifier is reported only once for each function it appears in
--
   In file included from drivers/usb/host/ohci-hcd.c:1255:
   drivers/usb/host/ohci-ppc-of.c: In function 'ohci_hcd_ppc_of_probe':
>> drivers/usb/host/ohci-ppc-of.c:126:20: error: 'NO_IRQ' undeclared (first use in this function); did you mean 'do_IRQ'?
     126 |         if (irq == NO_IRQ) {
         |                    ^~~~~~
         |                    do_IRQ
   drivers/usb/host/ohci-ppc-of.c:126:20: note: each undeclared identifier is reported only once for each function it appears in


vim +121 drivers/tty/ehv_bytechan.c

dcd83aaff1c8cb Timur Tabi   2011-07-08  101  
dcd83aaff1c8cb Timur Tabi   2011-07-08  102  /*
dcd83aaff1c8cb Timur Tabi   2011-07-08  103   * find the byte channel handle to use for the console
dcd83aaff1c8cb Timur Tabi   2011-07-08  104   *
dcd83aaff1c8cb Timur Tabi   2011-07-08  105   * The byte channel to be used for the console is specified via a "stdout"
dcd83aaff1c8cb Timur Tabi   2011-07-08  106   * property in the /chosen node.
dcd83aaff1c8cb Timur Tabi   2011-07-08  107   */
dcd83aaff1c8cb Timur Tabi   2011-07-08  108  static int find_console_handle(void)
dcd83aaff1c8cb Timur Tabi   2011-07-08  109  {
a752ee56ad84bf Grant Likely 2014-03-28  110  	struct device_node *np = of_stdout;
dcd83aaff1c8cb Timur Tabi   2011-07-08  111  	const uint32_t *iprop;
dcd83aaff1c8cb Timur Tabi   2011-07-08  112  
dcd83aaff1c8cb Timur Tabi   2011-07-08  113  	/* We don't care what the aliased node is actually called.  We only
dcd83aaff1c8cb Timur Tabi   2011-07-08  114  	 * care if it's compatible with "epapr,hv-byte-channel", because that
a752ee56ad84bf Grant Likely 2014-03-28  115  	 * indicates that it's a byte channel node.
dcd83aaff1c8cb Timur Tabi   2011-07-08  116  	 */
a752ee56ad84bf Grant Likely 2014-03-28  117  	if (!np || !of_device_is_compatible(np, "epapr,hv-byte-channel"))
dcd83aaff1c8cb Timur Tabi   2011-07-08  118  		return 0;
dcd83aaff1c8cb Timur Tabi   2011-07-08  119  
dcd83aaff1c8cb Timur Tabi   2011-07-08  120  	stdout_irq = irq_of_parse_and_map(np, 0);
dcd83aaff1c8cb Timur Tabi   2011-07-08 @121  	if (stdout_irq == NO_IRQ) {
a73ee8438c6da1 Rob Herring  2017-07-18  122  		pr_err("ehv-bc: no 'interrupts' property in %pOF node\n", np);
dcd83aaff1c8cb Timur Tabi   2011-07-08  123  		return 0;
dcd83aaff1c8cb Timur Tabi   2011-07-08  124  	}
dcd83aaff1c8cb Timur Tabi   2011-07-08  125  
dcd83aaff1c8cb Timur Tabi   2011-07-08  126  	/*
dcd83aaff1c8cb Timur Tabi   2011-07-08  127  	 * The 'hv-handle' property contains the handle for this byte channel.
dcd83aaff1c8cb Timur Tabi   2011-07-08  128  	 */
dcd83aaff1c8cb Timur Tabi   2011-07-08  129  	iprop = of_get_property(np, "hv-handle", NULL);
dcd83aaff1c8cb Timur Tabi   2011-07-08  130  	if (!iprop) {
fff10721d8b819 Rob Herring  2018-08-27  131  		pr_err("ehv-bc: no 'hv-handle' property in %pOFn node\n",
fff10721d8b819 Rob Herring  2018-08-27  132  		       np);
dcd83aaff1c8cb Timur Tabi   2011-07-08  133  		return 0;
dcd83aaff1c8cb Timur Tabi   2011-07-08  134  	}
dcd83aaff1c8cb Timur Tabi   2011-07-08  135  	stdout_bc = be32_to_cpu(*iprop);
dcd83aaff1c8cb Timur Tabi   2011-07-08  136  	return 1;
dcd83aaff1c8cb Timur Tabi   2011-07-08  137  }
dcd83aaff1c8cb Timur Tabi   2011-07-08  138  

:::::: The code at line 121 was first introduced by commit
:::::: dcd83aaff1c8cbd5b48c152b559e0af3ea1a7b65 tty/powerpc: introduce the ePAPR embedded hypervisor byte channel driver

:::::: TO: Timur Tabi <timur@freescale.com>
:::::: CC: Greg Kroah-Hartman <gregkh@suse.de>

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

                 reply	other threads:[~2023-03-15  7: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=202303151555.yBEhtAp3-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=christophe.leroy@csgroup.eu \
    --cc=mpe@ellerman.id.au \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=sashal@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 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.