[djwong-xfs:realtime-rmap 206/228] fs/xfs/libxfs/xfs_rmap.c:41:23: warning: Same value in both branches of ternary operator.
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git realtime-rmap
head: 675c5e606c13fa435f99318e0fbd566930c6524b
commit: eda5b6623581d67df9b4241ce32f9da5ea5beca1 [206/228] xfs: prepare rmap functions to deal with rtrmapbt
compiler: csky-linux-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>
"cppcheck warnings: (new ones prefixed by >>)"
In file included from fs/xfs/libxfs/xfs_rmap.c:
>> fs/xfs/libxfs/xfs_rmap.c:41:23: warning: Same value in both branches of ternary operator. [duplicateValueTernary]
XFS_RTRMAP_LEN_MAX : XFS_RMAP_LEN_MAX;
^
cppcheck possible warnings: (new ones prefixed by >>, may not real problems)
In file included from fs/xfs/libxfs/xfs_rmap.c:
fs/xfs/libxfs/xfs_format.h:342:2: warning: Non-boolean value returned from function returning bool [returnNonBoolInBooleanFunction]
return (sbp->sb_versionnum & XFS_SB_VERSION_ATTRBIT);
^
fs/xfs/libxfs/xfs_format.h:352:2: warning: Non-boolean value returned from function returning bool [returnNonBoolInBooleanFunction]
return (sbp->sb_versionnum & XFS_SB_VERSION_QUOTABIT);
^
fs/xfs/libxfs/xfs_format.h:368:2: warning: Non-boolean value returned from function returning bool [returnNonBoolInBooleanFunction]
return (sbp->sb_versionnum & XFS_SB_VERSION_DALIGNBIT);
^
fs/xfs/libxfs/xfs_format.h:379:2: warning: Non-boolean value returned from function returning bool [returnNonBoolInBooleanFunction]
return (sbp->sb_versionnum & XFS_SB_VERSION_SECTORBIT);
^
fs/xfs/libxfs/xfs_format.h:384:2: warning: Non-boolean value returned from function returning bool [returnNonBoolInBooleanFunction]
return (sbp->sb_versionnum & XFS_SB_VERSION_BORGBIT);
^
vim +41 fs/xfs/libxfs/xfs_rmap.c
34
35 /* Return the maximum length of an rmap record. */
36 static xfs_filblks_t
37 xfs_rmap_len_max(
38 struct xfs_btree_cur *cur)
39 {
40 return cur->bc_btnum == XFS_BTNUM_RTRMAP ?
> 41 XFS_RTRMAP_LEN_MAX : XFS_RMAP_LEN_MAX;
42 }
43
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
Re: [PATCH bpf-next] xsk: build skb by page
by kernel test robot
Hi Xuan,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on bpf-next/master]
url: https://github.com/0day-ci/linux/commits/Xuan-Zhuo/xsk-build-skb-by-page/...
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
config: sh-allmodconfig (attached as .config)
compiler: sh4-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://github.com/0day-ci/linux/commit/ee139d2988e5c5945108889a7c95c7519...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Xuan-Zhuo/xsk-build-skb-by-page/20210116-105116
git checkout ee139d2988e5c5945108889a7c95c751910c1877
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sh
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 >>):
net/xdp/xsk.c: In function 'xsk_build_skb':
>> net/xdp/xsk.c:497:4: error: invalid type argument of unary '*' (have 'int')
497 | *err = -ENOMEM;
| ^~~~
net/xdp/xsk.c:508:4: error: invalid type argument of unary '*' (have 'int')
508 | *err = -EINVAL;
| ^~~~
net/xdp/xsk.c:490:7: warning: variable 'addr' set but not used [-Wunused-but-set-variable]
490 | u64 addr;
| ^~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_PDC
Depends on SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && HAS_DMA
Selected by
- SND_ATMEL_SOC_SSC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC
- SND_ATMEL_SOC_SSC_PDC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && ATMEL_SSC
vim +497 net/xdp/xsk.c
476
477 static struct sk_buff *xsk_build_skb(struct xdp_sock *xs,
478 struct xdp_desc *desc, int *err)
479 {
480 struct sk_buff *skb;
481
482 if (xs->dev->features & NETIF_F_SKB_NO_LINEAR) {
483 skb = xsk_build_skb_zerocopy(xs, desc);
484 if (unlikely(!skb)) {
485 *err = -ENOMEM;
486 return NULL;
487 }
488 } else {
489 char *buffer;
490 u64 addr;
491 u32 len;
492 int err;
493
494 len = desc->len;
495 skb = sock_alloc_send_skb(&xs->sk, len, 1, &err);
496 if (unlikely(!skb)) {
> 497 *err = -ENOMEM;
498 return NULL;
499 }
500
501 skb_put(skb, len);
502 addr = desc->addr;
503 buffer = xsk_buff_raw_get_data(xs->pool, desc->addr);
504 err = skb_store_bits(skb, 0, buffer, len);
505
506 if (unlikely(err)) {
507 kfree_skb(skb);
508 *err = -EINVAL;
509 return NULL;
510 }
511 }
512
513 skb->dev = xs->dev;
514 skb->priority = xs->sk.sk_priority;
515 skb->mark = xs->sk.sk_mark;
516 skb_shinfo(skb)->destructor_arg = (void *)(long)desc->addr;
517 skb->destructor = xsk_destruct_skb;
518
519 return skb;
520 }
521
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
[arm-platforms:kvm-arm64/pmu-debug-fixes-5.11 7/7] arch/arm64/kvm/pmu-emul.c:26:7: error: 'ID_DFR0_PERFMON_8_0' undeclared; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git kvm-arm64/pmu-debug-fixes-5.11
head: 2aa1837246b4399ed85dba448b8dd19b48b95573
commit: 2aa1837246b4399ed85dba448b8dd19b48b95573 [7/7] KVM: arm64: Use symbolic names for the PMU versions
config: arm64-allyesconfig (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/maz/arm-platforms.git/com...
git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
git fetch --no-tags arm-platforms kvm-arm64/pmu-debug-fixes-5.11
git checkout 2aa1837246b4399ed85dba448b8dd19b48b95573
# 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 errors (new ones prefixed by >>):
arch/arm64/kvm/pmu-emul.c: In function 'kvm_pmu_event_mask':
>> arch/arm64/kvm/pmu-emul.c:26:7: error: 'ID_DFR0_PERFMON_8_0' undeclared (first use in this function); did you mean 'ID_DFR0_PERFMON_8_1'?
26 | case ID_DFR0_PERFMON_8_0:
| ^~~~~~~~~~~~~~~~~~~
| ID_DFR0_PERFMON_8_1
arch/arm64/kvm/pmu-emul.c:26:7: note: each undeclared identifier is reported only once for each function it appears in
>> arch/arm64/kvm/pmu-emul.c:29:7: error: 'ID_DFR0_PERFMON_8_4' undeclared (first use in this function); did you mean 'ID_DFR0_PERFMON_8_1'?
29 | case ID_DFR0_PERFMON_8_4:
| ^~~~~~~~~~~~~~~~~~~
| ID_DFR0_PERFMON_8_1
>> arch/arm64/kvm/pmu-emul.c:30:7: error: 'ID_DFR0_PERFMON_8_5' undeclared (first use in this function); did you mean 'ID_DFR0_PERFMON_8_1'?
30 | case ID_DFR0_PERFMON_8_5:
| ^~~~~~~~~~~~~~~~~~~
| ID_DFR0_PERFMON_8_1
vim +26 arch/arm64/kvm/pmu-emul.c
22
23 static u32 kvm_pmu_event_mask(struct kvm *kvm)
24 {
25 switch (kvm->arch.pmuver) {
> 26 case ID_DFR0_PERFMON_8_0:
27 return GENMASK(9, 0);
28 case ID_DFR0_PERFMON_8_1:
> 29 case ID_DFR0_PERFMON_8_4:
> 30 case ID_DFR0_PERFMON_8_5:
31 return GENMASK(15, 0);
32 default: /* Shouldn't be here, just for sanity */
33 WARN_ONCE(1, "Unknown PMU version %d\n", kvm->arch.pmuver);
34 return 0;
35 }
36 }
37
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
[aa:master 18/20] include/linux/mm.h:2885:10: error: implicit declaration of function 'page_trans_huge_anon_shared'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/andrea/aa.git master
head: 61cbd7f8bc18730f4aa33c28db2c70b4d9b25768
commit: e81975bed240b9922b1c6cc36c95155b3621fc32 [18/20] gup: FOLL_DESHARE: copy-on-read fault
config: arm-randconfig-r002-20210115 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project d7bc3b7ce23b664d6620cdc32370a8614523ca2f)
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
# https://git.kernel.org/pub/scm/linux/kernel/git/andrea/aa.git/commit/?id=...
git remote add aa https://git.kernel.org/pub/scm/linux/kernel/git/andrea/aa.git
git fetch --no-tags aa master
git checkout e81975bed240b9922b1c6cc36c95155b3621fc32
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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 arch/arm/kernel/asm-offsets.c:12:
>> include/linux/mm.h:2885:10: error: implicit declaration of function 'page_trans_huge_anon_shared' [-Werror,-Wimplicit-function-declaration]
return page_trans_huge_anon_shared(page);
^
1 error generated.
--
In file included from arch/arm/kernel/asm-offsets.c:12:
>> include/linux/mm.h:2885:10: error: implicit declaration of function 'page_trans_huge_anon_shared' [-Werror,-Wimplicit-function-declaration]
return page_trans_huge_anon_shared(page);
^
1 error generated.
make[2]: *** [scripts/Makefile.build:117: arch/arm/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1206: prepare0] Error 2
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
In file included from arch/arm/kernel/asm-offsets.c:12:
>> include/linux/mm.h:2885:10: error: implicit declaration of function 'page_trans_huge_anon_shared' [-Werror,-Wimplicit-function-declaration]
return page_trans_huge_anon_shared(page);
^
1 error generated.
make[2]: *** [scripts/Makefile.build:117: arch/arm/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1206: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/page_trans_huge_anon_shared +2885 include/linux/mm.h
2874
2875 static inline bool gup_page_deshare(unsigned int flags,
2876 struct page *page)
2877 {
2878 if (flags & FOLL_WRITE)
2879 return false;
2880 if (!PageAnon(page))
2881 return false;
2882 if (PageHuge(page))
2883 return false;
2884 if (PageTransHuge(page))
> 2885 return page_trans_huge_anon_shared(page);
2886 /* page_mapcount > 1 */
2887 return atomic_read(&page->_mapcount) > 0;
2888 }
2889
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
[aa:mapcount_deshare 7/7] include/linux/mm.h:2885:10: error: implicit declaration of function 'page_trans_huge_anon_shared'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/andrea/aa.git mapcount_deshare
head: b58213a81caf568f0712f5586d1661ee1e2e3d67
commit: b58213a81caf568f0712f5586d1661ee1e2e3d67 [7/7] gup: FOLL_DESHARE: copy-on-read fault
config: arc-randconfig-r011-20210115 (attached as .config)
compiler: arc-elf-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/andrea/aa.git/commit/?id=...
git remote add aa https://git.kernel.org/pub/scm/linux/kernel/git/andrea/aa.git
git fetch --no-tags aa mapcount_deshare
git checkout b58213a81caf568f0712f5586d1661ee1e2e3d67
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.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 >>):
In file included from arch/arc/kernel/asm-offsets.c:7:
include/linux/mm.h: In function 'gup_page_deshare':
>> include/linux/mm.h:2885:10: error: implicit declaration of function 'page_trans_huge_anon_shared' [-Werror=implicit-function-declaration]
2885 | return page_trans_huge_anon_shared(page);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from arch/arc/kernel/asm-offsets.c:7:
include/linux/mm.h: In function 'gup_page_deshare':
>> include/linux/mm.h:2885:10: error: implicit declaration of function 'page_trans_huge_anon_shared' [-Werror=implicit-function-declaration]
2885 | return page_trans_huge_anon_shared(page);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:117: arch/arc/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1206: prepare0] Error 2
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
In file included from arch/arc/kernel/asm-offsets.c:7:
include/linux/mm.h: In function 'gup_page_deshare':
>> include/linux/mm.h:2885:10: error: implicit declaration of function 'page_trans_huge_anon_shared' [-Werror=implicit-function-declaration]
2885 | return page_trans_huge_anon_shared(page);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:117: arch/arc/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1206: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/page_trans_huge_anon_shared +2885 include/linux/mm.h
2874
2875 static inline bool gup_page_deshare(unsigned int flags,
2876 struct page *page)
2877 {
2878 if (flags & FOLL_WRITE)
2879 return false;
2880 if (!PageAnon(page))
2881 return false;
2882 if (PageHuge(page))
2883 return false;
2884 if (PageTransHuge(page))
> 2885 return page_trans_huge_anon_shared(page);
2886 /* page_mapcount > 1 */
2887 return atomic_read(&page->_mapcount) > 0;
2888 }
2889
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
[aa:mapcount_deshare 7/7] include/linux/mm.h:2885:10: error: implicit declaration of function 'page_trans_huge_anon_shared'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/andrea/aa.git mapcount_deshare
head: b58213a81caf568f0712f5586d1661ee1e2e3d67
commit: b58213a81caf568f0712f5586d1661ee1e2e3d67 [7/7] gup: FOLL_DESHARE: copy-on-read fault
config: s390-randconfig-r012-20210115 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project d7bc3b7ce23b664d6620cdc32370a8614523ca2f)
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 s390 cross compiling tool for clang build
# apt-get install binutils-s390x-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/andrea/aa.git/commit/?id=...
git remote add aa https://git.kernel.org/pub/scm/linux/kernel/git/andrea/aa.git
git fetch --no-tags aa mapcount_deshare
git checkout b58213a81caf568f0712f5586d1661ee1e2e3d67
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390
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 arch/s390/kernel/asm-offsets.c:11:
In file included from include/linux/kvm_host.h:14:
>> include/linux/mm.h:2885:10: error: implicit declaration of function 'page_trans_huge_anon_shared' [-Werror,-Wimplicit-function-declaration]
return page_trans_huge_anon_shared(page);
^
In file included from arch/s390/kernel/asm-offsets.c:11:
In file included from include/linux/kvm_host.h:32:
In file included from include/linux/kvm_para.h:5:
In file included from include/uapi/linux/kvm_para.h:36:
In file included from arch/s390/include/asm/kvm_para.h:25:
In file included from arch/s390/include/asm/diag.h:12:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:464:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __raw_readb(PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:477:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:36:59: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
^
include/uapi/linux/swab.h:105:32: note: expanded from macro '__swab16'
(__builtin_constant_p((__u16)(x)) ? \
^
In file included from arch/s390/kernel/asm-offsets.c:11:
In file included from include/linux/kvm_host.h:32:
In file included from include/linux/kvm_para.h:5:
In file included from include/uapi/linux/kvm_para.h:36:
In file included from arch/s390/include/asm/kvm_para.h:25:
In file included from arch/s390/include/asm/diag.h:12:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:477:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:36:59: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
^
include/uapi/linux/swab.h:106:21: note: expanded from macro '__swab16'
___constant_swab16(x) : \
^
include/uapi/linux/swab.h:15:12: note: expanded from macro '___constant_swab16'
(((__u16)(x) & (__u16)0x00ffU) << 8) | \
^
In file included from arch/s390/kernel/asm-offsets.c:11:
In file included from include/linux/kvm_host.h:32:
In file included from include/linux/kvm_para.h:5:
In file included from include/uapi/linux/kvm_para.h:36:
In file included from arch/s390/include/asm/kvm_para.h:25:
In file included from arch/s390/include/asm/diag.h:12:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:477:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:36:59: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
^
include/uapi/linux/swab.h:106:21: note: expanded from macro '__swab16'
___constant_swab16(x) : \
^
include/uapi/linux/swab.h:16:12: note: expanded from macro '___constant_swab16'
(((__u16)(x) & (__u16)0xff00U) >> 8)))
^
In file included from arch/s390/kernel/asm-offsets.c:11:
In file included from include/linux/kvm_host.h:32:
In file included from include/linux/kvm_para.h:5:
In file included from include/uapi/linux/kvm_para.h:36:
In file included from arch/s390/include/asm/kvm_para.h:25:
In file included from arch/s390/include/asm/diag.h:12:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:477:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:36:59: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
^
include/uapi/linux/swab.h:107:12: note: expanded from macro '__swab16'
__fswab16(x))
^
In file included from arch/s390/kernel/asm-offsets.c:11:
In file included from include/linux/kvm_host.h:32:
In file included from include/linux/kvm_para.h:5:
In file included from include/uapi/linux/kvm_para.h:36:
In file included from arch/s390/include/asm/kvm_para.h:25:
In file included from arch/s390/include/asm/diag.h:12:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:10:
--
In file included from arch/s390/crypto/sha256_s390.c:13:
In file included from include/linux/module.h:18:
In file included from include/linux/elf.h:6:
In file included from arch/s390/include/asm/elf.h:145:
In file included from arch/s390/include/asm/mmu_context.h:11:
In file included from arch/s390/include/asm/pgalloc.h:18:
>> include/linux/mm.h:2885:10: error: implicit declaration of function 'page_trans_huge_anon_shared' [-Werror,-Wimplicit-function-declaration]
return page_trans_huge_anon_shared(page);
^
1 error generated.
--
In file included from arch/s390/kvm/../../../virt/kvm/irqchip.c:15:
In file included from include/linux/kvm_host.h:14:
>> include/linux/mm.h:2885:10: error: implicit declaration of function 'page_trans_huge_anon_shared' [-Werror,-Wimplicit-function-declaration]
return page_trans_huge_anon_shared(page);
^
In file included from arch/s390/kvm/../../../virt/kvm/irqchip.c:15:
In file included from include/linux/kvm_host.h:32:
In file included from include/linux/kvm_para.h:5:
In file included from include/uapi/linux/kvm_para.h:36:
In file included from arch/s390/include/asm/kvm_para.h:25:
In file included from arch/s390/include/asm/diag.h:12:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:464:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __raw_readb(PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:477:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:36:59: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
^
include/uapi/linux/swab.h:105:32: note: expanded from macro '__swab16'
(__builtin_constant_p((__u16)(x)) ? \
^
In file included from arch/s390/kvm/../../../virt/kvm/irqchip.c:15:
In file included from include/linux/kvm_host.h:32:
In file included from include/linux/kvm_para.h:5:
In file included from include/uapi/linux/kvm_para.h:36:
In file included from arch/s390/include/asm/kvm_para.h:25:
In file included from arch/s390/include/asm/diag.h:12:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:477:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:36:59: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
^
include/uapi/linux/swab.h:106:21: note: expanded from macro '__swab16'
___constant_swab16(x) : \
^
include/uapi/linux/swab.h:15:12: note: expanded from macro '___constant_swab16'
(((__u16)(x) & (__u16)0x00ffU) << 8) | \
^
In file included from arch/s390/kvm/../../../virt/kvm/irqchip.c:15:
In file included from include/linux/kvm_host.h:32:
In file included from include/linux/kvm_para.h:5:
In file included from include/uapi/linux/kvm_para.h:36:
In file included from arch/s390/include/asm/kvm_para.h:25:
In file included from arch/s390/include/asm/diag.h:12:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:477:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:36:59: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
^
include/uapi/linux/swab.h:106:21: note: expanded from macro '__swab16'
___constant_swab16(x) : \
^
include/uapi/linux/swab.h:16:12: note: expanded from macro '___constant_swab16'
(((__u16)(x) & (__u16)0xff00U) >> 8)))
^
In file included from arch/s390/kvm/../../../virt/kvm/irqchip.c:15:
In file included from include/linux/kvm_host.h:32:
In file included from include/linux/kvm_para.h:5:
In file included from include/uapi/linux/kvm_para.h:36:
In file included from arch/s390/include/asm/kvm_para.h:25:
In file included from arch/s390/include/asm/diag.h:12:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:477:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:36:59: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
^
include/uapi/linux/swab.h:107:12: note: expanded from macro '__swab16'
__fswab16(x))
^
In file included from arch/s390/kvm/../../../virt/kvm/irqchip.c:15:
In file included from include/linux/kvm_host.h:32:
In file included from include/linux/kvm_para.h:5:
In file included from include/uapi/linux/kvm_para.h:36:
In file included from arch/s390/include/asm/kvm_para.h:25:
In file included from arch/s390/include/asm/diag.h:12:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:10:
--
In file included from arch/s390/kvm/kvm-s390.c:23:
In file included from include/linux/kvm_host.h:14:
>> include/linux/mm.h:2885:10: error: implicit declaration of function 'page_trans_huge_anon_shared' [-Werror,-Wimplicit-function-declaration]
return page_trans_huge_anon_shared(page);
^
In file included from arch/s390/kvm/kvm-s390.c:23:
In file included from include/linux/kvm_host.h:32:
In file included from include/linux/kvm_para.h:5:
In file included from include/uapi/linux/kvm_para.h:36:
In file included from arch/s390/include/asm/kvm_para.h:25:
In file included from arch/s390/include/asm/diag.h:12:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:464:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __raw_readb(PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:477:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:36:59: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
^
include/uapi/linux/swab.h:105:32: note: expanded from macro '__swab16'
(__builtin_constant_p((__u16)(x)) ? \
^
In file included from arch/s390/kvm/kvm-s390.c:23:
In file included from include/linux/kvm_host.h:32:
In file included from include/linux/kvm_para.h:5:
In file included from include/uapi/linux/kvm_para.h:36:
In file included from arch/s390/include/asm/kvm_para.h:25:
In file included from arch/s390/include/asm/diag.h:12:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:477:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:36:59: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
^
include/uapi/linux/swab.h:106:21: note: expanded from macro '__swab16'
___constant_swab16(x) : \
^
include/uapi/linux/swab.h:15:12: note: expanded from macro '___constant_swab16'
(((__u16)(x) & (__u16)0x00ffU) << 8) | \
^
In file included from arch/s390/kvm/kvm-s390.c:23:
In file included from include/linux/kvm_host.h:32:
In file included from include/linux/kvm_para.h:5:
In file included from include/uapi/linux/kvm_para.h:36:
In file included from arch/s390/include/asm/kvm_para.h:25:
In file included from arch/s390/include/asm/diag.h:12:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:477:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:36:59: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
^
include/uapi/linux/swab.h:106:21: note: expanded from macro '__swab16'
___constant_swab16(x) : \
^
include/uapi/linux/swab.h:16:12: note: expanded from macro '___constant_swab16'
(((__u16)(x) & (__u16)0xff00U) >> 8)))
^
In file included from arch/s390/kvm/kvm-s390.c:23:
In file included from include/linux/kvm_host.h:32:
In file included from include/linux/kvm_para.h:5:
In file included from include/uapi/linux/kvm_para.h:36:
In file included from arch/s390/include/asm/kvm_para.h:25:
In file included from arch/s390/include/asm/diag.h:12:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:477:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:36:59: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
^
include/uapi/linux/swab.h:107:12: note: expanded from macro '__swab16'
__fswab16(x))
^
In file included from arch/s390/kvm/kvm-s390.c:23:
In file included from include/linux/kvm_host.h:32:
In file included from include/linux/kvm_para.h:5:
In file included from include/uapi/linux/kvm_para.h:36:
In file included from arch/s390/include/asm/kvm_para.h:25:
In file included from arch/s390/include/asm/diag.h:12:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:10:
..
vim +/page_trans_huge_anon_shared +2885 include/linux/mm.h
2874
2875 static inline bool gup_page_deshare(unsigned int flags,
2876 struct page *page)
2877 {
2878 if (flags & FOLL_WRITE)
2879 return false;
2880 if (!PageAnon(page))
2881 return false;
2882 if (PageHuge(page))
2883 return false;
2884 if (PageTransHuge(page))
> 2885 return page_trans_huge_anon_shared(page);
2886 /* page_mapcount > 1 */
2887 return atomic_read(&page->_mapcount) > 0;
2888 }
2889
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c:2341:52: warning: Uninitialized variable: pw
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: b45e2da6e444280f8661dca439c1e377761b2877
commit: c60b93cd4862d108214a14e655358ea714d7a12a drm/i915: Avoid mixing integer types during batch copies
date: 4 months ago
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
"cppcheck warnings: (new ones prefixed by >>)"
>> drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c:2341:52: warning: Uninitialized variable: pw [uninitvar]
GEM_BUG_ON(overflows_type(eb->batch_start_offset, pw->batch_offset));
^
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c:2342:43: warning: Uninitialized variable: pw [uninitvar]
GEM_BUG_ON(overflows_type(eb->batch_len, pw->batch_length));
^
cppcheck possible warnings: (new ones prefixed by >>, may not real problems)
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c:1535:6: warning: Local variable reloc_gpu shadows outer function [shadowFunction]
int reloc_gpu = reloc_entry_gpu(eb, vma, offset, target_addr);
^
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c:1384:13: note: Shadowed declaration
static u32 *reloc_gpu(struct i915_execbuffer *eb,
^
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c:1535:6: note: Shadow variable
int reloc_gpu = reloc_entry_gpu(eb, vma, offset, target_addr);
^
vim +2341 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
2333
2334 static int eb_parse_pipeline(struct i915_execbuffer *eb,
2335 struct i915_vma *shadow,
2336 struct i915_vma *trampoline)
2337 {
2338 struct eb_parse_work *pw;
2339 int err;
2340
> 2341 GEM_BUG_ON(overflows_type(eb->batch_start_offset, pw->batch_offset));
2342 GEM_BUG_ON(overflows_type(eb->batch_len, pw->batch_length));
2343
2344 pw = kzalloc(sizeof(*pw), GFP_KERNEL);
2345 if (!pw)
2346 return -ENOMEM;
2347
2348 err = i915_active_acquire(&eb->batch->vma->active);
2349 if (err)
2350 goto err_free;
2351
2352 err = i915_active_acquire(&shadow->active);
2353 if (err)
2354 goto err_batch;
2355
2356 if (trampoline) {
2357 err = i915_active_acquire(&trampoline->active);
2358 if (err)
2359 goto err_shadow;
2360 }
2361
2362 dma_fence_work_init(&pw->base, &eb_parse_ops);
2363
2364 pw->engine = eb->engine;
2365 pw->batch = eb->batch->vma;
2366 pw->batch_offset = eb->batch_start_offset;
2367 pw->batch_length = eb->batch_len;
2368 pw->shadow = shadow;
2369 pw->trampoline = trampoline;
2370
2371 /* Mark active refs early for this worker, in case we get interrupted */
2372 err = parser_mark_active(pw, eb->context->timeline);
2373 if (err)
2374 goto err_commit;
2375
2376 err = dma_resv_reserve_shared(pw->batch->resv, 1);
2377 if (err)
2378 goto err_commit;
2379
2380 /* Wait for all writes (and relocs) into the batch to complete */
2381 err = i915_sw_fence_await_reservation(&pw->base.chain,
2382 pw->batch->resv, NULL, false,
2383 0, I915_FENCE_GFP);
2384 if (err < 0)
2385 goto err_commit;
2386
2387 /* Keep the batch alive and unwritten as we parse */
2388 dma_resv_add_shared_fence(pw->batch->resv, &pw->base.dma);
2389
2390 /* Force execution to wait for completion of the parser */
2391 dma_resv_add_excl_fence(shadow->resv, &pw->base.dma);
2392
2393 dma_fence_work_commit_imm(&pw->base);
2394 return 0;
2395
2396 err_commit:
2397 i915_sw_fence_set_error_once(&pw->base.chain, err);
2398 dma_fence_work_commit_imm(&pw->base);
2399 return err;
2400
2401 err_shadow:
2402 i915_active_release(&shadow->active);
2403 err_batch:
2404 i915_active_release(&eb->batch->vma->active);
2405 err_free:
2406 kfree(pw);
2407 return err;
2408 }
2409
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
Re: [PATCH] fTPM: make sure TEE is initialized before fTPM
by kernel test robot
Hi Wei,
I love your patch! Yet something to improve:
[auto build test ERROR on linux/master]
[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/Wei-Liu/fTPM-make-sure-TEE-is-in...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 5ee88057889bbca5f5bb96031b62b3756b33e164
config: x86_64-rhel (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/b82b3e643532e299d9c6e622604e6d8d0...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Wei-Liu/fTPM-make-sure-TEE-is-initialized-before-fTPM/20210116-081538
git checkout b82b3e643532e299d9c6e622604e6d8d090153f0
# save the attached .config to linux build tree
make W=1 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: drivers/char/tpm/tpm-dev-common.o: in function `tpm_dev_common_init':
drivers/char/tpm/tpm-dev-common.c:267: multiple definition of `tpm_dev_common_init'; drivers/char/tpm/tpm-dev-common.o:drivers/char/tpm/tpm-dev-common.c:267: first defined here
ld: drivers/char/tpm/tpm-dev-common.o: in function `tpm_dev_common_exit':
drivers/char/tpm/tpm-dev-common.c:275: multiple definition of `tpm_dev_common_exit'; drivers/char/tpm/tpm-dev-common.o:drivers/char/tpm/tpm-dev-common.c:275: first defined here
ld: drivers/char/tpm/tpm-dev.o:drivers/char/tpm/tpm-dev.c:60: multiple definition of `tpm_fops'; drivers/char/tpm/tpm-dev.o:drivers/char/tpm/tpm-dev.c:60: first defined here
ld: drivers/char/tpm/tpm-interface.o: in function `tpm_calc_ordinal_duration':
drivers/char/tpm/tpm-interface.c:53: multiple definition of `tpm_calc_ordinal_duration'; drivers/char/tpm/tpm-interface.o:drivers/char/tpm/tpm-interface.c:53: first defined here
ld: drivers/char/tpm/tpm-interface.o: in function `tpm_transmit_cmd':
drivers/char/tpm/tpm-interface.c:215: multiple definition of `tpm_transmit_cmd'; drivers/char/tpm/tpm-interface.o:drivers/char/tpm/tpm-interface.c:215: first defined here
ld: drivers/char/tpm/tpm-interface.o: in function `tpm_get_timeouts':
drivers/char/tpm/tpm-interface.c:240: multiple definition of `tpm_get_timeouts'; drivers/char/tpm/tpm-interface.o:drivers/char/tpm/tpm-interface.c:240: first defined here
ld: drivers/char/tpm/tpm-interface.o: in function `tpm_is_tpm2':
drivers/char/tpm/tpm-interface.c:261: multiple definition of `tpm_is_tpm2'; drivers/char/tpm/tpm-interface.o:drivers/char/tpm/tpm-interface.c:261: first defined here
ld: drivers/char/tpm/tpm-interface.o: in function `tpm_pcr_read':
drivers/char/tpm/tpm-interface.c:286: multiple definition of `tpm_pcr_read'; drivers/char/tpm/tpm-interface.o:drivers/char/tpm/tpm-interface.c:286: first defined here
ld: drivers/char/tpm/tpm-interface.o: in function `tpm_pcr_extend':
drivers/char/tpm/tpm-interface.c:316: multiple definition of `tpm_pcr_extend'; drivers/char/tpm/tpm-interface.o:drivers/char/tpm/tpm-interface.c:316: first defined here
ld: drivers/char/tpm/tpm-interface.o: in function `tpm_send':
drivers/char/tpm/tpm-interface.c:354: multiple definition of `tpm_send'; drivers/char/tpm/tpm-interface.o:drivers/char/tpm/tpm-interface.c:354: first defined here
ld: drivers/char/tpm/tpm-interface.o: in function `tpm_pm_suspend':
drivers/char/tpm/tpm-interface.c:390: multiple definition of `tpm_pm_suspend'; drivers/char/tpm/tpm-interface.o:drivers/char/tpm/tpm-interface.c:390: first defined here
ld: drivers/char/tpm/tpm-interface.o: in function `tpm_pm_resume':
drivers/char/tpm/tpm-interface.c:423: multiple definition of `tpm_pm_resume'; drivers/char/tpm/tpm-interface.o:drivers/char/tpm/tpm-interface.c:423: first defined here
ld: drivers/char/tpm/tpm-interface.o: in function `tpm_get_random':
drivers/char/tpm/tpm-interface.c:442: multiple definition of `tpm_get_random'; drivers/char/tpm/tpm-interface.o:drivers/char/tpm/tpm-interface.c:442: first defined here
ld: drivers/char/tpm/tpm-interface.o: in function `tpm_transmit':
drivers/char/tpm/tpm-interface.c:154: multiple definition of `tpm_transmit'; drivers/char/tpm/tpm-interface.o:drivers/char/tpm/tpm-interface.c:154: first defined here
ld: drivers/char/tpm/tpm-interface.o: in function `tpm_auto_startup':
drivers/char/tpm/tpm-interface.c:371: multiple definition of `tpm_auto_startup'; drivers/char/tpm/tpm-interface.o:drivers/char/tpm/tpm-interface.c:371: first defined here
ld: drivers/char/tpm/tpm1-cmd.o: in function `tpm1_getcap':
drivers/char/tpm/tpm1-cmd.c:484: multiple definition of `tpm1_getcap'; drivers/char/tpm/tpm1-cmd.o:drivers/char/tpm/tpm1-cmd.c:484: first defined here
ld: drivers/char/tpm/tpm1-cmd.o: in function `tpm1_do_selftest':
drivers/char/tpm/tpm1-cmd.c:643: multiple definition of `tpm1_do_selftest'; drivers/char/tpm/tpm1-cmd.o:drivers/char/tpm/tpm1-cmd.c:643: first defined here
ld: drivers/char/tpm/tpm1-cmd.o: in function `tpm1_calc_ordinal_duration':
drivers/char/tpm/tpm1-cmd.c:292: multiple definition of `tpm1_calc_ordinal_duration'; drivers/char/tpm/tpm1-cmd.o:drivers/char/tpm/tpm1-cmd.c:292: first defined here
ld: drivers/char/tpm/tpm1-cmd.o: in function `tpm1_get_timeouts':
drivers/char/tpm/tpm1-cmd.c:343: multiple definition of `tpm1_get_timeouts'; drivers/char/tpm/tpm1-cmd.o:drivers/char/tpm/tpm1-cmd.c:343: first defined here
ld: drivers/char/tpm/tpm1-cmd.o: in function `tpm1_pcr_extend':
drivers/char/tpm/tpm1-cmd.c:465: multiple definition of `tpm1_pcr_extend'; drivers/char/tpm/tpm1-cmd.o:drivers/char/tpm/tpm1-cmd.c:465: first defined here
ld: drivers/char/tpm/tpm1-cmd.o: in function `tpm1_get_random':
drivers/char/tpm/tpm1-cmd.c:531: multiple definition of `tpm1_get_random'; drivers/char/tpm/tpm1-cmd.o:drivers/char/tpm/tpm1-cmd.c:531: first defined here
ld: drivers/char/tpm/tpm1-cmd.o: in function `tpm1_pcr_read':
drivers/char/tpm/tpm1-cmd.c:585: multiple definition of `tpm1_pcr_read'; drivers/char/tpm/tpm1-cmd.o:drivers/char/tpm/tpm1-cmd.c:585: first defined here
ld: drivers/char/tpm/tpm1-cmd.o: in function `tpm1_auto_startup':
drivers/char/tpm/tpm1-cmd.c:705: multiple definition of `tpm1_auto_startup'; drivers/char/tpm/tpm1-cmd.o:drivers/char/tpm/tpm1-cmd.c:705: first defined here
ld: drivers/char/tpm/tpm1-cmd.o: in function `tpm1_pm_suspend':
drivers/char/tpm/tpm1-cmd.c:738: multiple definition of `tpm1_pm_suspend'; drivers/char/tpm/tpm1-cmd.o:drivers/char/tpm/tpm1-cmd.c:738: first defined here
ld: drivers/char/tpm/tpm1-cmd.o: in function `tpm1_get_pcr_allocation':
drivers/char/tpm/tpm1-cmd.c:796: multiple definition of `tpm1_get_pcr_allocation'; drivers/char/tpm/tpm1-cmd.o:drivers/char/tpm/tpm1-cmd.c:796: first defined here
ld: drivers/char/tpm/tpm2-cmd.o: in function `tpm2_flush_context':
drivers/char/tpm/tpm2-cmd.c:349: multiple definition of `tpm2_flush_context'; drivers/char/tpm/tpm2-cmd.o:drivers/char/tpm/tpm2-cmd.c:349: first defined here
ld: drivers/char/tpm/tpm2-cmd.o: in function `tpm2_get_tpm_pt':
drivers/char/tpm/tpm2-cmd.c:388: multiple definition of `tpm2_get_tpm_pt'; drivers/char/tpm/tpm2-cmd.o:drivers/char/tpm/tpm2-cmd.c:388: first defined here
ld: drivers/char/tpm/tpm2-cmd.o: in function `tpm2_probe':
drivers/char/tpm/tpm2-cmd.c:484: multiple definition of `tpm2_probe'; drivers/char/tpm/tpm2-cmd.o:drivers/char/tpm/tpm2-cmd.c:484: first defined here
ld: drivers/char/tpm/tpm2-cmd.o: in function `tpm2_get_cc_attrs_tbl':
drivers/char/tpm/tpm2-cmd.c:619: multiple definition of `tpm2_get_cc_attrs_tbl'; drivers/char/tpm/tpm2-cmd.o:drivers/char/tpm/tpm2-cmd.c:619: first defined here
ld: drivers/char/tpm/tpm2-cmd.o: in function `tpm2_get_timeouts':
drivers/char/tpm/tpm2-cmd.c:26: multiple definition of `tpm2_get_timeouts'; drivers/char/tpm/tpm2-cmd.o:drivers/char/tpm/tpm2-cmd.c:26: first defined here
ld: drivers/char/tpm/tpm2-cmd.o: in function `tpm2_calc_ordinal_duration':
drivers/char/tpm/tpm2-cmd.c:129: multiple definition of `tpm2_calc_ordinal_duration'; drivers/char/tpm/tpm2-cmd.o:drivers/char/tpm/tpm2-cmd.c:129: first defined here
ld: drivers/char/tpm/tpm2-cmd.o: in function `tpm2_pcr_read':
drivers/char/tpm/tpm2-cmd.c:163: multiple definition of `tpm2_pcr_read'; drivers/char/tpm/tpm2-cmd.o:drivers/char/tpm/tpm2-cmd.c:163: first defined here
ld: drivers/char/tpm/tpm2-cmd.o: in function `tpm2_pcr_extend':
drivers/char/tpm/tpm2-cmd.c:237: multiple definition of `tpm2_pcr_extend'; drivers/char/tpm/tpm2-cmd.o:drivers/char/tpm/tpm2-cmd.c:237: first defined here
ld: drivers/char/tpm/tpm2-cmd.o: in function `tpm2_get_random':
drivers/char/tpm/tpm2-cmd.c:289: multiple definition of `tpm2_get_random'; drivers/char/tpm/tpm2-cmd.o:drivers/char/tpm/tpm2-cmd.c:289: first defined here
ld: drivers/char/tpm/tpm2-cmd.o: in function `tpm2_shutdown':
drivers/char/tpm/tpm2-cmd.c:421: multiple definition of `tpm2_shutdown'; drivers/char/tpm/tpm2-cmd.o:drivers/char/tpm/tpm2-cmd.c:421: first defined here
ld: drivers/char/tpm/tpm2-cmd.o: in function `tpm2_get_pcr_allocation':
drivers/char/tpm/tpm2-cmd.c:540: multiple definition of `tpm2_get_pcr_allocation'; drivers/char/tpm/tpm2-cmd.o:drivers/char/tpm/tpm2-cmd.c:540: first defined here
ld: drivers/char/tpm/tpm2-cmd.o: in function `tpm2_auto_startup':
drivers/char/tpm/tpm2-cmd.c:723: multiple definition of `tpm2_auto_startup'; drivers/char/tpm/tpm2-cmd.o:drivers/char/tpm/tpm2-cmd.c:723: first defined here
ld: drivers/char/tpm/tpm2-cmd.o: in function `tpm2_find_cc':
drivers/char/tpm/tpm2-cmd.c:753: multiple definition of `tpm2_find_cc'; drivers/char/tpm/tpm2-cmd.o:drivers/char/tpm/tpm2-cmd.c:753: first defined here
ld: drivers/char/tpm/tpmrm-dev.o:drivers/char/tpm/tpmrm-dev.c:47: multiple definition of `tpmrm_fops'; drivers/char/tpm/tpmrm-dev.o:drivers/char/tpm/tpmrm-dev.c:47: first defined here
ld: drivers/char/tpm/tpm2-space.o: in function `tpm2_init_space':
drivers/char/tpm/tpm2-space.c:42: multiple definition of `tpm2_init_space'; drivers/char/tpm/tpm2-space.o:drivers/char/tpm/tpm2-space.c:42: first defined here
ld: drivers/char/tpm/tpm2-space.o: in function `tpm2_del_space':
drivers/char/tpm/tpm2-space.c:60: multiple definition of `tpm2_del_space'; drivers/char/tpm/tpm2-space.o:drivers/char/tpm/tpm2-space.c:60: first defined here
ld: drivers/char/tpm/tpm2-space.o: in function `tpm2_flush_space':
drivers/char/tpm/tpm2-space.c:165: multiple definition of `tpm2_flush_space'; drivers/char/tpm/tpm2-space.o:drivers/char/tpm/tpm2-space.c:165: first defined here
ld: drivers/char/tpm/tpm2-space.o: in function `tpm2_prepare_space':
drivers/char/tpm/tpm2-space.c:302: multiple definition of `tpm2_prepare_space'; drivers/char/tpm/tpm2-space.o:drivers/char/tpm/tpm2-space.c:302: first defined here
ld: drivers/char/tpm/tpm2-space.o: in function `tpm2_commit_space':
drivers/char/tpm/tpm2-space.c:533: multiple definition of `tpm2_commit_space'; drivers/char/tpm/tpm2-space.o:drivers/char/tpm/tpm2-space.c:533: first defined here
ld: drivers/char/tpm/tpm-sysfs.o: in function `tpm_sysfs_add_device':
drivers/char/tpm/tpm-sysfs.c:341: multiple definition of `tpm_sysfs_add_device'; drivers/char/tpm/tpm-sysfs.o:drivers/char/tpm/tpm-sysfs.c:341: first defined here
ld: drivers/char/tpm/eventlog/common.o: in function `tpm_bios_log_teardown':
drivers/char/tpm/eventlog/common.c:167: multiple definition of `tpm_bios_log_teardown'; drivers/char/tpm/eventlog/common.o:drivers/char/tpm/eventlog/common.c:167: first defined here
ld: drivers/char/tpm/eventlog/common.o: in function `tpm_bios_log_setup':
drivers/char/tpm/eventlog/common.c:104: multiple definition of `tpm_bios_log_setup'; drivers/char/tpm/eventlog/common.o:drivers/char/tpm/eventlog/common.c:104: first defined here
ld: drivers/char/tpm/eventlog/tpm1.o:drivers/char/tpm/eventlog/tpm1.c:291: multiple definition of `tpm1_binary_b_measurements_seqops'; drivers/char/tpm/eventlog/tpm1.o:drivers/char/tpm/eventlog/tpm1.c:291: first defined here
ld: drivers/char/tpm/eventlog/tpm1.o:drivers/char/tpm/eventlog/tpm1.c:284: multiple definition of `tpm1_ascii_b_measurements_seqops'; drivers/char/tpm/eventlog/tpm1.o:drivers/char/tpm/eventlog/tpm1.c:284: first defined here
ld: drivers/char/tpm/eventlog/tpm2.o:drivers/char/tpm/eventlog/tpm2.c:154: multiple definition of `tpm2_binary_b_measurements_seqops'; drivers/char/tpm/eventlog/tpm2.o:drivers/char/tpm/eventlog/tpm2.c:154: first defined here
ld: drivers/char/tpm/tpm_ppi.o: in function `tpm_add_ppi':
drivers/char/tpm/tpm_ppi.c:367: multiple definition of `tpm_add_ppi'; drivers/char/tpm/tpm_ppi.o:drivers/char/tpm/tpm_ppi.c:367: first defined here
ld: drivers/char/tpm/eventlog/acpi.o: in function `tpm_read_log_acpi':
drivers/char/tpm/eventlog/acpi.c:46: multiple definition of `tpm_read_log_acpi'; drivers/char/tpm/eventlog/acpi.o:drivers/char/tpm/eventlog/acpi.c:46: first defined here
ld: drivers/char/tpm/eventlog/efi.o: in function `tpm_read_log_efi':
>> drivers/char/tpm/eventlog/efi.c:17: multiple definition of `tpm_read_log_efi'; drivers/char/tpm/eventlog/efi.o:drivers/char/tpm/eventlog/efi.c:17: first defined here
ld: drivers/char/tpm/tpm_tis_core.o: in function `tpm_tis_remove':
drivers/char/tpm/tpm_tis_core.c:857: multiple definition of `tpm_tis_remove'; drivers/char/tpm/tpm_tis_core.o:drivers/char/tpm/tpm_tis_core.c:857: first defined here
ld: drivers/char/tpm/tpm_tis_core.o: in function `tpm_tis_core_init':
drivers/char/tpm/tpm_tis_core.c:949: multiple definition of `tpm_tis_core_init'; drivers/char/tpm/tpm_tis_core.o:drivers/char/tpm/tpm_tis_core.c:949: first defined here
ld: drivers/char/tpm/tpm_tis_core.o: in function `tpm_tis_resume':
drivers/char/tpm/tpm_tis_core.c:1143: multiple definition of `tpm_tis_resume'; drivers/char/tpm/tpm_tis_core.o:drivers/char/tpm/tpm_tis_core.c:1143: first defined here
vim +17 drivers/char/tpm/eventlog/efi.c
58cc1e4faf10a73c drivers/char/tpm/tpm_eventlog_efi.c Thiebaud Weksteen 2017-09-20 14
58cc1e4faf10a73c drivers/char/tpm/tpm_eventlog_efi.c Thiebaud Weksteen 2017-09-20 15 /* read binary bios log from EFI configuration table */
58cc1e4faf10a73c drivers/char/tpm/tpm_eventlog_efi.c Thiebaud Weksteen 2017-09-20 16 int tpm_read_log_efi(struct tpm_chip *chip)
58cc1e4faf10a73c drivers/char/tpm/tpm_eventlog_efi.c Thiebaud Weksteen 2017-09-20 @17 {
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
[djwong-xfs:scrub-rtsummary 12/56] fs/xfs/xfs_quota.h:175:39: error: incompatible pointer types passing 'struct xfs_trans to parameter of type 'struct xfs_trans remove &
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git scrub-rtsummary
head: 30ed2e375306b1c5c8c622635a87595eec25a2d0
commit: cb3f81457960adfaad61877b8c86e78e5b608bf3 [12/56] xfs: flush eof/cowblocks if we can't reserve quota for file blocks
config: x86_64-randconfig-r025-20210115 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project d7bc3b7ce23b664d6620cdc32370a8614523ca2f)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git/comm...
git remote add djwong-xfs https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git
git fetch --no-tags djwong-xfs scrub-rtsummary
git checkout cb3f81457960adfaad61877b8c86e78e5b608bf3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from fs/xfs/xfs_trace.c:25:
>> fs/xfs/xfs_quota.h:175:39: error: incompatible pointer types passing 'struct xfs_trans **' to parameter of type 'struct xfs_trans *'; remove & [-Werror,-Wincompatible-pointer-types]
return xfs_trans_reserve_quota_nblks(&tp, ip, -nblks, -ninos, flags,
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
fs/xfs/xfs_quota.h:180:1: error: redefinition of 'xfs_quota_reserve_blkres'
xfs_quota_reserve_blkres(struct xfs_inode *ip, int64_t nblks,
^
fs/xfs/xfs_quota.h:144:19: note: previous definition is here
static inline int xfs_quota_reserve_blkres(struct xfs_inode *ip,
^
fs/xfs/xfs_quota.h:185:39: error: incompatible pointer types passing 'struct xfs_trans **' to parameter of type 'struct xfs_trans *'; remove & [-Werror,-Wincompatible-pointer-types]
return xfs_trans_reserve_quota_nblks(&tp, ip, nblks, 0, flags, NULL);
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
3 errors generated.
--
In file included from fs/xfs/libxfs/xfs_attr.c:24:
>> fs/xfs/xfs_quota.h:175:39: error: incompatible pointer types passing 'struct xfs_trans **' to parameter of type 'struct xfs_trans *'; remove & [-Werror,-Wincompatible-pointer-types]
return xfs_trans_reserve_quota_nblks(&tp, ip, -nblks, -ninos, flags,
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
fs/xfs/xfs_quota.h:180:1: error: redefinition of 'xfs_quota_reserve_blkres'
xfs_quota_reserve_blkres(struct xfs_inode *ip, int64_t nblks,
^
fs/xfs/xfs_quota.h:144:19: note: previous definition is here
static inline int xfs_quota_reserve_blkres(struct xfs_inode *ip,
^
fs/xfs/xfs_quota.h:185:39: error: incompatible pointer types passing 'struct xfs_trans **' to parameter of type 'struct xfs_trans *'; remove & [-Werror,-Wincompatible-pointer-types]
return xfs_trans_reserve_quota_nblks(&tp, ip, nblks, 0, flags, NULL);
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
>> fs/xfs/libxfs/xfs_attr.c:470:41: error: incompatible pointer types passing 'struct xfs_trans **' to parameter of type 'struct xfs_trans *'; remove & [-Werror,-Wincompatible-pointer-types]
error = xfs_trans_reserve_quota_nblks(&args->trans, dp,
^~~~~~~~~~~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
4 errors generated.
--
In file included from fs/xfs/libxfs/xfs_bmap.c:27:
>> fs/xfs/xfs_quota.h:175:39: error: incompatible pointer types passing 'struct xfs_trans **' to parameter of type 'struct xfs_trans *'; remove & [-Werror,-Wincompatible-pointer-types]
return xfs_trans_reserve_quota_nblks(&tp, ip, -nblks, -ninos, flags,
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
fs/xfs/xfs_quota.h:180:1: error: redefinition of 'xfs_quota_reserve_blkres'
xfs_quota_reserve_blkres(struct xfs_inode *ip, int64_t nblks,
^
fs/xfs/xfs_quota.h:144:19: note: previous definition is here
static inline int xfs_quota_reserve_blkres(struct xfs_inode *ip,
^
fs/xfs/xfs_quota.h:185:39: error: incompatible pointer types passing 'struct xfs_trans **' to parameter of type 'struct xfs_trans *'; remove & [-Werror,-Wincompatible-pointer-types]
return xfs_trans_reserve_quota_nblks(&tp, ip, nblks, 0, flags, NULL);
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
>> fs/xfs/libxfs/xfs_bmap.c:1090:40: error: incompatible pointer types passing 'xfs_trans_t **' (aka 'struct xfs_trans **') to parameter of type 'struct xfs_trans *'; remove & [-Werror,-Wincompatible-pointer-types]
error = xfs_trans_reserve_quota_nblks(&tp, ip, blks, 0, rsvd ?
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
4 errors generated.
--
In file included from fs/xfs/xfs_bmap_util.c:25:
>> fs/xfs/xfs_quota.h:175:39: error: incompatible pointer types passing 'struct xfs_trans **' to parameter of type 'struct xfs_trans *'; remove & [-Werror,-Wincompatible-pointer-types]
return xfs_trans_reserve_quota_nblks(&tp, ip, -nblks, -ninos, flags,
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
fs/xfs/xfs_quota.h:180:1: error: redefinition of 'xfs_quota_reserve_blkres'
xfs_quota_reserve_blkres(struct xfs_inode *ip, int64_t nblks,
^
fs/xfs/xfs_quota.h:144:19: note: previous definition is here
static inline int xfs_quota_reserve_blkres(struct xfs_inode *ip,
^
fs/xfs/xfs_quota.h:185:39: error: incompatible pointer types passing 'struct xfs_trans **' to parameter of type 'struct xfs_trans *'; remove & [-Werror,-Wincompatible-pointer-types]
return xfs_trans_reserve_quota_nblks(&tp, ip, nblks, 0, flags, NULL);
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
>> fs/xfs/xfs_bmap_util.c:822:41: error: incompatible pointer types passing 'xfs_trans_t **' (aka 'struct xfs_trans **') to parameter of type 'struct xfs_trans *'; remove & [-Werror,-Wincompatible-pointer-types]
error = xfs_trans_reserve_quota_nblks(&tp, ip, qblocks, 0,
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
>> fs/xfs/xfs_bmap_util.c:886:40: error: incompatible pointer types passing 'struct xfs_trans **' to parameter of type 'struct xfs_trans *'; remove & [-Werror,-Wincompatible-pointer-types]
error = xfs_trans_reserve_quota_nblks(&tp, ip, resblks, 0,
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
5 errors generated.
--
In file included from fs/xfs/xfs_iomap.c:26:
>> fs/xfs/xfs_quota.h:175:39: error: incompatible pointer types passing 'struct xfs_trans **' to parameter of type 'struct xfs_trans *'; remove & [-Werror,-Wincompatible-pointer-types]
return xfs_trans_reserve_quota_nblks(&tp, ip, -nblks, -ninos, flags,
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
fs/xfs/xfs_quota.h:180:1: error: redefinition of 'xfs_quota_reserve_blkres'
xfs_quota_reserve_blkres(struct xfs_inode *ip, int64_t nblks,
^
fs/xfs/xfs_quota.h:144:19: note: previous definition is here
static inline int xfs_quota_reserve_blkres(struct xfs_inode *ip,
^
fs/xfs/xfs_quota.h:185:39: error: incompatible pointer types passing 'struct xfs_trans **' to parameter of type 'struct xfs_trans *'; remove & [-Werror,-Wincompatible-pointer-types]
return xfs_trans_reserve_quota_nblks(&tp, ip, nblks, 0, flags, NULL);
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
>> fs/xfs/xfs_iomap.c:251:40: error: incompatible pointer types passing 'struct xfs_trans **' to parameter of type 'struct xfs_trans *'; remove & [-Werror,-Wincompatible-pointer-types]
error = xfs_trans_reserve_quota_nblks(&tp, ip, qblocks, 0, quota_flag,
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
>> fs/xfs/xfs_iomap.c:566:41: error: incompatible pointer types passing 'xfs_trans_t **' (aka 'struct xfs_trans **') to parameter of type 'struct xfs_trans *'; remove & [-Werror,-Wincompatible-pointer-types]
error = xfs_trans_reserve_quota_nblks(&tp, ip, resblks, 0,
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
5 errors generated.
--
In file included from fs/xfs/xfs_reflink.c:27:
>> fs/xfs/xfs_quota.h:175:39: error: incompatible pointer types passing 'struct xfs_trans **' to parameter of type 'struct xfs_trans *'; remove & [-Werror,-Wincompatible-pointer-types]
return xfs_trans_reserve_quota_nblks(&tp, ip, -nblks, -ninos, flags,
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
fs/xfs/xfs_quota.h:180:1: error: redefinition of 'xfs_quota_reserve_blkres'
xfs_quota_reserve_blkres(struct xfs_inode *ip, int64_t nblks,
^
fs/xfs/xfs_quota.h:144:19: note: previous definition is here
static inline int xfs_quota_reserve_blkres(struct xfs_inode *ip,
^
fs/xfs/xfs_quota.h:185:39: error: incompatible pointer types passing 'struct xfs_trans **' to parameter of type 'struct xfs_trans *'; remove & [-Werror,-Wincompatible-pointer-types]
return xfs_trans_reserve_quota_nblks(&tp, ip, nblks, 0, flags, NULL);
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
>> fs/xfs/xfs_reflink.c:403:40: error: incompatible pointer types passing 'struct xfs_trans **' to parameter of type 'struct xfs_trans *'; remove & [-Werror,-Wincompatible-pointer-types]
error = xfs_trans_reserve_quota_nblks(&tp, ip, resblks, 0,
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
fs/xfs/xfs_reflink.c:1099:41: error: incompatible pointer types passing 'struct xfs_trans **' to parameter of type 'struct xfs_trans *'; remove & [-Werror,-Wincompatible-pointer-types]
error = xfs_trans_reserve_quota_nblks(&tp, ip, qres, 0,
^~~
fs/xfs/xfs_quota.h:131:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
5 errors generated.
vim +175 fs/xfs/xfs_quota.h
170
171 static inline int
172 xfs_trans_unreserve_quota_nblks(struct xfs_trans *tp, struct xfs_inode *ip,
173 int64_t nblks, long ninos, unsigned int flags)
174 {
> 175 return xfs_trans_reserve_quota_nblks(&tp, ip, -nblks, -ninos, flags,
176 NULL);
177 }
178
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
[djwong-xfs:reserve-rt-metadata-space 64/196] fs/xfs/scrub/symlink_repair.c:213:40: error: passing argument 1 of 'xfs_trans_reserve_quota_nblks' from incompatible pointer type
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git reserve-rt-metadata-space
head: 51f17deded84ae5863d2220a0a7c152ef4a8bbb2
commit: 31164e29ae636984bee9f34577909e4f74fc0cd0 [64/196] xfs: repair damaged symlinks
config: nds32-randconfig-r006-20210115 (attached as .config)
compiler: nds32le-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/djwong/xfs-linux.git/comm...
git remote add djwong-xfs https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git
git fetch --no-tags djwong-xfs reserve-rt-metadata-space
git checkout 31164e29ae636984bee9f34577909e4f74fc0cd0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nds32
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 fs/xfs/scrub/symlink_repair.c:22:
fs/xfs/xfs_quota.h: In function 'xfs_trans_unreserve_quota_nblks':
fs/xfs/xfs_quota.h:176:39: error: passing argument 1 of 'xfs_trans_reserve_quota_nblks' from incompatible pointer type [-Werror=incompatible-pointer-types]
176 | return xfs_trans_reserve_quota_nblks(&tp, ip, -nblks, -ninos, flags,
| ^~~
| |
| struct xfs_trans **
fs/xfs/xfs_quota.h:132:67: note: expected 'struct xfs_trans *' but argument is of type 'struct xfs_trans **'
132 | static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
| ~~~~~~~~~~~~~~~~~~^~
fs/xfs/xfs_quota.h: At top level:
fs/xfs/xfs_quota.h:181:1: error: redefinition of 'xfs_quota_reserve_blkres'
181 | xfs_quota_reserve_blkres(struct xfs_inode *ip, int64_t nblks,
| ^~~~~~~~~~~~~~~~~~~~~~~~
fs/xfs/xfs_quota.h:145:19: note: previous definition of 'xfs_quota_reserve_blkres' was here
145 | static inline int xfs_quota_reserve_blkres(struct xfs_inode *ip,
| ^~~~~~~~~~~~~~~~~~~~~~~~
fs/xfs/xfs_quota.h: In function 'xfs_quota_reserve_blkres':
fs/xfs/xfs_quota.h:186:39: error: passing argument 1 of 'xfs_trans_reserve_quota_nblks' from incompatible pointer type [-Werror=incompatible-pointer-types]
186 | return xfs_trans_reserve_quota_nblks(&tp, ip, nblks, 0, flags, NULL);
| ^~~
| |
| struct xfs_trans **
fs/xfs/xfs_quota.h:132:67: note: expected 'struct xfs_trans *' but argument is of type 'struct xfs_trans **'
132 | static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
| ~~~~~~~~~~~~~~~~~~^~
fs/xfs/scrub/symlink_repair.c: In function 'xrep_symlink_reinitialize':
>> fs/xfs/scrub/symlink_repair.c:213:40: error: passing argument 1 of 'xfs_trans_reserve_quota_nblks' from incompatible pointer type [-Werror=incompatible-pointer-types]
213 | error = xfs_trans_reserve_quota_nblks(&sc->tp, sc->ip, resblks, 0,
| ^~~~~~~
| |
| struct xfs_trans **
In file included from fs/xfs/scrub/symlink_repair.c:22:
fs/xfs/xfs_quota.h:132:67: note: expected 'struct xfs_trans *' but argument is of type 'struct xfs_trans **'
132 | static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
| ~~~~~~~~~~~~~~~~~~^~
cc1: some warnings being treated as errors
vim +/xfs_trans_reserve_quota_nblks +213 fs/xfs/scrub/symlink_repair.c
185
186 /*
187 * Reinitialize a link target. Caller must ensure the inode is joined to
188 * the transaction.
189 */
190 STATIC int
191 xrep_symlink_reinitialize(
192 struct xfs_scrub *sc)
193 {
194 xfs_fsblock_t fs_blocks;
195 unsigned int target_len;
196 unsigned int resblks;
197 unsigned int quota_flags = XFS_QMOPT_RES_REGBLKS;
198 bool quota_retry = false;
199 int error;
200
201 /* How many blocks do we need? */
202 target_len = strlen(sc->buf);
203 ASSERT(target_len != 0);
204 if (target_len == 0 || target_len > XFS_SYMLINK_MAXLEN)
205 return -EFSCORRUPTED;
206
207 if (sc->flags & XCHK_TRY_HARDER)
208 quota_flags |= XFS_QMOPT_FORCE_RES;
209
210 /* Set up to reinitialize the target. */
211 fs_blocks = xfs_symlink_blocks(sc->mp, target_len);
212 resblks = XFS_SYMLINK_SPACE_RES(sc->mp, target_len, fs_blocks);
> 213 error = xfs_trans_reserve_quota_nblks(&sc->tp, sc->ip, resblks, 0,
214 quota_flags, "a_retry);
215 if (error)
216 return error;
217 if (quota_retry) {
218 /* Release everything and try harder. */
219 return -EDEADLOCK;
220 }
221
222 /* Try to write the new target back out. */
223 error = xfs_symlink_write_target(sc->tp, sc->ip, sc->buf, target_len,
224 fs_blocks, resblks);
225 if (error)
226 return error;
227
228 /* Finish up any block mapping activities. */
229 return xfs_defer_finish(&sc->tp);
230 }
231
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months