All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jiri Slaby <jslaby@suse.cz>, gregkh@linuxfoundation.org
Cc: kbuild-all@lists.01.org, linux-serial@vger.kernel.org,
	linux-kernel@vger.kernel.org, johan@kernel.org,
	Jiri Slaby <jslaby@suse.cz>, Paul Cercueil <paul@crapouillou.net>,
	Tobias Klauser <tklauser@distanz.ch>,
	Russell King <linux@armlinux.org.uk>,
	Vineet Gupta <vgupta@kernel.org>,
	Richard Genoud <richard.genoud@gmail.com>
Subject: Re: [PATCH 10/11] serial: make uart_console_write->putchar()'s character a char
Date: Tue, 25 Jan 2022 00:23:52 +0800	[thread overview]
Message-ID: <202201250004.SHBbOjs3-lkp@intel.com> (raw)
In-Reply-To: <20220124071430.14907-11-jslaby@suse.cz>

Hi Jiri,

I love your patch! Yet something to improve:

[auto build test ERROR on tty/tty-testing]
[also build test ERROR on v5.17-rc1 next-20220124]
[cannot apply to shawnguo/for-next davem-sparc/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Jiri-Slaby/TTY-patches-for-5-18/20220124-151758
base:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing
config: arc-randconfig-r043-20220124 (https://download.01.org/0day-ci/archive/20220125/202201250004.SHBbOjs3-lkp@intel.com/config)
compiler: arc-elf-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://github.com/0day-ci/linux/commit/45520d4f6db241db0b77f41162adba4a9977956c
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Jiri-Slaby/TTY-patches-for-5-18/20220124-151758
        git checkout 45520d4f6db241db0b77f41162adba4a9977956c
        # 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=arc SHELL=/bin/bash drivers/tty/serial/

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 >>):

   drivers/tty/serial/omap-serial.c: In function 'serial_omap_console_write':
>> drivers/tty/serial/omap-serial.c:1272:49: error: passing argument 4 of 'uart_console_write' from incompatible pointer type [-Werror=incompatible-pointer-types]
    1272 |         uart_console_write(&up->port, s, count, serial_omap_console_putchar);
         |                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                                 |
         |                                                 void (*)(struct uart_port *, int)
   In file included from drivers/tty/serial/omap-serial.c:30:
   include/linux/serial_core.h:402:32: note: expected 'void (*)(struct uart_port *, char)' but argument is of type 'void (*)(struct uart_port *, int)'
     402 |                         void (*putchar)(struct uart_port *, char));
         |                         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/uart_console_write +1272 drivers/tty/serial/omap-serial.c

b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1248  
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1249  static void
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1250  serial_omap_console_write(struct console *co, const char *s,
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1251  		unsigned int count)
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1252  {
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1253  	struct uart_omap_port *up = serial_omap_console_ports[co->index];
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1254  	unsigned long flags;
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1255  	unsigned int ier;
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1256  	int locked = 1;
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1257  
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1258  	local_irq_save(flags);
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1259  	if (up->port.sysrq)
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1260  		locked = 0;
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1261  	else if (oops_in_progress)
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1262  		locked = spin_trylock(&up->port.lock);
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1263  	else
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1264  		spin_lock(&up->port.lock);
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1265  
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1266  	/*
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1267  	 * First save the IER then disable the interrupts
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1268  	 */
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1269  	ier = serial_in(up, UART_IER);
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1270  	serial_out(up, UART_IER, 0);
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1271  
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27 @1272  	uart_console_write(&up->port, s, count, serial_omap_console_putchar);
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1273  
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1274  	/*
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1275  	 * Finally, wait for transmitter to become empty
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1276  	 * and restore the IER
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1277  	 */
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1278  	wait_for_xmitr(up);
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1279  	serial_out(up, UART_IER, ier);
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1280  	/*
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1281  	 * The receive handling will happen properly because the
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1282  	 * receive ready bit will still be set; it is not cleared
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1283  	 * on read.  However, modem control will not, we must
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1284  	 * call it if we have saved something in the saved flags
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1285  	 * while processing with interrupts off.
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1286  	 */
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1287  	if (up->msr_saved_flags)
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1288  		check_modem_status(up);
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1289  
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1290  	if (locked)
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1291  		spin_unlock(&up->port.lock);
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1292  	local_irq_restore(flags);
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1293  }
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1294  

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

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH 10/11] serial: make uart_console_write->putchar()'s character a char
Date: Tue, 25 Jan 2022 00:23:52 +0800	[thread overview]
Message-ID: <202201250004.SHBbOjs3-lkp@intel.com> (raw)
In-Reply-To: <20220124071430.14907-11-jslaby@suse.cz>

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

Hi Jiri,

I love your patch! Yet something to improve:

[auto build test ERROR on tty/tty-testing]
[also build test ERROR on v5.17-rc1 next-20220124]
[cannot apply to shawnguo/for-next davem-sparc/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Jiri-Slaby/TTY-patches-for-5-18/20220124-151758
base:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing
config: arc-randconfig-r043-20220124 (https://download.01.org/0day-ci/archive/20220125/202201250004.SHBbOjs3-lkp(a)intel.com/config)
compiler: arc-elf-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://github.com/0day-ci/linux/commit/45520d4f6db241db0b77f41162adba4a9977956c
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Jiri-Slaby/TTY-patches-for-5-18/20220124-151758
        git checkout 45520d4f6db241db0b77f41162adba4a9977956c
        # 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=arc SHELL=/bin/bash drivers/tty/serial/

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 >>):

   drivers/tty/serial/omap-serial.c: In function 'serial_omap_console_write':
>> drivers/tty/serial/omap-serial.c:1272:49: error: passing argument 4 of 'uart_console_write' from incompatible pointer type [-Werror=incompatible-pointer-types]
    1272 |         uart_console_write(&up->port, s, count, serial_omap_console_putchar);
         |                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                                 |
         |                                                 void (*)(struct uart_port *, int)
   In file included from drivers/tty/serial/omap-serial.c:30:
   include/linux/serial_core.h:402:32: note: expected 'void (*)(struct uart_port *, char)' but argument is of type 'void (*)(struct uart_port *, int)'
     402 |                         void (*putchar)(struct uart_port *, char));
         |                         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/uart_console_write +1272 drivers/tty/serial/omap-serial.c

b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1248  
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1249  static void
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1250  serial_omap_console_write(struct console *co, const char *s,
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1251  		unsigned int count)
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1252  {
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1253  	struct uart_omap_port *up = serial_omap_console_ports[co->index];
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1254  	unsigned long flags;
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1255  	unsigned int ier;
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1256  	int locked = 1;
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1257  
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1258  	local_irq_save(flags);
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1259  	if (up->port.sysrq)
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1260  		locked = 0;
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1261  	else if (oops_in_progress)
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1262  		locked = spin_trylock(&up->port.lock);
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1263  	else
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1264  		spin_lock(&up->port.lock);
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1265  
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1266  	/*
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1267  	 * First save the IER then disable the interrupts
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1268  	 */
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1269  	ier = serial_in(up, UART_IER);
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1270  	serial_out(up, UART_IER, 0);
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1271  
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27 @1272  	uart_console_write(&up->port, s, count, serial_omap_console_putchar);
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1273  
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1274  	/*
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1275  	 * Finally, wait for transmitter to become empty
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1276  	 * and restore the IER
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1277  	 */
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1278  	wait_for_xmitr(up);
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1279  	serial_out(up, UART_IER, ier);
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1280  	/*
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1281  	 * The receive handling will happen properly because the
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1282  	 * receive ready bit will still be set; it is not cleared
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1283  	 * on read.  However, modem control will not, we must
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1284  	 * call it if we have saved something in the saved flags
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1285  	 * while processing with interrupts off.
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1286  	 */
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1287  	if (up->msr_saved_flags)
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1288  		check_modem_status(up);
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1289  
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1290  	if (locked)
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1291  		spin_unlock(&up->port.lock);
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1292  	local_irq_restore(flags);
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1293  }
b612633b592807 drivers/serial/omap-serial.c Govindraj.R 2010-09-27  1294  

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

  parent reply	other threads:[~2022-01-24 16:25 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-24  7:14 [PATCH 00/11] TTY patches for 5.18 Jiri Slaby
2022-01-24  7:14 ` [PATCH 01/11] serial: core: clean up EXPORT_SYMBOLs Jiri Slaby
2022-01-24  7:14 ` [PATCH 02/11] serial: atmel_serial: include circ_buf.h Jiri Slaby
2022-01-24  8:46   ` Richard Genoud
2022-01-24  8:49     ` Richard Genoud
2022-01-24  7:14 ` [PATCH 03/11] tty: add kfifo to tty_port Jiri Slaby
2022-01-24  7:14 ` [PATCH 04/11] tty: tty_port_open, document shutdown vs failed activate Jiri Slaby
2022-01-24  7:14 ` [PATCH 05/11] mxser: fix xmit_buf leak in activate when LSR == 0xff Jiri Slaby
2022-01-24  7:14 ` [PATCH 06/11] mxser: use tty_port xmit_buf helpers Jiri Slaby
2022-01-24  7:14 ` [PATCH 07/11] mxser: switch from xmit_buf to kfifo Jiri Slaby
2022-01-24  7:14 ` [PATCH 08/11] serial: fsl_linflexuart: deduplicate character sending Jiri Slaby
2022-01-24  7:14 ` [PATCH 09/11] serial: fsl_linflexuart: don't call uart_write_wakeup() twice Jiri Slaby
2022-01-24  7:14 ` [PATCH 10/11] serial: make uart_console_write->putchar()'s character a char Jiri Slaby
2022-01-24  9:06   ` Richard Genoud
2022-01-24 14:30   ` kernel test robot
2022-01-24 14:30     ` kernel test robot
2022-01-26  7:26     ` Jiri Slaby
2022-01-26  7:26       ` Jiri Slaby
2022-01-26 13:55       ` Greg KH
2022-01-26 13:55         ` Greg KH
2022-01-24 16:23   ` kernel test robot [this message]
2022-01-24 16:23     ` kernel test robot
2022-01-26 17:57   ` Maciej W. Rozycki
2022-01-27  8:09     ` Jiri Slaby
2022-01-24  7:14 ` [PATCH 11/11] serial: mcf: use helpers in mcf_tx_chars() Jiri Slaby

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=202201250004.SHBbOjs3-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=johan@kernel.org \
    --cc=jslaby@suse.cz \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=paul@crapouillou.net \
    --cc=richard.genoud@gmail.com \
    --cc=tklauser@distanz.ch \
    --cc=vgupta@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.