[sashal-linux-stable:pending-5.10 39/433] drivers/infiniband/ulp/rtrs/rtrs-clt.c:1725:19: warning: result of comparison of constant 'MAX_SESS_QUEUE_DEPTH' (65536) with expression of type 'u16' (aka 'unsigned short') is always false
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git pending-5.10
head: e3d89d0e410ff27d877acf10e021bc9b39dba75f
commit: 9f305ad1a00d0deaa2a04aa8fe06142314d973c8 [39/433] RDMA/rtrs: Change MAX_SESS_QUEUE_DEPTH
config: mips-randconfig-r033-20210718 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 5d5b08761f944d5b9822d582378333cc4b36a0a7)
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 mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable pending-5.10
git checkout 9f305ad1a00d0deaa2a04aa8fe06142314d973c8
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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 warnings (new ones prefixed by >>):
>> drivers/infiniband/ulp/rtrs/rtrs-clt.c:1725:19: warning: result of comparison of constant 'MAX_SESS_QUEUE_DEPTH' (65536) with expression of type 'u16' (aka 'unsigned short') is always false [-Wtautological-constant-out-of-range-compare]
if (queue_depth > MAX_SESS_QUEUE_DEPTH) {
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~
1 warning generated.
vim +1725 drivers/infiniband/ulp/rtrs/rtrs-clt.c
6a98d71daea186 Jack Wang 2020-05-11 1689
6a98d71daea186 Jack Wang 2020-05-11 1690 static int rtrs_rdma_conn_established(struct rtrs_clt_con *con,
6a98d71daea186 Jack Wang 2020-05-11 1691 struct rdma_cm_event *ev)
6a98d71daea186 Jack Wang 2020-05-11 1692 {
6a98d71daea186 Jack Wang 2020-05-11 1693 struct rtrs_clt_sess *sess = to_clt_sess(con->c.sess);
6a98d71daea186 Jack Wang 2020-05-11 1694 struct rtrs_clt *clt = sess->clt;
6a98d71daea186 Jack Wang 2020-05-11 1695 const struct rtrs_msg_conn_rsp *msg;
6a98d71daea186 Jack Wang 2020-05-11 1696 u16 version, queue_depth;
6a98d71daea186 Jack Wang 2020-05-11 1697 int errno;
6a98d71daea186 Jack Wang 2020-05-11 1698 u8 len;
6a98d71daea186 Jack Wang 2020-05-11 1699
6a98d71daea186 Jack Wang 2020-05-11 1700 msg = ev->param.conn.private_data;
6a98d71daea186 Jack Wang 2020-05-11 1701 len = ev->param.conn.private_data_len;
6a98d71daea186 Jack Wang 2020-05-11 1702 if (len < sizeof(*msg)) {
6a98d71daea186 Jack Wang 2020-05-11 1703 rtrs_err(clt, "Invalid RTRS connection response\n");
6a98d71daea186 Jack Wang 2020-05-11 1704 return -ECONNRESET;
6a98d71daea186 Jack Wang 2020-05-11 1705 }
6a98d71daea186 Jack Wang 2020-05-11 1706 if (le16_to_cpu(msg->magic) != RTRS_MAGIC) {
6a98d71daea186 Jack Wang 2020-05-11 1707 rtrs_err(clt, "Invalid RTRS magic\n");
6a98d71daea186 Jack Wang 2020-05-11 1708 return -ECONNRESET;
6a98d71daea186 Jack Wang 2020-05-11 1709 }
6a98d71daea186 Jack Wang 2020-05-11 1710 version = le16_to_cpu(msg->version);
6a98d71daea186 Jack Wang 2020-05-11 1711 if (version >> 8 != RTRS_PROTO_VER_MAJOR) {
6a98d71daea186 Jack Wang 2020-05-11 1712 rtrs_err(clt, "Unsupported major RTRS version: %d, expected %d\n",
6a98d71daea186 Jack Wang 2020-05-11 1713 version >> 8, RTRS_PROTO_VER_MAJOR);
6a98d71daea186 Jack Wang 2020-05-11 1714 return -ECONNRESET;
6a98d71daea186 Jack Wang 2020-05-11 1715 }
6a98d71daea186 Jack Wang 2020-05-11 1716 errno = le16_to_cpu(msg->errno);
6a98d71daea186 Jack Wang 2020-05-11 1717 if (errno) {
6a98d71daea186 Jack Wang 2020-05-11 1718 rtrs_err(clt, "Invalid RTRS message: errno %d\n",
6a98d71daea186 Jack Wang 2020-05-11 1719 errno);
6a98d71daea186 Jack Wang 2020-05-11 1720 return -ECONNRESET;
6a98d71daea186 Jack Wang 2020-05-11 1721 }
6a98d71daea186 Jack Wang 2020-05-11 1722 if (con->c.cid == 0) {
6a98d71daea186 Jack Wang 2020-05-11 1723 queue_depth = le16_to_cpu(msg->queue_depth);
6a98d71daea186 Jack Wang 2020-05-11 1724
6a98d71daea186 Jack Wang 2020-05-11 @1725 if (queue_depth > MAX_SESS_QUEUE_DEPTH) {
6a98d71daea186 Jack Wang 2020-05-11 1726 rtrs_err(clt, "Invalid RTRS message: queue=%d\n",
6a98d71daea186 Jack Wang 2020-05-11 1727 queue_depth);
6a98d71daea186 Jack Wang 2020-05-11 1728 return -ECONNRESET;
6a98d71daea186 Jack Wang 2020-05-11 1729 }
6569ae1deb6c37 Md Haris Iqbal 2021-05-28 1730 if (sess->queue_depth > 0 && queue_depth != sess->queue_depth) {
6569ae1deb6c37 Md Haris Iqbal 2021-05-28 1731 rtrs_err(clt, "Error: queue depth changed\n");
6569ae1deb6c37 Md Haris Iqbal 2021-05-28 1732
6569ae1deb6c37 Md Haris Iqbal 2021-05-28 1733 /*
6569ae1deb6c37 Md Haris Iqbal 2021-05-28 1734 * Stop any more reconnection attempts
6569ae1deb6c37 Md Haris Iqbal 2021-05-28 1735 */
6569ae1deb6c37 Md Haris Iqbal 2021-05-28 1736 sess->reconnect_attempts = -1;
6569ae1deb6c37 Md Haris Iqbal 2021-05-28 1737 rtrs_err(clt,
6569ae1deb6c37 Md Haris Iqbal 2021-05-28 1738 "Disabling auto-reconnect. Trigger a manual reconnect after issue is resolved\n");
6569ae1deb6c37 Md Haris Iqbal 2021-05-28 1739 return -ECONNRESET;
6569ae1deb6c37 Md Haris Iqbal 2021-05-28 1740 }
6569ae1deb6c37 Md Haris Iqbal 2021-05-28 1741
6569ae1deb6c37 Md Haris Iqbal 2021-05-28 1742 if (!sess->rbufs) {
6a98d71daea186 Jack Wang 2020-05-11 1743 kfree(sess->rbufs);
6a98d71daea186 Jack Wang 2020-05-11 1744 sess->rbufs = kcalloc(queue_depth, sizeof(*sess->rbufs),
6a98d71daea186 Jack Wang 2020-05-11 1745 GFP_KERNEL);
6a98d71daea186 Jack Wang 2020-05-11 1746 if (!sess->rbufs)
6a98d71daea186 Jack Wang 2020-05-11 1747 return -ENOMEM;
6a98d71daea186 Jack Wang 2020-05-11 1748 }
6a98d71daea186 Jack Wang 2020-05-11 1749 sess->queue_depth = queue_depth;
6a98d71daea186 Jack Wang 2020-05-11 1750 sess->max_hdr_size = le32_to_cpu(msg->max_hdr_size);
6a98d71daea186 Jack Wang 2020-05-11 1751 sess->max_io_size = le32_to_cpu(msg->max_io_size);
6a98d71daea186 Jack Wang 2020-05-11 1752 sess->flags = le32_to_cpu(msg->flags);
6a98d71daea186 Jack Wang 2020-05-11 1753 sess->chunk_size = sess->max_io_size + sess->max_hdr_size;
6a98d71daea186 Jack Wang 2020-05-11 1754
6a98d71daea186 Jack Wang 2020-05-11 1755 /*
6569ae1deb6c37 Md Haris Iqbal 2021-05-28 1756 * Global IO size is always a minimum.
6a98d71daea186 Jack Wang 2020-05-11 1757 * If while a reconnection server sends us a value a bit
6a98d71daea186 Jack Wang 2020-05-11 1758 * higher - client does not care and uses cached minimum.
6a98d71daea186 Jack Wang 2020-05-11 1759 *
6a98d71daea186 Jack Wang 2020-05-11 1760 * Since we can have several sessions (paths) restablishing
6a98d71daea186 Jack Wang 2020-05-11 1761 * connections in parallel, use lock.
6a98d71daea186 Jack Wang 2020-05-11 1762 */
6a98d71daea186 Jack Wang 2020-05-11 1763 mutex_lock(&clt->paths_mutex);
6569ae1deb6c37 Md Haris Iqbal 2021-05-28 1764 clt->queue_depth = sess->queue_depth;
6a98d71daea186 Jack Wang 2020-05-11 1765 clt->max_io_size = min_not_zero(sess->max_io_size,
6a98d71daea186 Jack Wang 2020-05-11 1766 clt->max_io_size);
6a98d71daea186 Jack Wang 2020-05-11 1767 mutex_unlock(&clt->paths_mutex);
6a98d71daea186 Jack Wang 2020-05-11 1768
6a98d71daea186 Jack Wang 2020-05-11 1769 /*
6a98d71daea186 Jack Wang 2020-05-11 1770 * Cache the hca_port and hca_name for sysfs
6a98d71daea186 Jack Wang 2020-05-11 1771 */
6a98d71daea186 Jack Wang 2020-05-11 1772 sess->hca_port = con->c.cm_id->port_num;
6a98d71daea186 Jack Wang 2020-05-11 1773 scnprintf(sess->hca_name, sizeof(sess->hca_name),
6a98d71daea186 Jack Wang 2020-05-11 1774 sess->s.dev->ib_dev->name);
6a98d71daea186 Jack Wang 2020-05-11 1775 sess->s.src_addr = con->c.cm_id->route.addr.src_addr;
c6f81f3a9c40b0 Md Haris Iqbal 2021-02-12 1776 /* set for_new_clt, to allow future reconnect on any path */
c6f81f3a9c40b0 Md Haris Iqbal 2021-02-12 1777 sess->for_new_clt = 1;
6a98d71daea186 Jack Wang 2020-05-11 1778 }
6a98d71daea186 Jack Wang 2020-05-11 1779
6a98d71daea186 Jack Wang 2020-05-11 1780 return 0;
6a98d71daea186 Jack Wang 2020-05-11 1781 }
6a98d71daea186 Jack Wang 2020-05-11 1782
:::::: The code at line 1725 was first introduced by commit
:::::: 6a98d71daea186247005099758af549e6afdd244 RDMA/rtrs: 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
1 year, 2 months
[allisonhenderson-xfs_work:delayed_attrs_v21_extended 39/62] fs/xfs/xfs_attr_item.c:292:1: warning: no previous prototype for 'xfs_trans_attr_finish_update'
by kernel test robot
tree: https://github.com/allisonhenderson/xfs_work.git delayed_attrs_v21_extended
head: 1a71ced599b41e7ee9f0ea02427b76c30f71f7dd
commit: ba1114fc490c84643980a816cfc54ae8f5da1dd3 [39/62] xfs: Implement attr logging and replay
config: s390-allyesconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 10.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/allisonhenderson/xfs_work/commit/ba1114fc490c84643980a...
git remote add allisonhenderson-xfs_work https://github.com/allisonhenderson/xfs_work.git
git fetch --no-tags allisonhenderson-xfs_work delayed_attrs_v21_extended
git checkout ba1114fc490c84643980a816cfc54ae8f5da1dd3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> fs/xfs/xfs_attr_item.c:292:1: warning: no previous prototype for 'xfs_trans_attr_finish_update' [-Wmissing-prototypes]
292 | xfs_trans_attr_finish_update(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> fs/xfs/xfs_attr_item.c:497:1: warning: no previous prototype for 'xfs_trans_get_attrd' [-Wmissing-prototypes]
497 | xfs_trans_get_attrd(struct xfs_trans *tp,
| ^~~~~~~~~~~~~~~~~~~
vim +/xfs_trans_attr_finish_update +292 fs/xfs/xfs_attr_item.c
284
285 /*
286 * Performs one step of an attribute update intent and marks the attrd item
287 * dirty.. An attr operation may be a set or a remove. Note that the
288 * transaction is marked dirty regardless of whether the operation succeeds or
289 * fails to support the ATTRI/ATTRD lifecycle rules.
290 */
291 int
> 292 xfs_trans_attr_finish_update(
293 struct xfs_delattr_context *dac,
294 struct xfs_attrd_log_item *attrdp,
295 struct xfs_buf **leaf_bp,
296 uint32_t op_flags)
297 {
298 struct xfs_da_args *args = dac->da_args;
299 int error;
300
301 error = xfs_qm_dqattach_locked(args->dp, 0);
302 if (error)
303 return error;
304
305 switch (op_flags) {
306 case XFS_ATTR_OP_FLAGS_SET:
307 args->op_flags |= XFS_DA_OP_ADDNAME;
308 error = xfs_attr_set_iter(dac, leaf_bp);
309 break;
310 case XFS_ATTR_OP_FLAGS_REMOVE:
311 ASSERT(XFS_IFORK_Q(args->dp));
312 error = xfs_attr_remove_iter(dac);
313 break;
314 default:
315 error = -EFSCORRUPTED;
316 break;
317 }
318
319 /*
320 * Mark the transaction dirty, even on error. This ensures the
321 * transaction is aborted, which:
322 *
323 * 1.) releases the ATTRI and frees the ATTRD
324 * 2.) shuts down the filesystem
325 */
326 args->trans->t_flags |= XFS_TRANS_DIRTY;
327
328 /*
329 * attr intent/done items are null when delayed attributes are disabled
330 */
331 if (attrdp)
332 set_bit(XFS_LI_DIRTY, &attrdp->attrd_item.li_flags);
333
334 return error;
335 }
336
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[zen-kernel-zen-kernel:5.13/futex2 3/19] kernel/futex2.c:756:1: error: redefinition of 'COMPAT_SYSCALL_DEFINE4'
by kernel test robot
tree: https://github.com/zen-kernel/zen-kernel 5.13/futex2
head: db649ce1f5de12432be5bfedd8388eacc2f85efc
commit: 28d2f243eaf76b0e9d84947a899fc742bd49d70c [3/19] futex2: Implement vectorized wait
config: powerpc64-randconfig-r011-20210718 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 5d5b08761f944d5b9822d582378333cc4b36a0a7)
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://github.com/zen-kernel/zen-kernel/commit/28d2f243eaf76b0e9d84947a8...
git remote add zen-kernel-zen-kernel https://github.com/zen-kernel/zen-kernel
git fetch --no-tags zen-kernel-zen-kernel 5.13/futex2
git checkout 28d2f243eaf76b0e9d84947a899fc742bd49d70c
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=powerpc 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 >>):
In file included from kernel/futex2.c:16:
In file included from include/linux/freezer.h:7:
In file included from include/linux/debug_locks.h:5:
In file included from include/linux/atomic.h:7:
In file included from arch/powerpc/include/asm/atomic.h:11:
In file included from arch/powerpc/include/asm/cmpxchg.h:8:
In file included from include/linux/bug.h:5:
In file included from arch/powerpc/include/asm/bug.h:109:
In file included from include/asm-generic/bug.h:20:
In file included from include/linux/kernel.h:12:
In file included from include/linux/bitops.h:32:
In file included from arch/powerpc/include/asm/bitops.h:62:
arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined [-Wmacro-redefined]
#define __lwsync() __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory")
^
<built-in>:309:9: note: previous definition is here
#define __lwsync __builtin_ppc_lwsync
^
kernel/futex2.c:307:31: error: implicit declaration of function 'basepage_index' [-Werror,-Wimplicit-function-declaration]
key->index = (unsigned long)basepage_index(tail);
^
kernel/futex2.c:307:31: note: did you mean 'page_index'?
include/linux/mm.h:1653:23: note: 'page_index' declared here
static inline pgoff_t page_index(struct page *page)
^
kernel/futex2.c:683:43: error: expected identifier
COMPAT_SYSCALL_DEFINE4(compat_futex_wait, void __user *, uaddr, compat_u64, val,
^
kernel/futex2.c:687:25: error: use of undeclared identifier 'uaddr'
return ksys_futex_wait(uaddr, val, flags, timo);
^
kernel/futex2.c:687:32: error: use of undeclared identifier 'val'
return ksys_futex_wait(uaddr, val, flags, timo);
^
kernel/futex2.c:687:37: error: use of undeclared identifier 'flags'
return ksys_futex_wait(uaddr, val, flags, timo);
^
kernel/futex2.c:687:44: error: use of undeclared identifier 'timo'
return ksys_futex_wait(uaddr, val, flags, timo);
^
kernel/futex2.c:683:1: warning: no previous prototype for function 'COMPAT_SYSCALL_DEFINE4' [-Wmissing-prototypes]
COMPAT_SYSCALL_DEFINE4(compat_futex_wait, void __user *, uaddr, compat_u64, val,
^
kernel/futex2.c:683:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
COMPAT_SYSCALL_DEFINE4(compat_futex_wait, void __user *, uaddr, compat_u64, val,
^
static
kernel/futex2.c:683:23: error: this old-style function definition is not preceded by a prototype [-Werror,-Wstrict-prototypes]
COMPAT_SYSCALL_DEFINE4(compat_futex_wait, void __user *, uaddr, compat_u64, val,
^
kernel/futex2.c:720:16: warning: declaration of 'struct compat_futex_waitv' will not be visible outside of this function [-Wvisibility]
struct compat_futex_waitv __user *uwaitv,
^
kernel/futex2.c:723:28: error: variable has incomplete type 'struct compat_futex_waitv'
struct compat_futex_waitv waitv;
^
kernel/futex2.c:720:16: note: forward declaration of 'struct compat_futex_waitv'
struct compat_futex_waitv __user *uwaitv,
^
kernel/futex2.c:728:37: error: subscript of pointer to incomplete type 'struct compat_futex_waitv'
if (copy_from_user(&waitv, &uwaitv[i], sizeof(waitv)))
~~~~~~^
kernel/futex2.c:720:16: note: forward declaration of 'struct compat_futex_waitv'
struct compat_futex_waitv __user *uwaitv,
^
kernel/futex2.c:737:31: error: implicit declaration of function 'compat_ptr' [-Werror,-Wimplicit-function-declaration]
futexv->objects[i].uaddr = compat_ptr(waitv.uaddr);
^
kernel/futex2.c:756:37: error: expected identifier
COMPAT_SYSCALL_DEFINE4(futex_waitv, struct compat_futex_waitv __user *, waiters,
^
>> kernel/futex2.c:756:1: error: redefinition of 'COMPAT_SYSCALL_DEFINE4'
COMPAT_SYSCALL_DEFINE4(futex_waitv, struct compat_futex_waitv __user *, waiters,
^
kernel/futex2.c:683:1: note: previous definition is here
COMPAT_SYSCALL_DEFINE4(compat_futex_wait, void __user *, uaddr, compat_u64, val,
^
kernel/futex2.c:763:6: error: use of undeclared identifier 'flags'
if (flags & ~FUTEXV_MASK)
^
kernel/futex2.c:766:7: error: use of undeclared identifier 'nr_futexes'
if (!nr_futexes || nr_futexes > FUTEX_WAITV_MAX || !waiters)
^
kernel/futex2.c:766:21: error: use of undeclared identifier 'nr_futexes'
if (!nr_futexes || nr_futexes > FUTEX_WAITV_MAX || !waiters)
^
kernel/futex2.c:766:54: error: use of undeclared identifier 'waiters'
if (!nr_futexes || nr_futexes > FUTEX_WAITV_MAX || !waiters)
^
kernel/futex2.c:769:50: error: use of undeclared identifier 'nr_futexes'
futexv = kmalloc((sizeof(struct futex_waiter) * nr_futexes) +
^
kernel/futex2.c:777:41: error: use of undeclared identifier 'waiters'
ret = compat_futex_parse_waitv(futexv, waiters, nr_futexes);
^
kernel/futex2.c:777:50: error: use of undeclared identifier 'nr_futexes'
ret = compat_futex_parse_waitv(futexv, waiters, nr_futexes);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
3 warnings and 20 errors generated.
vim +/COMPAT_SYSCALL_DEFINE4 +756 kernel/futex2.c
755
> 756 COMPAT_SYSCALL_DEFINE4(futex_waitv, struct compat_futex_waitv __user *, waiters,
757 unsigned int, nr_futexes, unsigned int, flags,
758 struct __kernel_timespec __user *, timo)
759 {
760 struct futex_waiter_head *futexv;
761 int ret;
762
763 if (flags & ~FUTEXV_MASK)
764 return -EINVAL;
765
766 if (!nr_futexes || nr_futexes > FUTEX_WAITV_MAX || !waiters)
767 return -EINVAL;
768
769 futexv = kmalloc((sizeof(struct futex_waiter) * nr_futexes) +
770 sizeof(*futexv), GFP_KERNEL);
771 if (!futexv)
772 return -ENOMEM;
773
774 futexv->hint = false;
775 futexv->task = current;
776
777 ret = compat_futex_parse_waitv(futexv, waiters, nr_futexes);
778
779 if (!ret)
780 ret = __futex_waitv(futexv, nr_futexes, timo, flags);
781
782 kfree(futexv);
783
784 return ret;
785 }
786 #endif
787
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[linux-stable-rc:linux-4.4.y 1357/1774] lib/string.c:286:29: warning: comparison of integer expressions of different signedness: 'ssize_t' {aka 'long int'} and 'long unsigned int'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.4.y
head: 38c92ba3580f0d00e57a55caf8f880aa1a0f2a50
commit: 651b7091172395ceb9c72e3595c20319f7290118 [1357/1774] lib/string: Add strscpy_pad() function
config: h8300-randconfig-r031-20210718 (attached as .config)
compiler: h8300-linux-gcc (GCC) 10.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/stable/linux-stable-rc.gi...
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-4.4.y
git checkout 651b7091172395ceb9c72e3595c20319f7290118
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=h8300
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 >>):
lib/string.c: In function 'strscpy_pad':
>> lib/string.c:286:29: warning: comparison of integer expressions of different signedness: 'ssize_t' {aka 'long int'} and 'long unsigned int' [-Wsign-compare]
286 | if (written < 0 || written == count - 1)
| ^~
vim +286 lib/string.c
261
262 /**
263 * strscpy_pad() - Copy a C-string into a sized buffer
264 * @dest: Where to copy the string to
265 * @src: Where to copy the string from
266 * @count: Size of destination buffer
267 *
268 * Copy the string, or as much of it as fits, into the dest buffer. The
269 * behavior is undefined if the string buffers overlap. The destination
270 * buffer is always %NUL terminated, unless it's zero-sized.
271 *
272 * If the source string is shorter than the destination buffer, zeros
273 * the tail of the destination buffer.
274 *
275 * For full explanation of why you may want to consider using the
276 * 'strscpy' functions please see the function docstring for strscpy().
277 *
278 * Return: The number of characters copied (not including the trailing
279 * %NUL) or -E2BIG if the destination buffer wasn't big enough.
280 */
281 ssize_t strscpy_pad(char *dest, const char *src, size_t count)
282 {
283 ssize_t written;
284
285 written = strscpy(dest, src, count);
> 286 if (written < 0 || written == count - 1)
287 return written;
288
289 memset(dest + written + 1, 0, count - written - 1);
290
291 return written;
292 }
293 EXPORT_SYMBOL(strscpy_pad);
294
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[linux-chenxing:mstar_v5_14_rebase_i2_drm 243/349] drivers/dma/mstar/mstar-msc313-urdma.c:69:6: warning: no previous prototype for 'msc313_urdma_issue_pending'
by kernel test robot
tree: git://github.com/linux-chenxing/linux.git mstar_v5_14_rebase_i2_drm
head: 93dfb2364436067bf34c6d4ddcd282496182cc0f
commit: c5e4acb2d1b28e7d0ccecb5a9232072ebfb29790 [243/349] dma: mstar: urdma
config: s390-allyesconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 10.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/linux-chenxing/linux/commit/c5e4acb2d1b28e7d0ccecb5a92...
git remote add linux-chenxing git://github.com/linux-chenxing/linux.git
git fetch --no-tags linux-chenxing mstar_v5_14_rebase_i2_drm
git checkout c5e4acb2d1b28e7d0ccecb5a9232072ebfb29790
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/dma/mstar/mstar-msc313-urdma.c: In function 'msc313_urdma_irq':
drivers/dma/mstar/mstar-msc313-urdma.c:59:23: warning: unused variable 'urdma' [-Wunused-variable]
59 | struct msc313_urdma *urdma = data;
| ^~~~~
drivers/dma/mstar/mstar-msc313-urdma.c: At top level:
>> drivers/dma/mstar/mstar-msc313-urdma.c:69:6: warning: no previous prototype for 'msc313_urdma_issue_pending' [-Wmissing-prototypes]
69 | void msc313_urdma_issue_pending(struct dma_chan *chan){
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/dma/mstar/mstar-msc313-urdma.c: In function 'msc313_tx_submit':
>> drivers/dma/mstar/mstar-msc313-urdma.c:75:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
75 | struct msc313_urdma_desc *desc = to_desc(tx);
| ^~~~~~
vim +/msc313_urdma_issue_pending +69 drivers/dma/mstar/mstar-msc313-urdma.c
68
> 69 void msc313_urdma_issue_pending(struct dma_chan *chan){
70 printk("urdma issue pending\n");
71 }
72
73 static dma_cookie_t msc313_tx_submit(struct dma_async_tx_descriptor *tx){
74 struct msc313_urdma_chan *chan = to_chan(tx->chan);
> 75 struct msc313_urdma_desc *desc = to_desc(tx);
76 list_add_tail(&desc->queue_node, &chan->queue);
77 return chan->cookie++;
78 }
79
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[zen-kernel-zen-kernel:5.13/futex2 1/19] kernel/futex2.c:474:25: error: use of undeclared identifier 'uaddr'
by kernel test robot
tree: https://github.com/zen-kernel/zen-kernel 5.13/futex2
head: db649ce1f5de12432be5bfedd8388eacc2f85efc
commit: f12c1f14276bce0f66e514b419e68506fb5bad55 [1/19] futex2: Implement wait and wake functions
config: powerpc64-randconfig-r011-20210718 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 5d5b08761f944d5b9822d582378333cc4b36a0a7)
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://github.com/zen-kernel/zen-kernel/commit/f12c1f14276bce0f66e514b41...
git remote add zen-kernel-zen-kernel https://github.com/zen-kernel/zen-kernel
git fetch --no-tags zen-kernel-zen-kernel 5.13/futex2
git checkout f12c1f14276bce0f66e514b419e68506fb5bad55
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=powerpc 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 >>):
In file included from kernel/futex2.c:16:
In file included from include/linux/freezer.h:7:
In file included from include/linux/debug_locks.h:5:
In file included from include/linux/atomic.h:7:
In file included from arch/powerpc/include/asm/atomic.h:11:
In file included from arch/powerpc/include/asm/cmpxchg.h:8:
In file included from include/linux/bug.h:5:
In file included from arch/powerpc/include/asm/bug.h:109:
In file included from include/asm-generic/bug.h:20:
In file included from include/linux/kernel.h:12:
In file included from include/linux/bitops.h:32:
In file included from arch/powerpc/include/asm/bitops.h:62:
arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined [-Wmacro-redefined]
#define __lwsync() __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory")
^
<built-in>:309:9: note: previous definition is here
#define __lwsync __builtin_ppc_lwsync
^
kernel/futex2.c:470:43: error: expected identifier
COMPAT_SYSCALL_DEFINE4(compat_futex_wait, void __user *, uaddr, compat_u64, val,
^
>> kernel/futex2.c:474:25: error: use of undeclared identifier 'uaddr'
return ksys_futex_wait(uaddr, val, flags, timo);
^
>> kernel/futex2.c:474:32: error: use of undeclared identifier 'val'
return ksys_futex_wait(uaddr, val, flags, timo);
^
kernel/futex2.c:474:37: error: use of undeclared identifier 'flags'
return ksys_futex_wait(uaddr, val, flags, timo);
^
kernel/futex2.c:474:44: error: use of undeclared identifier 'timo'
return ksys_futex_wait(uaddr, val, flags, timo);
^
kernel/futex2.c:470:1: warning: no previous prototype for function 'COMPAT_SYSCALL_DEFINE4' [-Wmissing-prototypes]
COMPAT_SYSCALL_DEFINE4(compat_futex_wait, void __user *, uaddr, compat_u64, val,
^
kernel/futex2.c:470:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
COMPAT_SYSCALL_DEFINE4(compat_futex_wait, void __user *, uaddr, compat_u64, val,
^
static
kernel/futex2.c:470:23: error: this old-style function definition is not preceded by a prototype [-Werror,-Wstrict-prototypes]
COMPAT_SYSCALL_DEFINE4(compat_futex_wait, void __user *, uaddr, compat_u64, val,
^
2 warnings and 6 errors generated.
vim +/uaddr +474 kernel/futex2.c
468
469 #ifdef CONFIG_COMPAT
470 COMPAT_SYSCALL_DEFINE4(compat_futex_wait, void __user *, uaddr, compat_u64, val,
471 unsigned int, flags,
472 struct __kernel_timespec __user *, timo)
473 {
> 474 return ksys_futex_wait(uaddr, val, flags, timo);
475 }
476 #endif
477
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
drivers/spi/spi-orion.c:413:17: sparse: sparse: incorrect type in assignment (different base types)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 2734d6c1b1a089fb593ef6a23d4b70903526fe0c
commit: 005b73d0dd83c9cb9420a196bea8070cde30ecac m68knommu: __force type casts for raw IO access
date: 12 months ago
config: m68k-randconfig-s032-20210719 (attached as .config)
compiler: m68k-linux-gcc (GCC) 10.3.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.3-341-g8af24329-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 005b73d0dd83c9cb9420a196bea8070cde30ecac
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/spi/spi-orion.c:413:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int volatile [usertype] @@ got restricted __le16 [usertype] @@
drivers/spi/spi-orion.c:413:17: sparse: expected unsigned int volatile [usertype]
drivers/spi/spi-orion.c:413:17: sparse: got restricted __le16 [usertype]
drivers/spi/spi-orion.c:423:17: sparse: sparse: cast to restricted __le16
drivers/spi/spi-orion.c:423:17: sparse: sparse: cast to restricted __le16
drivers/spi/spi-orion.c:423:17: sparse: sparse: cast to restricted __le16
drivers/spi/spi-orion.c:423:17: sparse: sparse: cast to restricted __le16
drivers/spi/spi-orion.c:423:17: sparse: sparse: cast to restricted __le16
drivers/spi/spi-orion.c:423:17: sparse: sparse: cast to restricted __le16
drivers/spi/spi-orion.c:423:17: sparse: sparse: cast to restricted __le16
drivers/spi/spi-orion.c:423:17: sparse: sparse: cast to restricted __le16
drivers/spi/spi-orion.c:423:17: sparse: sparse: cast to restricted __le16
drivers/spi/spi-orion.c:423:17: sparse: sparse: cast to restricted __le16
drivers/spi/spi-orion.c:423:17: sparse: sparse: cast to restricted __le16
drivers/spi/spi-orion.c:423:17: sparse: sparse: cast to restricted __le16
drivers/spi/spi-orion.c:423:17: sparse: sparse: cast to restricted __le16
drivers/spi/spi-orion.c:423:17: sparse: sparse: cast to restricted __le16
drivers/spi/spi-orion.c:423:17: sparse: sparse: cast to restricted __le16
drivers/spi/spi-orion.c:423:17: sparse: sparse: cast to restricted __le16
vim +413 drivers/spi/spi-orion.c
60cadec9da7b6c drivers/spi/orion_spi.c Shadi Ammouri 2008-08-05 396
60cadec9da7b6c drivers/spi/orion_spi.c Shadi Ammouri 2008-08-05 397 static inline int
60cadec9da7b6c drivers/spi/orion_spi.c Shadi Ammouri 2008-08-05 398 orion_spi_write_read_16bit(struct spi_device *spi,
60cadec9da7b6c drivers/spi/orion_spi.c Shadi Ammouri 2008-08-05 399 const u16 **tx_buf, u16 **rx_buf)
60cadec9da7b6c drivers/spi/orion_spi.c Shadi Ammouri 2008-08-05 400 {
60cadec9da7b6c drivers/spi/orion_spi.c Shadi Ammouri 2008-08-05 401 void __iomem *tx_reg, *rx_reg, *int_reg;
60cadec9da7b6c drivers/spi/orion_spi.c Shadi Ammouri 2008-08-05 402 struct orion_spi *orion_spi;
60cadec9da7b6c drivers/spi/orion_spi.c Shadi Ammouri 2008-08-05 403
60cadec9da7b6c drivers/spi/orion_spi.c Shadi Ammouri 2008-08-05 404 orion_spi = spi_master_get_devdata(spi->master);
60cadec9da7b6c drivers/spi/orion_spi.c Shadi Ammouri 2008-08-05 405 tx_reg = spi_reg(orion_spi, ORION_SPI_DATA_OUT_REG);
60cadec9da7b6c drivers/spi/orion_spi.c Shadi Ammouri 2008-08-05 406 rx_reg = spi_reg(orion_spi, ORION_SPI_DATA_IN_REG);
60cadec9da7b6c drivers/spi/orion_spi.c Shadi Ammouri 2008-08-05 407 int_reg = spi_reg(orion_spi, ORION_SPI_INT_CAUSE_REG);
60cadec9da7b6c drivers/spi/orion_spi.c Shadi Ammouri 2008-08-05 408
60cadec9da7b6c drivers/spi/orion_spi.c Shadi Ammouri 2008-08-05 409 /* clear the interrupt cause register */
60cadec9da7b6c drivers/spi/orion_spi.c Shadi Ammouri 2008-08-05 410 writel(0x0, int_reg);
60cadec9da7b6c drivers/spi/orion_spi.c Shadi Ammouri 2008-08-05 411
60cadec9da7b6c drivers/spi/orion_spi.c Shadi Ammouri 2008-08-05 412 if (tx_buf && *tx_buf)
60cadec9da7b6c drivers/spi/orion_spi.c Shadi Ammouri 2008-08-05 @413 writel(__cpu_to_le16(get_unaligned((*tx_buf)++)), tx_reg);
60cadec9da7b6c drivers/spi/orion_spi.c Shadi Ammouri 2008-08-05 414 else
60cadec9da7b6c drivers/spi/orion_spi.c Shadi Ammouri 2008-08-05 415 writel(0, tx_reg);
60cadec9da7b6c drivers/spi/orion_spi.c Shadi Ammouri 2008-08-05 416
60cadec9da7b6c drivers/spi/orion_spi.c Shadi Ammouri 2008-08-05 417 if (orion_spi_wait_till_ready(orion_spi) < 0) {
60cadec9da7b6c drivers/spi/orion_spi.c Shadi Ammouri 2008-08-05 418 dev_err(&spi->dev, "TXS timed out\n");
60cadec9da7b6c drivers/spi/orion_spi.c Shadi Ammouri 2008-08-05 419 return -1;
60cadec9da7b6c drivers/spi/orion_spi.c Shadi Ammouri 2008-08-05 420 }
60cadec9da7b6c drivers/spi/orion_spi.c Shadi Ammouri 2008-08-05 421
60cadec9da7b6c drivers/spi/orion_spi.c Shadi Ammouri 2008-08-05 422 if (rx_buf && *rx_buf)
60cadec9da7b6c drivers/spi/orion_spi.c Shadi Ammouri 2008-08-05 423 put_unaligned(__le16_to_cpu(readl(rx_reg)), (*rx_buf)++);
60cadec9da7b6c drivers/spi/orion_spi.c Shadi Ammouri 2008-08-05 424
60cadec9da7b6c drivers/spi/orion_spi.c Shadi Ammouri 2008-08-05 425 return 1;
60cadec9da7b6c drivers/spi/orion_spi.c Shadi Ammouri 2008-08-05 426 }
60cadec9da7b6c drivers/spi/orion_spi.c Shadi Ammouri 2008-08-05 427
:::::: The code at line 413 was first introduced by commit
:::::: 60cadec9da7b6c91aca51f408c828f7e74a68379 spi: new orion_spi driver
:::::: TO: Shadi Ammouri <shadi(a)marvell.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[linux-chenxing:mstar_v5_14_rebase_i2_drm 203/349] drivers/irqchip/irq-msc313-pm-wakeup.c:137:2: warning: ignoring return value of 'request_irq' declared with attribute 'warn_unused_result'
by kernel test robot
tree: git://github.com/linux-chenxing/linux.git mstar_v5_14_rebase_i2_drm
head: 93dfb2364436067bf34c6d4ddcd282496182cc0f
commit: a19d27ac78ef431e6bf1e00a85d676ac5d051650 [203/349] ARM: mstar: wakeup intc
config: s390-allyesconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 10.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/linux-chenxing/linux/commit/a19d27ac78ef431e6bf1e00a85...
git remote add linux-chenxing git://github.com/linux-chenxing/linux.git
git fetch --no-tags linux-chenxing mstar_v5_14_rebase_i2_drm
git checkout a19d27ac78ef431e6bf1e00a85d676ac5d051650
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/irqchip/irq-msc313-pm-wakeup.c: In function 'msc313_pm_wakeup_intc_of_init':
>> drivers/irqchip/irq-msc313-pm-wakeup.c:137:2: warning: ignoring return value of 'request_irq' declared with attribute 'warn_unused_result' [-Wunused-result]
137 | request_irq(irq, msc313_pm_wakeup_intc_chainedhandler, IRQF_SHARED,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
138 | "pmsleep", domain);
| ~~~~~~~~~~~~~~~~~~
vim +137 drivers/irqchip/irq-msc313-pm-wakeup.c
100
101 static int __init msc313_pm_wakeup_intc_of_init(struct device_node *node,
102 struct device_node *parent)
103 {
104 int ret = 0, irq;
105 struct regmap *pmsleep;
106 struct msc313_sleep_intc *intc;
107 struct irq_domain *domain;
108
109 irq = of_irq_get(node, 0);
110 if (irq <= 0)
111 return irq;
112
113 pmsleep = syscon_regmap_lookup_by_phandle(node, "mstar,pmsleep");
114 if(IS_ERR(pmsleep))
115 return PTR_ERR(pmsleep);
116
117 intc = kzalloc(sizeof(*intc), GFP_KERNEL);
118 if (!intc)
119 return -ENOMEM;
120
121 intc->mask = regmap_field_alloc(pmsleep, field_mask);
122 intc->type = regmap_field_alloc(pmsleep, field_type);
123 intc->status = regmap_field_alloc(pmsleep, field_status);
124
125 /*
126 * The masks survive deep sleep so clear them.
127 */
128 regmap_field_write(intc->mask, ~0);
129
130 domain = irq_domain_add_linear(node, NUM_IRQ,
131 &msc313_pm_wakeup_intc_domain_ops, intc);
132 if (!domain) {
133 ret = -ENOMEM;
134 goto out_free;
135 }
136
> 137 request_irq(irq, msc313_pm_wakeup_intc_chainedhandler, IRQF_SHARED,
138 "pmsleep", domain);
139
140 return 0;
141
142 out_free:
143 kfree(intc);
144 return ret;
145 }
146
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
Re: [RFC] Bluetooth: hci_sock: Fix calling lock_sock when handling HCI_DEV_UNREG
by kernel test robot
Hi Luiz,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on bluetooth-next/master]
[also build test WARNING on linus/master v5.14-rc2]
[cannot apply to bluetooth/master next-20210716]
[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/Luiz-Augusto-von-Dentz/Bluetooth...
base: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git master
config: x86_64-randconfig-s021-20210718 (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://github.com/0day-ci/linux/commit/a02b154e687ba3e82afdd263f84570b1c...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Luiz-Augusto-von-Dentz/Bluetooth-hci_sock-Fix-calling-lock_sock-when-handling-HCI_DEV_UNREG/20210718-112013
git checkout a02b154e687ba3e82afdd263f84570b1ca185a8a
# save the attached .config to linux build tree
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>
sparse warnings: (new ones prefixed by >>)
>> net/bluetooth/hci_conn.c:1709:29: sparse: sparse: cast removes address space '__user' of expression
>> net/bluetooth/hci_conn.c:1709:40: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected char [noderef] __user *ptr @@ got char * @@
net/bluetooth/hci_conn.c:1709:40: sparse: expected char [noderef] __user *ptr
net/bluetooth/hci_conn.c:1709:40: sparse: got char *
vim +/__user +1709 net/bluetooth/hci_conn.c
1703
1704 int hci_get_conn_info(struct hci_dev *hdev, void __user *arg,
1705 struct hci_conn_info_req *req)
1706 {
1707 struct hci_conn_info ci;
1708 struct hci_conn *conn;
> 1709 char __user *ptr = (char *)arg + sizeof(*req);
1710
1711 hci_dev_lock(hdev);
1712 conn = hci_conn_hash_lookup_ba(hdev, req->type, &req->bdaddr);
1713 if (conn) {
1714 bacpy(&ci.bdaddr, &conn->dst);
1715 ci.handle = conn->handle;
1716 ci.type = conn->type;
1717 ci.out = conn->out;
1718 ci.state = conn->state;
1719 ci.link_mode = get_link_mode(conn);
1720 }
1721 hci_dev_unlock(hdev);
1722
1723 if (!conn)
1724 return -ENOENT;
1725
1726 return copy_to_user(ptr, &ci, sizeof(ci)) ? -EFAULT : 0;
1727 }
1728
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months