[jlayton:ceph-sparse-read 13/13] net/ceph/messenger_v2.c:3642:56: warning: variable 'recved' is uninitialized when used here
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git ceph-sparse-read
head: c0521644c264a8578ab61182209f303610af16e7
commit: c0521644c264a8578ab61182209f303610af16e7 [13/13] libceph: add revoke support for sparse data
config: i386-randconfig-a003-20220214 (https://download.01.org/0day-ci/archive/20220215/202202151220.h4Fu215q-lk...)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 37f422f4ac31c8b8041c6b62065263314282dab6)
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/jlayton/linux.git/commit/...
git remote add jlayton https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git
git fetch --no-tags jlayton ceph-sparse-read
git checkout c0521644c264a8578ab61182209f303610af16e7
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash net/ceph/
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/ceph/messenger_v2.c:3642:56: warning: variable 'recved' is uninitialized when used here [-Wuninitialized]
dout("%s con %p recved %d resid %d\n", __func__, con, recved, resid);
^~~~~~
include/linux/ceph/ceph_debug.h:35:45: note: expanded from macro 'dout'
# define dout(fmt, ...) pr_debug(" " fmt, ##__VA_ARGS__)
^~~~~~~~~~~
include/linux/printk.h:570:26: note: expanded from macro 'pr_debug'
dynamic_pr_debug(fmt, ##__VA_ARGS__)
^~~~~~~~~~~
include/linux/dynamic_debug.h:163:22: note: expanded from macro 'dynamic_pr_debug'
pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~
include/linux/dynamic_debug.h:152:56: note: expanded from macro '_dynamic_func_call'
__dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
^~~~~~~~~~~
include/linux/dynamic_debug.h:134:15: note: expanded from macro '__dynamic_func_call'
func(&id, ##__VA_ARGS__); \
^~~~~~~~~~~
net/ceph/messenger_v2.c:3635:12: note: initialize the variable 'recved' to silence this warning
int recved, resid; /* current piece of data */
^
= 0
1 warning generated.
vim +/recved +3642 net/ceph/messenger_v2.c
3632
3633 static void revoke_at_prepare_sparse_data(struct ceph_connection *con)
3634 {
3635 int recved, resid; /* current piece of data */
3636 int remaining;
3637
3638 WARN_ON(con_secure(con));
3639 WARN_ON(!data_len(con->in_msg));
3640 WARN_ON(!iov_iter_is_bvec(&con->v2.in_iter));
3641 resid = iov_iter_count(&con->v2.in_iter);
> 3642 dout("%s con %p recved %d resid %d\n", __func__, con, recved, resid);
3643
3644 remaining = CEPH_EPILOGUE_PLAIN_LEN + con->v2.data_len_remain;
3645 con->v2.in_iter.count -= resid;
3646 set_in_skip(con, resid + remaining);
3647 con->v2.in_state = IN_S_FINISH_SKIP;
3648 }
3649
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
Re: [PATCH net] ipv6: per-netns exclusive flowlabel checks
by kernel test robot
Hi Willem,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on net/master]
url: https://github.com/0day-ci/linux/commits/Willem-de-Bruijn/ipv6-per-netns-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git 86006f996346e8a5a1ea80637ec949ceeea4ecbc
config: hexagon-randconfig-r036-20220214 (https://download.01.org/0day-ci/archive/20220215/202202150837.bGbeRjWx-lk...)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project ea071884b0cc7210b3cc5fe858f0e892a779a23b)
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/5d3936d3544b4cdd6d63c896d158d4975...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Willem-de-Bruijn/ipv6-per-netns-exclusive-flowlabel-checks/20220215-042330
git checkout 5d3936d3544b4cdd6d63c896d158d4975a4822c3
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash net/ceph/ net/sched/
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 >>):
compiletime_assert_rwonce_type(x); \
^
include/asm-generic/rwonce.h:36:35: note: expanded from macro 'compiletime_assert_rwonce_type'
compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
^
include/linux/compiler_types.h:314:10: note: expanded from macro '__native_word'
sizeof(t) == sizeof(int) || sizeof(t) == sizeof(long))
^
include/linux/compiler_types.h:346:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~
include/linux/compiler_types.h:334:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~
include/linux/compiler_types.h:326:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
In file included from net/sched/cls_flow.c:24:
In file included from include/net/ip.h:30:
In file included from include/net/route.h:24:
In file included from include/net/inetpeer.h:16:
include/net/ipv6.h:403:30: error: no member named 'ipv6' in 'struct net'
READ_ONCE(sock_net(sk)->ipv6.flowlabel_has_excl))
~~~~~~~~~~~~ ^
include/asm-generic/rwonce.h:49:33: note: expanded from macro 'READ_ONCE'
compiletime_assert_rwonce_type(x); \
^
include/asm-generic/rwonce.h:36:35: note: expanded from macro 'compiletime_assert_rwonce_type'
compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
^
include/linux/compiler_types.h:314:38: note: expanded from macro '__native_word'
sizeof(t) == sizeof(int) || sizeof(t) == sizeof(long))
^
include/linux/compiler_types.h:346:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~
include/linux/compiler_types.h:334:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~
include/linux/compiler_types.h:326:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
In file included from net/sched/cls_flow.c:24:
In file included from include/net/ip.h:30:
In file included from include/net/route.h:24:
In file included from include/net/inetpeer.h:16:
include/net/ipv6.h:403:30: error: no member named 'ipv6' in 'struct net'
READ_ONCE(sock_net(sk)->ipv6.flowlabel_has_excl))
~~~~~~~~~~~~ ^
include/asm-generic/rwonce.h:49:33: note: expanded from macro 'READ_ONCE'
compiletime_assert_rwonce_type(x); \
^
include/asm-generic/rwonce.h:36:48: note: expanded from macro 'compiletime_assert_rwonce_type'
compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
^
include/linux/compiler_types.h:346:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~
include/linux/compiler_types.h:334:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~
include/linux/compiler_types.h:326:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
In file included from net/sched/cls_flow.c:24:
In file included from include/net/ip.h:30:
In file included from include/net/route.h:24:
In file included from include/net/inetpeer.h:16:
include/net/ipv6.h:403:30: error: no member named 'ipv6' in 'struct net'
READ_ONCE(sock_net(sk)->ipv6.flowlabel_has_excl))
~~~~~~~~~~~~ ^
include/asm-generic/rwonce.h:50:14: note: expanded from macro 'READ_ONCE'
__READ_ONCE(x); \
^
include/asm-generic/rwonce.h:44:65: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
include/linux/compiler_types.h:302:13: note: expanded from macro '__unqual_scalar_typeof'
_Generic((x), \
^
In file included from net/sched/cls_flow.c:24:
In file included from include/net/ip.h:30:
In file included from include/net/route.h:24:
In file included from include/net/inetpeer.h:16:
include/net/ipv6.h:403:30: error: no member named 'ipv6' in 'struct net'
READ_ONCE(sock_net(sk)->ipv6.flowlabel_has_excl))
~~~~~~~~~~~~ ^
include/asm-generic/rwonce.h:50:14: note: expanded from macro 'READ_ONCE'
__READ_ONCE(x); \
^
include/asm-generic/rwonce.h:44:72: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
In file included from net/sched/cls_flow.c:24:
In file included from include/net/ip.h:30:
In file included from include/net/route.h:24:
In file included from include/net/inetpeer.h:16:
include/net/ipv6.h:402:60: error: invalid operands to binary expression ('long' and 'void')
if (static_branch_unlikely(&ipv6_flowlabel_exclusive.key) &&
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
>> net/sched/cls_flow.c:63:52: warning: shift count >= width of type [-Wshift-count-overflow]
return (a & 0xFFFFFFFF) ^ (BITS_PER_LONG > 32 ? a >> 32 : 0);
^ ~~
1 warning and 8 errors generated.
vim +63 net/sched/cls_flow.c
e5dfb815181fcb Patrick McHardy 2008-01-31 58
e5dfb815181fcb Patrick McHardy 2008-01-31 59 static inline u32 addr_fold(void *addr)
e5dfb815181fcb Patrick McHardy 2008-01-31 60 {
e5dfb815181fcb Patrick McHardy 2008-01-31 61 unsigned long a = (unsigned long)addr;
e5dfb815181fcb Patrick McHardy 2008-01-31 62
e5dfb815181fcb Patrick McHardy 2008-01-31 @63 return (a & 0xFFFFFFFF) ^ (BITS_PER_LONG > 32 ? a >> 32 : 0);
e5dfb815181fcb Patrick McHardy 2008-01-31 64 }
e5dfb815181fcb Patrick McHardy 2008-01-31 65
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
Re: [PATCH] ata: add/use ata_taskfile::{error|status} fields
by kernel test robot
Hi Sergey,
I love your patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.17-rc4 next-20220214]
[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/Sergey-Shtylyov/ata-add-use-ata_...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git d567f5db412ed52de0b3b3efca4a451263de6108
config: ia64-defconfig (https://download.01.org/0day-ci/archive/20220215/202202151114.obEATTFy-lk...)
compiler: ia64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/5d89e7cd8ab42fd2cb6f59a7922784b0c...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Sergey-Shtylyov/ata-add-use-ata_taskfile-error-status-fields/20220215-044836
git checkout 5d89e7cd8ab42fd2cb6f59a7922784b0cce835bf
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/ata/sata_vsc.c: In function 'vsc_sata_tf_read':
>> drivers/ata/sata_vsc.c:203:35: error: 'feature' undeclared (first use in this function)
203 | tf->hob_feature = feature >> 8;
| ^~~~~~~
drivers/ata/sata_vsc.c:203:35: note: each undeclared identifier is reported only once for each function it appears in
vim +/feature +203 drivers/ata/sata_vsc.c
^1da177e4c3f415 drivers/scsi/sata_vsc.c Linus Torvalds 2005-04-16 181
^1da177e4c3f415 drivers/scsi/sata_vsc.c Linus Torvalds 2005-04-16 182
^1da177e4c3f415 drivers/scsi/sata_vsc.c Linus Torvalds 2005-04-16 183 static void vsc_sata_tf_read(struct ata_port *ap, struct ata_taskfile *tf)
^1da177e4c3f415 drivers/scsi/sata_vsc.c Linus Torvalds 2005-04-16 184 {
^1da177e4c3f415 drivers/scsi/sata_vsc.c Linus Torvalds 2005-04-16 185 struct ata_ioports *ioaddr = &ap->ioaddr;
5d89e7cd8ab42fd drivers/ata/sata_vsc.c Sergey Shtylyov 2022-02-14 186 u16 nsect, lbal, lbam, lbah, error;
^1da177e4c3f415 drivers/scsi/sata_vsc.c Linus Torvalds 2005-04-16 187
5d89e7cd8ab42fd drivers/ata/sata_vsc.c Sergey Shtylyov 2022-02-14 188 tf->status = ata_sff_check_status(ap);
0d5ff566779f894 drivers/ata/sata_vsc.c Tejun Heo 2007-02-01 189 tf->device = readw(ioaddr->device_addr);
5d89e7cd8ab42fd drivers/ata/sata_vsc.c Sergey Shtylyov 2022-02-14 190 error = readw(ioaddr->error_addr);
0d5ff566779f894 drivers/ata/sata_vsc.c Tejun Heo 2007-02-01 191 nsect = readw(ioaddr->nsect_addr);
0d5ff566779f894 drivers/ata/sata_vsc.c Tejun Heo 2007-02-01 192 lbal = readw(ioaddr->lbal_addr);
0d5ff566779f894 drivers/ata/sata_vsc.c Tejun Heo 2007-02-01 193 lbam = readw(ioaddr->lbam_addr);
0d5ff566779f894 drivers/ata/sata_vsc.c Tejun Heo 2007-02-01 194 lbah = readw(ioaddr->lbah_addr);
ac19bff25b6834d drivers/scsi/sata_vsc.c Jeff Garzik 2005-10-29 195
5d89e7cd8ab42fd drivers/ata/sata_vsc.c Sergey Shtylyov 2022-02-14 196 tf->error = error;
ac19bff25b6834d drivers/scsi/sata_vsc.c Jeff Garzik 2005-10-29 197 tf->nsect = nsect;
ac19bff25b6834d drivers/scsi/sata_vsc.c Jeff Garzik 2005-10-29 198 tf->lbal = lbal;
ac19bff25b6834d drivers/scsi/sata_vsc.c Jeff Garzik 2005-10-29 199 tf->lbam = lbam;
ac19bff25b6834d drivers/scsi/sata_vsc.c Jeff Garzik 2005-10-29 200 tf->lbah = lbah;
^1da177e4c3f415 drivers/scsi/sata_vsc.c Linus Torvalds 2005-04-16 201
^1da177e4c3f415 drivers/scsi/sata_vsc.c Linus Torvalds 2005-04-16 202 if (tf->flags & ATA_TFLAG_LBA48) {
ac19bff25b6834d drivers/scsi/sata_vsc.c Jeff Garzik 2005-10-29 @203 tf->hob_feature = feature >> 8;
^1da177e4c3f415 drivers/scsi/sata_vsc.c Linus Torvalds 2005-04-16 204 tf->hob_nsect = nsect >> 8;
^1da177e4c3f415 drivers/scsi/sata_vsc.c Linus Torvalds 2005-04-16 205 tf->hob_lbal = lbal >> 8;
^1da177e4c3f415 drivers/scsi/sata_vsc.c Linus Torvalds 2005-04-16 206 tf->hob_lbam = lbam >> 8;
^1da177e4c3f415 drivers/scsi/sata_vsc.c Linus Torvalds 2005-04-16 207 tf->hob_lbah = lbah >> 8;
^1da177e4c3f415 drivers/scsi/sata_vsc.c Linus Torvalds 2005-04-16 208 }
^1da177e4c3f415 drivers/scsi/sata_vsc.c Linus Torvalds 2005-04-16 209 }
^1da177e4c3f415 drivers/scsi/sata_vsc.c Linus Torvalds 2005-04-16 210
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
[ebiggers:crypto-pending 3/7] crypto/xctr.c:66:22: sparse: sparse: restricted __le32 degrades to integer
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git crypto-pending
head: 67824d3cb5325de4264ad344174a7e4ea69e5303
commit: d98684f7dc5be61c6380f6c5a4d5dae44c6ddbca [3/7] crypto: hctr2 - Add HCTR2 support
config: arm-randconfig-s031-20220214 (https://download.01.org/0day-ci/archive/20220215/202202151139.J5pKremk-lk...)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git/commit...
git remote add ebiggers https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git
git fetch --no-tags ebiggers crypto-pending
git checkout d98684f7dc5be61c6380f6c5a4d5dae44c6ddbca
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> crypto/xctr.c:66:22: sparse: sparse: restricted __le32 degrades to integer
crypto/xctr.c:94:22: sparse: sparse: restricted __le32 degrades to integer
vim +66 crypto/xctr.c
8330f8a6b750f6 Nathan Huckleberry 2022-02-10 48
8330f8a6b750f6 Nathan Huckleberry 2022-02-10 49 static int crypto_xctr_crypt_segment(struct skcipher_walk *walk,
8330f8a6b750f6 Nathan Huckleberry 2022-02-10 50 struct crypto_cipher *tfm, u32 byte_ctr)
8330f8a6b750f6 Nathan Huckleberry 2022-02-10 51 {
8330f8a6b750f6 Nathan Huckleberry 2022-02-10 52 void (*fn)(struct crypto_tfm *, u8 *, const u8 *) =
8330f8a6b750f6 Nathan Huckleberry 2022-02-10 53 crypto_cipher_alg(tfm)->cia_encrypt;
8330f8a6b750f6 Nathan Huckleberry 2022-02-10 54 u8 *src = walk->src.virt.addr;
8330f8a6b750f6 Nathan Huckleberry 2022-02-10 55 u8 *dst = walk->dst.virt.addr;
8330f8a6b750f6 Nathan Huckleberry 2022-02-10 56 unsigned int nbytes = walk->nbytes;
8330f8a6b750f6 Nathan Huckleberry 2022-02-10 57 __le32 ctr32 = cpu_to_le32(byte_ctr / XCTR_BLOCKSIZE + 1);
8330f8a6b750f6 Nathan Huckleberry 2022-02-10 58
8330f8a6b750f6 Nathan Huckleberry 2022-02-10 59 do {
8330f8a6b750f6 Nathan Huckleberry 2022-02-10 60 /* create keystream */
8330f8a6b750f6 Nathan Huckleberry 2022-02-10 61 crypto_xor(walk->iv, (u8 *)&ctr32, sizeof(ctr32));
8330f8a6b750f6 Nathan Huckleberry 2022-02-10 62 fn(crypto_cipher_tfm(tfm), dst, walk->iv);
8330f8a6b750f6 Nathan Huckleberry 2022-02-10 63 crypto_xor(dst, src, XCTR_BLOCKSIZE);
8330f8a6b750f6 Nathan Huckleberry 2022-02-10 64 crypto_xor(walk->iv, (u8 *)&ctr32, sizeof(ctr32));
8330f8a6b750f6 Nathan Huckleberry 2022-02-10 65
8330f8a6b750f6 Nathan Huckleberry 2022-02-10 @66 ctr32++;
8330f8a6b750f6 Nathan Huckleberry 2022-02-10 67
8330f8a6b750f6 Nathan Huckleberry 2022-02-10 68 src += XCTR_BLOCKSIZE;
8330f8a6b750f6 Nathan Huckleberry 2022-02-10 69 dst += XCTR_BLOCKSIZE;
8330f8a6b750f6 Nathan Huckleberry 2022-02-10 70 } while ((nbytes -= XCTR_BLOCKSIZE) >= XCTR_BLOCKSIZE);
8330f8a6b750f6 Nathan Huckleberry 2022-02-10 71
8330f8a6b750f6 Nathan Huckleberry 2022-02-10 72 return nbytes;
8330f8a6b750f6 Nathan Huckleberry 2022-02-10 73 }
8330f8a6b750f6 Nathan Huckleberry 2022-02-10 74
:::::: The code at line 66 was first introduced by commit
:::::: 8330f8a6b750f6b7b65987a27d4bf7d2bebde570 crypto: xctr - Add XCTR support
:::::: TO: Nathan Huckleberry <nhuck(a)google.com>
:::::: CC: Eric Biggers <ebiggers(a)google.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
[ammarfaizi2-block:dhowells/linux-fs/netfs-maple 38/39] fs/netfs/crypto.c:76:10: warning: comparison of distinct pointer types ('typeof (len) *' (aka 'unsigned int *') and 'typeof (((1UL) << 12) - offset) *' (aka 'unsigned long *'))
by kernel test robot
tree: https://github.com/ammarfaizi2/linux-block dhowells/linux-fs/netfs-maple
head: b995bc7182f60aa2b4d8930a7446f10dfbcebcc2
commit: 8573fb679d751564f10601acf56465d777132b03 [38/39] netfs: Perform content encryption
config: i386-randconfig-a003-20220214 (https://download.01.org/0day-ci/archive/20220215/202202151033.vkfJ9MLG-lk...)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 37f422f4ac31c8b8041c6b62065263314282dab6)
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/ammarfaizi2/linux-block/commit/8573fb679d751564f10601a...
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block dhowells/linux-fs/netfs-maple
git checkout 8573fb679d751564f10601acf56465d777132b03
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash fs/netfs/
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 >>):
>> fs/netfs/crypto.c:76:10: warning: comparison of distinct pointer types ('typeof (len) *' (aka 'unsigned int *') and 'typeof (((1UL) << 12) - offset) *' (aka 'unsigned long *')) [-Wcompare-distinct-pointer-types]
seg = min(len, PAGE_SIZE - offset);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/minmax.h:45:19: note: expanded from macro 'min'
#define min(x, y) __careful_cmp(x, y, <)
^~~~~~~~~~~~~~~~~~~~~~
include/linux/minmax.h:36:24: note: expanded from macro '__careful_cmp'
__builtin_choose_expr(__safe_cmp(x, y), \
^~~~~~~~~~~~~~~~
include/linux/minmax.h:26:4: note: expanded from macro '__safe_cmp'
(__typecheck(x, y) && __no_side_effects(x, y))
^~~~~~~~~~~~~~~~~
include/linux/minmax.h:20:28: note: expanded from macro '__typecheck'
(!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~
1 warning generated.
vim +76 fs/netfs/crypto.c
45
46 /*
47 * Populate a scatterlist from folios in an xarray.
48 */
49 static int netfs_xarray_to_sglist(struct xarray *xa, loff_t pos, size_t len,
50 struct scatterlist *sg, unsigned int n_sg)
51 {
52 struct scatterlist *p = sg;
53 struct folio *folio = NULL;
54 size_t seg, offset, skip = 0;
55 loff_t start = pos;
56 pgoff_t index = start >> PAGE_SHIFT;
57 int j;
58
59 XA_STATE(xas, xa, index);
60
61 sg_init_table(sg, n_sg);
62
63 rcu_read_lock();
64
65 xas_for_each(&xas, folio, ULONG_MAX) {
66 if (xas_retry(&xas, folio))
67 continue;
68 if (WARN_ON(xa_is_value(folio)) || WARN_ON(folio_test_hugetlb(folio)))
69 break;
70 for (j = (folio_index(folio) < index) ? index - folio_index(folio) : 0;
71 j < folio_nr_pages(folio); j++
72 ) {
73 struct page *subpage = folio_file_page(folio, j);
74
75 offset = (pos + skip) & ~PAGE_MASK;
> 76 seg = min(len, PAGE_SIZE - offset);
77
78 sg_set_page(p++, subpage, seg, offset);
79
80 len -= seg;
81 skip += seg;
82 if (len == 0)
83 break;
84 }
85 if (len == 0)
86 break;
87 }
88
89 rcu_read_unlock();
90 if (len > 0) {
91 kdebug("*** Insufficient source (%zx)", len);
92 //WARN_ON(len > 0);
93 return -EIO;
94 }
95
96 sg_mark_end(p - 1);
97 return p - sg;
98 }
99
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
[RFC PATCH] fs: __alloc_page_buffers() can be static
by kernel test robot
fs/buffer.c:805:20: warning: symbol '__alloc_page_buffers' was not declared. Should it be static?
Reported-by: kernel test robot <lkp(a)intel.com>
Signed-off-by: kernel test robot <lkp(a)intel.com>
---
fs/buffer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/buffer.c b/fs/buffer.c
index a1986f95a39a0..19a4ab1f61686 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -802,7 +802,7 @@ int remove_inode_buffers(struct inode *inode)
return ret;
}
-struct buffer_head *__alloc_page_buffers(struct page *page, unsigned long size,
+static struct buffer_head *__alloc_page_buffers(struct page *page, unsigned long size,
gfp_t gfp)
{
struct buffer_head *bh, *head;
7 months, 1 week
[hch-misc:swiotlb-init-cleanup 8/11] drivers/iommu/intel/dmar.c:915:13: error: redefinition of 'detect_intel_iommu'
by kernel test robot
tree: git://git.infradead.org/users/hch/misc.git swiotlb-init-cleanup
head: b0a4b60e2b05556a265441d07464d016e160ed50
commit: 12f2fe176ef701bc27dd2bf8061a5f178b547024 [8/11] x86: remove the IOMMU table infrastructure
config: x86_64-randconfig-s022-20220214 (https://download.01.org/0day-ci/archive/20220215/202202151022.TpMkEJ18-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-dirty
git remote add hch-misc git://git.infradead.org/users/hch/misc.git
git fetch --no-tags hch-misc swiotlb-init-cleanup
git checkout 12f2fe176ef701bc27dd2bf8061a5f178b547024
# save the config file to linux build tree
mkdir build_dir
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/iommu/intel/dmar.c:915:13: error: redefinition of 'detect_intel_iommu'
915 | void __init detect_intel_iommu(void)
| ^~~~~~~~~~~~~~~~~~
In file included from drivers/iommu/intel/dmar.c:20:
include/linux/dmar.h:127:20: note: previous definition of 'detect_intel_iommu' was here
127 | static inline void detect_intel_iommu(void)
| ^~~~~~~~~~~~~~~~~~
vim +/detect_intel_iommu +915 drivers/iommu/intel/dmar.c
914
> 915 void __init detect_intel_iommu(void)
916 {
917 int ret;
918 struct dmar_res_callback validate_drhd_cb = {
919 .cb[ACPI_DMAR_TYPE_HARDWARE_UNIT] = &dmar_validate_one_drhd,
920 .ignore_unhandled = true,
921 };
922
923 down_write(&dmar_global_lock);
924 ret = dmar_table_detect();
925 if (!ret)
926 ret = dmar_walk_dmar_table((struct acpi_table_dmar *)dmar_tbl,
927 &validate_drhd_cb);
928 if (!ret && !no_iommu && !iommu_detected &&
929 (!dmar_disabled || dmar_platform_optin())) {
930 iommu_detected = 1;
931 /* Make sure ACS will be enabled */
932 pci_request_acs();
933 }
934
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week