tree:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
linux-4.19.y
head: e864f43593ccf9180c61738abdf1c1dde091367d
commit: 1d815c5a94345509d89dbf4d6b5060dbc6758eaa [66/9999] sc16is7xx: missing
unregister/delete driver on error in sc16is7xx_init()
config: x86_64-randconfig-r015-20210209 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
c9439ca36342fb6013187d0a69aef92736951476)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
#
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gi...
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 linux-4.19.y
git checkout 1d815c5a94345509d89dbf4d6b5060dbc6758eaa
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from drivers/tty/serial/sc16is7xx.c:12:
In file included from include/linux/clk.h:17:
In file included from include/linux/notifier.h:15:
In file included from include/linux/rwsem.h:16:
In file included from include/linux/spinlock.h:51:
In file included from include/linux/preempt.h:81:
In file included from arch/x86/include/asm/preempt.h:7:
In file included from include/linux/thread_info.h:38:
In file included from arch/x86/include/asm/thread_info.h:53:
arch/x86/include/asm/cpufeature.h:164:2: error: implicit declaration of function
'asm_volatile_goto' [-Werror,-Wimplicit-function-declaration]
asm_volatile_goto("1: jmp 6f\n"
^
arch/x86/include/asm/cpufeature.h:195:4: error: expected ')'
: : [feature] "i" (bit),
^
arch/x86/include/asm/cpufeature.h:164:19: note: to match this '('
asm_volatile_goto("1: jmp 6f\n"
^
> drivers/tty/serial/sc16is7xx.c:1501:1: warning: unused label
'err_i2c' [-Wunused-label]
err_i2c:
^~~~~~~~
1 warning and 2 errors generated.
vim +/err_i2c +1501 drivers/tty/serial/sc16is7xx.c
1487
1488 #ifdef CONFIG_SERIAL_SC16IS7XX_SPI
1489 ret = spi_register_driver(&sc16is7xx_spi_uart_driver);
1490 if (ret < 0) {
1491 pr_err("failed to init sc16is7xx spi --> %d\n", ret);
1492 goto err_spi;
1493 }
1494 #endif
1495 return ret;
1496
1497 err_spi:
1498 #ifdef CONFIG_SERIAL_SC16IS7XX_I2C
1499 i2c_del_driver(&sc16is7xx_i2c_uart_driver);
1500 #endif
1501 err_i2c:
1502 uart_unregister_driver(&sc16is7xx_uart);
1503 return ret;
1504 }
1505 module_init(sc16is7xx_init);
1506
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org