Re: [PATCH 1/1] tty: i3c: add tty over i3c master support

From: kernel test robot
Date: Fri Oct 20 2023 - 08:03:18 EST


Hi Frank,

kernel test robot noticed the following build warnings:

[auto build test WARNING on tty/tty-testing]
[also build test WARNING on tty/tty-next tty/tty-linus linus/master v6.6-rc6 next-20231019]
[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#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Frank-Li/tty-i3c-add-tty-over-i3c-master-support/20231019-051407
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing
patch link: https://lore.kernel.org/r/20231018211111.3437929-1-Frank.Li%40nxp.com
patch subject: [PATCH 1/1] tty: i3c: add tty over i3c master support
config: sparc-allyesconfig (https://download.01.org/0day-ci/archive/20231020/202310201933.9lZn2Ebl-lkp@xxxxxxxxx/config)
compiler: sparc64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231020/202310201933.9lZn2Ebl-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202310201933.9lZn2Ebl-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

drivers/tty/i3c_tty.c: In function 'tty_i3c_rxwork':
drivers/tty/i3c_tty.c:265:26: error: 'struct i3c_priv_xfer' has no member named 'actual_len'
265 | if (xfers.actual_len) {
| ^
drivers/tty/i3c_tty.c:266:82: error: 'struct i3c_priv_xfer' has no member named 'actual_len'
266 | tty_insert_flip_string(&sport->port, sport->buffer, xfers.actual_len);
| ^
drivers/tty/i3c_tty.c:271:25: error: implicit declaration of function 'i3c_device_getstatus_format1' [-Werror=implicit-function-declaration]
271 | i3c_device_getstatus_format1(sport->i3cdev, &status);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/tty/i3c_tty.c: At top level:
>> drivers/tty/i3c_tty.c:400:6: warning: no previous prototype for 'i3c_remove' [-Wmissing-prototypes]
400 | void i3c_remove(struct i3c_device *dev)
| ^~~~~~~~~~
cc1: some warnings being treated as errors


vim +/i3c_remove +400 drivers/tty/i3c_tty.c

399
> 400 void i3c_remove(struct i3c_device *dev)
401 {
402 struct ttyi3c_port *sport = dev_get_drvdata(&dev->dev);
403
404 tty_port_unregister_device(&sport->port, i3c_tty_driver, sport->minor);
405 cancel_work_sync(&sport->txwork);
406 destroy_workqueue(sport->workqueue);
407 }
408

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