tree:
https://github.com/0day-ci/linux/commits/Geliang-Tang/mptcp-unify-MPTCP_P...
head: 3f09f774b312ce644f099fbd6c937a55557282de
commit: c02de26a91832f767c707764154cbce3ad8dd459 [8/15] mptcp: introduce token KUNIT
self-tests
config: c6x-randconfig-s031-20200612 (attached as .config)
compiler: c6x-elf-gcc (GCC) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-250-g42323db3-dirty
git checkout c02de26a91832f767c707764154cbce3ad8dd459
# save the attached .config to linux build tree
make W=1 C=1 ARCH=c6x CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
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/mptcp/token_test.c:68:29: sparse: sparse: incorrect type in
assignment (different address spaces) @@ expected void [noderef] <asn:4>
*icsk_ulp_data @@ got struct mptcp_subflow_context *ctx @@
> net/mptcp/token_test.c:68:29: sparse: expected void [noderef] <asn:4>
*icsk_ulp_data
> net/mptcp/token_test.c:68:29: sparse: got struct mptcp_subflow_context *ctx
vim +68 net/mptcp/token_test.c
59
60 static void mptcp_token_test_msk_basic(struct kunit *test)
61 {
62 struct inet_connection_sock *icsk = build_icsk(test);
63 struct mptcp_subflow_context *ctx = build_ctx(test);
64 struct mptcp_sock *msk = build_msk(test);
65 struct mptcp_sock *null_msk = NULL;
66 struct sock *sk;
67
68 icsk->icsk_ulp_data = ctx;
69 ctx->conn =
(struct sock*)msk;
70 sk = (struct sock*)msk;
71
72 KUNIT_ASSERT_EQ(test, 0,
73 mptcp_token_new_connect((struct sock *)icsk));
74 KUNIT_EXPECT_NE(test, 0, (int)ctx->token);
75 KUNIT_EXPECT_EQ(test, ctx->token, msk->token);
76 KUNIT_EXPECT_PTR_EQ(test, msk, mptcp_token_get_sock(ctx->token));
77 KUNIT_EXPECT_EQ(test, 2, (int)refcount_read(&sk->sk_refcnt));
78
79 mptcp_token_destroy(msk);
80 KUNIT_EXPECT_PTR_EQ(test, null_msk, mptcp_token_get_sock(ctx->token));
81 }
82
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org