All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jason Li <jason.li@cortina-access.com>
Cc: kbuild-all@lists.01.org, linux-serial@vger.kernel.org,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Subject: [tty:tty-next 218/218] drivers/tty/serial/serial_cortina-access.c:76:26: sparse: sparse: symbol 'cortina_uart_get_port' was not declared. Should it be static?
Date: Mon, 21 Jun 2021 14:07:21 +0800	[thread overview]
Message-ID: <202106211401.spnRFHhs-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-next
head:   b61c8bf4694b5115766849378dcb8787ff54e65e
commit: b61c8bf4694b5115766849378dcb8787ff54e65e [218/218] tty: serial: Add UART driver for Cortina-Access platform
config: alpha-randconfig-s031-20210621 (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.3-341-g8af24329-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git/commit/?id=b61c8bf4694b5115766849378dcb8787ff54e65e
        git remote add tty https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git
        git fetch --no-tags tty tty-next
        git checkout b61c8bf4694b5115766849378dcb8787ff54e65e
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=alpha 

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


sparse warnings: (new ones prefixed by >>)
>> drivers/tty/serial/serial_cortina-access.c:76:26: sparse: sparse: symbol 'cortina_uart_get_port' was not declared. Should it be static?
>> drivers/tty/serial/serial_cortina-access.c:469:6: sparse: sparse: symbol 'cortina_console_write' was not declared. Should it be static?
   drivers/tty/serial/serial_cortina-access.c:517:28: sparse: sparse: context imbalance in 'cortina_console_write' - unexpected unlock

vim +/cortina_uart_get_port +76 drivers/tty/serial/serial_cortina-access.c

    74	
    75	/* Return uart_port pointer base on index */
  > 76	struct cortina_uart_port *cortina_uart_get_port(unsigned int index)
    77	{
    78		struct cortina_uart_port *pca_port = cortina_uart_ports;
    79	
    80		if (index >= UART_NR) {
    81			/* return 1st element if invalid index */
    82			index = 0;
    83		}
    84	
    85		pca_port += index;
    86	
    87		return pca_port;
    88	}
    89	

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

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

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [tty:tty-next 218/218] drivers/tty/serial/serial_cortina-access.c:76:26: sparse: sparse: symbol 'cortina_uart_get_port' was not declared. Should it be static?
Date: Mon, 21 Jun 2021 14:07:21 +0800	[thread overview]
Message-ID: <202106211401.spnRFHhs-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-next
head:   b61c8bf4694b5115766849378dcb8787ff54e65e
commit: b61c8bf4694b5115766849378dcb8787ff54e65e [218/218] tty: serial: Add UART driver for Cortina-Access platform
config: alpha-randconfig-s031-20210621 (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.3-341-g8af24329-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git/commit/?id=b61c8bf4694b5115766849378dcb8787ff54e65e
        git remote add tty https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git
        git fetch --no-tags tty tty-next
        git checkout b61c8bf4694b5115766849378dcb8787ff54e65e
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=alpha 

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


sparse warnings: (new ones prefixed by >>)
>> drivers/tty/serial/serial_cortina-access.c:76:26: sparse: sparse: symbol 'cortina_uart_get_port' was not declared. Should it be static?
>> drivers/tty/serial/serial_cortina-access.c:469:6: sparse: sparse: symbol 'cortina_console_write' was not declared. Should it be static?
   drivers/tty/serial/serial_cortina-access.c:517:28: sparse: sparse: context imbalance in 'cortina_console_write' - unexpected unlock

vim +/cortina_uart_get_port +76 drivers/tty/serial/serial_cortina-access.c

    74	
    75	/* Return uart_port pointer base on index */
  > 76	struct cortina_uart_port *cortina_uart_get_port(unsigned int index)
    77	{
    78		struct cortina_uart_port *pca_port = cortina_uart_ports;
    79	
    80		if (index >= UART_NR) {
    81			/* return 1st element if invalid index */
    82			index = 0;
    83		}
    84	
    85		pca_port += index;
    86	
    87		return pca_port;
    88	}
    89	

---
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: 38365 bytes --]

             reply	other threads:[~2021-06-21  6:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-21  6:07 kernel test robot [this message]
2021-06-21  6:07 ` [tty:tty-next 218/218] drivers/tty/serial/serial_cortina-access.c:76:26: sparse: sparse: symbol 'cortina_uart_get_port' was not declared. Should it be static? kernel test robot

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=202106211401.spnRFHhs-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jason.li@cortina-access.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-serial@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 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.