[android-common:android-4.19-stable 15080/24076] include/linux/kern_levels.h:5:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'blkcnt_t' {aka 'long long unsigned int'}
by kernel test robot
tree: https://android.googlesource.com/kernel/common android-4.19-stable
head: a513b1ef96dcd295f77365400c8574d930c7662e
commit: c1fae4b2550e30eff0ee060298e18bf94a82df74 [15080/24076] UPSTREAM: Merge remote-tracking branch 'aosp/upstream-f2fs-stable-linux-4.19.y' into android-4.19 (v5.7-rc1)
config: i386-randconfig-r036-20210929 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
git remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android-4.19-stable
git checkout c1fae4b2550e30eff0ee060298e18bf94a82df74
# save the attached .config to linux build tree
make W=1 ARCH=i386
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 include/linux/printk.h:7,
from include/linux/kernel.h:14,
from include/linux/list.h:9,
from include/linux/wait.h:7,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from fs/f2fs/inode.c:8:
fs/f2fs/inode.c: In function 'sanity_check_inode':
>> include/linux/kern_levels.h:5:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'blkcnt_t' {aka 'long long unsigned int'} [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:12:22: note: in expansion of macro 'KERN_SOH'
12 | #define KERN_WARNING KERN_SOH "4" /* warning conditions */
| ^~~~~~~~
fs/f2fs/f2fs.h:2012:19: note: in expansion of macro 'KERN_WARNING'
2012 | f2fs_printk(sbi, KERN_WARNING fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~
fs/f2fs/inode.c:303:4: note: in expansion of macro 'f2fs_warn'
303 | f2fs_warn(sbi, "%s: inode (ino=%lx) has inconsistent "
| ^~~~~~~~~
fs/f2fs/inode.c:304:38: note: format string is defined here
304 | "i_compr_blocks:%llu, i_blocks:%lu, run fsck to fix",
| ~~^
| |
| long unsigned int
| %llu
vim +5 include/linux/kern_levels.h
314ba3520e513a Joe Perches 2012-07-30 4
04d2c8c83d0e3a Joe Perches 2012-07-30 @5 #define KERN_SOH "\001" /* ASCII Start Of Header */
04d2c8c83d0e3a Joe Perches 2012-07-30 6 #define KERN_SOH_ASCII '\001'
04d2c8c83d0e3a Joe Perches 2012-07-30 7
:::::: The code at line 5 was first introduced by commit
:::::: 04d2c8c83d0e3ac5f78aeede51babb3236200112 printk: convert the format for KERN_<LEVEL> to a 2 byte pattern
:::::: TO: Joe Perches <joe(a)perches.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
arch/powerpc/include/asm/kvm_ppc.h:978:1: sparse: sparse: incorrect type in assignment (different base types)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 5833291ab6de9c3e2374336b51c814e515e8f3a5
commit: d991bb1c8da842a2a0b9dc83b1005e655783f861 include/linux/compiler-gcc.h: sparse can do constant folding of __builtin_bswap*()
date: 7 months ago
config: powerpc-randconfig-s031-20211028 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 11.2.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.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout d991bb1c8da842a2a0b9dc83b1005e655783f861
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=powerpc
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 >>)
arch/powerpc/include/asm/kvm_ppc.h:977:1: sparse: expected unsigned int [usertype] int_pending
arch/powerpc/include/asm/kvm_ppc.h:977:1: sparse: got restricted __le32 [usertype]
arch/powerpc/include/asm/kvm_ppc.h:966:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] dar @@ got restricted __be64 [usertype] @@
arch/powerpc/include/asm/kvm_ppc.h:966:1: sparse: expected unsigned long long [usertype] dar
arch/powerpc/include/asm/kvm_ppc.h:966:1: sparse: got restricted __be64 [usertype]
arch/powerpc/include/asm/kvm_ppc.h:966:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] dar @@ got restricted __le64 [usertype] @@
arch/powerpc/include/asm/kvm_ppc.h:966:1: sparse: expected unsigned long long [usertype] dar
arch/powerpc/include/asm/kvm_ppc.h:966:1: sparse: got restricted __le64 [usertype]
arch/powerpc/include/asm/kvm_ppc.h:976:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] dsisr @@ got restricted __be32 [usertype] @@
arch/powerpc/include/asm/kvm_ppc.h:976:1: sparse: expected unsigned int [usertype] dsisr
arch/powerpc/include/asm/kvm_ppc.h:976:1: sparse: got restricted __be32 [usertype]
arch/powerpc/include/asm/kvm_ppc.h:976:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] dsisr @@ got restricted __le32 [usertype] @@
arch/powerpc/include/asm/kvm_ppc.h:976:1: sparse: expected unsigned int [usertype] dsisr
arch/powerpc/include/asm/kvm_ppc.h:976:1: sparse: got restricted __le32 [usertype]
arch/powerpc/include/asm/kvm_ppc.h:959:1: sparse: sparse: cast to restricted __be64
arch/powerpc/include/asm/kvm_ppc.h:959:1: sparse: sparse: cast to restricted __le64
arch/powerpc/include/asm/kvm_ppc.h:968:1: sparse: sparse: cast to restricted __be64
arch/powerpc/include/asm/kvm_ppc.h:968:1: sparse: sparse: cast to restricted __le64
arch/powerpc/include/asm/kvm_ppc.h:968:1: sparse: sparse: cast to restricted __be64
arch/powerpc/include/asm/kvm_ppc.h:968:1: sparse: sparse: cast to restricted __le64
arch/powerpc/include/asm/kvm_ppc.h:968:1: sparse: sparse: cast to restricted __be64
arch/powerpc/include/asm/kvm_ppc.h:968:1: sparse: sparse: cast to restricted __le64
arch/powerpc/include/asm/kvm_ppc.h:968:1: sparse: sparse: cast to restricted __be64
arch/powerpc/include/asm/kvm_ppc.h:968:1: sparse: sparse: cast to restricted __le64
arch/powerpc/include/asm/kvm_ppc.h:977:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] int_pending @@ got restricted __be32 [usertype] @@
arch/powerpc/include/asm/kvm_ppc.h:977:1: sparse: expected unsigned int [usertype] int_pending
arch/powerpc/include/asm/kvm_ppc.h:977:1: sparse: got restricted __be32 [usertype]
arch/powerpc/include/asm/kvm_ppc.h:977:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] int_pending @@ got restricted __le32 [usertype] @@
arch/powerpc/include/asm/kvm_ppc.h:977:1: sparse: expected unsigned int [usertype] int_pending
arch/powerpc/include/asm/kvm_ppc.h:977:1: sparse: got restricted __le32 [usertype]
arch/powerpc/include/asm/kvm_ppc.h:977:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] int_pending @@ got restricted __be32 [usertype] @@
arch/powerpc/include/asm/kvm_ppc.h:977:1: sparse: expected unsigned int [usertype] int_pending
arch/powerpc/include/asm/kvm_ppc.h:977:1: sparse: got restricted __be32 [usertype]
arch/powerpc/include/asm/kvm_ppc.h:977:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] int_pending @@ got restricted __le32 [usertype] @@
arch/powerpc/include/asm/kvm_ppc.h:977:1: sparse: expected unsigned int [usertype] int_pending
arch/powerpc/include/asm/kvm_ppc.h:977:1: sparse: got restricted __le32 [usertype]
arch/powerpc/include/asm/kvm_ppc.h:968:1: sparse: sparse: cast to restricted __be64
arch/powerpc/include/asm/kvm_ppc.h:968:1: sparse: sparse: cast to restricted __le64
arch/powerpc/include/asm/kvm_ppc.h:968:1: sparse: sparse: cast to restricted __be64
arch/powerpc/include/asm/kvm_ppc.h:968:1: sparse: sparse: cast to restricted __le64
arch/powerpc/include/asm/kvm_ppc.h:968:1: sparse: sparse: cast to restricted __be64
arch/powerpc/include/asm/kvm_ppc.h:968:1: sparse: sparse: cast to restricted __le64
arch/powerpc/include/asm/kvm_ppc.h:968:1: sparse: sparse: cast to restricted __be64
arch/powerpc/include/asm/kvm_ppc.h:968:1: sparse: sparse: cast to restricted __le64
arch/powerpc/include/asm/kvm_ppc.h:964:1: sparse: sparse: cast to restricted __be64
arch/powerpc/include/asm/kvm_ppc.h:964:1: sparse: sparse: cast to restricted __le64
arch/powerpc/include/asm/kvm_ppc.h:965:1: sparse: sparse: cast to restricted __be64
arch/powerpc/include/asm/kvm_ppc.h:965:1: sparse: sparse: cast to restricted __le64
arch/powerpc/include/asm/kvm_ppc.h:960:1: sparse: sparse: cast to restricted __be64
arch/powerpc/include/asm/kvm_ppc.h:960:1: sparse: sparse: cast to restricted __le64
arch/powerpc/include/asm/kvm_ppc.h:961:1: sparse: sparse: cast to restricted __be64
arch/powerpc/include/asm/kvm_ppc.h:961:1: sparse: sparse: cast to restricted __le64
arch/powerpc/include/asm/kvm_ppc.h:962:1: sparse: sparse: cast to restricted __be64
arch/powerpc/include/asm/kvm_ppc.h:962:1: sparse: sparse: cast to restricted __le64
arch/powerpc/include/asm/kvm_ppc.h:963:1: sparse: sparse: cast to restricted __be64
arch/powerpc/include/asm/kvm_ppc.h:963:1: sparse: sparse: cast to restricted __le64
arch/powerpc/include/asm/kvm_ppc.h:978:1: sparse: sparse: cast to restricted __be64
arch/powerpc/include/asm/kvm_ppc.h:978:1: sparse: sparse: cast to restricted __le64
arch/powerpc/include/asm/kvm_ppc.h:979:1: sparse: sparse: cast to restricted __be64
arch/powerpc/include/asm/kvm_ppc.h:979:1: sparse: sparse: cast to restricted __le64
arch/powerpc/include/asm/kvm_ppc.h:980:1: sparse: sparse: cast to restricted __be64
arch/powerpc/include/asm/kvm_ppc.h:980:1: sparse: sparse: cast to restricted __le64
arch/powerpc/include/asm/kvm_ppc.h:981:1: sparse: sparse: cast to restricted __be64
arch/powerpc/include/asm/kvm_ppc.h:981:1: sparse: sparse: cast to restricted __le64
arch/powerpc/include/asm/kvm_ppc.h:964:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] srr0 @@ got restricted __be64 [usertype] @@
arch/powerpc/include/asm/kvm_ppc.h:964:1: sparse: expected unsigned long long [usertype] srr0
arch/powerpc/include/asm/kvm_ppc.h:964:1: sparse: got restricted __be64 [usertype]
arch/powerpc/include/asm/kvm_ppc.h:964:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] srr0 @@ got restricted __le64 [usertype] @@
arch/powerpc/include/asm/kvm_ppc.h:964:1: sparse: expected unsigned long long [usertype] srr0
arch/powerpc/include/asm/kvm_ppc.h:964:1: sparse: got restricted __le64 [usertype]
arch/powerpc/include/asm/kvm_ppc.h:965:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] srr1 @@ got restricted __be64 [usertype] @@
arch/powerpc/include/asm/kvm_ppc.h:965:1: sparse: expected unsigned long long [usertype] srr1
arch/powerpc/include/asm/kvm_ppc.h:965:1: sparse: got restricted __be64 [usertype]
arch/powerpc/include/asm/kvm_ppc.h:965:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] srr1 @@ got restricted __le64 [usertype] @@
arch/powerpc/include/asm/kvm_ppc.h:965:1: sparse: expected unsigned long long [usertype] srr1
arch/powerpc/include/asm/kvm_ppc.h:965:1: sparse: got restricted __le64 [usertype]
arch/powerpc/include/asm/kvm_ppc.h:960:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] sprg0 @@ got restricted __be64 [usertype] @@
arch/powerpc/include/asm/kvm_ppc.h:960:1: sparse: expected unsigned long long [usertype] sprg0
arch/powerpc/include/asm/kvm_ppc.h:960:1: sparse: got restricted __be64 [usertype]
arch/powerpc/include/asm/kvm_ppc.h:960:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] sprg0 @@ got restricted __le64 [usertype] @@
arch/powerpc/include/asm/kvm_ppc.h:960:1: sparse: expected unsigned long long [usertype] sprg0
arch/powerpc/include/asm/kvm_ppc.h:960:1: sparse: got restricted __le64 [usertype]
arch/powerpc/include/asm/kvm_ppc.h:961:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] sprg1 @@ got restricted __be64 [usertype] @@
arch/powerpc/include/asm/kvm_ppc.h:961:1: sparse: expected unsigned long long [usertype] sprg1
arch/powerpc/include/asm/kvm_ppc.h:961:1: sparse: got restricted __be64 [usertype]
arch/powerpc/include/asm/kvm_ppc.h:961:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] sprg1 @@ got restricted __le64 [usertype] @@
arch/powerpc/include/asm/kvm_ppc.h:961:1: sparse: expected unsigned long long [usertype] sprg1
arch/powerpc/include/asm/kvm_ppc.h:961:1: sparse: got restricted __le64 [usertype]
arch/powerpc/include/asm/kvm_ppc.h:962:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] sprg2 @@ got restricted __be64 [usertype] @@
arch/powerpc/include/asm/kvm_ppc.h:962:1: sparse: expected unsigned long long [usertype] sprg2
arch/powerpc/include/asm/kvm_ppc.h:962:1: sparse: got restricted __be64 [usertype]
arch/powerpc/include/asm/kvm_ppc.h:962:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] sprg2 @@ got restricted __le64 [usertype] @@
arch/powerpc/include/asm/kvm_ppc.h:962:1: sparse: expected unsigned long long [usertype] sprg2
arch/powerpc/include/asm/kvm_ppc.h:962:1: sparse: got restricted __le64 [usertype]
arch/powerpc/include/asm/kvm_ppc.h:963:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] sprg3 @@ got restricted __be64 [usertype] @@
arch/powerpc/include/asm/kvm_ppc.h:963:1: sparse: expected unsigned long long [usertype] sprg3
arch/powerpc/include/asm/kvm_ppc.h:963:1: sparse: got restricted __be64 [usertype]
arch/powerpc/include/asm/kvm_ppc.h:963:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] sprg3 @@ got restricted __le64 [usertype] @@
arch/powerpc/include/asm/kvm_ppc.h:963:1: sparse: expected unsigned long long [usertype] sprg3
arch/powerpc/include/asm/kvm_ppc.h:963:1: sparse: got restricted __le64 [usertype]
>> arch/powerpc/include/asm/kvm_ppc.h:978:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] sprg4 @@ got restricted __be64 [usertype] @@
arch/powerpc/include/asm/kvm_ppc.h:978:1: sparse: expected unsigned long long [usertype] sprg4
arch/powerpc/include/asm/kvm_ppc.h:978:1: sparse: got restricted __be64 [usertype]
>> arch/powerpc/include/asm/kvm_ppc.h:978:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] sprg4 @@ got restricted __le64 [usertype] @@
arch/powerpc/include/asm/kvm_ppc.h:978:1: sparse: expected unsigned long long [usertype] sprg4
arch/powerpc/include/asm/kvm_ppc.h:978:1: sparse: got restricted __le64 [usertype]
>> arch/powerpc/include/asm/kvm_ppc.h:979:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] sprg5 @@ got restricted __be64 [usertype] @@
arch/powerpc/include/asm/kvm_ppc.h:979:1: sparse: expected unsigned long long [usertype] sprg5
arch/powerpc/include/asm/kvm_ppc.h:979:1: sparse: got restricted __be64 [usertype]
>> arch/powerpc/include/asm/kvm_ppc.h:979:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] sprg5 @@ got restricted __le64 [usertype] @@
arch/powerpc/include/asm/kvm_ppc.h:979:1: sparse: expected unsigned long long [usertype] sprg5
arch/powerpc/include/asm/kvm_ppc.h:979:1: sparse: got restricted __le64 [usertype]
>> arch/powerpc/include/asm/kvm_ppc.h:980:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] sprg6 @@ got restricted __be64 [usertype] @@
arch/powerpc/include/asm/kvm_ppc.h:980:1: sparse: expected unsigned long long [usertype] sprg6
arch/powerpc/include/asm/kvm_ppc.h:980:1: sparse: got restricted __be64 [usertype]
>> arch/powerpc/include/asm/kvm_ppc.h:980:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] sprg6 @@ got restricted __le64 [usertype] @@
arch/powerpc/include/asm/kvm_ppc.h:980:1: sparse: expected unsigned long long [usertype] sprg6
arch/powerpc/include/asm/kvm_ppc.h:980:1: sparse: got restricted __le64 [usertype]
>> arch/powerpc/include/asm/kvm_ppc.h:981:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] sprg7 @@ got restricted __be64 [usertype] @@
arch/powerpc/include/asm/kvm_ppc.h:981:1: sparse: expected unsigned long long [usertype] sprg7
arch/powerpc/include/asm/kvm_ppc.h:981:1: sparse: got restricted __be64 [usertype]
>> arch/powerpc/include/asm/kvm_ppc.h:981:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] sprg7 @@ got restricted __le64 [usertype] @@
arch/powerpc/include/asm/kvm_ppc.h:981:1: sparse: expected unsigned long long [usertype] sprg7
arch/powerpc/include/asm/kvm_ppc.h:981:1: sparse: got restricted __le64 [usertype]
arch/powerpc/include/asm/kvm_ppc.h:966:1: sparse: sparse: cast to restricted __be64
arch/powerpc/include/asm/kvm_ppc.h:966:1: sparse: sparse: cast to restricted __le64
arch/powerpc/include/asm/kvm_ppc.h:966:1: sparse: sparse: cast to restricted __be64
arch/powerpc/include/asm/kvm_ppc.h:966:1: sparse: sparse: cast to restricted __le64
arch/powerpc/include/asm/kvm_ppc.h:976:1: sparse: sparse: cast to restricted __be32
arch/powerpc/include/asm/kvm_ppc.h:976:1: sparse: sparse: cast to restricted __le32
arch/powerpc/include/asm/kvm_ppc.h:976:1: sparse: sparse: cast to restricted __be32
arch/powerpc/include/asm/kvm_ppc.h:976:1: sparse: sparse: cast to restricted __le32
arch/powerpc/include/asm/kvm_ppc.h:966:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] dar @@ got restricted __be64 [usertype] @@
arch/powerpc/include/asm/kvm_ppc.h:966:1: sparse: expected unsigned long long [usertype] dar
arch/powerpc/include/asm/kvm_ppc.h:966:1: sparse: got restricted __be64 [usertype]
arch/powerpc/include/asm/kvm_ppc.h:966:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] dar @@ got restricted __le64 [usertype] @@
arch/powerpc/include/asm/kvm_ppc.h:966:1: sparse: expected unsigned long long [usertype] dar
arch/powerpc/include/asm/kvm_ppc.h:966:1: sparse: got restricted __le64 [usertype]
arch/powerpc/include/asm/kvm_ppc.h:976:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] dsisr @@ got restricted __be32 [usertype] @@
arch/powerpc/include/asm/kvm_ppc.h:976:1: sparse: expected unsigned int [usertype] dsisr
arch/powerpc/include/asm/kvm_ppc.h:976:1: sparse: got restricted __be32 [usertype]
arch/powerpc/include/asm/kvm_ppc.h:976:1: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] dsisr @@ got restricted __le32 [usertype] @@
arch/powerpc/include/asm/kvm_ppc.h:976:1: sparse: expected unsigned int [usertype] dsisr
arch/powerpc/include/asm/kvm_ppc.h:976:1: sparse: got restricted __le32 [usertype]
vim +978 arch/powerpc/include/asm/kvm_ppc.h
1dc0c5b88cae1c Bharat Bhushan 2014-07-17 958
5deb8e7ad8ac7e Alexander Graf 2014-04-24 959 SHARED_WRAPPER(critical, 64)
1dc0c5b88cae1c Bharat Bhushan 2014-07-17 960 SHARED_SPRNG_WRAPPER(sprg0, 64, SPRN_GSPRG0)
1dc0c5b88cae1c Bharat Bhushan 2014-07-17 961 SHARED_SPRNG_WRAPPER(sprg1, 64, SPRN_GSPRG1)
1dc0c5b88cae1c Bharat Bhushan 2014-07-17 962 SHARED_SPRNG_WRAPPER(sprg2, 64, SPRN_GSPRG2)
1dc0c5b88cae1c Bharat Bhushan 2014-07-17 963 SHARED_SPRNG_WRAPPER(sprg3, 64, SPRN_GSPRG3)
1dc0c5b88cae1c Bharat Bhushan 2014-07-17 964 SHARED_SPRNG_WRAPPER(srr0, 64, SPRN_GSRR0)
1dc0c5b88cae1c Bharat Bhushan 2014-07-17 965 SHARED_SPRNG_WRAPPER(srr1, 64, SPRN_GSRR1)
1dc0c5b88cae1c Bharat Bhushan 2014-07-17 966 SHARED_SPRNG_WRAPPER(dar, 64, SPRN_GDEAR)
dc168549d9a0fb Bharat Bhushan 2014-07-17 967 SHARED_SPRNG_WRAPPER(esr, 64, SPRN_GESR)
5deb8e7ad8ac7e Alexander Graf 2014-04-24 968 SHARED_WRAPPER_GET(msr, 64)
5deb8e7ad8ac7e Alexander Graf 2014-04-24 969 static inline void kvmppc_set_msr_fast(struct kvm_vcpu *vcpu, u64 val)
5deb8e7ad8ac7e Alexander Graf 2014-04-24 970 {
5deb8e7ad8ac7e Alexander Graf 2014-04-24 971 if (kvmppc_shared_big_endian(vcpu))
5deb8e7ad8ac7e Alexander Graf 2014-04-24 972 vcpu->arch.shared->msr = cpu_to_be64(val);
5deb8e7ad8ac7e Alexander Graf 2014-04-24 973 else
5deb8e7ad8ac7e Alexander Graf 2014-04-24 974 vcpu->arch.shared->msr = cpu_to_le64(val);
5deb8e7ad8ac7e Alexander Graf 2014-04-24 975 }
5deb8e7ad8ac7e Alexander Graf 2014-04-24 976 SHARED_WRAPPER(dsisr, 32)
5deb8e7ad8ac7e Alexander Graf 2014-04-24 977 SHARED_WRAPPER(int_pending, 32)
5deb8e7ad8ac7e Alexander Graf 2014-04-24 @978 SHARED_WRAPPER(sprg4, 64)
5deb8e7ad8ac7e Alexander Graf 2014-04-24 @979 SHARED_WRAPPER(sprg5, 64)
5deb8e7ad8ac7e Alexander Graf 2014-04-24 @980 SHARED_WRAPPER(sprg6, 64)
5deb8e7ad8ac7e Alexander Graf 2014-04-24 @981 SHARED_WRAPPER(sprg7, 64)
5deb8e7ad8ac7e Alexander Graf 2014-04-24 982
:::::: The code at line 978 was first introduced by commit
:::::: 5deb8e7ad8ac7e3fcdfa042acff617f461b361c2 KVM: PPC: Make shared struct aka magic page guest endian
:::::: TO: Alexander Graf <agraf(a)suse.de>
:::::: CC: Alexander Graf <agraf(a)suse.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
[rmk-arm:clearfog 2/13] drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:52:12: error: unused function '_mv88e6xxx_pvt_read'
by kernel test robot
Hi Russell,
First bad commit (maybe != root cause):
tree: git://git.armlinux.org.uk/~rmk/linux-arm clearfog
head: fb3ab88e93237a6e27fbc9fe4537d63c9163787d
commit: 79d4556027c96d9cb569bf50ae889fd148344999 [2/13] net: dsa: mv88e6xxx: debugfs hacks to fix the compile
config: arm-buildonly-randconfig-r002-20211112 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c3dddeeafb529e769cde87bd29ef6271ac6bfa5c)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
git remote add rmk-arm git://git.armlinux.org.uk/~rmk/linux-arm
git fetch --no-tags rmk-arm clearfog
git checkout 79d4556027c96d9cb569bf50ae889fd148344999
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm
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 >>):
In file included from drivers/net/dsa/mv88e6xxx/chip.c:3164:
>> drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c:52:12: error: unused function '_mv88e6xxx_pvt_read' [-Werror,-Wunused-function]
static int _mv88e6xxx_pvt_read(struct mv88e6xxx_chip *chip, int src_dev,
^
1 error generated.
vim +/_mv88e6xxx_pvt_read +52 drivers/net/dsa/mv88e6xxx/mv88e6xxx_debugfs.c
fe8a2a1725d821 Vivien Didelot 2015-10-22 51
fe8a2a1725d821 Vivien Didelot 2015-10-22 @52 static int _mv88e6xxx_pvt_read(struct mv88e6xxx_chip *chip, int src_dev,
fe8a2a1725d821 Vivien Didelot 2015-10-22 53 int src_port, u16 *data)
fe8a2a1725d821 Vivien Didelot 2015-10-22 54 {
fe8a2a1725d821 Vivien Didelot 2015-10-22 55 int ret;
fe8a2a1725d821 Vivien Didelot 2015-10-22 56
fe8a2a1725d821 Vivien Didelot 2015-10-22 57 ret = _mv88e6xxx_pvt_wait(chip);
fe8a2a1725d821 Vivien Didelot 2015-10-22 58 if (ret < 0)
fe8a2a1725d821 Vivien Didelot 2015-10-22 59 return ret;
fe8a2a1725d821 Vivien Didelot 2015-10-22 60
fe8a2a1725d821 Vivien Didelot 2015-10-22 61 ret = _mv88e6xxx_pvt_cmd(chip, src_dev, src_port,
fe8a2a1725d821 Vivien Didelot 2015-10-22 62 GLOBAL2_PVT_ADDR_OP_READ);
fe8a2a1725d821 Vivien Didelot 2015-10-22 63 if (ret < 0)
fe8a2a1725d821 Vivien Didelot 2015-10-22 64 return ret;
fe8a2a1725d821 Vivien Didelot 2015-10-22 65
fe8a2a1725d821 Vivien Didelot 2015-10-22 66 return mv88e6xxx_g2_read(chip, GLOBAL2_PVT_DATA, data);
fe8a2a1725d821 Vivien Didelot 2015-10-22 67 }
fe8a2a1725d821 Vivien Didelot 2015-10-22 68
:::::: The code at line 52 was first introduced by commit
:::::: fe8a2a1725d821bb81755cefe6483985aee89fba net: dsa: mv88e6xxx: add debugfs interface
:::::: TO: Vivien Didelot <vivien.didelot(a)savoirfairelinux.com>
:::::: CC: Russell King (Oracle) <rmk+kernel(a)armlinux.org.uk>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
arch/m68k/coldfire/m523x.c:31:19: sparse: sparse: symbol 'm523x_clk_lookup' was not declared. Should it be static?
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 5833291ab6de9c3e2374336b51c814e515e8f3a5
commit: 63aadb77669a6856b26d73da85b4f788731524a3 m68k: coldfire: use clkdev_lookup on most coldfire
date: 5 months ago
config: m68k-randconfig-s032-20211027 (attached as .config)
compiler: m68k-linux-gcc (GCC) 11.2.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.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 63aadb77669a6856b26d73da85b4f788731524a3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=m68k SHELL=/bin/bash arch/m68k/coldfire/
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 >>)
>> arch/m68k/coldfire/m523x.c:31:19: sparse: sparse: symbol 'm523x_clk_lookup' was not declared. Should it be static?
vim +/m523x_clk_lookup +31 arch/m68k/coldfire/m523x.c
30
> 31 struct clk_lookup m523x_clk_lookup[] = {
32 CLKDEV_INIT(NULL, "pll.0", &clk_pll),
33 CLKDEV_INIT(NULL, "sys.0", &clk_sys),
34 CLKDEV_INIT("mcfpit.0", NULL, &clk_pll),
35 CLKDEV_INIT("mcfpit.1", NULL, &clk_pll),
36 CLKDEV_INIT("mcfpit.2", NULL, &clk_pll),
37 CLKDEV_INIT("mcfpit.3", NULL, &clk_pll),
38 CLKDEV_INIT("mcfuart.0", NULL, &clk_sys),
39 CLKDEV_INIT("mcfuart.1", NULL, &clk_sys),
40 CLKDEV_INIT("mcfuart.2", NULL, &clk_sys),
41 CLKDEV_INIT("mcfqspi.0", NULL, &clk_sys),
42 CLKDEV_INIT("fec.0", NULL, &clk_sys),
43 CLKDEV_INIT("imx1-i2c.0", NULL, &clk_sys),
44 };
45
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
[jpirko-mlxsw:linecards 55/112] drivers/net/ethernet/mellanox/mlxsw/core_linecards.c:366:33: error: variable 'linecards' set but not used
by kernel test robot
tree: https://github.com/jpirko/linux_mlxsw linecards
head: 7cbf836a1c8105f00dc98c24054feed7640b0dfd
commit: f8f5a8c6910c7716db683cc02eea2fe5e288b74c [55/112] mlxsw: core_linecards: Add line card objects and implement provisioning
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 11.2.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://github.com/jpirko/linux_mlxsw/commit/f8f5a8c6910c7716db683cc02eea...
git remote add jpirko-mlxsw https://github.com/jpirko/linux_mlxsw
git fetch --no-tags jpirko-mlxsw linecards
git checkout f8f5a8c6910c7716db683cc02eea2fe5e288b74c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc
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 >>):
drivers/net/ethernet/mellanox/mlxsw/core_linecards.c: In function 'mlxsw_linecard_unprovision':
>> drivers/net/ethernet/mellanox/mlxsw/core_linecards.c:366:33: error: variable 'linecards' set but not used [-Werror=unused-but-set-variable]
366 | struct mlxsw_linecards *linecards;
| ^~~~~~~~~
cc1: all warnings being treated as errors
vim +/linecards +366 drivers/net/ethernet/mellanox/mlxsw/core_linecards.c
359
360 static int mlxsw_linecard_unprovision(struct devlink_linecard *devlink_linecard,
361 void *priv,
362 struct netlink_ext_ack *extack)
363 {
364 enum mlxsw_reg_mbct_fsm_state fsm_state;
365 struct mlxsw_linecard *linecard = priv;
> 366 struct mlxsw_linecards *linecards;
367 enum mlxsw_reg_mbct_status status;
368 unsigned int ini_wait_retries = 0;
369 struct mlxsw_core *mlxsw_core;
370 int err;
371
372 mutex_lock(&linecard->lock);
373
374 linecards = linecard->linecards;
375 mlxsw_core = linecard->linecards->mlxsw_core;
376
377 query_ini_status:
378 err = mlxsw_linecard_query_status(linecard, &status,
379 &fsm_state, extack);
380 if (err)
381 goto err_out;
382
383 switch (fsm_state) {
384 case MLXSW_REG_MBCT_FSM_STATE_INI_IN_USE:
385 if (ini_wait_retries++ > MLXSW_LINECARD_INI_WAIT_RETRIES) {
386 NL_SET_ERR_MSG_MOD(extack, "Failed to wait for linecard INI to be not used");
387 goto err_out;
388 }
389 mdelay(MLXSW_LINECARD_INI_WAIT_MS);
390 goto query_ini_status;
391 default:
392 break;
393 }
394
395 mlxsw_reg_mbct_pack(linecard->mbct_pl, linecard->slot_index,
396 MLXSW_REG_MBCT_OP_ERASE_INI_IMAGE, 0,
397 false, false, NULL);
398 err = mlxsw_reg_write(mlxsw_core, MLXSW_REG(mbct),
399 linecard->mbct_pl);
400 if (err) {
401 NL_SET_ERR_MSG_MOD(extack, "Failed to erase linecard INI");
402 goto err_out;
403 }
404 mlxsw_reg_mbct_unpack(linecard->mbct_pl, NULL, &status, &fsm_state);
405 switch (status) {
406 case MLXSW_REG_MBCT_STATUS_ERASE_COMPLETE:
407 break;
408 default:
409 /* Should not happen, fall-through. */
410 case MLXSW_REG_MBCT_STATUS_ERASE_FAILED:
411 NL_SET_ERR_MSG_MOD(extack, "Failed to erase linecard INI");
412 goto fix_fsm_err_out;
413 case MLXSW_REG_MBCT_STATUS_ERROR_INI_IN_USE:
414 NL_SET_ERR_MSG_MOD(extack, "Failed to erase linecard INI while being used");
415 goto fix_fsm_err_out;
416 }
417 goto out;
418
419 fix_fsm_err_out:
420 mlxsw_linecard_fix_fsm_state(linecard, fsm_state);
421 err_out:
422 mlxsw_linecard_provision_fail(linecard);
423 out:
424 mutex_unlock(&linecard->lock);
425 return err;
426 }
427
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
Re: [PATCH v12 2/4] dmaengine: tegra: Add tegra gpcdma driver
by kernel test robot
Hi Akhil,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on robh/for-next]
[also build test ERROR on vkoul-dmaengine/next arm64/for-next/core v5.15 next-20211112]
[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]
url: https://github.com/0day-ci/linux/commits/Akhil-R/dt-bindings-dmaengine-Ad...
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: m68k-allyesconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 11.2.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://github.com/0day-ci/linux/commit/faf61a8fc90e3ea731c65a8cebce3eb6c...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Akhil-R/dt-bindings-dmaengine-Add-doc-for-tegra-gpcdma/20211109-233646
git checkout faf61a8fc90e3ea731c65a8cebce3eb6c0444d21
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=m68k
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 >>):
drivers/dma/tegra186-gpc-dma.c: In function 'tegra_dma_sid_free':
>> drivers/dma/tegra186-gpc-dma.c:326:9: error: enumeration value 'DMA_MEM_TO_MEM' not handled in switch [-Werror=switch]
326 | switch (tdc->sid_dir) {
| ^~~~~~
>> drivers/dma/tegra186-gpc-dma.c:326:9: error: enumeration value 'DMA_DEV_TO_DEV' not handled in switch [-Werror=switch]
>> drivers/dma/tegra186-gpc-dma.c:326:9: error: enumeration value 'DMA_TRANS_NONE' not handled in switch [-Werror=switch]
drivers/dma/tegra186-gpc-dma.c: In function 'tegra_dma_reset_client':
>> drivers/dma/tegra186-gpc-dma.c:55:41: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
55 | FIELD_PREP(TEGRA_GPCDMA_CSR_REQ_SEL_MASK, 4)
| ^~~~~~~~~~
drivers/dma/tegra186-gpc-dma.c:535:16: note: in expansion of macro 'TEGRA_GPCDMA_CSR_REQ_SEL_UNUSED'
535 | csr |= TEGRA_GPCDMA_CSR_REQ_SEL_UNUSED;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/dma/tegra186-gpc-dma.c: In function 'tegra_dma_prep_dma_memset':
>> drivers/dma/tegra186-gpc-dma.c:787:74: error: right shift count >= width of type [-Werror=shift-count-overflow]
787 | FIELD_PREP(TEGRA_GPCDMA_HIGH_ADDR_DST_PTR, (dest >> 32));
| ^~
drivers/dma/tegra186-gpc-dma.c: In function 'tegra_dma_prep_dma_memcpy':
drivers/dma/tegra186-gpc-dma.c:854:65: error: right shift count >= width of type [-Werror=shift-count-overflow]
854 | FIELD_PREP(TEGRA_GPCDMA_HIGH_ADDR_SRC_PTR, (src >> 32));
| ^~
drivers/dma/tegra186-gpc-dma.c:856:66: error: right shift count >= width of type [-Werror=shift-count-overflow]
856 | FIELD_PREP(TEGRA_GPCDMA_HIGH_ADDR_DST_PTR, (dest >> 32));
| ^~
drivers/dma/tegra186-gpc-dma.c: In function 'tegra_dma_prep_slave_sg':
drivers/dma/tegra186-gpc-dma.c:962:81: error: right shift count >= width of type [-Werror=shift-count-overflow]
962 | FIELD_PREP(TEGRA_GPCDMA_HIGH_ADDR_SRC_PTR, (mem >> 32));
| ^~
drivers/dma/tegra186-gpc-dma.c:967:81: error: right shift count >= width of type [-Werror=shift-count-overflow]
967 | FIELD_PREP(TEGRA_GPCDMA_HIGH_ADDR_DST_PTR, (mem >> 32));
| ^~
cc1: all warnings being treated as errors
vim +/DMA_MEM_TO_MEM +326 drivers/dma/tegra186-gpc-dma.c
320
321 static void tegra_dma_sid_free(struct tegra_dma_channel *tdc)
322 {
323 struct tegra_dma *tdma = tdc->tdma;
324 unsigned int sid = tdc->slave_id;
325
> 326 switch (tdc->sid_dir) {
327 case DMA_MEM_TO_DEV:
328 clear_bit(sid, &tdma->sid_m2d_reserved);
329 break;
330 case DMA_DEV_TO_MEM:
331 clear_bit(sid, &tdma->sid_d2m_reserved);
332 break;
333 }
334
335 tdc->sid_dir = DMA_TRANS_NONE;
336 }
337
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
Re: [PATCH v5 4/8] leds: trigger: netdev: rename and expose NETDEV trigger enum and struct
by kernel test robot
Hi Ansuel,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on net/master]
[also build test ERROR on linus/master next-20211112]
[cannot apply to pavel-leds/for-next robh/for-next net-next/master v5.15]
[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]
url: https://github.com/0day-ci/linux/commits/Ansuel-Smith/Adds-support-for-PH...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git 5833291ab6de9c3e2374336b51c814e515e8f3a5
config: i386-buildonly-randconfig-r004-20211112 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c3dddeeafb529e769cde87bd29ef6271ac6bfa5c)
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://github.com/0day-ci/linux/commit/4aa7005c8428f867be20ecd0afe4bc2cc...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Ansuel-Smith/Adds-support-for-PHY-LEDs-with-offload-triggers/20211112-233807
git checkout 4aa7005c8428f867be20ecd0afe4bc2ccdf6da4a
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/leds/trigger/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
>> drivers/leds/trigger/ledtrig-netdev.c:45:39: warning: declaration of 'struct led_netdev_data' will not be visible outside of this function [-Wvisibility]
static void set_baseline_state(struct led_netdev_data *trigger_data)
^
>> drivers/leds/trigger/ledtrig-netdev.c:48:46: error: incomplete definition of type 'struct led_netdev_data'
struct led_classdev *led_cdev = trigger_data->led_cdev;
~~~~~~~~~~~~^
drivers/leds/trigger/ledtrig-netdev.c:45:39: note: forward declaration of 'struct led_netdev_data'
static void set_baseline_state(struct led_netdev_data *trigger_data)
^
drivers/leds/trigger/ledtrig-netdev.c:56:19: error: incomplete definition of type 'struct led_netdev_data'
if (!trigger_data->carrier_link_up) {
~~~~~~~~~~~~^
drivers/leds/trigger/ledtrig-netdev.c:45:39: note: forward declaration of 'struct led_netdev_data'
static void set_baseline_state(struct led_netdev_data *trigger_data)
^
drivers/leds/trigger/ledtrig-netdev.c:59:50: error: incomplete definition of type 'struct led_netdev_data'
if (test_bit(TRIGGER_NETDEV_LINK, &trigger_data->mode))
~~~~~~~~~~~~^
drivers/leds/trigger/ledtrig-netdev.c:45:39: note: forward declaration of 'struct led_netdev_data'
static void set_baseline_state(struct led_netdev_data *trigger_data)
^
>> drivers/leds/trigger/ledtrig-netdev.c:59:16: error: use of undeclared identifier 'TRIGGER_NETDEV_LINK'
if (test_bit(TRIGGER_NETDEV_LINK, &trigger_data->mode))
^
drivers/leds/trigger/ledtrig-netdev.c:68:48: error: incomplete definition of type 'struct led_netdev_data'
if (test_bit(TRIGGER_NETDEV_TX, &trigger_data->mode) ||
~~~~~~~~~~~~^
drivers/leds/trigger/ledtrig-netdev.c:45:39: note: forward declaration of 'struct led_netdev_data'
static void set_baseline_state(struct led_netdev_data *trigger_data)
^
drivers/leds/trigger/ledtrig-netdev.c:69:48: error: incomplete definition of type 'struct led_netdev_data'
test_bit(TRIGGER_NETDEV_RX, &trigger_data->mode))
~~~~~~~~~~~~^
drivers/leds/trigger/ledtrig-netdev.c:45:39: note: forward declaration of 'struct led_netdev_data'
static void set_baseline_state(struct led_netdev_data *trigger_data)
^
>> drivers/leds/trigger/ledtrig-netdev.c:68:16: error: use of undeclared identifier 'TRIGGER_NETDEV_TX'
if (test_bit(TRIGGER_NETDEV_TX, &trigger_data->mode) ||
^
>> drivers/leds/trigger/ledtrig-netdev.c:69:16: error: use of undeclared identifier 'TRIGGER_NETDEV_RX'
test_bit(TRIGGER_NETDEV_RX, &trigger_data->mode))
^
drivers/leds/trigger/ledtrig-netdev.c:70:39: error: incomplete definition of type 'struct led_netdev_data'
schedule_delayed_work(&trigger_data->work, 0);
~~~~~~~~~~~~^
drivers/leds/trigger/ledtrig-netdev.c:45:39: note: forward declaration of 'struct led_netdev_data'
static void set_baseline_state(struct led_netdev_data *trigger_data)
^
drivers/leds/trigger/ledtrig-netdev.c:80:28: error: incomplete definition of type 'struct led_netdev_data'
spin_lock_bh(&trigger_data->lock);
~~~~~~~~~~~~^
drivers/leds/trigger/ledtrig-netdev.c:77:9: note: forward declaration of 'struct led_netdev_data'
struct led_netdev_data *trigger_data = led_trigger_get_drvdata(dev);
^
drivers/leds/trigger/ledtrig-netdev.c:81:41: error: incomplete definition of type 'struct led_netdev_data'
len = sprintf(buf, "%s\n", trigger_data->device_name);
~~~~~~~~~~~~^
drivers/leds/trigger/ledtrig-netdev.c:77:9: note: forward declaration of 'struct led_netdev_data'
struct led_netdev_data *trigger_data = led_trigger_get_drvdata(dev);
^
drivers/leds/trigger/ledtrig-netdev.c:82:30: error: incomplete definition of type 'struct led_netdev_data'
spin_unlock_bh(&trigger_data->lock);
~~~~~~~~~~~~^
drivers/leds/trigger/ledtrig-netdev.c:77:9: note: forward declaration of 'struct led_netdev_data'
struct led_netdev_data *trigger_data = led_trigger_get_drvdata(dev);
^
drivers/leds/trigger/ledtrig-netdev.c:96:40: error: incomplete definition of type 'struct led_netdev_data'
cancel_delayed_work_sync(&trigger_data->work);
~~~~~~~~~~~~^
drivers/leds/trigger/ledtrig-netdev.c:91:9: note: forward declaration of 'struct led_netdev_data'
struct led_netdev_data *trigger_data = led_trigger_get_drvdata(dev);
^
drivers/leds/trigger/ledtrig-netdev.c:98:28: error: incomplete definition of type 'struct led_netdev_data'
spin_lock_bh(&trigger_data->lock);
~~~~~~~~~~~~^
drivers/leds/trigger/ledtrig-netdev.c:91:9: note: forward declaration of 'struct led_netdev_data'
struct led_netdev_data *trigger_data = led_trigger_get_drvdata(dev);
^
drivers/leds/trigger/ledtrig-netdev.c:100:18: error: incomplete definition of type 'struct led_netdev_data'
if (trigger_data->net_dev) {
~~~~~~~~~~~~^
drivers/leds/trigger/ledtrig-netdev.c:91:9: note: forward declaration of 'struct led_netdev_data'
struct led_netdev_data *trigger_data = led_trigger_get_drvdata(dev);
^
drivers/leds/trigger/ledtrig-netdev.c:101:23: error: incomplete definition of type 'struct led_netdev_data'
dev_put(trigger_data->net_dev);
~~~~~~~~~~~~^
drivers/leds/trigger/ledtrig-netdev.c:91:9: note: forward declaration of 'struct led_netdev_data'
struct led_netdev_data *trigger_data = led_trigger_get_drvdata(dev);
^
drivers/leds/trigger/ledtrig-netdev.c:102:15: error: incomplete definition of type 'struct led_netdev_data'
trigger_data->net_dev = NULL;
~~~~~~~~~~~~^
drivers/leds/trigger/ledtrig-netdev.c:91:9: note: forward declaration of 'struct led_netdev_data'
struct led_netdev_data *trigger_data = led_trigger_get_drvdata(dev);
^
drivers/leds/trigger/ledtrig-netdev.c:105:21: error: incomplete definition of type 'struct led_netdev_data'
memcpy(trigger_data->device_name, buf, size);
~~~~~~~~~~~~^
arch/x86/include/asm/string_32.h:182:42: note: expanded from macro 'memcpy'
#define memcpy(t, f, n) __builtin_memcpy(t, f, n)
^
drivers/leds/trigger/ledtrig-netdev.c:91:9: note: forward declaration of 'struct led_netdev_data'
struct led_netdev_data *trigger_data = led_trigger_get_drvdata(dev);
^
drivers/leds/trigger/ledtrig-netdev.c:106:14: error: incomplete definition of type 'struct led_netdev_data'
trigger_data->device_name[size] = 0;
~~~~~~~~~~~~^
drivers/leds/trigger/ledtrig-netdev.c:91:9: note: forward declaration of 'struct led_netdev_data'
struct led_netdev_data *trigger_data = led_trigger_get_drvdata(dev);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.
vim +48 drivers/leds/trigger/ledtrig-netdev.c
06f502f57d0d77 Ben Whitten 2017-12-10 44
06f502f57d0d77 Ben Whitten 2017-12-10 @45 static void set_baseline_state(struct led_netdev_data *trigger_data)
06f502f57d0d77 Ben Whitten 2017-12-10 46 {
06f502f57d0d77 Ben Whitten 2017-12-10 47 int current_brightness;
06f502f57d0d77 Ben Whitten 2017-12-10 @48 struct led_classdev *led_cdev = trigger_data->led_cdev;
06f502f57d0d77 Ben Whitten 2017-12-10 49
06f502f57d0d77 Ben Whitten 2017-12-10 50 current_brightness = led_cdev->brightness;
06f502f57d0d77 Ben Whitten 2017-12-10 51 if (current_brightness)
06f502f57d0d77 Ben Whitten 2017-12-10 52 led_cdev->blink_brightness = current_brightness;
06f502f57d0d77 Ben Whitten 2017-12-10 53 if (!led_cdev->blink_brightness)
06f502f57d0d77 Ben Whitten 2017-12-10 54 led_cdev->blink_brightness = led_cdev->max_brightness;
06f502f57d0d77 Ben Whitten 2017-12-10 55
df437de7347286 Ansuel Smith 2021-11-12 56 if (!trigger_data->carrier_link_up) {
06f502f57d0d77 Ben Whitten 2017-12-10 57 led_set_brightness(led_cdev, LED_OFF);
df437de7347286 Ansuel Smith 2021-11-12 58 } else {
4aa7005c8428f8 Ansuel Smith 2021-11-12 @59 if (test_bit(TRIGGER_NETDEV_LINK, &trigger_data->mode))
06f502f57d0d77 Ben Whitten 2017-12-10 60 led_set_brightness(led_cdev,
06f502f57d0d77 Ben Whitten 2017-12-10 61 led_cdev->blink_brightness);
06f502f57d0d77 Ben Whitten 2017-12-10 62 else
06f502f57d0d77 Ben Whitten 2017-12-10 63 led_set_brightness(led_cdev, LED_OFF);
06f502f57d0d77 Ben Whitten 2017-12-10 64
06f502f57d0d77 Ben Whitten 2017-12-10 65 /* If we are looking for RX/TX start periodically
06f502f57d0d77 Ben Whitten 2017-12-10 66 * checking stats
06f502f57d0d77 Ben Whitten 2017-12-10 67 */
4aa7005c8428f8 Ansuel Smith 2021-11-12 @68 if (test_bit(TRIGGER_NETDEV_TX, &trigger_data->mode) ||
4aa7005c8428f8 Ansuel Smith 2021-11-12 @69 test_bit(TRIGGER_NETDEV_RX, &trigger_data->mode))
06f502f57d0d77 Ben Whitten 2017-12-10 70 schedule_delayed_work(&trigger_data->work, 0);
06f502f57d0d77 Ben Whitten 2017-12-10 71 }
06f502f57d0d77 Ben Whitten 2017-12-10 72 }
06f502f57d0d77 Ben Whitten 2017-12-10 73
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
drivers/net/ethernet/xilinx/xilinx_emaclite.c:417:24: sparse: sparse: cast to restricted __be32
by kernel test robot
Hi Andrew,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 5833291ab6de9c3e2374336b51c814e515e8f3a5
commit: 03dfd157670bd715306dce1507b8998cabd38539 drivers: net: xilinx_emaclite: Add COMPILE_TEST support
date: 1 year ago
config: sparc-randconfig-s032-20211109 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 11.2.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.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 03dfd157670bd715306dce1507b8998cabd38539
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sparc SHELL=/bin/bash arch/sparc/ drivers/gpu/ drivers/net/ fs/
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/net/ethernet/xilinx/xilinx_emaclite.c:417:24: sparse: sparse: cast to restricted __be32
drivers/net/ethernet/xilinx/xilinx_emaclite.c:427:36: sparse: sparse: cast to restricted __be32
vim +417 drivers/net/ethernet/xilinx/xilinx_emaclite.c
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 368
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 369 /**
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 370 * xemaclite_recv_data - Receive a frame
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 371 * @drvdata: Pointer to the Emaclite device private data
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 372 * @data: Address where the data is to be received
f713d50f33c1fb drivers/net/ethernet/xilinx/xilinx_emaclite.c Radhey Shyam Pandey 2018-06-28 373 * @maxlen: Maximum supported ethernet packet length
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 374 *
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 375 * This function is intended to be called from the interrupt context or
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 376 * with a wrapper which waits for the receive frame to be available.
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 377 *
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 378 * Return: Total number of bytes received
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 379 */
cd224553641848 drivers/net/ethernet/xilinx/xilinx_emaclite.c Anssi Hannula 2017-02-14 380 static u16 xemaclite_recv_data(struct net_local *drvdata, u8 *data, int maxlen)
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 381 {
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 382 void __iomem *addr;
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 383 u16 length, proto_type;
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 384 u32 reg_data;
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 385
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 386 /* Determine the expected buffer address */
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 387 addr = (drvdata->base_addr + drvdata->next_rx_buf_to_use);
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 388
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 389 /* Verify which buffer has valid data */
acf138f1b00bdd drivers/net/ethernet/xilinx/xilinx_emaclite.c Anssi Hannula 2017-02-14 390 reg_data = xemaclite_readl(addr + XEL_RSR_OFFSET);
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 391
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 392 if ((reg_data & XEL_RSR_RECV_DONE_MASK) == XEL_RSR_RECV_DONE_MASK) {
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 393 if (drvdata->rx_ping_pong != 0)
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 394 drvdata->next_rx_buf_to_use ^= XEL_BUFFER_OFFSET;
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 395 } else {
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 396 /* The instance is out of sync, try other buffer if other
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 397 * buffer is configured, return 0 otherwise. If the instance is
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 398 * out of sync, do not update the 'next_rx_buf_to_use' since it
49a83f002731db drivers/net/ethernet/xilinx/xilinx_emaclite.c Radhey Shyam Pandey 2018-06-28 399 * will correct on subsequent calls
49a83f002731db drivers/net/ethernet/xilinx/xilinx_emaclite.c Radhey Shyam Pandey 2018-06-28 400 */
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 401 if (drvdata->rx_ping_pong != 0)
eccd5403814b4e drivers/net/ethernet/xilinx/xilinx_emaclite.c Andrew Lunn 2020-11-10 402 addr = (void __iomem __force *)
eccd5403814b4e drivers/net/ethernet/xilinx/xilinx_emaclite.c Andrew Lunn 2020-11-10 403 ((uintptr_t __force)addr ^
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 404 XEL_BUFFER_OFFSET);
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 405 else
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 406 return 0; /* No data was available */
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 407
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 408 /* Verify that buffer has valid data */
acf138f1b00bdd drivers/net/ethernet/xilinx/xilinx_emaclite.c Anssi Hannula 2017-02-14 409 reg_data = xemaclite_readl(addr + XEL_RSR_OFFSET);
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 410 if ((reg_data & XEL_RSR_RECV_DONE_MASK) !=
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 411 XEL_RSR_RECV_DONE_MASK)
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 412 return 0; /* No data was available */
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 413 }
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 414
49a83f002731db drivers/net/ethernet/xilinx/xilinx_emaclite.c Radhey Shyam Pandey 2018-06-28 415 /* Get the protocol type of the ethernet frame that arrived
49a83f002731db drivers/net/ethernet/xilinx/xilinx_emaclite.c Radhey Shyam Pandey 2018-06-28 416 */
acf138f1b00bdd drivers/net/ethernet/xilinx/xilinx_emaclite.c Anssi Hannula 2017-02-14 @417 proto_type = ((ntohl(xemaclite_readl(addr + XEL_HEADER_OFFSET +
44180a573ec936 drivers/net/xilinx_emaclite.c Michal Simek 2010-09-10 418 XEL_RXBUFF_OFFSET)) >> XEL_HEADER_SHIFT) &
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 419 XEL_RPLR_LENGTH_MASK);
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 420
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 421 /* Check if received ethernet frame is a raw ethernet frame
49a83f002731db drivers/net/ethernet/xilinx/xilinx_emaclite.c Radhey Shyam Pandey 2018-06-28 422 * or an IP packet or an ARP packet
49a83f002731db drivers/net/ethernet/xilinx/xilinx_emaclite.c Radhey Shyam Pandey 2018-06-28 423 */
cd224553641848 drivers/net/ethernet/xilinx/xilinx_emaclite.c Anssi Hannula 2017-02-14 424 if (proto_type > ETH_DATA_LEN) {
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 425
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 426 if (proto_type == ETH_P_IP) {
acf138f1b00bdd drivers/net/ethernet/xilinx/xilinx_emaclite.c Anssi Hannula 2017-02-14 427 length = ((ntohl(xemaclite_readl(addr +
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 428 XEL_HEADER_IP_LENGTH_OFFSET +
44180a573ec936 drivers/net/xilinx_emaclite.c Michal Simek 2010-09-10 429 XEL_RXBUFF_OFFSET)) >>
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 430 XEL_HEADER_SHIFT) &
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 431 XEL_RPLR_LENGTH_MASK);
cd224553641848 drivers/net/ethernet/xilinx/xilinx_emaclite.c Anssi Hannula 2017-02-14 432 length = min_t(u16, length, ETH_DATA_LEN);
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 433 length += ETH_HLEN + ETH_FCS_LEN;
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 434
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 435 } else if (proto_type == ETH_P_ARP)
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 436 length = XEL_ARP_PACKET_SIZE + ETH_HLEN + ETH_FCS_LEN;
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 437 else
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 438 /* Field contains type other than IP or ARP, use max
49a83f002731db drivers/net/ethernet/xilinx/xilinx_emaclite.c Radhey Shyam Pandey 2018-06-28 439 * frame size and let user parse it
49a83f002731db drivers/net/ethernet/xilinx/xilinx_emaclite.c Radhey Shyam Pandey 2018-06-28 440 */
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 441 length = ETH_FRAME_LEN + ETH_FCS_LEN;
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 442 } else
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 443 /* Use the length in the frame, plus the header and trailer */
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 444 length = proto_type + ETH_HLEN + ETH_FCS_LEN;
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 445
cd224553641848 drivers/net/ethernet/xilinx/xilinx_emaclite.c Anssi Hannula 2017-02-14 446 if (WARN_ON(length > maxlen))
cd224553641848 drivers/net/ethernet/xilinx/xilinx_emaclite.c Anssi Hannula 2017-02-14 447 length = maxlen;
cd224553641848 drivers/net/ethernet/xilinx/xilinx_emaclite.c Anssi Hannula 2017-02-14 448
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 449 /* Read from the EmacLite device */
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 450 xemaclite_aligned_read((u32 __force *)(addr + XEL_RXBUFF_OFFSET),
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 451 data, length);
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 452
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 453 /* Acknowledge the frame */
acf138f1b00bdd drivers/net/ethernet/xilinx/xilinx_emaclite.c Anssi Hannula 2017-02-14 454 reg_data = xemaclite_readl(addr + XEL_RSR_OFFSET);
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 455 reg_data &= ~XEL_RSR_RECV_DONE_MASK;
acf138f1b00bdd drivers/net/ethernet/xilinx/xilinx_emaclite.c Anssi Hannula 2017-02-14 456 xemaclite_writel(reg_data, addr + XEL_RSR_OFFSET);
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 457
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 458 return length;
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 459 }
bb81b2ddfa194b drivers/net/xilinx_emaclite.c John Linn 2009-08-20 460
:::::: The code at line 417 was first introduced by commit
:::::: acf138f1b00bdd1b7cd9894562ed0c2a1670888e net: xilinx_emaclite: fix freezes due to unordered I/O
:::::: TO: Anssi Hannula <anssi.hannula(a)bitwise.fi>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
[groeck-staging:google-commits 5671/6115] arch/parisc/kernel/stacktrace.c:20:13: error: 'regs' undeclared
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git google-commits
head: cfb9e87ff8218995cac59c8225da1b31f2fb2507
commit: d5fd1c46a3cebbef254611682b95c315163e4620 [5671/6115] parisc/unwind: call callback with toplevel address
config: parisc-randconfig-r036-20211004 (attached as .config)
compiler: hppa-linux-gcc (GCC) 11.2.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/groeck/linux-staging.git/...
git remote add groeck-staging https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git
git fetch --no-tags groeck-staging google-commits
git checkout d5fd1c46a3cebbef254611682b95c315163e4620
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=parisc SHELL=/bin/bash arch/parisc/kernel/
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 >>):
In file included from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/module.h:12,
from arch/parisc/kernel/stacktrace.c:11:
arch/parisc/kernel/stacktrace.c: In function 'dump_trace':
>> arch/parisc/kernel/stacktrace.c:20:13: error: 'regs' undeclared (first use in this function)
20 | if (regs)
| ^~~~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
arch/parisc/kernel/stacktrace.c:20:9: note: in expansion of macro 'if'
20 | if (regs)
| ^~
arch/parisc/kernel/stacktrace.c:20:13: note: each undeclared identifier is reported only once for each function it appears in
20 | if (regs)
| ^~~~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
arch/parisc/kernel/stacktrace.c:20:9: note: in expansion of macro 'if'
20 | if (regs)
| ^~
>> arch/parisc/kernel/stacktrace.c:21:22: error: implicit declaration of function 'fn' [-Werror=implicit-function-declaration]
21 | if (!fn(cookie, regs->iaoq[0]))
| ^~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
arch/parisc/kernel/stacktrace.c:21:17: note: in expansion of macro 'if'
21 | if (!fn(cookie, regs->iaoq[0]))
| ^~
>> arch/parisc/kernel/stacktrace.c:21:25: error: 'cookie' undeclared (first use in this function)
21 | if (!fn(cookie, regs->iaoq[0]))
| ^~~~~~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
arch/parisc/kernel/stacktrace.c:21:17: note: in expansion of macro 'if'
21 | if (!fn(cookie, regs->iaoq[0]))
| ^~
cc1: some warnings being treated as errors
vim +/regs +20 arch/parisc/kernel/stacktrace.c
15
16 static void dump_trace(struct task_struct *task, struct stack_trace *trace)
17 {
18 struct unwind_frame_info info;
19
> 20 if (regs)
> 21 if (!fn(cookie, regs->iaoq[0]))
22 return;
23
24 unwind_frame_init_task(&info, task, NULL);
25
26 /* unwind stack and save entries in stack_trace struct */
27 trace->nr_entries = 0;
28 while (trace->nr_entries < trace->max_entries) {
29 if (unwind_once(&info) < 0 || info.ip == 0)
30 break;
31
32 if (__kernel_text_address(info.ip))
33 trace->entries[trace->nr_entries++] = info.ip;
34 }
35 }
36
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week