From: kernel test robot <lkp@intel.com>
To: Qing Zhang <zhangqing@loongson.cn>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
Huacai Chen <chenhuacai@kernel.org>
Subject: net/mptcp/protocol.h:547:9: sparse: sparse: incorrect type in argument 1 (different address spaces)
Date: Fri, 17 Feb 2023 18:48:46 +0800 [thread overview]
Message-ID: <202302171814.thbj6Ykw-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: ec35307e18ba8174e2a3f701956059f6a36f22fb
commit: 93a4fa622eb061f75f87f0cf9609ab4e69c67d01 LoongArch: Add STACKTRACE support
date: 6 months ago
config: loongarch-randconfig-s033-20230217 (https://download.01.org/0day-ci/archive/20230217/202302171814.thbj6Ykw-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 12.1.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-39-gce1a6720-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=93a4fa622eb061f75f87f0cf9609ab4e69c67d01
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 93a4fa622eb061f75f87f0cf9609ab4e69c67d01
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=loongarch olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=loongarch SHELL=/bin/bash drivers/perf/ net/mptcp/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202302171814.thbj6Ykw-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
net/mptcp/options.c: note: in included file:
>> net/mptcp/protocol.h:547:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
net/mptcp/protocol.h:547:9: sparse: expected void *ptr
net/mptcp/protocol.h:547:9: sparse: got unsigned int [noderef] __percpu *
>> net/mptcp/protocol.h:547:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
net/mptcp/protocol.h:547:9: sparse: expected void *ptr
net/mptcp/protocol.h:547:9: sparse: got unsigned int [noderef] __percpu *
>> net/mptcp/protocol.h:547:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
net/mptcp/protocol.h:547:9: sparse: expected void *ptr
net/mptcp/protocol.h:547:9: sparse: got unsigned int [noderef] __percpu *
>> net/mptcp/protocol.h:547:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
net/mptcp/protocol.h:547:9: sparse: expected void *ptr
net/mptcp/protocol.h:547:9: sparse: got unsigned int [noderef] __percpu *
--
net/mptcp/protocol.c: note: in included file:
>> net/mptcp/protocol.h:547:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
net/mptcp/protocol.h:547:9: sparse: expected void *ptr
net/mptcp/protocol.h:547:9: sparse: got unsigned int [noderef] __percpu *
>> net/mptcp/protocol.h:547:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
net/mptcp/protocol.h:547:9: sparse: expected void *ptr
net/mptcp/protocol.h:547:9: sparse: got unsigned int [noderef] __percpu *
>> net/mptcp/protocol.h:547:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
net/mptcp/protocol.h:547:9: sparse: expected void *ptr
net/mptcp/protocol.h:547:9: sparse: got unsigned int [noderef] __percpu *
>> net/mptcp/protocol.h:547:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
net/mptcp/protocol.h:547:9: sparse: expected void *ptr
net/mptcp/protocol.h:547:9: sparse: got unsigned int [noderef] __percpu *
net/mptcp/protocol.c:3011:24: sparse: sparse: context imbalance in 'mptcp_sk_clone' - unexpected unlock
>> net/mptcp/protocol.h:547:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
net/mptcp/protocol.h:547:9: sparse: expected void *ptr
net/mptcp/protocol.h:547:9: sparse: got unsigned int [noderef] __percpu *
>> net/mptcp/protocol.h:547:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
net/mptcp/protocol.h:547:9: sparse: expected void *ptr
net/mptcp/protocol.h:547:9: sparse: got unsigned int [noderef] __percpu *
>> net/mptcp/protocol.h:547:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
net/mptcp/protocol.h:547:9: sparse: expected void *ptr
net/mptcp/protocol.h:547:9: sparse: got unsigned int [noderef] __percpu *
>> net/mptcp/protocol.h:547:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *ptr @@ got unsigned int [noderef] __percpu * @@
net/mptcp/protocol.h:547:9: sparse: expected void *ptr
net/mptcp/protocol.h:547:9: sparse: got unsigned int [noderef] __percpu *
vim +547 net/mptcp/protocol.h
b19bc2945b40b9 Paolo Abeni 2021-01-20 540
bcd97734318d1d Paolo Abeni 2021-11-19 541 static inline void mptcp_subflow_delegate(struct mptcp_subflow_context *subflow, int action)
b19bc2945b40b9 Paolo Abeni 2021-01-20 542 {
b19bc2945b40b9 Paolo Abeni 2021-01-20 543 struct mptcp_delegated_action *delegated;
b19bc2945b40b9 Paolo Abeni 2021-01-20 544 bool schedule;
b19bc2945b40b9 Paolo Abeni 2021-01-20 545
bcd97734318d1d Paolo Abeni 2021-11-19 546 /* the caller held the subflow bh socket lock */
bcd97734318d1d Paolo Abeni 2021-11-19 @547 lockdep_assert_in_softirq();
bcd97734318d1d Paolo Abeni 2021-11-19 548
b19bc2945b40b9 Paolo Abeni 2021-01-20 549 /* The implied barrier pairs with mptcp_subflow_delegated_done(), and
b19bc2945b40b9 Paolo Abeni 2021-01-20 550 * ensures the below list check sees list updates done prior to status
b19bc2945b40b9 Paolo Abeni 2021-01-20 551 * bit changes
b19bc2945b40b9 Paolo Abeni 2021-01-20 552 */
bcd97734318d1d Paolo Abeni 2021-11-19 553 if (!test_and_set_bit(action, &subflow->delegated_status)) {
b19bc2945b40b9 Paolo Abeni 2021-01-20 554 /* still on delegated list from previous scheduling */
b19bc2945b40b9 Paolo Abeni 2021-01-20 555 if (!list_empty(&subflow->delegated_node))
b19bc2945b40b9 Paolo Abeni 2021-01-20 556 return;
b19bc2945b40b9 Paolo Abeni 2021-01-20 557
b19bc2945b40b9 Paolo Abeni 2021-01-20 558 delegated = this_cpu_ptr(&mptcp_delegated_actions);
b19bc2945b40b9 Paolo Abeni 2021-01-20 559 schedule = list_empty(&delegated->head);
b19bc2945b40b9 Paolo Abeni 2021-01-20 560 list_add_tail(&subflow->delegated_node, &delegated->head);
b19bc2945b40b9 Paolo Abeni 2021-01-20 561 sock_hold(mptcp_subflow_tcp_sock(subflow));
b19bc2945b40b9 Paolo Abeni 2021-01-20 562 if (schedule)
b19bc2945b40b9 Paolo Abeni 2021-01-20 563 napi_schedule(&delegated->napi);
b19bc2945b40b9 Paolo Abeni 2021-01-20 564 }
b19bc2945b40b9 Paolo Abeni 2021-01-20 565 }
b19bc2945b40b9 Paolo Abeni 2021-01-20 566
:::::: The code at line 547 was first introduced by commit
:::::: bcd97734318d1d87bb237dbc0a60c81237b0ac50 mptcp: use delegate action to schedule 3rd ack retrans
:::::: TO: Paolo Abeni <pabeni@redhat.com>
:::::: CC: David S. Miller <davem@davemloft.net>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
next reply other threads:[~2023-02-17 10:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-17 10:48 kernel test robot [this message]
2023-04-02 6:07 net/mptcp/protocol.h:547:9: sparse: sparse: incorrect type in argument 1 (different address spaces) kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202302171814.thbj6Ykw-lkp@intel.com \
--to=lkp@intel.com \
--cc=chenhuacai@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=zhangqing@loongson.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).