2024-05-31 10:35:26

by Daniel Mack

[permalink] [raw]
Subject: [PATCH] serial: sc16is7xx: set driver name

Set the drv_name field of the driver struct so that the tty core
registers a procfs entry for it. This is useful for debugging.

Signed-off-by: Daniel Mack <[email protected]>
---
drivers/tty/serial/sc16is7xx.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/tty/serial/sc16is7xx.c b/drivers/tty/serial/sc16is7xx.c
index bf0065d1c8e9..308edbacda7b 100644
--- a/drivers/tty/serial/sc16is7xx.c
+++ b/drivers/tty/serial/sc16is7xx.c
@@ -351,6 +351,7 @@ static struct uart_driver sc16is7xx_uart = {
.owner = THIS_MODULE,
.driver_name = SC16IS7XX_NAME,
.dev_name = "ttySC",
+ .driver_name = SC16IS7XX_NAME,
.nr = SC16IS7XX_MAX_DEVS,
};

--
2.45.1



2024-06-01 09:27:23

by kernel test robot

[permalink] [raw]
Subject: Re: [PATCH] serial: sc16is7xx: set driver name

Hi Daniel,

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 usb/usb-testing usb/usb-next usb/usb-linus linus/master v6.10-rc1 next-20240531]
[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/Daniel-Mack/serial-sc16is7xx-set-driver-name/20240531-182824
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing
patch link: https://lore.kernel.org/r/20240531101959.181457-1-daniel%40zonque.org
patch subject: [PATCH] serial: sc16is7xx: set driver name
config: x86_64-randconfig-123-20240601 (https://download.01.org/0day-ci/archive/20240601/[email protected]/config)
compiler: gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240601/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

sparse warnings: (new ones prefixed by >>)
>> drivers/tty/serial/sc16is7xx.c:352:10: sparse: sparse: Initializer entry defined twice
drivers/tty/serial/sc16is7xx.c:354:10: sparse: also defined here

vim +352 drivers/tty/serial/sc16is7xx.c

c64349722d1417 Jakub Kicinski 2015-07-31 349
c64349722d1417 Jakub Kicinski 2015-07-31 350 static struct uart_driver sc16is7xx_uart = {
c64349722d1417 Jakub Kicinski 2015-07-31 351 .owner = THIS_MODULE,
d9ffadaf9df1c8 Hugo Villeneuve 2023-12-21 @352 .driver_name = SC16IS7XX_NAME,
c64349722d1417 Jakub Kicinski 2015-07-31 353 .dev_name = "ttySC",
cb1c18ea6be1d7 Daniel Mack 2024-05-31 354 .driver_name = SC16IS7XX_NAME,
c64349722d1417 Jakub Kicinski 2015-07-31 355 .nr = SC16IS7XX_MAX_DEVS,
c64349722d1417 Jakub Kicinski 2015-07-31 356 };
c64349722d1417 Jakub Kicinski 2015-07-31 357

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