* include/net/ip_fib.h:539:19: sparse: sparse: cast to non-scalar
@ 2024-07-24 6:27 kernel test robot
0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2024-07-24 6:27 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp
::::::
:::::: Manual check reason: "low confidence static check warning: include/net/ip_fib.h:539:19: sparse: sparse: cast to non-scalar"
::::::
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Petr Machata <petrm@nvidia.com>
CC: Jakub Kicinski <kuba@kernel.org>
CC: Ido Schimmel <idosch@nvidia.com>
CC: Nikolay Aleksandrov <razor@blackwall.org>
CC: David Ahern <dsahern@kernel.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 786c8248dbd33a5a7a07f7c6e55a7bfc68d2ca48
commit: 4ee2a8cace3fb9a34aea6a56426f89d26dd514f3 net: ipv4: Add a sysctl to set multipath hash seed
date: 6 weeks ago
:::::: branch date: 5 hours ago
:::::: commit date: 6 weeks ago
config: alpha-randconfig-r111-20240724 (https://download.01.org/0day-ci/archive/20240724/202407241429.CIWKIQVa-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 13.3.0
reproduce: (https://download.01.org/0day-ci/archive/20240724/202407241429.CIWKIQVa-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/r/202407241429.CIWKIQVa-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
net/ipv6/route.c:2342:39: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] flow_label @@ got restricted __be32 @@
net/ipv6/route.c:2342:39: sparse: expected unsigned int [usertype] flow_label
net/ipv6/route.c:2342:39: sparse: got restricted __be32
net/ipv6/route.c: note: in included file (through include/linux/mroute_base.h, include/linux/mroute6.h):
>> include/net/ip_fib.h:539:19: sparse: sparse: cast to non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast from non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast to non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast from non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast to non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast from non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast to non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast from non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast to non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast from non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast to non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast from non-scalar
vim +539 include/net/ip_fib.h
3e453ca122d483 Petr Machata 2024-06-07 532
4ee2a8cace3fb9 Petr Machata 2024-06-07 533 static inline u32 fib_multipath_hash_from_keys(const struct net *net,
4ee2a8cace3fb9 Petr Machata 2024-06-07 534 struct flow_keys *keys)
4ee2a8cace3fb9 Petr Machata 2024-06-07 535 {
4ee2a8cace3fb9 Petr Machata 2024-06-07 536 siphash_aligned_key_t hash_key;
4ee2a8cace3fb9 Petr Machata 2024-06-07 537 u32 mp_seed;
4ee2a8cace3fb9 Petr Machata 2024-06-07 538
4ee2a8cace3fb9 Petr Machata 2024-06-07 @539 mp_seed = READ_ONCE(net->ipv4.sysctl_fib_multipath_hash_seed).mp_seed;
4ee2a8cace3fb9 Petr Machata 2024-06-07 540 fib_multipath_hash_construct_key(&hash_key, mp_seed);
4ee2a8cace3fb9 Petr Machata 2024-06-07 541
4ee2a8cace3fb9 Petr Machata 2024-06-07 542 return flow_hash_from_keys_seed(keys, &hash_key);
4ee2a8cace3fb9 Petr Machata 2024-06-07 543 }
4ee2a8cace3fb9 Petr Machata 2024-06-07 544 #else
3e453ca122d483 Petr Machata 2024-06-07 545 static inline u32 fib_multipath_hash_from_keys(const struct net *net,
3e453ca122d483 Petr Machata 2024-06-07 546 struct flow_keys *keys)
3e453ca122d483 Petr Machata 2024-06-07 547 {
3e453ca122d483 Petr Machata 2024-06-07 548 return flow_hash_from_keys(keys);
3e453ca122d483 Petr Machata 2024-06-07 549 }
4ee2a8cace3fb9 Petr Machata 2024-06-07 550 #endif
3e453ca122d483 Petr Machata 2024-06-07 551
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread
* include/net/ip_fib.h:539:19: sparse: sparse: cast to non-scalar
@ 2024-12-20 3:21 kernel test robot
0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2024-12-20 3:21 UTC (permalink / raw)
To: Petr Machata
Cc: oe-kbuild-all, linux-kernel, Jakub Kicinski, Ido Schimmel,
Nikolay Aleksandrov, David Ahern
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 8faabc041a001140564f718dabe37753e88b37fa
commit: 4ee2a8cace3fb9a34aea6a56426f89d26dd514f3 net: ipv4: Add a sysctl to set multipath hash seed
date: 6 months ago
config: alpha-randconfig-r123-20241220 (https://download.01.org/0day-ci/archive/20241220/202412201151.S8AkrAyC-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 14.2.0
reproduce: (https://download.01.org/0day-ci/archive/20241220/202412201151.S8AkrAyC-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412201151.S8AkrAyC-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
net/ipv4/route.c: note: in included file (through include/linux/module.h):
include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
net/ipv4/route.c: note: in included file (through include/linux/mroute_base.h, include/linux/mroute.h):
>> include/net/ip_fib.h:539:19: sparse: sparse: cast to non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast from non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast to non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast from non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast to non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast from non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast to non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast from non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast to non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast from non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast to non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast from non-scalar
vim +539 include/net/ip_fib.h
532
533 static inline u32 fib_multipath_hash_from_keys(const struct net *net,
534 struct flow_keys *keys)
535 {
536 siphash_aligned_key_t hash_key;
537 u32 mp_seed;
538
> 539 mp_seed = READ_ONCE(net->ipv4.sysctl_fib_multipath_hash_seed).mp_seed;
540 fib_multipath_hash_construct_key(&hash_key, mp_seed);
541
542 return flow_hash_from_keys_seed(keys, &hash_key);
543 }
544 #else
545 static inline u32 fib_multipath_hash_from_keys(const struct net *net,
546 struct flow_keys *keys)
547 {
548 return flow_hash_from_keys(keys);
549 }
550 #endif
551
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread
* include/net/ip_fib.h:539:19: sparse: sparse: cast to non-scalar
@ 2025-05-30 1:53 kernel test robot
0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2025-05-30 1:53 UTC (permalink / raw)
To: Petr Machata
Cc: oe-kbuild-all, linux-kernel, Jakub Kicinski, Ido Schimmel,
Nikolay Aleksandrov, David Ahern
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: e0797d3b91de75b6c95b4a0e0649ebd4aac1d9d1
commit: 4ee2a8cace3fb9a34aea6a56426f89d26dd514f3 net: ipv4: Add a sysctl to set multipath hash seed
date: 12 months ago
config: arm64-randconfig-r123-20250529 (https://download.01.org/0day-ci/archive/20250530/202505300908.fNWr1zST-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce: (https://download.01.org/0day-ci/archive/20250530/202505300908.fNWr1zST-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505300908.fNWr1zST-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
net/ipv4/route.c: note: in included file (through include/linux/mroute_base.h, include/linux/mroute.h):
>> include/net/ip_fib.h:539:19: sparse: sparse: cast to non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast from non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast to non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast from non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast to non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast from non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast to non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast from non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast to non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast from non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast to non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast from non-scalar
vim +539 include/net/ip_fib.h
532
533 static inline u32 fib_multipath_hash_from_keys(const struct net *net,
534 struct flow_keys *keys)
535 {
536 siphash_aligned_key_t hash_key;
537 u32 mp_seed;
538
> 539 mp_seed = READ_ONCE(net->ipv4.sysctl_fib_multipath_hash_seed).mp_seed;
540 fib_multipath_hash_construct_key(&hash_key, mp_seed);
541
542 return flow_hash_from_keys_seed(keys, &hash_key);
543 }
544 #else
545 static inline u32 fib_multipath_hash_from_keys(const struct net *net,
546 struct flow_keys *keys)
547 {
548 return flow_hash_from_keys(keys);
549 }
550 #endif
551
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread
* include/net/ip_fib.h:539:19: sparse: sparse: cast to non-scalar
@ 2025-07-12 3:41 kernel test robot
0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2025-07-12 3:41 UTC (permalink / raw)
To: Petr Machata
Cc: oe-kbuild-all, linux-kernel, Jakub Kicinski, Ido Schimmel,
Nikolay Aleksandrov, David Ahern
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 379f604cc3dc2c865dc2b13d81faa166b6df59ec
commit: 4ee2a8cace3fb9a34aea6a56426f89d26dd514f3 net: ipv4: Add a sysctl to set multipath hash seed
date: 1 year, 1 month ago
config: alpha-randconfig-r132-20250712 (https://download.01.org/0day-ci/archive/20250712/202507121128.3JqKpsLP-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 13.4.0
reproduce: (https://download.01.org/0day-ci/archive/20250712/202507121128.3JqKpsLP-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202507121128.3JqKpsLP-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
net/ipv6/route.c:2342:39: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] flow_label @@ got restricted __be32 @@
net/ipv6/route.c:2342:39: sparse: expected unsigned int [usertype] flow_label
net/ipv6/route.c:2342:39: sparse: got restricted __be32
net/ipv6/route.c: note: in included file (through include/linux/mroute_base.h, include/linux/mroute6.h):
>> include/net/ip_fib.h:539:19: sparse: sparse: cast to non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast from non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast to non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast from non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast to non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast from non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast to non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast from non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast to non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast from non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast to non-scalar
>> include/net/ip_fib.h:539:19: sparse: sparse: cast from non-scalar
vim +539 include/net/ip_fib.h
532
533 static inline u32 fib_multipath_hash_from_keys(const struct net *net,
534 struct flow_keys *keys)
535 {
536 siphash_aligned_key_t hash_key;
537 u32 mp_seed;
538
> 539 mp_seed = READ_ONCE(net->ipv4.sysctl_fib_multipath_hash_seed).mp_seed;
540 fib_multipath_hash_construct_key(&hash_key, mp_seed);
541
542 return flow_hash_from_keys_seed(keys, &hash_key);
543 }
544 #else
545 static inline u32 fib_multipath_hash_from_keys(const struct net *net,
546 struct flow_keys *keys)
547 {
548 return flow_hash_from_keys(keys);
549 }
550 #endif
551
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-07-12 3:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-24 6:27 include/net/ip_fib.h:539:19: sparse: sparse: cast to non-scalar kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2024-12-20 3:21 kernel test robot
2025-05-30 1:53 kernel test robot
2025-07-12 3:41 kernel test robot
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.