Re: [PATCH net-next v4 03/13] net: wwan: t7xx: Add core components
by kernel test robot
Hi Ricardo,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on net-next/master]
url: https://github.com/0day-ci/linux/commits/Ricardo-Martinez/net-wwan-t7xx-P...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 8aaaf2f3af2ae212428f4db1af34214225f5cec3
config: ia64-randconfig-m031-20220116 (https://download.01.org/0day-ci/archive/20220116/202201162348.afiiNcX1-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/e62b3a8ab00c63ee38d0d31cd402a1a40...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Ricardo-Martinez/net-wwan-t7xx-PCIe-driver-for-MediaTek-M-2-modem/20220114-090852
git checkout e62b3a8ab00c63ee38d0d31cd402a1a40e8b2769
# 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/net/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from arch/ia64/include/asm/pgtable.h:153,
from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dma-mapping.h:10,
from drivers/net/wwan/t7xx/t7xx_pci.c:23:
arch/ia64/include/asm/mmu_context.h: In function 'reload_context':
>> arch/ia64/include/asm/mmu_context.h:127:48: error: variable 'old_rr4' set but not used [-Werror=unused-but-set-variable]
127 | unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
| ^~~~~~~
cc1: all warnings being treated as errors
vim +/old_rr4 +127 arch/ia64/include/asm/mmu_context.h
^1da177e4c3f41 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 121
^1da177e4c3f41 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 122 static inline void
badea125d7cbd9 include/asm-ia64/mmu_context.h David Mosberger-Tang 2005-07-25 123 reload_context (nv_mm_context_t context)
^1da177e4c3f41 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 124 {
^1da177e4c3f41 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 125 unsigned long rid;
^1da177e4c3f41 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 126 unsigned long rid_incr = 0;
^1da177e4c3f41 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 @127 unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
^1da177e4c3f41 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 128
0a41e250116058 include/asm-ia64/mmu_context.h Peter Chubb 2005-08-16 129 old_rr4 = ia64_get_rr(RGN_BASE(RGN_HPAGE));
^1da177e4c3f41 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 130 rid = context << 3; /* make space for encoding the region number */
^1da177e4c3f41 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 131 rid_incr = 1 << 8;
^1da177e4c3f41 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 132
^1da177e4c3f41 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 133 /* encode the region id, preferred page size, and VHPT enable bit: */
^1da177e4c3f41 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 134 rr0 = (rid << 8) | (PAGE_SHIFT << 2) | 1;
^1da177e4c3f41 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 135 rr1 = rr0 + 1*rid_incr;
^1da177e4c3f41 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 136 rr2 = rr0 + 2*rid_incr;
^1da177e4c3f41 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 137 rr3 = rr0 + 3*rid_incr;
^1da177e4c3f41 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 138 rr4 = rr0 + 4*rid_incr;
^1da177e4c3f41 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 139 #ifdef CONFIG_HUGETLB_PAGE
^1da177e4c3f41 include/asm-ia64/mmu_context.h Linus Torvalds 2005-04-16 140 rr4 = (rr4 & (~(0xfcUL))) | (old_rr4 & 0xfc);
0a41e250116058 include/asm-ia64/mmu_context.h Peter Chubb 2005-08-16 141
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
[hch-block:delete-write-same.5 7/8] drivers/block/rnbd/rnbd-clt.c:1362:2: error: implicit declaration of function 'blk_queue_max_write_same_sectors'
by kernel test robot
tree: git://git.infradead.org/users/hch/block.git delete-write-same.5
head: 5d500312cfdcd8162a0cf8c7351b0310cf458487
commit: 6f35eac1647aebeda65c4ed0b83bb2f9b5dfb156 [7/8] block: remove REQ_OP_WRITE_SAME support
config: hexagon-allyesconfig (https://download.01.org/0day-ci/archive/20220116/202201162237.iIGwtk5T-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 650fc40b6d8d9a5869b4fca525d5f237b0ee2803)
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
git remote add hch-block git://git.infradead.org/users/hch/block.git
git fetch --no-tags hch-block delete-write-same.5
git checkout 6f35eac1647aebeda65c4ed0b83bb2f9b5dfb156
# 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
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/block/rnbd/rnbd-clt.c:1362:2: error: implicit declaration of function 'blk_queue_max_write_same_sectors' [-Werror,-Wimplicit-function-declaration]
blk_queue_max_write_same_sectors(dev->queue,
^
drivers/block/rnbd/rnbd-clt.c:1362:2: note: did you mean 'blk_queue_max_write_zeroes_sectors'?
include/linux/blkdev.h:695:13: note: 'blk_queue_max_write_zeroes_sectors' declared here
extern void blk_queue_max_write_zeroes_sectors(struct request_queue *q,
^
1 error generated.
--
>> drivers/block/rnbd/rnbd-srv.c:562:15: error: implicit declaration of function 'bdev_write_same' [-Werror,-Wimplicit-function-declaration]
cpu_to_le32(bdev_write_same(rnbd_dev->bdev));
^
include/linux/byteorder/generic.h:88:21: note: expanded from macro 'cpu_to_le32'
#define cpu_to_le32 __cpu_to_le32
^
drivers/block/rnbd/rnbd-srv.c:562:15: note: did you mean 'bdev_write_page'?
include/linux/byteorder/generic.h:88:21: note: expanded from macro 'cpu_to_le32'
#define cpu_to_le32 __cpu_to_le32
^
include/linux/blkdev.h:1221:12: note: 'bdev_write_page' declared here
extern int bdev_write_page(struct block_device *, sector_t, struct page *,
^
1 error generated.
vim +/blk_queue_max_write_same_sectors +1362 drivers/block/rnbd/rnbd-clt.c
f7a7a5c228d45e Jack Wang 2020-05-11 1356
f7a7a5c228d45e Jack Wang 2020-05-11 1357 static void setup_request_queue(struct rnbd_clt_dev *dev)
f7a7a5c228d45e Jack Wang 2020-05-11 1358 {
f7a7a5c228d45e Jack Wang 2020-05-11 1359 blk_queue_logical_block_size(dev->queue, dev->logical_block_size);
f7a7a5c228d45e Jack Wang 2020-05-11 1360 blk_queue_physical_block_size(dev->queue, dev->physical_block_size);
f7a7a5c228d45e Jack Wang 2020-05-11 1361 blk_queue_max_hw_sectors(dev->queue, dev->max_hw_sectors);
f7a7a5c228d45e Jack Wang 2020-05-11 @1362 blk_queue_max_write_same_sectors(dev->queue,
f7a7a5c228d45e Jack Wang 2020-05-11 1363 dev->max_write_same_sectors);
f7a7a5c228d45e Jack Wang 2020-05-11 1364
f7a7a5c228d45e Jack Wang 2020-05-11 1365 /*
f7a7a5c228d45e Jack Wang 2020-05-11 1366 * we don't support discards to "discontiguous" segments
f7a7a5c228d45e Jack Wang 2020-05-11 1367 * in on request
f7a7a5c228d45e Jack Wang 2020-05-11 1368 */
f7a7a5c228d45e Jack Wang 2020-05-11 1369 blk_queue_max_discard_segments(dev->queue, 1);
f7a7a5c228d45e Jack Wang 2020-05-11 1370
f7a7a5c228d45e Jack Wang 2020-05-11 1371 blk_queue_max_discard_sectors(dev->queue, dev->max_discard_sectors);
f7a7a5c228d45e Jack Wang 2020-05-11 1372 dev->queue->limits.discard_granularity = dev->discard_granularity;
f7a7a5c228d45e Jack Wang 2020-05-11 1373 dev->queue->limits.discard_alignment = dev->discard_alignment;
f7a7a5c228d45e Jack Wang 2020-05-11 1374 if (dev->max_discard_sectors)
f7a7a5c228d45e Jack Wang 2020-05-11 1375 blk_queue_flag_set(QUEUE_FLAG_DISCARD, dev->queue);
f7a7a5c228d45e Jack Wang 2020-05-11 1376 if (dev->secure_discard)
f7a7a5c228d45e Jack Wang 2020-05-11 1377 blk_queue_flag_set(QUEUE_FLAG_SECERASE, dev->queue);
f7a7a5c228d45e Jack Wang 2020-05-11 1378
f7a7a5c228d45e Jack Wang 2020-05-11 1379 blk_queue_flag_set(QUEUE_FLAG_SAME_COMP, dev->queue);
f7a7a5c228d45e Jack Wang 2020-05-11 1380 blk_queue_flag_set(QUEUE_FLAG_SAME_FORCE, dev->queue);
f7a7a5c228d45e Jack Wang 2020-05-11 1381 blk_queue_max_segments(dev->queue, dev->max_segments);
f7a7a5c228d45e Jack Wang 2020-05-11 1382 blk_queue_io_opt(dev->queue, dev->sess->max_io_size);
f7a7a5c228d45e Jack Wang 2020-05-11 1383 blk_queue_virt_boundary(dev->queue, SZ_4K - 1);
512c781fd28cb4 Gioh Kim 2020-12-10 1384 blk_queue_write_cache(dev->queue, dev->wc, dev->fua);
f7a7a5c228d45e Jack Wang 2020-05-11 1385 }
f7a7a5c228d45e Jack Wang 2020-05-11 1386
:::::: The code at line 1362 was first introduced by commit
:::::: f7a7a5c228d45efc45d6e26a199a3ea13d2f8754 block/rnbd: client: main functionality
:::::: TO: Jack Wang <jinpu.wang(a)cloud.ionos.com>
:::::: CC: Jason Gunthorpe <jgg(a)mellanox.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
Re: [PATCH 3/3] staging: pi433: validate max bit_rate based on modulation used
by kernel test robot
Hi Paulo,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on staging/staging-testing]
url: https://github.com/0day-ci/linux/commits/Paulo-Miguel-Almeida/staging-pi4...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git fa783154524a71ab74e293cd8251155e5971952b
config: i386-randconfig-a002 (https://download.01.org/0day-ci/archive/20220116/202201162116.8r1xEw9q-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c63a3175c2947e8c1a2d3bbe16a8586600705c54)
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/4bbc9e444fd3bab38d93ae4261102db64...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Paulo-Miguel-Almeida/staging-pi433-validate-min-max-bit-rate-settings/20220116-082432
git checkout 4bbc9e444fd3bab38d93ae4261102db64385a26c
# 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 drivers/staging/pi433/
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/staging/pi433/rf69.c:238:30: warning: result of comparison of constant 300000 with expression of type 'u16' (aka 'unsigned short') is always false [-Wtautological-constant-out-of-range-compare]
(mod == FSK && bit_rate > 300000) ||
~~~~~~~~ ^ ~~~~~~
1 warning generated.
vim +238 drivers/staging/pi433/rf69.c
220
221 int rf69_set_bit_rate(struct spi_device *spi, u16 bit_rate)
222 {
223 int retval;
224 u32 bit_rate_reg;
225 u8 msb;
226 u8 lsb;
227 enum modulation mod;
228
229 // check if modulation is configured
230 mod = rf69_get_modulation(spi);
231 if (mod == UNDEF) {
232 dev_dbg(&spi->dev, "setBitRate: modulation is undefined");
233 return -EINVAL;
234 }
235
236 // check input value
237 if (bit_rate < 1200 ||
> 238 (mod == FSK && bit_rate > 300000) ||
239 (mod == OOK && bit_rate > 32768)) {
240 dev_dbg(&spi->dev, "setBitRate: illegal input param");
241 return -EINVAL;
242 }
243
244 // calculate reg settings
245 bit_rate_reg = (F_OSC / bit_rate);
246
247 msb = (bit_rate_reg & 0xff00) >> 8;
248 lsb = (bit_rate_reg & 0xff);
249
250 // transmit to RF 69
251 retval = rf69_write_reg(spi, REG_BITRATE_MSB, msb);
252 if (retval)
253 return retval;
254 retval = rf69_write_reg(spi, REG_BITRATE_LSB, lsb);
255 if (retval)
256 return retval;
257
258 return 0;
259 }
260
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
[ammarfaizi2-block:google/android/kernel/common/android11-kiwi-5.4 2937/9999] drivers/mmc/core/crypto.c:14:6: warning: no previous prototype for function 'mmc_crypto_setup_queue'
by kernel test robot
Hi Satya,
FYI, the error/warning still remains.
tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android11-kiwi-5.4
head: 7d1d5848183bd1d9086d0572f9af431d3ded407f
commit: 555cf12eb672727979bc7b7840c7503f3de27220 [2937/9999] ANDROID: mmc: MMC crypto API
config: x86_64-randconfig-a003 (https://download.01.org/0day-ci/archive/20220116/202201162151.jM4CfcNA-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c63a3175c2947e8c1a2d3bbe16a8586600705c54)
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/555cf12eb672727979bc7b7...
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android11-kiwi-5.4
git checkout 555cf12eb672727979bc7b7840c7503f3de27220
# 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=x86_64 SHELL=/bin/bash drivers/mmc/core/
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/mmc/core/crypto.c:14:6: warning: no previous prototype for function 'mmc_crypto_setup_queue' [-Wmissing-prototypes]
void mmc_crypto_setup_queue(struct mmc_host *host, struct request_queue *q)
^
drivers/mmc/core/crypto.c:14:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void mmc_crypto_setup_queue(struct mmc_host *host, struct request_queue *q)
^
static
>> drivers/mmc/core/crypto.c:21:6: warning: no previous prototype for function 'mmc_crypto_free_host' [-Wmissing-prototypes]
void mmc_crypto_free_host(struct mmc_host *host)
^
drivers/mmc/core/crypto.c:21:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void mmc_crypto_free_host(struct mmc_host *host)
^
static
>> drivers/mmc/core/crypto.c:26:6: warning: no previous prototype for function 'mmc_crypto_prepare_req' [-Wmissing-prototypes]
void mmc_crypto_prepare_req(struct mmc_queue_req *mqrq)
^
drivers/mmc/core/crypto.c:26:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void mmc_crypto_prepare_req(struct mmc_queue_req *mqrq)
^
static
3 warnings generated.
vim +/mmc_crypto_setup_queue +14 drivers/mmc/core/crypto.c
13
> 14 void mmc_crypto_setup_queue(struct mmc_host *host, struct request_queue *q)
15 {
16 if (host->caps2 & MMC_CAP2_CRYPTO)
17 q->ksm = host->ksm;
18 }
19 EXPORT_SYMBOL_GPL(mmc_crypto_setup_queue);
20
> 21 void mmc_crypto_free_host(struct mmc_host *host)
22 {
23 keyslot_manager_destroy(host->ksm);
24 }
25
> 26 void mmc_crypto_prepare_req(struct mmc_queue_req *mqrq)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
Re: [PATCH net-next v2] net: mptcp, Fast Open Mechanism
by kernel test robot
Hi Dmytro,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on v5.16]
[cannot apply to net-next/master linus/master next-20220116]
[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/Dmytro-SHYTYI/net-mptcp-Fast-Ope...
base: df0cc57e057f18e44dac8e6c18aba47ab53202f9
config: i386-randconfig-a012 (https://download.01.org/0day-ci/archive/20220116/202201162159.uZep2msW-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/52c7bf82e2e91eb10c89ef6169fe02e0b...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Dmytro-SHYTYI/net-mptcp-Fast-Open-Mechanism/20220116-081430
git checkout 52c7bf82e2e91eb10c89ef6169fe02e0b63a6772
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 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 >>):
net/mptcp/protocol.c: In function 'mptcp_sendmsg_fastopen':
>> net/mptcp/protocol.c:1650:8: error: implicit declaration of function 'sk_stream_alloc_skb'; did you mean 'tcp_stream_alloc_skb'? [-Werror=implicit-function-declaration]
1650 | skb = sk_stream_alloc_skb(ssk->sk, 0, ssk->sk->sk_allocation, true);
| ^~~~~~~~~~~~~~~~~~~
| tcp_stream_alloc_skb
net/mptcp/protocol.c:1650:6: warning: assignment to 'struct sk_buff *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
1650 | skb = sk_stream_alloc_skb(ssk->sk, 0, ssk->sk->sk_allocation, true);
| ^
cc1: some warnings being treated as errors
vim +1650 net/mptcp/protocol.c
1635
1636 static int mptcp_sendmsg_fastopen(struct sock *sk, struct msghdr *msg,
1637 size_t len, struct mptcp_sock *msk, size_t copied)
1638 {
1639 const struct iphdr *iph;
1640 struct ubuf_info *uarg;
1641 struct sockaddr *uaddr;
1642 struct sk_buff *skb;
1643 struct tcp_sock *tp;
1644 struct socket *ssk;
1645 int ret;
1646
1647 ssk = __mptcp_nmpc_socket(msk);
1648 if (unlikely(!ssk))
1649 goto out_EFAULT;
> 1650 skb = sk_stream_alloc_skb(ssk->sk, 0, ssk->sk->sk_allocation, true);
1651 if (unlikely(!skb))
1652 goto out_EFAULT;
1653 iph = ip_hdr(skb);
1654 if (unlikely(!iph))
1655 goto out_EFAULT;
1656 uarg = msg_zerocopy_realloc(sk, len, skb_zcopy(skb));
1657 if (unlikely(!uarg))
1658 goto out_EFAULT;
1659 uaddr = msg->msg_name;
1660
1661 tp = tcp_sk(ssk->sk);
1662 if (unlikely(!tp))
1663 goto out_EFAULT;
1664 if (!tp->fastopen_req)
1665 tp->fastopen_req = kzalloc(sizeof(*tp->fastopen_req), ssk->sk->sk_allocation);
1666
1667 if (unlikely(!tp->fastopen_req))
1668 goto out_EFAULT;
1669 tp->fastopen_req->data = msg;
1670 tp->fastopen_req->size = len;
1671 tp->fastopen_req->uarg = uarg;
1672
1673 /* requests a cookie */
1674 ret = mptcp_stream_connect(sk->sk_socket, uaddr,
1675 msg->msg_namelen, msg->msg_flags);
1676
1677 return ret;
1678 out_EFAULT:
1679 ret = -EFAULT;
1680 return ret;
1681 }
1682
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
Re: [PATCH net-next v2] net: mptcp, Fast Open Mechanism
by kernel test robot
Hi Dmytro,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on v5.16]
[cannot apply to net-next/master linus/master next-20220116]
[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/Dmytro-SHYTYI/net-mptcp-Fast-Ope...
base: df0cc57e057f18e44dac8e6c18aba47ab53202f9
config: i386-randconfig-a012 (https://download.01.org/0day-ci/archive/20220116/202201162148.bSZpItDM-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/52c7bf82e2e91eb10c89ef6169fe02e0b...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Dmytro-SHYTYI/net-mptcp-Fast-Open-Mechanism/20220116-081430
git checkout 52c7bf82e2e91eb10c89ef6169fe02e0b63a6772
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash net/mptcp/
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/mptcp/protocol.c: In function 'mptcp_sendmsg_fastopen':
net/mptcp/protocol.c:1650:8: error: implicit declaration of function 'sk_stream_alloc_skb'; did you mean 'tcp_stream_alloc_skb'? [-Werror=implicit-function-declaration]
1650 | skb = sk_stream_alloc_skb(ssk->sk, 0, ssk->sk->sk_allocation, true);
| ^~~~~~~~~~~~~~~~~~~
| tcp_stream_alloc_skb
>> net/mptcp/protocol.c:1650:6: warning: assignment to 'struct sk_buff *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
1650 | skb = sk_stream_alloc_skb(ssk->sk, 0, ssk->sk->sk_allocation, true);
| ^
cc1: some warnings being treated as errors
vim +1650 net/mptcp/protocol.c
1635
1636 static int mptcp_sendmsg_fastopen(struct sock *sk, struct msghdr *msg,
1637 size_t len, struct mptcp_sock *msk, size_t copied)
1638 {
1639 const struct iphdr *iph;
1640 struct ubuf_info *uarg;
1641 struct sockaddr *uaddr;
1642 struct sk_buff *skb;
1643 struct tcp_sock *tp;
1644 struct socket *ssk;
1645 int ret;
1646
1647 ssk = __mptcp_nmpc_socket(msk);
1648 if (unlikely(!ssk))
1649 goto out_EFAULT;
> 1650 skb = sk_stream_alloc_skb(ssk->sk, 0, ssk->sk->sk_allocation, true);
1651 if (unlikely(!skb))
1652 goto out_EFAULT;
1653 iph = ip_hdr(skb);
1654 if (unlikely(!iph))
1655 goto out_EFAULT;
1656 uarg = msg_zerocopy_realloc(sk, len, skb_zcopy(skb));
1657 if (unlikely(!uarg))
1658 goto out_EFAULT;
1659 uaddr = msg->msg_name;
1660
1661 tp = tcp_sk(ssk->sk);
1662 if (unlikely(!tp))
1663 goto out_EFAULT;
1664 if (!tp->fastopen_req)
1665 tp->fastopen_req = kzalloc(sizeof(*tp->fastopen_req), ssk->sk->sk_allocation);
1666
1667 if (unlikely(!tp->fastopen_req))
1668 goto out_EFAULT;
1669 tp->fastopen_req->data = msg;
1670 tp->fastopen_req->size = len;
1671 tp->fastopen_req->uarg = uarg;
1672
1673 /* requests a cookie */
1674 ret = mptcp_stream_connect(sk->sk_socket, uaddr,
1675 msg->msg_namelen, msg->msg_flags);
1676
1677 return ret;
1678 out_EFAULT:
1679 ret = -EFAULT;
1680 return ret;
1681 }
1682
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
[intel-lts:5.10/yocto 18516/20368] drivers/ptp/ptp-intel-pmc-tgpio.c:388:6: warning: variable 'new_start_ns' is used uninitialized whenever 'if' condition is false
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 5.10/yocto
head: 1941d4b82f36cc6ecc513f3e496ad62726d00514
commit: ba88170534041ab8213508ceddf96c012d9d9e7e [18516/20368] Add support for PMC Time-Aware GPIO (TGPIO) hardware that is present on upcoming Intel platforms. The hardware logic is driven by the ART clock. The current hardware has two GPIO pins. Input interrupts are not implemented in hardware.
config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20220116/202201162006.UOLVb6S8-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 650fc40b6d8d9a5869b4fca525d5f237b0ee2803)
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/intel/linux-intel-lts/commit/ba88170534041ab8213508ced...
git remote add intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-lts 5.10/yocto
git checkout ba88170534041ab8213508ceddf96c012d9d9e7e
# 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 drivers/gpio/ drivers/gpu/drm/i915/ drivers/ptp/
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/ptp/ptp-intel-pmc-tgpio.c:388:6: warning: variable 'new_start_ns' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
if (on || perout->flags & PTP_PEROUT_ONE_SHOT) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/ptp/ptp-intel-pmc-tgpio.c:396:26: note: uninitialized use occurs here
(tgpio, perout->index, new_start_ns, new_period_ns,
^~~~~~~~~~~~
drivers/ptp/ptp-intel-pmc-tgpio.c:388:2: note: remove the 'if' if its condition is always true
if (on || perout->flags & PTP_PEROUT_ONE_SHOT) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/ptp/ptp-intel-pmc-tgpio.c:385:2: note: variable 'new_start_ns' is declared here
struct timespec64 new_start_ns;
^
>> drivers/ptp/ptp-intel-pmc-tgpio.c:388:6: warning: variable 'new_period_ns' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
if (on || perout->flags & PTP_PEROUT_ONE_SHOT) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/ptp/ptp-intel-pmc-tgpio.c:396:40: note: uninitialized use occurs here
(tgpio, perout->index, new_start_ns, new_period_ns,
^~~~~~~~~~~~~
drivers/ptp/ptp-intel-pmc-tgpio.c:388:2: note: remove the 'if' if its condition is always true
if (on || perout->flags & PTP_PEROUT_ONE_SHOT) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/ptp/ptp-intel-pmc-tgpio.c:386:2: note: variable 'new_period_ns' is declared here
struct timespec64 new_period_ns;
^
>> drivers/ptp/ptp-intel-pmc-tgpio.c:738:36: warning: unused variable 'intel_pmc_acpi_match' [-Wunused-const-variable]
static const struct acpi_device_id intel_pmc_acpi_match[] = {
^
3 warnings generated.
vim +388 drivers/ptp/ptp-intel-pmc-tgpio.c
381
382 static int intel_pmc_tgpio_config_output
383 (struct intel_pmc_tgpio_t *tgpio, struct ptp_perout_request *perout, int on)
384 {
385 struct timespec64 new_start_ns;
386 struct timespec64 new_period_ns;
387
> 388 if (on || perout->flags & PTP_PEROUT_ONE_SHOT) {
389 new_start_ns = ptp_clock_time_to_ts64(perout->start);
390 new_period_ns = ptp_clock_time_to_ts64(perout->period);
391 new_period_ns = ktime_to_timespec64
392 (ktime_divns(timespec64_to_ktime(new_period_ns), 2));
393 }
394
395 return _intel_pmc_tgpio_config_output
396 (tgpio, perout->index, new_start_ns, new_period_ns,
397 perout->flags, on);
398 }
399
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week