[mark-rutland:arm64/entry/rework 16/16] arch/arm64/kernel/entry-common.c:346:25: warning: no previous prototype for function 'el1_irq_handler'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git arm64/entry/rework
head: c7071810c4aa3f59ecec504f7661d6cb8bb9b94f
commit: c7071810c4aa3f59ecec504f7661d6cb8bb9b94f [16/16] arm64: entry: convert irq handlers to C
config: arm64-randconfig-r014-20210311 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 574a9dabc63ba1e7a04c08d4bde2eacd61b44ce1)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/commit/?id...
git remote add mark-rutland https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git
git fetch --no-tags mark-rutland arm64/entry/rework
git checkout c7071810c4aa3f59ecec504f7661d6cb8bb9b94f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
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 >>):
>> arch/arm64/kernel/entry-common.c:346:25: warning: no previous prototype for function 'el1_irq_handler' [-Wmissing-prototypes]
asmlinkage void noinstr el1_irq_handler(struct pt_regs *regs)
^
arch/arm64/kernel/entry-common.c:346:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage void noinstr el1_irq_handler(struct pt_regs *regs)
^
static
>> arch/arm64/kernel/entry-common.c:351:25: warning: no previous prototype for function 'el1_fiq_handler' [-Wmissing-prototypes]
asmlinkage void noinstr el1_fiq_handler(struct pt_regs *regs)
^
arch/arm64/kernel/entry-common.c:351:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage void noinstr el1_fiq_handler(struct pt_regs *regs)
^
static
arch/arm64/kernel/entry-common.c:356:25: warning: no previous prototype for function 'el1_error_handler' [-Wmissing-prototypes]
asmlinkage void noinstr el1_error_handler(struct pt_regs *regs)
^
arch/arm64/kernel/entry-common.c:356:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage void noinstr el1_error_handler(struct pt_regs *regs)
^
static
>> arch/arm64/kernel/entry-common.c:576:25: warning: no previous prototype for function 'el0_irq_handler' [-Wmissing-prototypes]
asmlinkage void noinstr el0_irq_handler(struct pt_regs *regs)
^
arch/arm64/kernel/entry-common.c:576:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage void noinstr el0_irq_handler(struct pt_regs *regs)
^
static
>> arch/arm64/kernel/entry-common.c:581:25: warning: no previous prototype for function 'el0_fiq_handler' [-Wmissing-prototypes]
asmlinkage void noinstr el0_fiq_handler(struct pt_regs *regs)
^
arch/arm64/kernel/entry-common.c:581:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage void noinstr el0_fiq_handler(struct pt_regs *regs)
^
static
arch/arm64/kernel/entry-common.c:586:25: warning: no previous prototype for function 'el0_error_handler' [-Wmissing-prototypes]
asmlinkage void noinstr el0_error_handler(struct pt_regs *regs)
^
arch/arm64/kernel/entry-common.c:586:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
asmlinkage void noinstr el0_error_handler(struct pt_regs *regs)
^
static
6 warnings generated.
vim +/el1_irq_handler +346 arch/arm64/kernel/entry-common.c
345
> 346 asmlinkage void noinstr el1_irq_handler(struct pt_regs *regs)
347 {
348 el1_interrupt(regs, handle_arch_irq);
349 }
350
> 351 asmlinkage void noinstr el1_fiq_handler(struct pt_regs *regs)
352 {
353 el1_interrupt(regs, handle_arch_fiq);
354 }
355
> 356 asmlinkage void noinstr el1_error_handler(struct pt_regs *regs)
357 {
358 unsigned long esr = read_sysreg(esr_el1);
359
360 if (system_uses_irq_prio_masking())
361 gic_write_pmr(GIC_PRIO_IRQON | GIC_PRIO_PSR_I_SET);
362
363 local_daif_restore(DAIF_ERRCTX);
364 do_serror(regs, esr);
365 }
366
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c:361 mlx5e_ipsec_handle_tx_skb() error: uninitialized symbol 'mdata'.
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 28806e4d9b97865b450d72156e9ad229f2067f0b
commit: 5be019040cb7bab4caf152cacadffee91a78b506 net/mlx5e: IPsec: Add Connect-X IPsec Tx data path offload
date: 5 months ago
config: arc-randconfig-m031-20210311 (attached as .config)
compiler: arceb-elf-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
smatch warnings:
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c:361 mlx5e_ipsec_handle_tx_skb() error: uninitialized symbol 'mdata'.
vim +/mdata +361 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c
5be019040cb7ba Raed Salem 2020-06-16 313
5be019040cb7ba Raed Salem 2020-06-16 314 bool mlx5e_ipsec_handle_tx_skb(struct net_device *netdev,
5be019040cb7ba Raed Salem 2020-06-16 315 struct sk_buff *skb,
5be019040cb7ba Raed Salem 2020-06-16 316 struct mlx5e_accel_tx_ipsec_state *ipsec_st)
5be019040cb7ba Raed Salem 2020-06-16 317 {
5be019040cb7ba Raed Salem 2020-06-16 318 struct mlx5e_priv *priv = netdev_priv(netdev);
5be019040cb7ba Raed Salem 2020-06-16 319 struct xfrm_offload *xo = xfrm_offload(skb);
5be019040cb7ba Raed Salem 2020-06-16 320 struct mlx5e_ipsec_sa_entry *sa_entry;
5be019040cb7ba Raed Salem 2020-06-16 321 struct mlx5e_ipsec_metadata *mdata;
5be019040cb7ba Raed Salem 2020-06-16 322 struct xfrm_state *x;
5be019040cb7ba Raed Salem 2020-06-16 323 struct sec_path *sp;
2ac9cfe78223bb Ilan Tayari 2017-04-18 324
6362a6a04031ca Florian Westphal 2018-12-18 325 sp = skb_sec_path(skb);
6362a6a04031ca Florian Westphal 2018-12-18 326 if (unlikely(sp->len != 1)) {
2ac9cfe78223bb Ilan Tayari 2017-04-18 327 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_bundle);
2ac9cfe78223bb Ilan Tayari 2017-04-18 328 goto drop;
2ac9cfe78223bb Ilan Tayari 2017-04-18 329 }
2ac9cfe78223bb Ilan Tayari 2017-04-18 330
2ac9cfe78223bb Ilan Tayari 2017-04-18 331 x = xfrm_input_state(skb);
2ac9cfe78223bb Ilan Tayari 2017-04-18 332 if (unlikely(!x)) {
2ac9cfe78223bb Ilan Tayari 2017-04-18 333 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_no_state);
2ac9cfe78223bb Ilan Tayari 2017-04-18 334 goto drop;
2ac9cfe78223bb Ilan Tayari 2017-04-18 335 }
2ac9cfe78223bb Ilan Tayari 2017-04-18 336
2ac9cfe78223bb Ilan Tayari 2017-04-18 337 if (unlikely(!x->xso.offload_handle ||
2ac9cfe78223bb Ilan Tayari 2017-04-18 338 (skb->protocol != htons(ETH_P_IP) &&
2ac9cfe78223bb Ilan Tayari 2017-04-18 339 skb->protocol != htons(ETH_P_IPV6)))) {
2ac9cfe78223bb Ilan Tayari 2017-04-18 340 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_not_ip);
2ac9cfe78223bb Ilan Tayari 2017-04-18 341 goto drop;
2ac9cfe78223bb Ilan Tayari 2017-04-18 342 }
2ac9cfe78223bb Ilan Tayari 2017-04-18 343
2ac9cfe78223bb Ilan Tayari 2017-04-18 344 if (!skb_is_gso(skb))
2ac9cfe78223bb Ilan Tayari 2017-04-18 345 if (unlikely(mlx5e_ipsec_remove_trailer(skb, x))) {
2ac9cfe78223bb Ilan Tayari 2017-04-18 346 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_trailer);
2ac9cfe78223bb Ilan Tayari 2017-04-18 347 goto drop;
2ac9cfe78223bb Ilan Tayari 2017-04-18 348 }
5be019040cb7ba Raed Salem 2020-06-16 349
5be019040cb7ba Raed Salem 2020-06-16 350 if (MLX5_CAP_GEN(priv->mdev, fpga)) {
2ac9cfe78223bb Ilan Tayari 2017-04-18 351 mdata = mlx5e_ipsec_add_metadata(skb);
92978ee801844b Tobias Klauser 2017-09-26 352 if (IS_ERR(mdata)) {
2ac9cfe78223bb Ilan Tayari 2017-04-18 353 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_metadata);
2ac9cfe78223bb Ilan Tayari 2017-04-18 354 goto drop;
2ac9cfe78223bb Ilan Tayari 2017-04-18 355 }
5be019040cb7ba Raed Salem 2020-06-16 356 }
5be019040cb7ba Raed Salem 2020-06-16 357
cb01008390bb06 Aviad Yehezkel 2018-01-18 358 sa_entry = (struct mlx5e_ipsec_sa_entry *)x->xso.offload_handle;
cb01008390bb06 Aviad Yehezkel 2018-01-18 359 sa_entry->set_iv_op(skb, x, xo);
5be019040cb7ba Raed Salem 2020-06-16 360 if (MLX5_CAP_GEN(priv->mdev, fpga))
2ac9cfe78223bb Ilan Tayari 2017-04-18 @361 mlx5e_ipsec_set_metadata(skb, mdata, xo);
2ac9cfe78223bb Ilan Tayari 2017-04-18 362
5be019040cb7ba Raed Salem 2020-06-16 363 mlx5e_ipsec_set_state(priv, skb, x, xo, ipsec_st);
5be019040cb7ba Raed Salem 2020-06-16 364
f02bac9ad6415e Maxim Mikityanskiy 2019-12-05 365 return true;
2ac9cfe78223bb Ilan Tayari 2017-04-18 366
2ac9cfe78223bb Ilan Tayari 2017-04-18 367 drop:
2ac9cfe78223bb Ilan Tayari 2017-04-18 368 kfree_skb(skb);
f02bac9ad6415e Maxim Mikityanskiy 2019-12-05 369 return false;
2ac9cfe78223bb Ilan Tayari 2017-04-18 370 }
2ac9cfe78223bb Ilan Tayari 2017-04-18 371
:::::: The code at line 361 was first introduced by commit
:::::: 2ac9cfe78223bb88be8cff3b59e0e13551b4e29c net/mlx5e: IPSec, Add Innova IPSec offload TX data path
:::::: TO: Ilan Tayari <ilant(a)mellanox.com>
:::::: CC: Saeed Mahameed <saeedm(a)mellanox.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[linux-next:master 2366/3917] drivers/scsi/bfa/bfa_ioc.c:2066:21: sparse: sparse: incorrect type in assignment (different base types)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 98546348153dee5f8ced572fd6c4690461d20f51
commit: 960984d964a9341cf50bf2b4ffdf0beb14467517 [2366/3917] include/linux/compiler-gcc.h: sparse can do constant folding of __builtin_bswap*()
config: arm-randconfig-s032-20210311 (attached as .config)
compiler: arm-linux-gnueabi-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-262-g5e674421-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 960984d964a9341cf50bf2b4ffdf0beb14467517
# 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__' ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
"sparse warnings: (new ones prefixed by >>)"
drivers/scsi/bfa/bfa_ioc.c:1800:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [assigned] [usertype] clscode @@ got restricted __be16 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:1800:28: sparse: expected unsigned short [assigned] [usertype] clscode
drivers/scsi/bfa/bfa_ioc.c:1800:28: sparse: got restricted __be16 [usertype]
drivers/scsi/bfa/bfa_ioc.c:1802:29: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:1813:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [assigned] [usertype] clscode @@ got restricted __be16 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:1813:29: sparse: expected unsigned short [assigned] [usertype] clscode
drivers/scsi/bfa/bfa_ioc.c:1813:29: sparse: got restricted __be16 [usertype]
drivers/scsi/bfa/bfa_ioc.c:1815:30: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:1780:17: sparse: sparse: cast from restricted __le32
drivers/scsi/bfa/bfa_ioc.c:1963:31: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:1964:31: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:1965:31: sparse: sparse: cast to restricted __be16
drivers/scsi/bfa/bfa_ioc.c:1967:27: sparse: sparse: cast to restricted __be16
>> drivers/scsi/bfa/bfa_ioc.c:2066:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be32 [usertype] r32 @@ got unsigned int [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:2066:21: sparse: expected restricted __be32 [usertype] r32
drivers/scsi/bfa/bfa_ioc.c:2066:21: sparse: got unsigned int [usertype]
drivers/scsi/bfa/bfa_ioc.c:2067:26: sparse: sparse: cast from restricted __be32
drivers/scsi/bfa/bfa_ioc.c:2989:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] clscode @@ got restricted __be16 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:2989:22: sparse: expected unsigned short [usertype] clscode
drivers/scsi/bfa/bfa_ioc.c:2989:22: sparse: got restricted __be16 [usertype]
drivers/scsi/bfa/bfa_ioc.c:3265:52: sparse: sparse: cast to restricted __be16
drivers/scsi/bfa/bfa_ioc.c:3267:58: sparse: sparse: cast to restricted __be16
drivers/scsi/bfa/bfa_ioc.c:3269:59: sparse: sparse: cast to restricted __be16
drivers/scsi/bfa/bfa_ioc.c:3271:54: sparse: sparse: cast to restricted __be16
drivers/scsi/bfa/bfa_ioc.c:3273:54: sparse: sparse: cast to restricted __be16
drivers/scsi/bfa/bfa_ioc.c:3440:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] pers @@ got restricted __be16 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:3440:17: sparse: expected unsigned short [usertype] pers
drivers/scsi/bfa/bfa_ioc.c:3440:17: sparse: got restricted __be16 [usertype]
drivers/scsi/bfa/bfa_ioc.c:3441:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] bw_min @@ got restricted __be16 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:3441:19: sparse: expected unsigned short [usertype] bw_min
drivers/scsi/bfa/bfa_ioc.c:3441:19: sparse: got restricted __be16 [usertype]
drivers/scsi/bfa/bfa_ioc.c:3442:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] bw_max @@ got restricted __be16 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:3442:19: sparse: expected unsigned short [usertype] bw_max
drivers/scsi/bfa/bfa_ioc.c:3442:19: sparse: got restricted __be16 [usertype]
drivers/scsi/bfa/bfa_ioc.c:3565:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] bw_min @@ got restricted __be16 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:3565:19: sparse: expected unsigned short [usertype] bw_min
drivers/scsi/bfa/bfa_ioc.c:3565:19: sparse: got restricted __be16 [usertype]
drivers/scsi/bfa/bfa_ioc.c:3566:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] bw_max @@ got restricted __be16 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:3566:19: sparse: expected unsigned short [usertype] bw_max
drivers/scsi/bfa/bfa_ioc.c:3566:19: sparse: got restricted __be16 [usertype]
drivers/scsi/bfa/bfa_ioc.c:4268:21: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4270:23: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4273:23: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4301:21: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4303:23: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4306:23: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4325:21: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4364:26: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4372:40: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4373:39: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4378:41: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4380:41: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4382:41: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4384:41: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4386:41: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4388:41: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4395:26: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4401:26: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4412:26: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4418:35: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4435:26: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4441:33: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:4829:27: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] count @@ got restricted __be32 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:4829:27: sparse: expected unsigned int [usertype] count
drivers/scsi/bfa/bfa_ioc.c:4829:27: sparse: got restricted __be32 [usertype]
drivers/scsi/bfa/bfa_ioc.c:4924:36: sparse: sparse: cast to restricted __be16
drivers/scsi/bfa/bfa_ioc.c:4933:33: sparse: sparse: cast to restricted __be16
drivers/scsi/bfa/bfa_ioc.c:4979:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] freq @@ got restricted __be16 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:4979:19: sparse: expected unsigned short [usertype] freq
drivers/scsi/bfa/bfa_ioc.c:4979:19: sparse: got restricted __be16 [usertype]
drivers/scsi/bfa/bfa_ioc.c:5006:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] period @@ got restricted __be32 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:5006:21: sparse: expected unsigned int [usertype] period
drivers/scsi/bfa/bfa_ioc.c:5006:21: sparse: got restricted __be32 [usertype]
drivers/scsi/bfa/bfa_ioc.c:5301:27: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:5367:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] offset @@ got restricted __be32 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:5367:21: sparse: expected unsigned int [usertype] offset
drivers/scsi/bfa/bfa_ioc.c:5367:21: sparse: got restricted __be32 [usertype]
drivers/scsi/bfa/bfa_ioc.c:5370:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] length @@ got restricted __be32 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:5370:21: sparse: expected unsigned int [usertype] length
drivers/scsi/bfa/bfa_ioc.c:5370:21: sparse: got restricted __be32 [usertype]
drivers/scsi/bfa/bfa_ioc.c:5383:24: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] @@ got restricted __be16 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:5383:24: sparse: expected unsigned short [usertype]
drivers/scsi/bfa/bfa_ioc.c:5383:24: sparse: got restricted __be16 [usertype]
drivers/scsi/bfa/bfa_ioc.c:5405:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] offset @@ got restricted __be32 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:5405:21: sparse: expected unsigned int [usertype] offset
drivers/scsi/bfa/bfa_ioc.c:5405:21: sparse: got restricted __be32 [usertype]
drivers/scsi/bfa/bfa_ioc.c:5408:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] length @@ got restricted __be32 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:5408:21: sparse: expected unsigned int [usertype] length
drivers/scsi/bfa/bfa_ioc.c:5408:21: sparse: got restricted __be32 [usertype]
drivers/scsi/bfa/bfa_ioc.c:5722:26: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:5740:26: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:5757:26: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:5771:26: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:5780:35: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:5789:42: sparse: sparse: cast to restricted __be16
drivers/scsi/bfa/bfa_ioc.c:6222:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] offset @@ got restricted __be32 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:6222:21: sparse: expected unsigned int [usertype] offset
drivers/scsi/bfa/bfa_ioc.c:6222:21: sparse: got restricted __be32 [usertype]
drivers/scsi/bfa/bfa_ioc.c:6225:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] length @@ got restricted __be32 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:6225:21: sparse: expected unsigned int [usertype] length
drivers/scsi/bfa/bfa_ioc.c:6225:21: sparse: got restricted __be32 [usertype]
drivers/scsi/bfa/bfa_ioc.c:6256:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] offset @@ got restricted __be32 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:6256:21: sparse: expected unsigned int [usertype] offset
drivers/scsi/bfa/bfa_ioc.c:6256:21: sparse: got restricted __be32 [usertype]
drivers/scsi/bfa/bfa_ioc.c:6259:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] length @@ got restricted __be32 [usertype] @@
drivers/scsi/bfa/bfa_ioc.c:6259:21: sparse: expected unsigned int [usertype] length
drivers/scsi/bfa/bfa_ioc.c:6259:21: sparse: got restricted __be32 [usertype]
drivers/scsi/bfa/bfa_ioc.c:6571:26: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:6591:26: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c:6600:35: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfa_ioc.c: note: in included file (through drivers/scsi/bfa/bfa.h, drivers/scsi/bfa/bfa_modules.h, drivers/scsi/bfa/bfad_drv.h):
drivers/scsi/bfa/bfa_ioc.h:190:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] al_len @@ got restricted __be32 [usertype] @@
drivers/scsi/bfa/bfa_ioc.h:190:22: sparse: expected unsigned int [usertype] al_len
drivers/scsi/bfa/bfa_ioc.h:190:22: sparse: got restricted __be32 [usertype]
vim +2066 drivers/scsi/bfa/bfa_ioc.c
a36c61f9025b89 Krishna Gudipati 2010-09-15 2030
5fbe25c7a66460 Jing Huang 2010-10-18 2031 /*
a36c61f9025b89 Krishna Gudipati 2010-09-15 2032 * Read data from SMEM to host through PCI memmap
a36c61f9025b89 Krishna Gudipati 2010-09-15 2033 *
a36c61f9025b89 Krishna Gudipati 2010-09-15 2034 * @param[in] ioc memory for IOC
a36c61f9025b89 Krishna Gudipati 2010-09-15 2035 * @param[in] tbuf app memory to store data from smem
a36c61f9025b89 Krishna Gudipati 2010-09-15 2036 * @param[in] soff smem offset
a36c61f9025b89 Krishna Gudipati 2010-09-15 2037 * @param[in] sz size of smem in bytes
a36c61f9025b89 Krishna Gudipati 2010-09-15 2038 */
a36c61f9025b89 Krishna Gudipati 2010-09-15 2039 static bfa_status_t
a36c61f9025b89 Krishna Gudipati 2010-09-15 2040 bfa_ioc_smem_read(struct bfa_ioc_s *ioc, void *tbuf, u32 soff, u32 sz)
a36c61f9025b89 Krishna Gudipati 2010-09-15 2041 {
50444a34002811 Maggie 2010-11-29 2042 u32 pgnum, loff;
50444a34002811 Maggie 2010-11-29 2043 __be32 r32;
a36c61f9025b89 Krishna Gudipati 2010-09-15 2044 int i, len;
a36c61f9025b89 Krishna Gudipati 2010-09-15 2045 u32 *buf = tbuf;
a36c61f9025b89 Krishna Gudipati 2010-09-15 2046
f7f73812e95077 Maggie Zhang 2010-12-09 2047 pgnum = PSS_SMEM_PGNUM(ioc->ioc_regs.smem_pg0, soff);
f7f73812e95077 Maggie Zhang 2010-12-09 2048 loff = PSS_SMEM_PGOFF(soff);
a36c61f9025b89 Krishna Gudipati 2010-09-15 2049 bfa_trc(ioc, pgnum);
a36c61f9025b89 Krishna Gudipati 2010-09-15 2050 bfa_trc(ioc, loff);
a36c61f9025b89 Krishna Gudipati 2010-09-15 2051 bfa_trc(ioc, sz);
a36c61f9025b89 Krishna Gudipati 2010-09-15 2052
a36c61f9025b89 Krishna Gudipati 2010-09-15 2053 /*
a36c61f9025b89 Krishna Gudipati 2010-09-15 2054 * Hold semaphore to serialize pll init and fwtrc.
a36c61f9025b89 Krishna Gudipati 2010-09-15 2055 */
a36c61f9025b89 Krishna Gudipati 2010-09-15 2056 if (BFA_FALSE == bfa_ioc_sem_get(ioc->ioc_regs.ioc_init_sem_reg)) {
a36c61f9025b89 Krishna Gudipati 2010-09-15 2057 bfa_trc(ioc, 0);
a36c61f9025b89 Krishna Gudipati 2010-09-15 2058 return BFA_STATUS_FAILED;
a36c61f9025b89 Krishna Gudipati 2010-09-15 2059 }
a36c61f9025b89 Krishna Gudipati 2010-09-15 2060
5344026065f79b Jing Huang 2010-10-18 2061 writel(pgnum, ioc->ioc_regs.host_page_num_fn);
a36c61f9025b89 Krishna Gudipati 2010-09-15 2062
a36c61f9025b89 Krishna Gudipati 2010-09-15 2063 len = sz/sizeof(u32);
a36c61f9025b89 Krishna Gudipati 2010-09-15 2064 bfa_trc(ioc, len);
a36c61f9025b89 Krishna Gudipati 2010-09-15 2065 for (i = 0; i < len; i++) {
a36c61f9025b89 Krishna Gudipati 2010-09-15 @2066 r32 = bfa_mem_read(ioc->ioc_regs.smem_page_start, loff);
ba1340788ff302 Vijaya Mohan Guvva 2013-05-13 2067 buf[i] = swab32(r32);
a36c61f9025b89 Krishna Gudipati 2010-09-15 2068 loff += sizeof(u32);
a36c61f9025b89 Krishna Gudipati 2010-09-15 2069
5fbe25c7a66460 Jing Huang 2010-10-18 2070 /*
a36c61f9025b89 Krishna Gudipati 2010-09-15 2071 * handle page offset wrap around
a36c61f9025b89 Krishna Gudipati 2010-09-15 2072 */
a36c61f9025b89 Krishna Gudipati 2010-09-15 2073 loff = PSS_SMEM_PGOFF(loff);
a36c61f9025b89 Krishna Gudipati 2010-09-15 2074 if (loff == 0) {
a36c61f9025b89 Krishna Gudipati 2010-09-15 2075 pgnum++;
5344026065f79b Jing Huang 2010-10-18 2076 writel(pgnum, ioc->ioc_regs.host_page_num_fn);
a36c61f9025b89 Krishna Gudipati 2010-09-15 2077 }
a36c61f9025b89 Krishna Gudipati 2010-09-15 2078 }
f7f73812e95077 Maggie Zhang 2010-12-09 2079 writel(PSS_SMEM_PGNUM(ioc->ioc_regs.smem_pg0, 0),
f7f73812e95077 Maggie Zhang 2010-12-09 2080 ioc->ioc_regs.host_page_num_fn);
a36c61f9025b89 Krishna Gudipati 2010-09-15 2081 /*
a36c61f9025b89 Krishna Gudipati 2010-09-15 2082 * release semaphore.
a36c61f9025b89 Krishna Gudipati 2010-09-15 2083 */
5a0adaedffce91 Krishna Gudipati 2011-06-24 2084 readl(ioc->ioc_regs.ioc_init_sem_reg);
f7f73812e95077 Maggie Zhang 2010-12-09 2085 writel(1, ioc->ioc_regs.ioc_init_sem_reg);
a36c61f9025b89 Krishna Gudipati 2010-09-15 2086
a36c61f9025b89 Krishna Gudipati 2010-09-15 2087 bfa_trc(ioc, pgnum);
a36c61f9025b89 Krishna Gudipati 2010-09-15 2088 return BFA_STATUS_OK;
a36c61f9025b89 Krishna Gudipati 2010-09-15 2089 }
a36c61f9025b89 Krishna Gudipati 2010-09-15 2090
:::::: The code at line 2066 was first introduced by commit
:::::: a36c61f9025b8924f99f54d518763bee7aa84085 [SCSI] bfa: cleanup driver
:::::: TO: Krishna Gudipati <kgudipat(a)brocade.com>
:::::: CC: James Bottomley <James.Bottomley(a)suse.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[gfs2:for-next.radical6j 23/26] fs/gfs2/glock.c:1627:6: sparse: sparse: context imbalance in 'gfs2_glock_dq' - wrong count at exit
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git for-next.radical6j
head: 7b8c8263459404aea0c41574ef44e827d7ea1215
commit: e1112869d94825c3692450ed0508f349fadb9f36 [23/26] gfs2: Call state machine on non-delayed dequeue
config: x86_64-randconfig-s022-20210311 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-262-g5e674421-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git/commi...
git remote add gfs2 https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git
git fetch --no-tags gfs2 for-next.radical6j
git checkout e1112869d94825c3692450ed0508f349fadb9f36
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
"sparse warnings: (new ones prefixed by >>)"
fs/gfs2/glock.c: note: in included file:
fs/gfs2/glock.h:222:36: sparse: sparse: context imbalance in '__gfs2_glock_put' - unexpected unlock
fs/gfs2/glock.c:973:9: sparse: sparse: context imbalance in 'state_machine' - wrong count at exit
>> fs/gfs2/glock.c:1627:6: sparse: sparse: context imbalance in 'gfs2_glock_dq' - wrong count at exit
fs/gfs2/glock.c:1963:26: sparse: sparse: context imbalance in 'gfs2_dispose_glock_lru' - different lock contexts for basic block
fs/gfs2/glock.c:2151:9: sparse: sparse: context imbalance in 'clear_glock' - wrong count at exit
vim +/gfs2_glock_dq +1627 fs/gfs2/glock.c
b3b94faa5fe596 David Teigland 2006-01-16 1620
b3b94faa5fe596 David Teigland 2006-01-16 1621 /**
b3b94faa5fe596 David Teigland 2006-01-16 1622 * gfs2_glock_dq - dequeue a struct gfs2_holder from a glock (release a glock)
b3b94faa5fe596 David Teigland 2006-01-16 1623 * @gh: the glock holder
b3b94faa5fe596 David Teigland 2006-01-16 1624 *
b3b94faa5fe596 David Teigland 2006-01-16 1625 */
b3b94faa5fe596 David Teigland 2006-01-16 1626
b3b94faa5fe596 David Teigland 2006-01-16 @1627 void gfs2_glock_dq(struct gfs2_holder *gh)
b3b94faa5fe596 David Teigland 2006-01-16 1628 {
b3b94faa5fe596 David Teigland 2006-01-16 1629 struct gfs2_glock *gl = gh->gh_gl;
601ef0d52e9617 Bob Peterson 2020-01-28 1630 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd;
c4f68a130fc179 Benjamin Marzinski 2007-08-23 1631 unsigned delay = 0;
6802e3400ff454 Steven Whitehouse 2008-05-21 1632 int fast_path = 0;
b3b94faa5fe596 David Teigland 2006-01-16 1633
f3dd1649122b9e Andreas Gruenbacher 2015-10-29 1634 spin_lock(&gl->gl_lockref.lock);
601ef0d52e9617 Bob Peterson 2020-01-28 1635 /*
601ef0d52e9617 Bob Peterson 2020-01-28 1636 * If we're in the process of file system withdraw, we cannot just
601ef0d52e9617 Bob Peterson 2020-01-28 1637 * dequeue any glocks until our journal is recovered, lest we
601ef0d52e9617 Bob Peterson 2020-01-28 1638 * introduce file system corruption. We need two exceptions to this
601ef0d52e9617 Bob Peterson 2020-01-28 1639 * rule: We need to allow unlocking of nondisk glocks and the glock
601ef0d52e9617 Bob Peterson 2020-01-28 1640 * for our own journal that needs recovery.
601ef0d52e9617 Bob Peterson 2020-01-28 1641 */
601ef0d52e9617 Bob Peterson 2020-01-28 1642 if (test_bit(SDF_WITHDRAW_RECOVERY, &sdp->sd_flags) &&
601ef0d52e9617 Bob Peterson 2020-01-28 1643 glock_blocked_by_withdraw(gl) &&
601ef0d52e9617 Bob Peterson 2020-01-28 1644 gh->gh_gl != sdp->sd_jinode_gl) {
601ef0d52e9617 Bob Peterson 2020-01-28 1645 sdp->sd_glock_dqs_held++;
601ef0d52e9617 Bob Peterson 2020-01-28 1646 might_sleep();
601ef0d52e9617 Bob Peterson 2020-01-28 1647 wait_on_bit(&sdp->sd_flags, SDF_WITHDRAW_RECOVERY,
601ef0d52e9617 Bob Peterson 2020-01-28 1648 TASK_UNINTERRUPTIBLE);
601ef0d52e9617 Bob Peterson 2020-01-28 1649 }
b3b94faa5fe596 David Teigland 2006-01-16 1650 if (gh->gh_flags & GL_NOCACHE)
4897a284e835c9 Bob Peterson 2021-03-09 1651 request_unlock(gl);
b3b94faa5fe596 David Teigland 2006-01-16 1652
b3b94faa5fe596 David Teigland 2006-01-16 1653 list_del_init(&gh->gh_list);
7508abc4bdac43 Bob Peterson 2015-12-18 1654 clear_bit(HIF_HOLDER, &gh->gh_iflags);
6802e3400ff454 Steven Whitehouse 2008-05-21 1655 if (find_first_holder(gl) == NULL) {
6802e3400ff454 Steven Whitehouse 2008-05-21 1656 if (list_empty(&gl->gl_holders) &&
6802e3400ff454 Steven Whitehouse 2008-05-21 1657 !test_bit(GLF_PENDING_DEMOTE, &gl->gl_flags) &&
6802e3400ff454 Steven Whitehouse 2008-05-21 1658 !test_bit(GLF_DEMOTE, &gl->gl_flags))
6802e3400ff454 Steven Whitehouse 2008-05-21 1659 fast_path = 1;
b3b94faa5fe596 David Teigland 2006-01-16 1660 }
7881ef3f33bb80 Ross Lagerwall 2019-03-27 1661 if (!test_bit(GLF_LFLUSH, &gl->gl_flags) && demote_ok(gl))
4abb6ad9eae0ae Bob Peterson 2012-08-09 1662 gfs2_glock_add_to_lru(gl);
4abb6ad9eae0ae Bob Peterson 2012-08-09 1663
63997775b795f9 Steven Whitehouse 2009-06-12 1664 trace_gfs2_glock_queue(gh, 0);
6b0c7440bcb4b7 Andreas Gruenbacher 2017-06-30 1665 if (unlikely(!fast_path)) {
6b0c7440bcb4b7 Andreas Gruenbacher 2017-06-30 1666 gl->gl_lockref.count++;
c4f68a130fc179 Benjamin Marzinski 2007-08-23 1667 if (test_bit(GLF_PENDING_DEMOTE, &gl->gl_flags) &&
7cf8dcd3b68a76 Bob Peterson 2011-06-15 1668 !test_bit(GLF_DEMOTE, &gl->gl_flags) &&
7cf8dcd3b68a76 Bob Peterson 2011-06-15 1669 gl->gl_name.ln_type == LM_TYPE_INODE)
7cf8dcd3b68a76 Bob Peterson 2011-06-15 1670 delay = gl->gl_hold_time;
e1112869d94825 Bob Peterson 2021-03-09 1671 if (delay)
6b0c7440bcb4b7 Andreas Gruenbacher 2017-06-30 1672 __gfs2_glock_queue_work(gl, delay);
e1112869d94825 Bob Peterson 2021-03-09 1673 else {
e1112869d94825 Bob Peterson 2021-03-09 1674 if (__state_machine(gl, GL_ST_RUN_QUEUE))
e1112869d94825 Bob Peterson 2021-03-09 1675 return;
e1112869d94825 Bob Peterson 2021-03-09 1676 }
6b0c7440bcb4b7 Andreas Gruenbacher 2017-06-30 1677 }
6b0c7440bcb4b7 Andreas Gruenbacher 2017-06-30 1678 spin_unlock(&gl->gl_lockref.lock);
b3b94faa5fe596 David Teigland 2006-01-16 1679 }
b3b94faa5fe596 David Teigland 2006-01-16 1680
:::::: The code at line 1627 was first introduced by commit
:::::: b3b94faa5fe5968827ba0640ee9fba4b3e7f736e [GFS2] The core of GFS2
:::::: TO: David Teigland <teigland(a)redhat.com>
:::::: CC: Steven Whitehouse <swhiteho(a)redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[hch-block:block-bounce-cleanup 6/6] block/blk.h:332: undefined reference to `__blk_queue_bounce'
by kernel test robot
tree: git://git.infradead.org/users/hch/block.git block-bounce-cleanup
head: 6b1b8e36f63fe989298a53f04961018c1785f0b3
commit: 6b1b8e36f63fe989298a53f04961018c1785f0b3 [6/6] block: only build the block layer bounce buffering if drivers need it
config: x86_64-randconfig-s022-20210311 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-262-g5e674421-dirty
git remote add hch-block git://git.infradead.org/users/hch/block.git
git fetch --no-tags hch-block block-bounce-cleanup
git checkout 6b1b8e36f63fe989298a53f04961018c1785f0b3
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld: block/blk-mq.o: in function `blk_queue_bounce':
>> block/blk.h:332: undefined reference to `__blk_queue_bounce'
vim +332 block/blk.h
6922ed82e514a6 Christoph Hellwig 2021-03-11 328
3bce016a4c5975 Christoph Hellwig 2017-06-19 329 static inline void blk_queue_bounce(struct request_queue *q, struct bio **bio)
3bce016a4c5975 Christoph Hellwig 2017-06-19 330 {
6922ed82e514a6 Christoph Hellwig 2021-03-11 331 if (unlikely(blk_queue_may_bounce(q) && bio_has_data(*bio)))
6922ed82e514a6 Christoph Hellwig 2021-03-11 @332 __blk_queue_bounce(q, bio);
3bce016a4c5975 Christoph Hellwig 2017-06-19 333 }
3bce016a4c5975 Christoph Hellwig 2017-06-19 334
:::::: The code at line 332 was first introduced by commit
:::::: 6922ed82e514a69c601c501b5eca1eed2041a710 block: refactor the bounce buffering code
:::::: TO: Christoph Hellwig <hch(a)lst.de>
:::::: CC: Christoph Hellwig <hch(a)lst.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[mark-rutland:arm64/entry/rework 16/16] arch/arm64/kernel/entry-common.c:346:25: warning: no previous prototype for 'el1_irq_handler'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git arm64/entry/rework
head: c7071810c4aa3f59ecec504f7661d6cb8bb9b94f
commit: c7071810c4aa3f59ecec504f7661d6cb8bb9b94f [16/16] arm64: entry: convert irq handlers to C
config: arm64-randconfig-r033-20210311 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.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://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/commit/?id...
git remote add mark-rutland https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git
git fetch --no-tags mark-rutland arm64/entry/rework
git checkout c7071810c4aa3f59ecec504f7661d6cb8bb9b94f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
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 >>):
>> arch/arm64/kernel/entry-common.c:346:25: warning: no previous prototype for 'el1_irq_handler' [-Wmissing-prototypes]
346 | asmlinkage void noinstr el1_irq_handler(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~
>> arch/arm64/kernel/entry-common.c:351:25: warning: no previous prototype for 'el1_fiq_handler' [-Wmissing-prototypes]
351 | asmlinkage void noinstr el1_fiq_handler(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~
arch/arm64/kernel/entry-common.c:356:25: warning: no previous prototype for 'el1_error_handler' [-Wmissing-prototypes]
356 | asmlinkage void noinstr el1_error_handler(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~
>> arch/arm64/kernel/entry-common.c:576:25: warning: no previous prototype for 'el0_irq_handler' [-Wmissing-prototypes]
576 | asmlinkage void noinstr el0_irq_handler(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~
>> arch/arm64/kernel/entry-common.c:581:25: warning: no previous prototype for 'el0_fiq_handler' [-Wmissing-prototypes]
581 | asmlinkage void noinstr el0_fiq_handler(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~
arch/arm64/kernel/entry-common.c:586:25: warning: no previous prototype for 'el0_error_handler' [-Wmissing-prototypes]
586 | asmlinkage void noinstr el0_error_handler(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~
vim +/el1_irq_handler +346 arch/arm64/kernel/entry-common.c
345
> 346 asmlinkage void noinstr el1_irq_handler(struct pt_regs *regs)
347 {
348 el1_interrupt(regs, handle_arch_irq);
349 }
350
> 351 asmlinkage void noinstr el1_fiq_handler(struct pt_regs *regs)
352 {
353 el1_interrupt(regs, handle_arch_fiq);
354 }
355
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[gfs2:for-next.radical6j 22/26] fs/gfs2/glock.c:2137:9: sparse: sparse: context imbalance in 'clear_glock' - wrong count at exit
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git for-next.radical6j
head: 7b8c8263459404aea0c41574ef44e827d7ea1215
commit: cd52bd209f8ecfa145ace8ed08d19877ef38d43e [22/26] gfs2: Call state machine directly in clear_glock
config: x86_64-randconfig-s022-20210311 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-262-g5e674421-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git/commi...
git remote add gfs2 https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git
git fetch --no-tags gfs2 for-next.radical6j
git checkout cd52bd209f8ecfa145ace8ed08d19877ef38d43e
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
"sparse warnings: (new ones prefixed by >>)"
fs/gfs2/glock.c: note: in included file:
fs/gfs2/glock.h:222:36: sparse: sparse: context imbalance in '__gfs2_glock_put' - unexpected unlock
fs/gfs2/glock.c:973:9: sparse: sparse: context imbalance in 'state_machine' - wrong count at exit
fs/gfs2/glock.c:1949:26: sparse: sparse: context imbalance in 'gfs2_dispose_glock_lru' - different lock contexts for basic block
>> fs/gfs2/glock.c:2137:9: sparse: sparse: context imbalance in 'clear_glock' - wrong count at exit
vim +/clear_glock +2137 fs/gfs2/glock.c
2123
2124 /**
2125 * clear_glock - look at a glock and see if we can free it from glock cache
2126 * @gl: the glock to look at
2127 *
2128 */
2129
2130 static void clear_glock(struct gfs2_glock *gl)
2131 {
2132 gfs2_glock_remove_from_lru(gl);
2133
2134 spin_lock(&gl->gl_lockref.lock);
2135 if (gl->gl_state != LM_ST_UNLOCKED)
2136 request_unlock(gl);
> 2137 if (!__state_machine(gl, GL_ST_RUN_QUEUE))
2138 spin_unlock(&gl->gl_lockref.lock);
2139 }
2140
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[android-goldfish:android-3.18 396/634] drivers/iio/industrialio-core.c:399:11: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'signed int'.
by kernel test robot
Hi Lee,
First bad commit (maybe != root cause):
tree: https://android.googlesource.com/kernel/goldfish android-3.18
head: 2a0b24ec7915d4943d93eb3ce60d36e91ad2f368
commit: 8214bf079208b146e63cd0a3ce0ed335a87ce7b3 [396/634] scripts/dtc: Export YYLOC global declaration
compiler: arceb-elf-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
vim +399 drivers/iio/industrialio-core.c
5212cc8a9d8337 drivers/iio/industrialio-core.c Lars-Peter Clausen 2012-06-04 379
3661f3f5e961f7 drivers/iio/industrialio-core.c Lars-Peter Clausen 2013-10-07 380 /**
3661f3f5e961f7 drivers/iio/industrialio-core.c Lars-Peter Clausen 2013-10-07 381 * iio_format_value() - Formats a IIO value into its string representation
3661f3f5e961f7 drivers/iio/industrialio-core.c Lars-Peter Clausen 2013-10-07 382 * @buf: The buffer to which the formated value gets written
3661f3f5e961f7 drivers/iio/industrialio-core.c Lars-Peter Clausen 2013-10-07 383 * @type: One of the IIO_VAL_... constants. This decides how the val and val2
3661f3f5e961f7 drivers/iio/industrialio-core.c Lars-Peter Clausen 2013-10-07 384 * parameters are formatted.
9fbfb4b37ed23f drivers/iio/industrialio-core.c Srinivas Pandruvada 2014-04-29 385 * @vals: pointer to the values, exact meaning depends on the type parameter.
3661f3f5e961f7 drivers/iio/industrialio-core.c Lars-Peter Clausen 2013-10-07 386 */
9fbfb4b37ed23f drivers/iio/industrialio-core.c Srinivas Pandruvada 2014-04-29 387 ssize_t iio_format_value(char *buf, unsigned int type, int size, int *vals)
1d892719e70e47 drivers/staging/iio/industrialio-core.c Jonathan Cameron 2011-05-18 388 {
7985e7c1003bc5 drivers/iio/industrialio-core.c Lars-Peter Clausen 2012-09-14 389 unsigned long long tmp;
67eedba39ed1ac drivers/iio/industrialio-core.c Michael Hennerich 2012-05-11 390 bool scale_db = false;
1d892719e70e47 drivers/staging/iio/industrialio-core.c Jonathan Cameron 2011-05-18 391
3661f3f5e961f7 drivers/iio/industrialio-core.c Lars-Peter Clausen 2013-10-07 392 switch (type) {
67eedba39ed1ac drivers/iio/industrialio-core.c Michael Hennerich 2012-05-11 393 case IIO_VAL_INT:
9fbfb4b37ed23f drivers/iio/industrialio-core.c Srinivas Pandruvada 2014-04-29 394 return sprintf(buf, "%d\n", vals[0]);
67eedba39ed1ac drivers/iio/industrialio-core.c Michael Hennerich 2012-05-11 395 case IIO_VAL_INT_PLUS_MICRO_DB:
67eedba39ed1ac drivers/iio/industrialio-core.c Michael Hennerich 2012-05-11 396 scale_db = true;
67eedba39ed1ac drivers/iio/industrialio-core.c Michael Hennerich 2012-05-11 397 case IIO_VAL_INT_PLUS_MICRO:
9fbfb4b37ed23f drivers/iio/industrialio-core.c Srinivas Pandruvada 2014-04-29 398 if (vals[1] < 0)
9fbfb4b37ed23f drivers/iio/industrialio-core.c Srinivas Pandruvada 2014-04-29 @399 return sprintf(buf, "-%ld.%06u%s\n", abs(vals[0]),
9fbfb4b37ed23f drivers/iio/industrialio-core.c Srinivas Pandruvada 2014-04-29 400 -vals[1],
67eedba39ed1ac drivers/iio/industrialio-core.c Michael Hennerich 2012-05-11 401 scale_db ? " dB" : "");
1d892719e70e47 drivers/staging/iio/industrialio-core.c Jonathan Cameron 2011-05-18 402 else
9fbfb4b37ed23f drivers/iio/industrialio-core.c Srinivas Pandruvada 2014-04-29 403 return sprintf(buf, "%d.%06u%s\n", vals[0], vals[1],
67eedba39ed1ac drivers/iio/industrialio-core.c Michael Hennerich 2012-05-11 404 scale_db ? " dB" : "");
67eedba39ed1ac drivers/iio/industrialio-core.c Michael Hennerich 2012-05-11 405 case IIO_VAL_INT_PLUS_NANO:
9fbfb4b37ed23f drivers/iio/industrialio-core.c Srinivas Pandruvada 2014-04-29 406 if (vals[1] < 0)
9fbfb4b37ed23f drivers/iio/industrialio-core.c Srinivas Pandruvada 2014-04-29 407 return sprintf(buf, "-%ld.%09u\n", abs(vals[0]),
9fbfb4b37ed23f drivers/iio/industrialio-core.c Srinivas Pandruvada 2014-04-29 408 -vals[1]);
71646e2c7ae4ed drivers/staging/iio/industrialio-core.c Michael Hennerich 2011-06-27 409 else
9fbfb4b37ed23f drivers/iio/industrialio-core.c Srinivas Pandruvada 2014-04-29 410 return sprintf(buf, "%d.%09u\n", vals[0], vals[1]);
7985e7c1003bc5 drivers/iio/industrialio-core.c Lars-Peter Clausen 2012-09-14 411 case IIO_VAL_FRACTIONAL:
9fbfb4b37ed23f drivers/iio/industrialio-core.c Srinivas Pandruvada 2014-04-29 412 tmp = div_s64((s64)vals[0] * 1000000000LL, vals[1]);
fde2f05d6ac17c drivers/iio/industrialio-core.c Gregor Boirie 2016-09-02 413 vals[0] = (int)div_s64_rem(tmp, 1000000000, &vals[1]);
fde2f05d6ac17c drivers/iio/industrialio-core.c Gregor Boirie 2016-09-02 414 return sprintf(buf, "%d.%09ld\n", vals[0], abs(vals[1]));
103d9fb907058e drivers/iio/industrialio-core.c Lars-Peter Clausen 2012-10-16 415 case IIO_VAL_FRACTIONAL_LOG2:
9fbfb4b37ed23f drivers/iio/industrialio-core.c Srinivas Pandruvada 2014-04-29 416 tmp = (s64)vals[0] * 1000000000LL >> vals[1];
9fbfb4b37ed23f drivers/iio/industrialio-core.c Srinivas Pandruvada 2014-04-29 417 vals[1] = do_div(tmp, 1000000000LL);
9fbfb4b37ed23f drivers/iio/industrialio-core.c Srinivas Pandruvada 2014-04-29 418 vals[0] = tmp;
9fbfb4b37ed23f drivers/iio/industrialio-core.c Srinivas Pandruvada 2014-04-29 419 return sprintf(buf, "%d.%09u\n", vals[0], vals[1]);
9fbfb4b37ed23f drivers/iio/industrialio-core.c Srinivas Pandruvada 2014-04-29 420 case IIO_VAL_INT_MULTIPLE:
9fbfb4b37ed23f drivers/iio/industrialio-core.c Srinivas Pandruvada 2014-04-29 421 {
9fbfb4b37ed23f drivers/iio/industrialio-core.c Srinivas Pandruvada 2014-04-29 422 int i;
9fbfb4b37ed23f drivers/iio/industrialio-core.c Srinivas Pandruvada 2014-04-29 423 int len = 0;
9fbfb4b37ed23f drivers/iio/industrialio-core.c Srinivas Pandruvada 2014-04-29 424
9fbfb4b37ed23f drivers/iio/industrialio-core.c Srinivas Pandruvada 2014-04-29 425 for (i = 0; i < size; ++i)
9fbfb4b37ed23f drivers/iio/industrialio-core.c Srinivas Pandruvada 2014-04-29 426 len += snprintf(&buf[len], PAGE_SIZE - len, "%d ",
9fbfb4b37ed23f drivers/iio/industrialio-core.c Srinivas Pandruvada 2014-04-29 427 vals[i]);
9fbfb4b37ed23f drivers/iio/industrialio-core.c Srinivas Pandruvada 2014-04-29 428 len += snprintf(&buf[len], PAGE_SIZE - len, "\n");
9fbfb4b37ed23f drivers/iio/industrialio-core.c Srinivas Pandruvada 2014-04-29 429 return len;
9fbfb4b37ed23f drivers/iio/industrialio-core.c Srinivas Pandruvada 2014-04-29 430 }
67eedba39ed1ac drivers/iio/industrialio-core.c Michael Hennerich 2012-05-11 431 default:
1d892719e70e47 drivers/staging/iio/industrialio-core.c Jonathan Cameron 2011-05-18 432 return 0;
1d892719e70e47 drivers/staging/iio/industrialio-core.c Jonathan Cameron 2011-05-18 433 }
67eedba39ed1ac drivers/iio/industrialio-core.c Michael Hennerich 2012-05-11 434 }
1d892719e70e47 drivers/staging/iio/industrialio-core.c Jonathan Cameron 2011-05-18 435
:::::: The code at line 399 was first introduced by commit
:::::: 9fbfb4b37ed23f71aa9484484266381c6c6964cb IIO: core: Introduce read_raw_multi
:::::: TO: Srinivas Pandruvada <srinivas.pandruvada(a)linux.intel.com>
:::::: CC: Jonathan Cameron <jic23(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months