drivers/gpu/drm/i915/gem/i915_gem_region.c:166:27: warning: Uninitialized variable: obj
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 1d94330a437a573cfdf848f6743b1ed169242c8a
commit: c6d4a099a240a8742173f8e02db0ba08ffd37ef1 drm/i915: reimplement header test feature
date: 1 year 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_region.c:166:27: warning: Uninitialized variable: obj [uninitvar]
if (overflows_type(size, obj->base.size))
^
--
cppcheck possible warnings: (new ones prefixed by >>, may not real problems)
>> drivers/gpu/drm/i915/display/intel_overlay.c:678:12: warning: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned]
flags |= DST_KEY_ENABLE;
^
vim +166 drivers/gpu/drm/i915/gem/i915_gem_region.c
232a6ebae41919 Matthew Auld 2019-10-08 132
232a6ebae41919 Matthew Auld 2019-10-08 133 struct drm_i915_gem_object *
232a6ebae41919 Matthew Auld 2019-10-08 134 i915_gem_object_create_region(struct intel_memory_region *mem,
232a6ebae41919 Matthew Auld 2019-10-08 135 resource_size_t size,
232a6ebae41919 Matthew Auld 2019-10-08 136 unsigned int flags)
232a6ebae41919 Matthew Auld 2019-10-08 137 {
232a6ebae41919 Matthew Auld 2019-10-08 138 struct drm_i915_gem_object *obj;
232a6ebae41919 Matthew Auld 2019-10-08 139
232a6ebae41919 Matthew Auld 2019-10-08 140 /*
232a6ebae41919 Matthew Auld 2019-10-08 141 * NB: Our use of resource_size_t for the size stems from using struct
232a6ebae41919 Matthew Auld 2019-10-08 142 * resource for the mem->region. We might need to revisit this in the
232a6ebae41919 Matthew Auld 2019-10-08 143 * future.
232a6ebae41919 Matthew Auld 2019-10-08 144 */
232a6ebae41919 Matthew Auld 2019-10-08 145
2f0b97ca021186 Matthew Auld 2019-10-08 146 GEM_BUG_ON(flags & ~I915_BO_ALLOC_FLAGS);
2f0b97ca021186 Matthew Auld 2019-10-08 147
232a6ebae41919 Matthew Auld 2019-10-08 148 if (!mem)
232a6ebae41919 Matthew Auld 2019-10-08 149 return ERR_PTR(-ENODEV);
232a6ebae41919 Matthew Auld 2019-10-08 150
232a6ebae41919 Matthew Auld 2019-10-08 151 size = round_up(size, mem->min_page_size);
232a6ebae41919 Matthew Auld 2019-10-08 152
232a6ebae41919 Matthew Auld 2019-10-08 153 GEM_BUG_ON(!size);
232a6ebae41919 Matthew Auld 2019-10-08 154 GEM_BUG_ON(!IS_ALIGNED(size, I915_GTT_MIN_ALIGNMENT));
232a6ebae41919 Matthew Auld 2019-10-08 155
232a6ebae41919 Matthew Auld 2019-10-08 156 /*
232a6ebae41919 Matthew Auld 2019-10-08 157 * XXX: There is a prevalence of the assumption that we fit the
232a6ebae41919 Matthew Auld 2019-10-08 158 * object's page count inside a 32bit _signed_ variable. Let's document
232a6ebae41919 Matthew Auld 2019-10-08 159 * this and catch if we ever need to fix it. In the meantime, if you do
232a6ebae41919 Matthew Auld 2019-10-08 160 * spot such a local variable, please consider fixing!
232a6ebae41919 Matthew Auld 2019-10-08 161 */
232a6ebae41919 Matthew Auld 2019-10-08 162
232a6ebae41919 Matthew Auld 2019-10-08 163 if (size >> PAGE_SHIFT > INT_MAX)
232a6ebae41919 Matthew Auld 2019-10-08 164 return ERR_PTR(-E2BIG);
232a6ebae41919 Matthew Auld 2019-10-08 165
232a6ebae41919 Matthew Auld 2019-10-08 @166 if (overflows_type(size, obj->base.size))
:::::: The code at line 166 was first introduced by commit
:::::: 232a6ebae419193f5b8da4fa869ae5089ab105c2 drm/i915: introduce intel_memory_region
:::::: TO: Matthew Auld <matthew.auld(a)intel.com>
:::::: CC: Chris Wilson <chris(a)chris-wilson.co.uk>
---
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! Perhaps something to improve:
[auto build test WARNING 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 warnings (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 +/addr +490 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
[djwong-xfs:scrub-rtsummary 12/56] fs/xfs/xfs_quota.h:175:39: 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 scrub-rtsummary
head: 30ed2e375306b1c5c8c622635a87595eec25a2d0
commit: cb3f81457960adfaad61877b8c86e78e5b608bf3 [12/56] xfs: flush eof/cowblocks if we can't reserve quota for file blocks
config: c6x-randconfig-r031-20210115 (attached as .config)
compiler: c6x-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/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=gcc-9.3.0 make.cross ARCH=c6x
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: In function 'xfs_trans_unreserve_quota_nblks':
>> fs/xfs/xfs_quota.h:175:39: error: passing argument 1 of 'xfs_trans_reserve_quota_nblks' from incompatible pointer type [-Werror=incompatible-pointer-types]
175 | return xfs_trans_reserve_quota_nblks(&tp, ip, -nblks, -ninos, flags,
| ^~~
| |
| struct xfs_trans **
fs/xfs/xfs_quota.h:131:67: note: expected 'struct xfs_trans *' but argument is of type 'struct xfs_trans **'
131 | 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:180:1: error: redefinition of 'xfs_quota_reserve_blkres'
180 | xfs_quota_reserve_blkres(struct xfs_inode *ip, int64_t nblks,
| ^~~~~~~~~~~~~~~~~~~~~~~~
fs/xfs/xfs_quota.h:144:19: note: previous definition of 'xfs_quota_reserve_blkres' was here
144 | 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:185:39: error: passing argument 1 of 'xfs_trans_reserve_quota_nblks' from incompatible pointer type [-Werror=incompatible-pointer-types]
185 | return xfs_trans_reserve_quota_nblks(&tp, ip, nblks, 0, flags, NULL);
| ^~~
| |
| struct xfs_trans **
fs/xfs/xfs_quota.h:131:67: note: expected 'struct xfs_trans *' but argument is of type 'struct xfs_trans **'
131 | static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
| ~~~~~~~~~~~~~~~~~~^~
cc1: some warnings being treated as errors
--
In file included from fs/xfs/libxfs/xfs_attr.c:24:
fs/xfs/xfs_quota.h: In function 'xfs_trans_unreserve_quota_nblks':
>> fs/xfs/xfs_quota.h:175:39: error: passing argument 1 of 'xfs_trans_reserve_quota_nblks' from incompatible pointer type [-Werror=incompatible-pointer-types]
175 | return xfs_trans_reserve_quota_nblks(&tp, ip, -nblks, -ninos, flags,
| ^~~
| |
| struct xfs_trans **
fs/xfs/xfs_quota.h:131:67: note: expected 'struct xfs_trans *' but argument is of type 'struct xfs_trans **'
131 | 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:180:1: error: redefinition of 'xfs_quota_reserve_blkres'
180 | xfs_quota_reserve_blkres(struct xfs_inode *ip, int64_t nblks,
| ^~~~~~~~~~~~~~~~~~~~~~~~
fs/xfs/xfs_quota.h:144:19: note: previous definition of 'xfs_quota_reserve_blkres' was here
144 | 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:185:39: error: passing argument 1 of 'xfs_trans_reserve_quota_nblks' from incompatible pointer type [-Werror=incompatible-pointer-types]
185 | return xfs_trans_reserve_quota_nblks(&tp, ip, nblks, 0, flags, NULL);
| ^~~
| |
| struct xfs_trans **
fs/xfs/xfs_quota.h:131:67: note: expected 'struct xfs_trans *' but argument is of type 'struct xfs_trans **'
131 | static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
| ~~~~~~~~~~~~~~~~~~^~
fs/xfs/libxfs/xfs_attr.c: In function 'xfs_attr_set':
>> fs/xfs/libxfs/xfs_attr.c:470:41: error: passing argument 1 of 'xfs_trans_reserve_quota_nblks' from incompatible pointer type [-Werror=incompatible-pointer-types]
470 | error = xfs_trans_reserve_quota_nblks(&args->trans, dp,
| ^~~~~~~~~~~~
| |
| struct xfs_trans **
In file included from fs/xfs/libxfs/xfs_attr.c:24:
fs/xfs/xfs_quota.h:131:67: note: expected 'struct xfs_trans *' but argument is of type 'struct xfs_trans **'
131 | static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
| ~~~~~~~~~~~~~~~~~~^~
cc1: some warnings being treated as errors
--
In file included from fs/xfs/libxfs/xfs_bmap.c:27:
fs/xfs/xfs_quota.h: In function 'xfs_trans_unreserve_quota_nblks':
>> fs/xfs/xfs_quota.h:175:39: error: passing argument 1 of 'xfs_trans_reserve_quota_nblks' from incompatible pointer type [-Werror=incompatible-pointer-types]
175 | return xfs_trans_reserve_quota_nblks(&tp, ip, -nblks, -ninos, flags,
| ^~~
| |
| struct xfs_trans **
fs/xfs/xfs_quota.h:131:67: note: expected 'struct xfs_trans *' but argument is of type 'struct xfs_trans **'
131 | 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:180:1: error: redefinition of 'xfs_quota_reserve_blkres'
180 | xfs_quota_reserve_blkres(struct xfs_inode *ip, int64_t nblks,
| ^~~~~~~~~~~~~~~~~~~~~~~~
fs/xfs/xfs_quota.h:144:19: note: previous definition of 'xfs_quota_reserve_blkres' was here
144 | 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:185:39: error: passing argument 1 of 'xfs_trans_reserve_quota_nblks' from incompatible pointer type [-Werror=incompatible-pointer-types]
185 | return xfs_trans_reserve_quota_nblks(&tp, ip, nblks, 0, flags, NULL);
| ^~~
| |
| struct xfs_trans **
fs/xfs/xfs_quota.h:131:67: note: expected 'struct xfs_trans *' but argument is of type 'struct xfs_trans **'
131 | static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
| ~~~~~~~~~~~~~~~~~~^~
fs/xfs/libxfs/xfs_bmap.c: In function 'xfs_bmap_add_attrfork':
>> fs/xfs/libxfs/xfs_bmap.c:1090:40: error: passing argument 1 of 'xfs_trans_reserve_quota_nblks' from incompatible pointer type [-Werror=incompatible-pointer-types]
1090 | error = xfs_trans_reserve_quota_nblks(&tp, ip, blks, 0, rsvd ?
| ^~~
| |
| xfs_trans_t ** {aka struct xfs_trans **}
In file included from fs/xfs/libxfs/xfs_bmap.c:27:
fs/xfs/xfs_quota.h:131:67: note: expected 'struct xfs_trans *' but argument is of type 'xfs_trans_t **' {aka 'struct xfs_trans **'}
131 | static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
| ~~~~~~~~~~~~~~~~~~^~
fs/xfs/libxfs/xfs_bmap.c: In function 'xfs_bmap_del_extent_real':
fs/xfs/libxfs/xfs_bmap.c:5243:58: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
5243 | xfs_trans_mod_dquot_byino(tp, ip, qfield, (long)-nblks);
| ^
cc1: some warnings being treated as errors
--
In file included from fs/xfs/xfs_bmap_util.c:25:
fs/xfs/xfs_quota.h: In function 'xfs_trans_unreserve_quota_nblks':
>> fs/xfs/xfs_quota.h:175:39: error: passing argument 1 of 'xfs_trans_reserve_quota_nblks' from incompatible pointer type [-Werror=incompatible-pointer-types]
175 | return xfs_trans_reserve_quota_nblks(&tp, ip, -nblks, -ninos, flags,
| ^~~
| |
| struct xfs_trans **
fs/xfs/xfs_quota.h:131:67: note: expected 'struct xfs_trans *' but argument is of type 'struct xfs_trans **'
131 | 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:180:1: error: redefinition of 'xfs_quota_reserve_blkres'
180 | xfs_quota_reserve_blkres(struct xfs_inode *ip, int64_t nblks,
| ^~~~~~~~~~~~~~~~~~~~~~~~
fs/xfs/xfs_quota.h:144:19: note: previous definition of 'xfs_quota_reserve_blkres' was here
144 | 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:185:39: error: passing argument 1 of 'xfs_trans_reserve_quota_nblks' from incompatible pointer type [-Werror=incompatible-pointer-types]
185 | return xfs_trans_reserve_quota_nblks(&tp, ip, nblks, 0, flags, NULL);
| ^~~
| |
| struct xfs_trans **
fs/xfs/xfs_quota.h:131:67: note: expected 'struct xfs_trans *' but argument is of type 'struct xfs_trans **'
131 | static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
| ~~~~~~~~~~~~~~~~~~^~
fs/xfs/xfs_bmap_util.c: In function 'xfs_alloc_file_space':
>> fs/xfs/xfs_bmap_util.c:822:41: error: passing argument 1 of 'xfs_trans_reserve_quota_nblks' from incompatible pointer type [-Werror=incompatible-pointer-types]
822 | error = xfs_trans_reserve_quota_nblks(&tp, ip, qblocks, 0,
| ^~~
| |
| xfs_trans_t ** {aka struct xfs_trans **}
In file included from fs/xfs/xfs_bmap_util.c:25:
fs/xfs/xfs_quota.h:131:67: note: expected 'struct xfs_trans *' but argument is of type 'xfs_trans_t **' {aka 'struct xfs_trans **'}
131 | static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
| ~~~~~~~~~~~~~~~~~~^~
fs/xfs/xfs_bmap_util.c: In function 'xfs_unmap_extent':
fs/xfs/xfs_bmap_util.c:886:40: error: passing argument 1 of 'xfs_trans_reserve_quota_nblks' from incompatible pointer type [-Werror=incompatible-pointer-types]
886 | error = xfs_trans_reserve_quota_nblks(&tp, ip, resblks, 0,
| ^~~
| |
| struct xfs_trans **
In file included from fs/xfs/xfs_bmap_util.c:25:
fs/xfs/xfs_quota.h:131:67: note: expected 'struct xfs_trans *' but argument is of type 'struct xfs_trans **'
131 | static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
| ~~~~~~~~~~~~~~~~~~^~
cc1: some warnings being treated as errors
--
In file included from fs/xfs/xfs_ioctl.c:23:
fs/xfs/xfs_quota.h: In function 'xfs_trans_unreserve_quota_nblks':
>> fs/xfs/xfs_quota.h:175:39: error: passing argument 1 of 'xfs_trans_reserve_quota_nblks' from incompatible pointer type [-Werror=incompatible-pointer-types]
175 | return xfs_trans_reserve_quota_nblks(&tp, ip, -nblks, -ninos, flags,
| ^~~
| |
| struct xfs_trans **
fs/xfs/xfs_quota.h:131:67: note: expected 'struct xfs_trans *' but argument is of type 'struct xfs_trans **'
131 | 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:180:1: error: redefinition of 'xfs_quota_reserve_blkres'
180 | xfs_quota_reserve_blkres(struct xfs_inode *ip, int64_t nblks,
| ^~~~~~~~~~~~~~~~~~~~~~~~
fs/xfs/xfs_quota.h:144:19: note: previous definition of 'xfs_quota_reserve_blkres' was here
144 | 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:185:39: error: passing argument 1 of 'xfs_trans_reserve_quota_nblks' from incompatible pointer type [-Werror=incompatible-pointer-types]
185 | return xfs_trans_reserve_quota_nblks(&tp, ip, nblks, 0, flags, NULL);
| ^~~
| |
| struct xfs_trans **
fs/xfs/xfs_quota.h:131:67: note: expected 'struct xfs_trans *' but argument is of type 'struct xfs_trans **'
131 | static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
| ~~~~~~~~~~~~~~~~~~^~
fs/xfs/xfs_ioctl.c: In function 'xfs_ioctl_setattr':
fs/xfs/xfs_ioctl.c:1438:20: warning: variable 'olddquot' set but not used [-Wunused-but-set-variable]
1438 | struct xfs_dquot *olddquot = NULL;
| ^~~~~~~~
cc1: some warnings being treated as errors
--
In file included from fs/xfs/xfs_iomap.c:26:
fs/xfs/xfs_quota.h: In function 'xfs_trans_unreserve_quota_nblks':
>> fs/xfs/xfs_quota.h:175:39: error: passing argument 1 of 'xfs_trans_reserve_quota_nblks' from incompatible pointer type [-Werror=incompatible-pointer-types]
175 | return xfs_trans_reserve_quota_nblks(&tp, ip, -nblks, -ninos, flags,
| ^~~
| |
| struct xfs_trans **
fs/xfs/xfs_quota.h:131:67: note: expected 'struct xfs_trans *' but argument is of type 'struct xfs_trans **'
131 | 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:180:1: error: redefinition of 'xfs_quota_reserve_blkres'
180 | xfs_quota_reserve_blkres(struct xfs_inode *ip, int64_t nblks,
| ^~~~~~~~~~~~~~~~~~~~~~~~
fs/xfs/xfs_quota.h:144:19: note: previous definition of 'xfs_quota_reserve_blkres' was here
144 | 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:185:39: error: passing argument 1 of 'xfs_trans_reserve_quota_nblks' from incompatible pointer type [-Werror=incompatible-pointer-types]
185 | return xfs_trans_reserve_quota_nblks(&tp, ip, nblks, 0, flags, NULL);
| ^~~
| |
| struct xfs_trans **
fs/xfs/xfs_quota.h:131:67: note: expected 'struct xfs_trans *' but argument is of type 'struct xfs_trans **'
131 | static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
| ~~~~~~~~~~~~~~~~~~^~
fs/xfs/xfs_iomap.c: In function 'xfs_iomap_write_direct':
>> fs/xfs/xfs_iomap.c:251:40: error: passing argument 1 of 'xfs_trans_reserve_quota_nblks' from incompatible pointer type [-Werror=incompatible-pointer-types]
251 | error = xfs_trans_reserve_quota_nblks(&tp, ip, qblocks, 0, quota_flag,
| ^~~
| |
| struct xfs_trans **
In file included from fs/xfs/xfs_iomap.c:26:
fs/xfs/xfs_quota.h:131:67: note: expected 'struct xfs_trans *' but argument is of type 'struct xfs_trans **'
131 | static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
| ~~~~~~~~~~~~~~~~~~^~
fs/xfs/xfs_iomap.c: In function 'xfs_iomap_write_unwritten':
fs/xfs/xfs_iomap.c:566:41: error: passing argument 1 of 'xfs_trans_reserve_quota_nblks' from incompatible pointer type [-Werror=incompatible-pointer-types]
566 | error = xfs_trans_reserve_quota_nblks(&tp, ip, resblks, 0,
| ^~~
| |
| xfs_trans_t ** {aka struct xfs_trans **}
In file included from fs/xfs/xfs_iomap.c:26:
fs/xfs/xfs_quota.h:131:67: note: expected 'struct xfs_trans *' but argument is of type 'xfs_trans_t **' {aka 'struct xfs_trans **'}
131 | static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
| ~~~~~~~~~~~~~~~~~~^~
cc1: some warnings being treated as errors
--
In file included from fs/xfs/xfs_iops.c:15:
fs/xfs/xfs_quota.h: In function 'xfs_trans_unreserve_quota_nblks':
>> fs/xfs/xfs_quota.h:175:39: error: passing argument 1 of 'xfs_trans_reserve_quota_nblks' from incompatible pointer type [-Werror=incompatible-pointer-types]
175 | return xfs_trans_reserve_quota_nblks(&tp, ip, -nblks, -ninos, flags,
| ^~~
| |
| struct xfs_trans **
fs/xfs/xfs_quota.h:131:67: note: expected 'struct xfs_trans *' but argument is of type 'struct xfs_trans **'
131 | 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:180:1: error: redefinition of 'xfs_quota_reserve_blkres'
180 | xfs_quota_reserve_blkres(struct xfs_inode *ip, int64_t nblks,
| ^~~~~~~~~~~~~~~~~~~~~~~~
fs/xfs/xfs_quota.h:144:19: note: previous definition of 'xfs_quota_reserve_blkres' was here
144 | 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:185:39: error: passing argument 1 of 'xfs_trans_reserve_quota_nblks' from incompatible pointer type [-Werror=incompatible-pointer-types]
185 | return xfs_trans_reserve_quota_nblks(&tp, ip, nblks, 0, flags, NULL);
| ^~~
| |
| struct xfs_trans **
fs/xfs/xfs_quota.h:131:67: note: expected 'struct xfs_trans *' but argument is of type 'struct xfs_trans **'
131 | static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
| ~~~~~~~~~~~~~~~~~~^~
fs/xfs/xfs_iops.c: In function 'xfs_setattr_nonsize':
fs/xfs/xfs_iops.c:662:39: warning: variable 'olddquot2' set but not used [-Wunused-but-set-variable]
662 | struct xfs_dquot *olddquot1 = NULL, *olddquot2 = NULL;
| ^~~~~~~~~
fs/xfs/xfs_iops.c:662:20: warning: variable 'olddquot1' set but not used [-Wunused-but-set-variable]
662 | struct xfs_dquot *olddquot1 = NULL, *olddquot2 = NULL;
| ^~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from fs/xfs/xfs_reflink.c:27:
fs/xfs/xfs_quota.h: In function 'xfs_trans_unreserve_quota_nblks':
>> fs/xfs/xfs_quota.h:175:39: error: passing argument 1 of 'xfs_trans_reserve_quota_nblks' from incompatible pointer type [-Werror=incompatible-pointer-types]
175 | return xfs_trans_reserve_quota_nblks(&tp, ip, -nblks, -ninos, flags,
| ^~~
| |
| struct xfs_trans **
fs/xfs/xfs_quota.h:131:67: note: expected 'struct xfs_trans *' but argument is of type 'struct xfs_trans **'
131 | 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:180:1: error: redefinition of 'xfs_quota_reserve_blkres'
180 | xfs_quota_reserve_blkres(struct xfs_inode *ip, int64_t nblks,
| ^~~~~~~~~~~~~~~~~~~~~~~~
fs/xfs/xfs_quota.h:144:19: note: previous definition of 'xfs_quota_reserve_blkres' was here
144 | 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:185:39: error: passing argument 1 of 'xfs_trans_reserve_quota_nblks' from incompatible pointer type [-Werror=incompatible-pointer-types]
185 | return xfs_trans_reserve_quota_nblks(&tp, ip, nblks, 0, flags, NULL);
| ^~~
| |
| struct xfs_trans **
fs/xfs/xfs_quota.h:131:67: note: expected 'struct xfs_trans *' but argument is of type 'struct xfs_trans **'
131 | static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
| ~~~~~~~~~~~~~~~~~~^~
fs/xfs/xfs_reflink.c: In function 'xfs_reflink_allocate_cow':
>> fs/xfs/xfs_reflink.c:403:40: error: passing argument 1 of 'xfs_trans_reserve_quota_nblks' from incompatible pointer type [-Werror=incompatible-pointer-types]
403 | error = xfs_trans_reserve_quota_nblks(&tp, ip, resblks, 0,
| ^~~
| |
| struct xfs_trans **
In file included from fs/xfs/xfs_reflink.c:27:
fs/xfs/xfs_quota.h:131:67: note: expected 'struct xfs_trans *' but argument is of type 'struct xfs_trans **'
131 | static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
| ~~~~~~~~~~~~~~~~~~^~
fs/xfs/xfs_reflink.c: In function 'xfs_reflink_remap_extent':
fs/xfs/xfs_reflink.c:1099:41: error: passing argument 1 of 'xfs_trans_reserve_quota_nblks' from incompatible pointer type [-Werror=incompatible-pointer-types]
1099 | error = xfs_trans_reserve_quota_nblks(&tp, ip, qres, 0,
| ^~~
| |
| struct xfs_trans **
In file included from fs/xfs/xfs_reflink.c:27:
fs/xfs/xfs_quota.h:131:67: note: expected 'struct xfs_trans *' but argument is of type 'struct xfs_trans **'
131 | 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 +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
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]
[also build test ERROR on soc/for-next linus/master v5.11-rc3 next-20210115]
[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: mips-randconfig-p002-20210115 (attached as .config)
compiler: mips-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/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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
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 >>):
mips-linux-ld: drivers/char/tpm/tpm-chip.o: in function `tpm_chip_start':
>> tpm-chip.c:(.text+0x0): multiple definition of `tpm_chip_start'; drivers/char/tpm/tpm-chip.o:tpm-chip.c:(.text+0x0): first defined here
mips-linux-ld: drivers/char/tpm/tpm-chip.o: in function `tpm_chip_stop':
>> tpm-chip.c:(.text+0xe8): multiple definition of `tpm_chip_stop'; drivers/char/tpm/tpm-chip.o:tpm-chip.c:(.text+0xe8): first defined here
mips-linux-ld: drivers/char/tpm/tpm-chip.o: in function `tpm_try_get_ops':
>> tpm-chip.c:(.text+0x170): multiple definition of `tpm_try_get_ops'; drivers/char/tpm/tpm-chip.o:tpm-chip.c:(.text+0x170): first defined here
mips-linux-ld: drivers/char/tpm/tpm-chip.o: in function `tpm_put_ops':
>> tpm-chip.c:(.text+0x218): multiple definition of `tpm_put_ops'; drivers/char/tpm/tpm-chip.o:tpm-chip.c:(.text+0x218): first defined here
mips-linux-ld: drivers/char/tpm/tpm-chip.o: in function `tpm_default_chip':
>> tpm-chip.c:(.text+0x278): multiple definition of `tpm_default_chip'; drivers/char/tpm/tpm-chip.o:tpm-chip.c:(.text+0x278): first defined here
>> mips-linux-ld: drivers/char/tpm/tpm-chip.o:(.data+0x48): multiple definition of `dev_nums_idr'; drivers/char/tpm/tpm-chip.o:(.data+0x48): first defined here
mips-linux-ld: drivers/char/tpm/tpm-chip.o: in function `tpm_chip_unregister':
>> tpm-chip.c:(.text+0x4a4): multiple definition of `tpm_chip_unregister'; drivers/char/tpm/tpm-chip.o:tpm-chip.c:(.text+0x4a4): first defined here
mips-linux-ld: drivers/char/tpm/tpm-chip.o: in function `tpm_chip_register':
>> tpm-chip.c:(.text+0x584): multiple definition of `tpm_chip_register'; drivers/char/tpm/tpm-chip.o:tpm-chip.c:(.text+0x584): first defined here
mips-linux-ld: drivers/char/tpm/tpm-chip.o: in function `tpm_chip_alloc':
>> tpm-chip.c:(.text+0x75c): multiple definition of `tpm_chip_alloc'; drivers/char/tpm/tpm-chip.o:tpm-chip.c:(.text+0x75c): first defined here
>> mips-linux-ld: drivers/char/tpm/tpm-chip.o:(.bss+0x8): multiple definition of `tpm_class'; drivers/char/tpm/tpm-chip.o:(.bss+0x8): first defined here
>> mips-linux-ld: drivers/char/tpm/tpm-chip.o:(.bss+0x4): multiple definition of `tpmrm_class'; drivers/char/tpm/tpm-chip.o:(.bss+0x4): first defined here
>> mips-linux-ld: drivers/char/tpm/tpm-chip.o:(.bss+0x0): multiple definition of `tpm_devt'; drivers/char/tpm/tpm-chip.o:(.bss+0x0): first defined here
mips-linux-ld: drivers/char/tpm/tpm-chip.o: in function `tpmm_chip_alloc':
>> tpm-chip.c:(.text+0x9bc): multiple definition of `tpmm_chip_alloc'; drivers/char/tpm/tpm-chip.o:tpm-chip.c:(.text+0x9bc): first defined here
mips-linux-ld: drivers/char/tpm/tpm-chip.o: in function `tpm_find_get_ops':
>> tpm-chip.c:(.text+0xa58): multiple definition of `tpm_find_get_ops'; drivers/char/tpm/tpm-chip.o:tpm-chip.c:(.text+0xa58): first defined here
mips-linux-ld: drivers/char/tpm/tpm-dev-common.o: in function `tpm_common_open':
>> tpm-dev-common.c:(.text+0x22c): multiple definition of `tpm_common_open'; drivers/char/tpm/tpm-dev-common.o:tpm-dev-common.c:(.text+0x22c): first defined here
mips-linux-ld: drivers/char/tpm/tpm-dev-common.o: in function `tpm_common_read':
>> tpm-dev-common.c:(.text+0x378): multiple definition of `tpm_common_read'; drivers/char/tpm/tpm-dev-common.o:tpm-dev-common.c:(.text+0x378): first defined here
mips-linux-ld: drivers/char/tpm/tpm-dev-common.o: in function `tpm_common_write':
>> tpm-dev-common.c:(.text+0x574): multiple definition of `tpm_common_write'; drivers/char/tpm/tpm-dev-common.o:tpm-dev-common.c:(.text+0x574): first defined here
mips-linux-ld: drivers/char/tpm/tpm-dev-common.o: in function `tpm_common_poll':
>> tpm-dev-common.c:(.text+0x864): multiple definition of `tpm_common_poll'; drivers/char/tpm/tpm-dev-common.o:tpm-dev-common.c:(.text+0x864): first defined here
mips-linux-ld: drivers/char/tpm/tpm-dev-common.o: in function `tpm_common_release':
>> tpm-dev-common.c:(.text+0x8e8): multiple definition of `tpm_common_release'; drivers/char/tpm/tpm-dev-common.o:tpm-dev-common.c:(.text+0x8e8): first defined here
mips-linux-ld: drivers/char/tpm/tpm-dev-common.o: in function `tpm_dev_common_init':
>> tpm-dev-common.c:(.init.text+0x0): multiple definition of `tpm_dev_common_init'; drivers/char/tpm/tpm-dev-common.o:tpm-dev-common.c:(.init.text+0x0): first defined here
mips-linux-ld: drivers/char/tpm/tpm-dev-common.o: in function `tpm_dev_common_exit':
tpm-dev-common.c:(.exit.text+0x0): multiple definition of `tpm_dev_common_exit'; drivers/char/tpm/tpm-dev-common.o:tpm-dev-common.c:(.exit.text+0x0): first defined here
mips-linux-ld: drivers/char/tpm/tpm-dev.o:(.rodata+0x0): multiple definition of `tpm_fops'; drivers/char/tpm/tpm-dev.o:(.rodata+0x0): first defined here
mips-linux-ld: drivers/char/tpm/tpm-interface.o: in function `tpm_pm_resume':
tpm-interface.c:(.text+0x0): multiple definition of `tpm_pm_resume'; drivers/char/tpm/tpm-interface.o:tpm-interface.c:(.text+0x0): first defined here
mips-linux-ld: drivers/char/tpm/tpm-interface.o: in function `tpm_calc_ordinal_duration':
tpm-interface.c:(.text+0x20): multiple definition of `tpm_calc_ordinal_duration'; drivers/char/tpm/tpm-interface.o:tpm-interface.c:(.text+0x20): first defined here
mips-linux-ld: drivers/char/tpm/tpm-interface.o: in function `tpm_get_timeouts':
tpm-interface.c:(.text+0x50): multiple definition of `tpm_get_timeouts'; drivers/char/tpm/tpm-interface.o:tpm-interface.c:(.text+0x50): first defined here
mips-linux-ld: drivers/char/tpm/tpm-interface.o: in function `tpm_is_tpm2':
tpm-interface.c:(.text+0x94): multiple definition of `tpm_is_tpm2'; drivers/char/tpm/tpm-interface.o:tpm-interface.c:(.text+0x94): first defined here
mips-linux-ld: drivers/char/tpm/tpm-interface.o: in function `tpm_pcr_read':
tpm-interface.c:(.text+0xe4): multiple definition of `tpm_pcr_read'; drivers/char/tpm/tpm-interface.o:tpm-interface.c:(.text+0xe4): first defined here
mips-linux-ld: drivers/char/tpm/tpm-interface.o: in function `tpm_pcr_extend':
tpm-interface.c:(.text+0x184): multiple definition of `tpm_pcr_extend'; drivers/char/tpm/tpm-interface.o:tpm-interface.c:(.text+0x184): first defined here
mips-linux-ld: drivers/char/tpm/tpm-interface.o: in function `tpm_pm_suspend':
tpm-interface.c:(.text+0x268): multiple definition of `tpm_pm_suspend'; drivers/char/tpm/tpm-interface.o:tpm-interface.c:(.text+0x268): first defined here
mips-linux-ld: drivers/char/tpm/tpm-interface.o: in function `tpm_get_random':
tpm-interface.c:(.text+0x308): multiple definition of `tpm_get_random'; drivers/char/tpm/tpm-interface.o:tpm-interface.c:(.text+0x308): first defined here
mips-linux-ld: drivers/char/tpm/tpm-interface.o: in function `tpm_transmit':
tpm-interface.c:(.text+0x3bc): multiple definition of `tpm_transmit'; drivers/char/tpm/tpm-interface.o:tpm-interface.c:(.text+0x3bc): first defined here
mips-linux-ld: drivers/char/tpm/tpm-interface.o: in function `tpm_transmit_cmd':
tpm-interface.c:(.text+0x628): multiple definition of `tpm_transmit_cmd'; drivers/char/tpm/tpm-interface.o:tpm-interface.c:(.text+0x628): first defined here
mips-linux-ld: drivers/char/tpm/tpm-interface.o: in function `tpm_send':
tpm-interface.c:(.text+0x698): multiple definition of `tpm_send'; drivers/char/tpm/tpm-interface.o:tpm-interface.c:(.text+0x698): first defined here
mips-linux-ld: drivers/char/tpm/tpm-interface.o: in function `tpm_auto_startup':
tpm-interface.c:(.text+0x730): multiple definition of `tpm_auto_startup'; drivers/char/tpm/tpm-interface.o:tpm-interface.c:(.text+0x730): first defined here
mips-linux-ld: drivers/char/tpm/tpm1-cmd.o: in function `tpm1_getcap':
tpm1-cmd.c:(.text+0x0): multiple definition of `tpm1_getcap'; drivers/char/tpm/tpm1-cmd.o:tpm1-cmd.c:(.text+0x0): first defined here
mips-linux-ld: drivers/char/tpm/tpm1-cmd.o: in function `tpm1_calc_ordinal_duration':
tpm1-cmd.c:(.text+0x2dc): multiple definition of `tpm1_calc_ordinal_duration'; drivers/char/tpm/tpm1-cmd.o:tpm1-cmd.c:(.text+0x2dc): first defined here
mips-linux-ld: drivers/char/tpm/tpm1-cmd.o: in function `tpm1_get_timeouts':
tpm1-cmd.c:(.text+0x36c): multiple definition of `tpm1_get_timeouts'; drivers/char/tpm/tpm1-cmd.o:tpm1-cmd.c:(.text+0x36c): first defined here
mips-linux-ld: drivers/char/tpm/tpm1-cmd.o: in function `tpm1_pcr_extend':
tpm1-cmd.c:(.text+0x7ac): multiple definition of `tpm1_pcr_extend'; drivers/char/tpm/tpm1-cmd.o:tpm1-cmd.c:(.text+0x7ac): first defined here
mips-linux-ld: drivers/char/tpm/tpm1-cmd.o: in function `tpm1_get_random':
tpm1-cmd.c:(.text+0x920): multiple definition of `tpm1_get_random'; drivers/char/tpm/tpm1-cmd.o:tpm1-cmd.c:(.text+0x920): first defined here
mips-linux-ld: drivers/char/tpm/tpm1-cmd.o: in function `tpm1_pcr_read':
tpm1-cmd.c:(.text+0xb50): multiple definition of `tpm1_pcr_read'; drivers/char/tpm/tpm1-cmd.o:tpm1-cmd.c:(.text+0xb50): first defined here
mips-linux-ld: drivers/char/tpm/tpm1-cmd.o: in function `tpm1_do_selftest':
tpm1-cmd.c:(.text+0xcac): multiple definition of `tpm1_do_selftest'; drivers/char/tpm/tpm1-cmd.o:tpm1-cmd.c:(.text+0xcac): first defined here
mips-linux-ld: drivers/char/tpm/tpm1-cmd.o: in function `tpm1_auto_startup':
tpm1-cmd.c:(.text+0xe54): multiple definition of `tpm1_auto_startup'; drivers/char/tpm/tpm1-cmd.o:tpm1-cmd.c:(.text+0xe54): first defined here
mips-linux-ld: drivers/char/tpm/tpm1-cmd.o: in function `tpm1_pm_suspend':
tpm1-cmd.c:(.text+0xea8): multiple definition of `tpm1_pm_suspend'; drivers/char/tpm/tpm1-cmd.o:tpm1-cmd.c:(.text+0xea8): first defined here
mips-linux-ld: drivers/char/tpm/tpm1-cmd.o: in function `tpm1_get_pcr_allocation':
tpm1-cmd.c:(.text+0x1018): multiple definition of `tpm1_get_pcr_allocation'; drivers/char/tpm/tpm1-cmd.o:tpm1-cmd.c:(.text+0x1018): first defined here
mips-linux-ld: drivers/char/tpm/tpm2-cmd.o: in function `tpm2_flush_context':
tpm2-cmd.c:(.text+0x170): multiple definition of `tpm2_flush_context'; drivers/char/tpm/tpm2-cmd.o:tpm2-cmd.c:(.text+0x170): first defined here
mips-linux-ld: drivers/char/tpm/tpm2-cmd.o: in function `tpm2_get_tpm_pt':
tpm2-cmd.c:(.text+0x27c): multiple definition of `tpm2_get_tpm_pt'; drivers/char/tpm/tpm2-cmd.o:tpm2-cmd.c:(.text+0x27c): first defined here
mips-linux-ld: drivers/char/tpm/tpm2-cmd.o: in function `tpm2_probe':
tpm2-cmd.c:(.text+0x460): multiple definition of `tpm2_probe'; drivers/char/tpm/tpm2-cmd.o:tpm2-cmd.c:(.text+0x460): first defined here
mips-linux-ld: drivers/char/tpm/tpm2-cmd.o: in function `tpm2_get_cc_attrs_tbl':
tpm2-cmd.c:(.text+0x644): multiple definition of `tpm2_get_cc_attrs_tbl'; drivers/char/tpm/tpm2-cmd.o:tpm2-cmd.c:(.text+0x644): first defined here
mips-linux-ld: drivers/char/tpm/tpm2-cmd.o: in function `tpm2_get_timeouts':
tpm2-cmd.c:(.text+0x968): multiple definition of `tpm2_get_timeouts'; drivers/char/tpm/tpm2-cmd.o:tpm2-cmd.c:(.text+0x968): first defined here
mips-linux-ld: drivers/char/tpm/tpm2-cmd.o: in function `tpm2_calc_ordinal_duration':
tpm2-cmd.c:(.text+0x9c8): multiple definition of `tpm2_calc_ordinal_duration'; drivers/char/tpm/tpm2-cmd.o:tpm2-cmd.c:(.text+0x9c8): first defined here
mips-linux-ld: drivers/char/tpm/tpm2-cmd.o: in function `tpm2_pcr_read':
tpm2-cmd.c:(.text+0xa5c): multiple definition of `tpm2_pcr_read'; drivers/char/tpm/tpm2-cmd.o:tpm2-cmd.c:(.text+0xa5c): first defined here
mips-linux-ld: drivers/char/tpm/tpm2-cmd.o: in function `tpm2_pcr_extend':
tpm2-cmd.c:(.text+0xd80): multiple definition of `tpm2_pcr_extend'; drivers/char/tpm/tpm2-cmd.o:tpm2-cmd.c:(.text+0xd80): first defined here
mips-linux-ld: drivers/char/tpm/tpm2-cmd.o: in function `tpm2_get_random':
tpm2-cmd.c:(.text+0x1110): multiple definition of `tpm2_get_random'; drivers/char/tpm/tpm2-cmd.o:tpm2-cmd.c:(.text+0x1110): first defined here
mips-linux-ld: drivers/char/tpm/tpm2-cmd.o: in function `tpm2_shutdown':
tpm2-cmd.c:(.text+0x1350): multiple definition of `tpm2_shutdown'; drivers/char/tpm/tpm2-cmd.o:tpm2-cmd.c:(.text+0x1350): first defined here
mips-linux-ld: drivers/char/tpm/tpm2-cmd.o: in function `tpm2_get_pcr_allocation':
tpm2-cmd.c:(.text+0x145c): multiple definition of `tpm2_get_pcr_allocation'; drivers/char/tpm/tpm2-cmd.o:tpm2-cmd.c:(.text+0x145c): first defined here
mips-linux-ld: drivers/char/tpm/tpm2-cmd.o: in function `tpm2_auto_startup':
tpm2-cmd.c:(.text+0x1890): multiple definition of `tpm2_auto_startup'; drivers/char/tpm/tpm2-cmd.o:tpm2-cmd.c:(.text+0x1890): first defined here
mips-linux-ld: drivers/char/tpm/tpm2-cmd.o: in function `tpm2_find_cc':
tpm2-cmd.c:(.text+0x1a34): multiple definition of `tpm2_find_cc'; drivers/char/tpm/tpm2-cmd.o:tpm2-cmd.c:(.text+0x1a34): first defined here
mips-linux-ld: drivers/char/tpm/tpmrm-dev.o:(.rodata+0x0): multiple definition of `tpmrm_fops'; drivers/char/tpm/tpmrm-dev.o:(.rodata+0x0): first defined here
mips-linux-ld: drivers/char/tpm/tpm2-space.o: in function `tpm2_init_space':
tpm2-space.c:(.text+0x3c8): multiple definition of `tpm2_init_space'; drivers/char/tpm/tpm2-space.o:tpm2-space.c:(.text+0x3c8): first defined here
mips-linux-ld: drivers/char/tpm/tpm2-space.o: in function `tpm2_del_space':
tpm2-space.c:(.text+0x464): multiple definition of `tpm2_del_space'; drivers/char/tpm/tpm2-space.o:tpm2-space.c:(.text+0x464): first defined here
mips-linux-ld: drivers/char/tpm/tpm2-space.o: in function `tpm2_flush_space':
tpm2-space.c:(.text+0x57c): multiple definition of `tpm2_flush_space'; drivers/char/tpm/tpm2-space.o:tpm2-space.c:(.text+0x57c): first defined here
mips-linux-ld: drivers/char/tpm/tpm2-space.o: in function `tpm2_prepare_space':
tpm2-space.c:(.text+0x6bc): multiple definition of `tpm2_prepare_space'; drivers/char/tpm/tpm2-space.o:tpm2-space.c:(.text+0x6bc): first defined here
mips-linux-ld: drivers/char/tpm/tpm2-space.o: in function `tpm2_commit_space':
tpm2-space.c:(.text+0xa7c): multiple definition of `tpm2_commit_space'; drivers/char/tpm/tpm2-space.o:tpm2-space.c:(.text+0xa7c): first defined here
mips-linux-ld: drivers/char/tpm/tpm-sysfs.o: in function `tpm_sysfs_add_device':
tpm-sysfs.c:(.text+0xa20): multiple definition of `tpm_sysfs_add_device'; drivers/char/tpm/tpm-sysfs.o:tpm-sysfs.c:(.text+0xa20): first defined here
mips-linux-ld: drivers/char/tpm/eventlog/common.o: in function `tpm_bios_log_teardown':
common.c:(.text+0xf4): multiple definition of `tpm_bios_log_teardown'; drivers/char/tpm/eventlog/common.o:common.c:(.text+0xf4): first defined here
mips-linux-ld: drivers/char/tpm/eventlog/common.o: in function `tpm_bios_log_setup':
common.c:(.text+0x1e0): multiple definition of `tpm_bios_log_setup'; drivers/char/tpm/eventlog/common.o:common.c:(.text+0x1e0): first defined here
mips-linux-ld: drivers/char/tpm/eventlog/tpm1.o:(.rodata+0x38): multiple definition of `tpm1_binary_b_measurements_seqops'; drivers/char/tpm/eventlog/tpm1.o:(.rodata+0x38): first defined here
mips-linux-ld: drivers/char/tpm/eventlog/tpm1.o:(.rodata+0x48): multiple definition of `tpm1_ascii_b_measurements_seqops'; drivers/char/tpm/eventlog/tpm1.o:(.rodata+0x48): first defined here
mips-linux-ld: drivers/char/tpm/eventlog/tpm2.o:(.rodata+0x18): multiple definition of `tpm2_binary_b_measurements_seqops'; drivers/char/tpm/eventlog/tpm2.o:(.rodata+0x18): first defined here
mips-linux-ld: drivers/char/tpm/eventlog/of.o: in function `tpm_read_log_of':
of.c:(.text+0x0): multiple definition of `tpm_read_log_of'; drivers/char/tpm/eventlog/of.o:of.c:(.text+0x0): first defined here
mips-linux-ld: drivers/char/tpm/tpm_tis_core.o: in function `tpm_tis_remove':
tpm_tis_core.c:(.text+0x1dc): multiple definition of `tpm_tis_remove'; drivers/char/tpm/tpm_tis_core.o:tpm_tis_core.c:(.text+0x1dc): first defined here
mips-linux-ld: drivers/char/tpm/tpm_tis_core.o: in function `tpm_tis_core_init':
tpm_tis_core.c:(.text+0x137c): multiple definition of `tpm_tis_core_init'; drivers/char/tpm/tpm_tis_core.o:tpm_tis_core.c:(.text+0x137c): first defined here
mips-linux-ld: drivers/char/tpm/st33zp24/st33zp24.o: in function `st33zp24_probe':
---
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 109/196] fs/xfs/xfs_xchgrange.c:136:41: error: incompatible pointer types passing 'struct xfs_trans to parameter of type 'struct xfs_trans dereference with COPYING CREDITS Documentation Kbuild Kconfig LICENSES MAINTAINERS Makefile README arch block certs crypto drivers fs include init ipc kernel lib mm net samples scripts security sound tools usr virt
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: 4d8f99e0a4197987823f6df1681efd02e87c1b2a [109/196] xfs: add a ->xchg_file_range handler
config: powerpc64-randconfig-r016-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 powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-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 reserve-rt-metadata-space
git checkout 4d8f99e0a4197987823f6df1681efd02e87c1b2a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64
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/powerpc/include/asm/io-defs.h:47:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:61:1: note: expanded from here
__do_insl
^
arch/powerpc/include/asm/io.h:558:56: note: expanded from macro '__do_insl'
#define __do_insl(p, b, n) readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from fs/xfs/xfs_xchgrange.c:6:
In file included from fs/xfs/xfs.h:22:
In file included from fs/xfs/xfs_linux.h:31:
In file included from include/linux/blkdev.h:14:
In file included from include/linux/pagemap.h:11:
In file included from include/linux/highmem.h:10:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:49:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:63:1: note: expanded from here
__do_outsb
^
arch/powerpc/include/asm/io.h:559:58: note: expanded from macro '__do_outsb'
#define __do_outsb(p, b, n) writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from fs/xfs/xfs_xchgrange.c:6:
In file included from fs/xfs/xfs.h:22:
In file included from fs/xfs/xfs_linux.h:31:
In file included from include/linux/blkdev.h:14:
In file included from include/linux/pagemap.h:11:
In file included from include/linux/highmem.h:10:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:51:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:65:1: note: expanded from here
__do_outsw
^
arch/powerpc/include/asm/io.h:560:58: note: expanded from macro '__do_outsw'
#define __do_outsw(p, b, n) writesw((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from fs/xfs/xfs_xchgrange.c:6:
In file included from fs/xfs/xfs.h:22:
In file included from fs/xfs/xfs_linux.h:31:
In file included from include/linux/blkdev.h:14:
In file included from include/linux/pagemap.h:11:
In file included from include/linux/highmem.h:10:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:53:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:67:1: note: expanded from here
__do_outsl
^
arch/powerpc/include/asm/io.h:561:58: note: expanded from macro '__do_outsl'
#define __do_outsl(p, b, n) writesl((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from fs/xfs/xfs_xchgrange.c:16:
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, -ninos, flags,
^~~
fs/xfs/xfs_quota.h:141: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:190:1: error: redefinition of 'xfs_quota_reserve_blkres'
xfs_quota_reserve_blkres(struct xfs_inode *ip, int64_t nblks,
^
fs/xfs/xfs_quota.h:154:19: note: previous definition is here
static inline int xfs_quota_reserve_blkres(struct xfs_inode *ip,
^
fs/xfs/xfs_quota.h:195: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:141:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
>> fs/xfs/xfs_xchgrange.c:136:41: error: incompatible pointer types passing 'struct xfs_trans **' to parameter of type 'struct xfs_trans *'; dereference with * [-Werror,-Wincompatible-pointer-types]
error = xfs_trans_reserve_quota_nblks(tpp, req->ip1,
^~~
*
fs/xfs/xfs_quota.h:141:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
fs/xfs/xfs_xchgrange.c:146:41: error: incompatible pointer types passing 'struct xfs_trans **' to parameter of type 'struct xfs_trans *'; dereference with * [-Werror,-Wincompatible-pointer-types]
error = xfs_trans_reserve_quota_nblks(tpp, req->ip2,
^~~
*
fs/xfs/xfs_quota.h:141:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
fs/xfs/xfs_xchgrange.c:162:40: error: incompatible pointer types passing 'struct xfs_trans **' to parameter of type 'struct xfs_trans *'; dereference with * [-Werror,-Wincompatible-pointer-types]
error = xfs_trans_reserve_quota_nblks(tpp, req->ip1, ip1_mapped, 0,
^~~
*
fs/xfs/xfs_quota.h:141:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
fs/xfs/xfs_xchgrange.c:167:39: error: incompatible pointer types passing 'struct xfs_trans **' to parameter of type 'struct xfs_trans *'; dereference with * [-Werror,-Wincompatible-pointer-types]
return xfs_trans_reserve_quota_nblks(tpp, req->ip2, ip2_mapped, 0,
^~~
*
fs/xfs/xfs_quota.h:141:67: note: passing argument to parameter 'tp' here
static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
^
6 warnings and 7 errors generated.
vim +136 fs/xfs/xfs_xchgrange.c
117
118 /* Make a particular type of quota reservation. */
119 STATIC int
120 xfs_xchg_range_reserve_quota_blocks(
121 struct xfs_trans **tpp,
122 const struct xfs_swapext_req *req,
123 xfs_filblks_t ip1_mapped,
124 xfs_filblks_t ip2_mapped,
125 unsigned int qmopts,
126 bool *quota_retry)
127 {
128 int error;
129
130 /*
131 * For each file, compute the net gain in the number of blocks that
132 * will be mapped into that file and reserve that much quota. The
133 * quota counts must be able to absorb at least that much space.
134 */
135 if (ip2_mapped > ip1_mapped) {
> 136 error = xfs_trans_reserve_quota_nblks(tpp, req->ip1,
137 ip2_mapped - ip1_mapped, 0,
138 qmopts, quota_retry);
139 if (!(*tpp) && req->ip1 != req->ip2)
140 xfs_iunlock(req->ip2, XFS_ILOCK_EXCL);
141 if (error || *quota_retry)
142 return error;
143 }
144
145 if (ip1_mapped > ip2_mapped) {
146 error = xfs_trans_reserve_quota_nblks(tpp, req->ip2,
147 ip1_mapped - ip2_mapped, 0,
148 qmopts, quota_retry);
149 if (!(*tpp) && req->ip1 != req->ip2)
150 xfs_iunlock(req->ip1, XFS_ILOCK_EXCL);
151 if (error || *quota_retry)
152 return error;
153 }
154
155 /*
156 * For each file, forcibly reserve the gross gain in mapped blocks so
157 * that we don't trip over any quota block reservation assertions.
158 * We must reserve the gross gain because the quota code subtracts from
159 * bcount the number of blocks that we unmap; it does not add that
160 * quantity back to the quota block reservation.
161 */
162 error = xfs_trans_reserve_quota_nblks(tpp, req->ip1, ip1_mapped, 0,
163 XFS_QMOPT_FORCE_RES | qmopts, NULL);
164 if (error)
165 return error;
166
167 return xfs_trans_reserve_quota_nblks(tpp, req->ip2, ip2_mapped, 0,
168 XFS_QMOPT_FORCE_RES | qmopts, NULL);
169 }
170
---
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 5/56] fs/xfs/xfs_quota.h:171:1: error: redefinition of 'xfs_quota_reserve_blkres'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git scrub-rtsummary
head: 30ed2e375306b1c5c8c622635a87595eec25a2d0
commit: 82cd493e2396b5c5269e297063b9851edd0e485b [5/56] xfs: create convenience wrappers for quota reservations
config: c6x-randconfig-r031-20210115 (attached as .config)
compiler: c6x-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/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 82cd493e2396b5c5269e297063b9851edd0e485b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=c6x
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:171:1: error: redefinition of 'xfs_quota_reserve_blkres'
171 | xfs_quota_reserve_blkres(struct xfs_inode *ip, int64_t nblks,
| ^~~~~~~~~~~~~~~~~~~~~~~~
fs/xfs/xfs_quota.h:139:19: note: previous definition of 'xfs_quota_reserve_blkres' was here
139 | static inline int xfs_quota_reserve_blkres(struct xfs_inode *ip,
| ^~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from fs/xfs/libxfs/xfs_bmap.c:27:
>> fs/xfs/xfs_quota.h:171:1: error: redefinition of 'xfs_quota_reserve_blkres'
171 | xfs_quota_reserve_blkres(struct xfs_inode *ip, int64_t nblks,
| ^~~~~~~~~~~~~~~~~~~~~~~~
fs/xfs/xfs_quota.h:139:19: note: previous definition of 'xfs_quota_reserve_blkres' was here
139 | static inline int xfs_quota_reserve_blkres(struct xfs_inode *ip,
| ^~~~~~~~~~~~~~~~~~~~~~~~
fs/xfs/libxfs/xfs_bmap.c: In function 'xfs_bmap_del_extent_real':
fs/xfs/libxfs/xfs_bmap.c:5239:58: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
5239 | xfs_trans_mod_dquot_byino(tp, ip, qfield, (long)-nblks);
| ^
--
In file included from fs/xfs/xfs_ioctl.c:23:
>> fs/xfs/xfs_quota.h:171:1: error: redefinition of 'xfs_quota_reserve_blkres'
171 | xfs_quota_reserve_blkres(struct xfs_inode *ip, int64_t nblks,
| ^~~~~~~~~~~~~~~~~~~~~~~~
fs/xfs/xfs_quota.h:139:19: note: previous definition of 'xfs_quota_reserve_blkres' was here
139 | static inline int xfs_quota_reserve_blkres(struct xfs_inode *ip,
| ^~~~~~~~~~~~~~~~~~~~~~~~
fs/xfs/xfs_ioctl.c: In function 'xfs_ioctl_setattr':
fs/xfs/xfs_ioctl.c:1438:20: warning: variable 'olddquot' set but not used [-Wunused-but-set-variable]
1438 | struct xfs_dquot *olddquot = NULL;
| ^~~~~~~~
--
In file included from fs/xfs/xfs_iops.c:15:
>> fs/xfs/xfs_quota.h:171:1: error: redefinition of 'xfs_quota_reserve_blkres'
171 | xfs_quota_reserve_blkres(struct xfs_inode *ip, int64_t nblks,
| ^~~~~~~~~~~~~~~~~~~~~~~~
fs/xfs/xfs_quota.h:139:19: note: previous definition of 'xfs_quota_reserve_blkres' was here
139 | static inline int xfs_quota_reserve_blkres(struct xfs_inode *ip,
| ^~~~~~~~~~~~~~~~~~~~~~~~
fs/xfs/xfs_iops.c: In function 'xfs_setattr_nonsize':
fs/xfs/xfs_iops.c:662:39: warning: variable 'olddquot2' set but not used [-Wunused-but-set-variable]
662 | struct xfs_dquot *olddquot1 = NULL, *olddquot2 = NULL;
| ^~~~~~~~~
fs/xfs/xfs_iops.c:662:20: warning: variable 'olddquot1' set but not used [-Wunused-but-set-variable]
662 | struct xfs_dquot *olddquot1 = NULL, *olddquot2 = NULL;
| ^~~~~~~~~
--
In file included from fs/xfs/xfs_super.c:31:
>> fs/xfs/xfs_quota.h:171:1: error: redefinition of 'xfs_quota_reserve_blkres'
171 | xfs_quota_reserve_blkres(struct xfs_inode *ip, int64_t nblks,
| ^~~~~~~~~~~~~~~~~~~~~~~~
fs/xfs/xfs_quota.h:139:19: note: previous definition of 'xfs_quota_reserve_blkres' was here
139 | static inline int xfs_quota_reserve_blkres(struct xfs_inode *ip,
| ^~~~~~~~~~~~~~~~~~~~~~~~
fs/xfs/xfs_super.c: In function 'xfs_fs_statfs':
fs/xfs/xfs_super.c:835:28: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
835 | xfs_qm_statvfs(ip, statp);
| ^
vim +/xfs_quota_reserve_blkres +171 fs/xfs/xfs_quota.h
165
166 #define xfs_trans_reserve_quota(tp, mp, ud, gd, pd, nb, ni, f) \
167 xfs_trans_reserve_quota_bydquots(tp, mp, ud, gd, pd, nb, ni, \
168 f | XFS_QMOPT_RES_REGBLKS)
169
170 static inline int
> 171 xfs_quota_reserve_blkres(struct xfs_inode *ip, int64_t nblks,
172 unsigned int flags)
173 {
174 return xfs_trans_reserve_quota_nblks(NULL, ip, nblks, 0, flags);
175 }
176
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
[jfern:coresched 14/24] kernel/sched/fair.c:10751:6: warning: no previous prototype for 'task_vruntime_update'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jfern/linux.git coresched
head: 4dbdf2010d3452bbc7f7c64a71f5ffdf07282334
commit: d462fdee392d1ff2498aa88b5d611066dcb0e35c [14/24] sched: Improve snapshotting of min_vruntime for CGroups
config: i386-randconfig-r026-20210115 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/jfern/linux.git/commit/?i...
git remote add jfern https://git.kernel.org/pub/scm/linux/kernel/git/jfern/linux.git
git fetch --no-tags jfern coresched
git checkout d462fdee392d1ff2498aa88b5d611066dcb0e35c
# 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 >>):
kernel/sched/fair.c: In function 'se_fi_update':
kernel/sched/fair.c:10736:12: warning: unused variable 'new' [-Wunused-variable]
10736 | long old, new;
| ^~~
kernel/sched/fair.c:10736:7: warning: unused variable 'old' [-Wunused-variable]
10736 | long old, new;
| ^~~
kernel/sched/fair.c:10735:7: warning: unused variable 'root' [-Wunused-variable]
10735 | bool root = true;
| ^~~~
kernel/sched/fair.c: At top level:
>> kernel/sched/fair.c:10751:6: warning: no previous prototype for 'task_vruntime_update' [-Wmissing-prototypes]
10751 | void task_vruntime_update(struct rq *rq, struct task_struct *p, bool in_fi)
| ^~~~~~~~~~~~~~~~~~~~
vim +/task_vruntime_update +10751 kernel/sched/fair.c
10750
10751 void task_vruntime_update(struct rq *rq, struct task_struct *p, bool in_fi)
10752 {
10753 struct sched_entity *se = &p->se;
10754
10755 if (p->sched_class != &fair_sched_class)
10756 return;
10757
10758 se_fi_update(se, rq->core->core_forceidle_seq, in_fi);
10759 }
10760
---
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] [media] s5p-mfc: remove definition of DEBUG
by kernel test robot
Hi,
I love your patch! Perhaps something to improve:
[auto build test WARNING on linuxtv-media/master]
[also build test WARNING on v5.11-rc3 next-20210115]
[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/trix-redhat-com/s5p-mfc-remove-d...
base: git://linuxtv.org/media_tree.git master
config: sparc64-randconfig-p001-20210115 (attached as .config)
compiler: sparc64-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/1da2e97c1a24861ee70902480c52eb395...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review trix-redhat-com/s5p-mfc-remove-definition-of-DEBUG/20210116-075755
git checkout 1da2e97c1a24861ee70902480c52eb3954e8c348
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc64
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 >>):
drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c: In function 's5p_mfc_init_hw':
>> drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c:207:15: warning: variable 'ver' set but not used [-Wunused-but-set-variable]
207 | unsigned int ver;
| ^~~
--
drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c: In function 's5p_mfc_set_dec_frame_buffer_v6':
>> drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c:515:15: warning: variable 'frame_size_ch' set but not used [-Wunused-but-set-variable]
515 | unsigned int frame_size_ch, frame_size_mv;
| ^~~~~~~~~~~~~
>> drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c:514:15: warning: variable 'frame_size' set but not used [-Wunused-but-set-variable]
514 | unsigned int frame_size, i;
| ^~~~~~~~~~
drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c: In function 's5p_mfc_get_enc_frame_buffer_v6':
>> drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c:644:34: warning: variable 'enc_recon_c_addr' set but not used [-Wunused-but-set-variable]
644 | unsigned long enc_recon_y_addr, enc_recon_c_addr;
| ^~~~~~~~~~~~~~~~
>> drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c:644:16: warning: variable 'enc_recon_y_addr' set but not used [-Wunused-but-set-variable]
644 | unsigned long enc_recon_y_addr, enc_recon_c_addr;
| ^~~~~~~~~~~~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for COMPAT_BINFMT_ELF
Depends on COMPAT && BINFMT_ELF
Selected by
- COMPAT && SPARC64
vim +/ver +207 drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 203
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 204 /* Initialize hardware */
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 205 int s5p_mfc_init_hw(struct s5p_mfc_dev *dev)
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 206 {
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 @207 unsigned int ver;
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 208 int ret;
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 209
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 210 mfc_debug_enter();
ba5d4563c2b8396c drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c Marek Szyprowski 2017-02-08 211 if (!dev->fw_buf.virt) {
2e731e443fcc8e45 drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2013-01-03 212 mfc_err("Firmware memory is not allocated.\n");
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 213 return -EINVAL;
2e731e443fcc8e45 drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2013-01-03 214 }
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 215
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 216 /* 0. MFC reset */
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 217 mfc_debug(2, "MFC reset..\n");
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 218 s5p_mfc_clock_on();
d7dce6a3cdcfa957 drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c Kiran AVND 2014-10-21 219 dev->risc_on = 0;
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 220 ret = s5p_mfc_reset(dev);
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 221 if (ret) {
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 222 mfc_err("Failed to reset MFC - timeout\n");
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 223 return ret;
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 224 }
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 225 mfc_debug(2, "Done MFC reset..\n");
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 226 /* 1. Set DRAM base Addr */
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 227 s5p_mfc_init_memctrl(dev);
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 228 /* 2. Initialize registers of channel I/F */
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 229 s5p_mfc_clear_cmds(dev);
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 230 /* 3. Release reset signal to the RISC */
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 231 s5p_mfc_clean_dev_int_flags(dev);
d7dce6a3cdcfa957 drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c Kiran AVND 2014-10-21 232 if (IS_MFCV6_PLUS(dev)) {
d7dce6a3cdcfa957 drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c Kiran AVND 2014-10-21 233 dev->risc_on = 1;
f96f3cfa0bb8f777 drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c Jeongtae Park 2012-10-03 234 mfc_write(dev, 0x1, S5P_FIMV_RISC_ON_V6);
d7dce6a3cdcfa957 drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c Kiran AVND 2014-10-21 235 }
f96f3cfa0bb8f777 drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c Jeongtae Park 2012-10-03 236 else
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 237 mfc_write(dev, 0x3ff, S5P_FIMV_SW_RESET);
b1394dc151cba4c5 drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c Smitha T Murthy 2018-02-02 238
b1394dc151cba4c5 drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c Smitha T Murthy 2018-02-02 239 if (IS_MFCV10(dev))
b1394dc151cba4c5 drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c Smitha T Murthy 2018-02-02 240 mfc_write(dev, 0x0, S5P_FIMV_MFC_CLOCK_OFF_V10);
b1394dc151cba4c5 drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c Smitha T Murthy 2018-02-02 241
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 242 mfc_debug(2, "Will now wait for completion of firmware transfer\n");
43a1ea1f90382a6a drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c Arun Kumar K 2012-10-03 243 if (s5p_mfc_wait_for_done_dev(dev, S5P_MFC_R2H_CMD_FW_STATUS_RET)) {
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 244 mfc_err("Failed to load firmware\n");
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 245 s5p_mfc_reset(dev);
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 246 s5p_mfc_clock_off();
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 247 return -EIO;
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 248 }
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 249 s5p_mfc_clean_dev_int_flags(dev);
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 250 /* 4. Initialize firmware */
43a1ea1f90382a6a drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c Arun Kumar K 2012-10-03 251 ret = s5p_mfc_hw_call(dev->mfc_cmds, sys_init_cmd, dev);
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 252 if (ret) {
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 253 mfc_err("Failed to send command to MFC - timeout\n");
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 254 s5p_mfc_reset(dev);
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 255 s5p_mfc_clock_off();
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 256 return ret;
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 257 }
e47ccb1de5db8723 drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c Zhaowei Yuan 2014-08-13 258 mfc_debug(2, "Ok, now will wait for completion of hardware init\n");
43a1ea1f90382a6a drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c Arun Kumar K 2012-10-03 259 if (s5p_mfc_wait_for_done_dev(dev, S5P_MFC_R2H_CMD_SYS_INIT_RET)) {
e47ccb1de5db8723 drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c Zhaowei Yuan 2014-08-13 260 mfc_err("Failed to init hardware\n");
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 261 s5p_mfc_reset(dev);
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 262 s5p_mfc_clock_off();
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 263 return -EIO;
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 264 }
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 265 dev->int_cond = 0;
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 266 if (dev->int_err != 0 || dev->int_type !=
43a1ea1f90382a6a drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c Arun Kumar K 2012-10-03 267 S5P_MFC_R2H_CMD_SYS_INIT_RET) {
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 268 /* Failure. */
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 269 mfc_err("Failed to init firmware - error: %d int: %d\n",
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 270 dev->int_err, dev->int_type);
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 271 s5p_mfc_reset(dev);
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 272 s5p_mfc_clock_off();
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 273 return -EIO;
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 274 }
722b979e555d002c drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c Arun Kumar K 2013-07-09 275 if (IS_MFCV6_PLUS(dev))
f96f3cfa0bb8f777 drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c Jeongtae Park 2012-10-03 276 ver = mfc_read(dev, S5P_FIMV_FW_VERSION_V6);
f96f3cfa0bb8f777 drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c Jeongtae Park 2012-10-03 277 else
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 278 ver = mfc_read(dev, S5P_FIMV_FW_VERSION);
f96f3cfa0bb8f777 drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c Jeongtae Park 2012-10-03 279
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 280 mfc_debug(2, "MFC F/W version : %02xyy, %02xmm, %02xdd\n",
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 281 (ver >> 16) & 0xFF, (ver >> 8) & 0xFF, ver & 0xFF);
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 282 s5p_mfc_clock_off();
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 283 mfc_debug_leave();
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 284 return 0;
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 285 }
af935746781088f2 drivers/media/video/s5p-mfc/s5p_mfc_ctrl.c Kamil Debski 2011-06-21 286
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months
[tip:x86/pti 4/5] arch/x86/mm/tlb.c:319:6: warning: variable 'cpu' set but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/pti
head: 767d46ab566dd489733666efe48732d523c8c332
commit: b6724f118d44606fddde391ba7527526b3cad211 [4/5] prctl: Hook L1D flushing in via prctl
config: i386-randconfig-r026-20210115 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=b6...
git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
git fetch --no-tags tip x86/pti
git checkout b6724f118d44606fddde391ba7527526b3cad211
# 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 >>):
arch/x86/mm/tlb.c: In function 'enable_l1d_flush_for_task':
>> arch/x86/mm/tlb.c:319:6: warning: variable 'cpu' set but not used [-Wunused-but-set-variable]
319 | int cpu, ret = 0, i;
| ^~~
vim +/cpu +319 arch/x86/mm/tlb.c
316
317 int enable_l1d_flush_for_task(struct task_struct *tsk)
318 {
> 319 int cpu, ret = 0, i;
320
321 /*
322 * Do not enable L1D_FLUSH_OUT if
323 * b. The CPU is not affected by the L1TF bug
324 * c. The CPU does not have L1D FLUSH feature support
325 * c. The task's affinity is on cores with SMT on.
326 */
327
328 if (!boot_cpu_has_bug(X86_BUG_L1TF) ||
329 !static_cpu_has(X86_FEATURE_FLUSH_L1D))
330 return -EINVAL;
331
332 cpu = get_cpu();
333
334 for_each_cpu(i, &tsk->cpus_mask) {
335 if (cpu_data(i).smt_active == true) {
336 put_cpu();
337 return -EINVAL;
338 }
339 }
340
341 set_ti_thread_flag(&tsk->thread_info, TIF_SPEC_L1D_FLUSH);
342 put_cpu();
343 return ret;
344 }
345
---
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 6/7] arch/arm64/kvm/sys_regs.c:1063:38: error: 'ID_DFR0_PERFMON_8_4' 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: 6e73e2ebd0fe89e8ea4c97d37809cf4b05ca7cbe [6/7] KVM: arm64: Upgrade PMU support to ARMv8.4
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 6e73e2ebd0fe89e8ea4c97d37809cf4b05ca7cbe
# 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/sys_regs.c: In function 'read_id_reg':
>> arch/arm64/kvm/sys_regs.c:1063:38: error: 'ID_DFR0_PERFMON_8_4' undeclared (first use in this function); did you mean 'ID_DFR0_PERFMON_8_1'?
1063 | kvm_vcpu_has_pmu(vcpu) ? ID_DFR0_PERFMON_8_4 : 0);
| ^~~~~~~~~~~~~~~~~~~
| ID_DFR0_PERFMON_8_1
arch/arm64/kvm/sys_regs.c:1063:38: note: each undeclared identifier is reported only once for each function it appears in
vim +1063 arch/arm64/kvm/sys_regs.c
1021
1022 /* Read a sanitised cpufeature ID register by sys_reg_desc */
1023 static u64 read_id_reg(const struct kvm_vcpu *vcpu,
1024 struct sys_reg_desc const *r, bool raz)
1025 {
1026 u32 id = sys_reg((u32)r->Op0, (u32)r->Op1,
1027 (u32)r->CRn, (u32)r->CRm, (u32)r->Op2);
1028 u64 val = raz ? 0 : read_sanitised_ftr_reg(id);
1029
1030 switch (id) {
1031 case SYS_ID_AA64PFR0_EL1:
1032 if (!vcpu_has_sve(vcpu))
1033 val &= ~FEATURE(ID_AA64PFR0_SVE);
1034 val &= ~FEATURE(ID_AA64PFR0_AMU);
1035 val &= ~FEATURE(ID_AA64PFR0_CSV2);
1036 val |= FIELD_PREP(FEATURE(ID_AA64PFR0_CSV2), (u64)vcpu->kvm->arch.pfr0_csv2);
1037 val &= ~FEATURE(ID_AA64PFR0_CSV3);
1038 val |= FIELD_PREP(FEATURE(ID_AA64PFR0_CSV3), (u64)vcpu->kvm->arch.pfr0_csv3);
1039 break;
1040 case SYS_ID_AA64PFR1_EL1:
1041 val &= ~FEATURE(ID_AA64PFR1_MTE);
1042 break;
1043 case SYS_ID_AA64ISAR1_EL1:
1044 if (!vcpu_has_ptrauth(vcpu))
1045 val &= ~(FEATURE(ID_AA64ISAR1_APA) |
1046 FEATURE(ID_AA64ISAR1_API) |
1047 FEATURE(ID_AA64ISAR1_GPA) |
1048 FEATURE(ID_AA64ISAR1_GPI));
1049 break;
1050 case SYS_ID_AA64DFR0_EL1:
1051 /* Limit debug to ARMv8.0 */
1052 val &= ~FEATURE(ID_AA64DFR0_DEBUGVER);
1053 val |= FIELD_PREP(FEATURE(ID_AA64DFR0_DEBUGVER), 6);
1054 /* Limit guests to PMUv3 for ARMv8.4 */
1055 val = cpuid_feature_cap_perfmon_field(val,
1056 ID_AA64DFR0_PMUVER_SHIFT,
1057 kvm_vcpu_has_pmu(vcpu) ? ID_AA64DFR0_PMUVER_8_4 : 0);
1058 break;
1059 case SYS_ID_DFR0_EL1:
1060 /* Limit guests to PMUv3 for ARMv8.4 */
1061 val = cpuid_feature_cap_perfmon_field(val,
1062 ID_DFR0_PERFMON_SHIFT,
> 1063 kvm_vcpu_has_pmu(vcpu) ? ID_DFR0_PERFMON_8_4 : 0);
1064 break;
1065 }
1066
1067 return val;
1068 }
1069
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 8 months