From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7F1C1C47DD3 for ; Fri, 19 Jan 2024 16:33:15 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A6F286B007D; Fri, 19 Jan 2024 11:33:14 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A1EC96B007E; Fri, 19 Jan 2024 11:33:14 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 90E756B0080; Fri, 19 Jan 2024 11:33:14 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 833BC6B007D for ; Fri, 19 Jan 2024 11:33:14 -0500 (EST) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 35BC0120D97 for ; Fri, 19 Jan 2024 16:33:14 +0000 (UTC) X-FDA: 81696605508.07.FCEA5E5 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by imf28.hostedemail.com (Postfix) with ESMTP id D717CC0023 for ; Fri, 19 Jan 2024 16:33:11 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=WVfYLxhh; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf28.hostedemail.com: domain of lkp@intel.com designates 192.198.163.8 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1705681992; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=76DOCh5705kVFS1zE79yjDdxna3u+bxyykdlIXSytII=; b=saqcPgqZ3tOe5E3MicPu32xtYr+PoyY4nPUwgwqJQyPwNRwxNBfEX8O+AOnJAdPzlGIWzY Rnh5qEaQ03iZnFDZrosqf1MofVIqUHw2nI/UoHhyHCo5/eZjJo6gt8spGxbM+moCenrL+G euTDGD/eQ0AN9u0zT4vi8Db1AMdQhI4= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=WVfYLxhh; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf28.hostedemail.com: domain of lkp@intel.com designates 192.198.163.8 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1705681992; a=rsa-sha256; cv=none; b=70OGIRBRd25MySqxqTueL0Ra75DTyKOD47y7JXwKu/L5xG1fihu+IR6balRr9VzOL80nsF 9GSkYZZ6ZJNQ+KfyxaTagPwoRtOa0OosOid8mp0IXWQI2JvF1d+KQpv7uZj8n4H1pFmjoy u895IOLI0mBVvjXUGoBa53N2qkfznCA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1705681992; x=1737217992; h=date:from:to:cc:subject:message-id:mime-version; bh=dKS5npDIjAK35M70cYpT+7Wv4sNBpWTGv1pyRXc7OWo=; b=WVfYLxhhKuogX7QxtAi1m+vly3k9R9M1Do24ZOV7PQe573qK/OUIUAr4 4iRzbmI+QFStZKK6zktpR/aMPcSxLuMfz83Fs3HZqG/TelVMbkcOXRGJK xa1z7piZyBzNRDOBIkg3jAOX3nAmky1+tkyOrRGhAY4rQUwOTFcIywzLs uPCiLmXg/6P+UgtR8Xji5yJOvRJaDxbLXPTeGGSuDmn42VeOAqtidREKX RkVcEZHw/p3dkh5NYRWfyrMYSXS/cz6a7lFxh1H9GJbKbS4gUvAwWWmK6 j3+A4r9yUNYe1JUatj432lZAJxRARGyznXE7YibWketRGvzq1h4MJc94+ Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10957"; a="14304862" X-IronPort-AV: E=Sophos;i="6.05,204,1701158400"; d="scan'208";a="14304862" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2024 08:33:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,204,1701158400"; d="scan'208";a="691322" Received: from lkp-server01.sh.intel.com (HELO 961aaaa5b03c) ([10.239.97.150]) by fmviesa004.fm.intel.com with ESMTP; 19 Jan 2024 08:33:09 -0800 Received: from kbuild by 961aaaa5b03c with local (Exim 4.96) (envelope-from ) id 1rQrnm-0004Fw-2O; Fri, 19 Jan 2024 16:33:06 +0000 Date: Sat, 20 Jan 2024 00:32:23 +0800 From: kernel test robot To: Charlie Jenkins Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Palmer Dabbelt Subject: [linux-next:master 13664/13959] lib/checksum_kunit.c:616:17: sparse: sparse: incorrect type in argument 5 (different base types) Message-ID: <202401200016.e774FjBx-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspam-User: X-Stat-Signature: a4qkwu4z1j1ik7at7b1i71smcn9s8xn5 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: D717CC0023 X-HE-Tag: 1705681991-755075 X-HE-Meta: U2FsdGVkX1+DwW7Xz/id1yafJUUPvvvbWlexpUez8b6zlw9xMdHxH52KJiUm/YIIV0MFTjF2HfnHkZROoV1ilsB+8kjXz7bWtxQguhWHdgAXktadc8htomPT4yuZgq7h0YAQz//CB88r/8Xygu34Hwq7McDZUJ4b/YL63cLi1oOG2zCqJk01fNnvEpHNXzlZTsmHnEkHjAJV0K4en0tuhDqOhru5Zetx1MoI70SaY2LDmn29TB4KgOnjPylI5m9bHS5HMT28SE8hCHqe64xQIN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FfI1Ebs1cMObzuH6hLNiu X-Bogosity: Ham, tests=bogofilter, spamicity=0.000497, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: ad5c60d66016e544c51ed98635a74073f761f45d commit: 6f4c45cbcb00d649475a3099235e5b4fce569b4b [13664/13959] kunit: Add tests for csum_ipv6_magic and ip_fast_csum config: x86_64-randconfig-121-20240119 (https://download.01.org/0day-ci/archive/20240120/202401200016.e774FjBx-lkp@intel.com/config) compiler: ClangBuiltLinux clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240120/202401200016.e774FjBx-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202401200016.e774FjBx-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) lib/checksum_kunit.c:442:33: sparse: got int lib/checksum_kunit.c:442:41: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __sum16 @@ got int @@ lib/checksum_kunit.c:442:41: sparse: expected restricted __sum16 lib/checksum_kunit.c:442:41: sparse: got int lib/checksum_kunit.c:442:49: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __sum16 @@ got int @@ lib/checksum_kunit.c:442:49: sparse: expected restricted __sum16 lib/checksum_kunit.c:442:49: sparse: got int lib/checksum_kunit.c:442:57: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __sum16 @@ got int @@ lib/checksum_kunit.c:442:57: sparse: expected restricted __sum16 lib/checksum_kunit.c:442:57: sparse: got int lib/checksum_kunit.c:442:65: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __sum16 @@ got int @@ lib/checksum_kunit.c:442:65: sparse: expected restricted __sum16 lib/checksum_kunit.c:442:65: sparse: got int lib/checksum_kunit.c:442:73: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __sum16 @@ got int @@ lib/checksum_kunit.c:442:73: sparse: expected restricted __sum16 lib/checksum_kunit.c:442:73: sparse: got int lib/checksum_kunit.c:443:9: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __sum16 @@ got int @@ lib/checksum_kunit.c:443:9: sparse: expected restricted __sum16 lib/checksum_kunit.c:443:9: sparse: got int lib/checksum_kunit.c:443:17: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __sum16 @@ got int @@ lib/checksum_kunit.c:443:17: sparse: expected restricted __sum16 lib/checksum_kunit.c:443:17: sparse: got int lib/checksum_kunit.c:443:25: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __sum16 @@ got int @@ lib/checksum_kunit.c:443:25: sparse: expected restricted __sum16 lib/checksum_kunit.c:443:25: sparse: got int lib/checksum_kunit.c:443:33: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __sum16 @@ got int @@ lib/checksum_kunit.c:443:33: sparse: expected restricted __sum16 lib/checksum_kunit.c:443:33: sparse: got int lib/checksum_kunit.c:443:41: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __sum16 @@ got int @@ lib/checksum_kunit.c:443:41: sparse: expected restricted __sum16 lib/checksum_kunit.c:443:41: sparse: got int lib/checksum_kunit.c:443:49: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __sum16 @@ got int @@ lib/checksum_kunit.c:443:49: sparse: expected restricted __sum16 lib/checksum_kunit.c:443:49: sparse: got int lib/checksum_kunit.c:443:57: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __sum16 @@ got int @@ lib/checksum_kunit.c:443:57: sparse: expected restricted __sum16 lib/checksum_kunit.c:443:57: sparse: got int lib/checksum_kunit.c:443:65: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __sum16 @@ got int @@ lib/checksum_kunit.c:443:65: sparse: expected restricted __sum16 lib/checksum_kunit.c:443:65: sparse: got int lib/checksum_kunit.c:443:73: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __sum16 @@ got int @@ lib/checksum_kunit.c:443:73: sparse: expected restricted __sum16 lib/checksum_kunit.c:443:73: sparse: got int lib/checksum_kunit.c:444:9: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __sum16 @@ got int @@ lib/checksum_kunit.c:444:9: sparse: expected restricted __sum16 lib/checksum_kunit.c:444:9: sparse: got int lib/checksum_kunit.c:444:17: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __sum16 @@ got int @@ lib/checksum_kunit.c:444:17: sparse: expected restricted __sum16 lib/checksum_kunit.c:444:17: sparse: got int lib/checksum_kunit.c:444:25: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __sum16 @@ got int @@ lib/checksum_kunit.c:444:25: sparse: expected restricted __sum16 lib/checksum_kunit.c:444:25: sparse: got int lib/checksum_kunit.c:444:33: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __sum16 @@ got int @@ lib/checksum_kunit.c:444:33: sparse: expected restricted __sum16 lib/checksum_kunit.c:444:33: sparse: got int lib/checksum_kunit.c:444:41: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __sum16 @@ got int @@ lib/checksum_kunit.c:444:41: sparse: expected restricted __sum16 lib/checksum_kunit.c:444:41: sparse: got int lib/checksum_kunit.c:444:49: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __sum16 @@ got int @@ lib/checksum_kunit.c:444:49: sparse: expected restricted __sum16 lib/checksum_kunit.c:444:49: sparse: got int lib/checksum_kunit.c:444:57: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __sum16 @@ got int @@ lib/checksum_kunit.c:444:57: sparse: expected restricted __sum16 lib/checksum_kunit.c:444:57: sparse: got int lib/checksum_kunit.c:444:65: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __sum16 @@ got int @@ lib/checksum_kunit.c:444:65: sparse: expected restricted __sum16 lib/checksum_kunit.c:444:65: sparse: got int lib/checksum_kunit.c:444:73: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __sum16 @@ got int @@ lib/checksum_kunit.c:444:73: sparse: expected restricted __sum16 lib/checksum_kunit.c:444:73: sparse: got int lib/checksum_kunit.c:445:9: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __sum16 @@ got int @@ lib/checksum_kunit.c:445:9: sparse: expected restricted __sum16 lib/checksum_kunit.c:445:9: sparse: got int lib/checksum_kunit.c:445:17: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __sum16 @@ got int @@ lib/checksum_kunit.c:445:17: sparse: expected restricted __sum16 lib/checksum_kunit.c:445:17: sparse: got int lib/checksum_kunit.c:445:25: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __sum16 @@ got int @@ lib/checksum_kunit.c:445:25: sparse: expected restricted __sum16 lib/checksum_kunit.c:445:25: sparse: got int lib/checksum_kunit.c:445:33: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __sum16 @@ got int @@ lib/checksum_kunit.c:445:33: sparse: expected restricted __sum16 lib/checksum_kunit.c:445:33: sparse: got int lib/checksum_kunit.c:445:41: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __sum16 @@ got int @@ lib/checksum_kunit.c:445:41: sparse: expected restricted __sum16 lib/checksum_kunit.c:445:41: sparse: got int lib/checksum_kunit.c:445:49: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __sum16 @@ got int @@ lib/checksum_kunit.c:445:49: sparse: expected restricted __sum16 lib/checksum_kunit.c:445:49: sparse: got int lib/checksum_kunit.c:445:57: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __sum16 @@ got int @@ lib/checksum_kunit.c:445:57: sparse: expected restricted __sum16 lib/checksum_kunit.c:445:57: sparse: got int lib/checksum_kunit.c:445:65: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __sum16 @@ got int @@ lib/checksum_kunit.c:445:65: sparse: expected restricted __sum16 lib/checksum_kunit.c:445:65: sparse: got int lib/checksum_kunit.c:445:73: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __sum16 @@ got int @@ lib/checksum_kunit.c:445:73: sparse: expected restricted __sum16 lib/checksum_kunit.c:445:73: sparse: got int lib/checksum_kunit.c:446:9: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __sum16 @@ got int @@ lib/checksum_kunit.c:446:9: sparse: expected restricted __sum16 lib/checksum_kunit.c:446:9: sparse: got int >> lib/checksum_kunit.c:616:17: sparse: sparse: incorrect type in argument 5 (different base types) @@ expected restricted __wsum [usertype] csum @@ got unsigned int [assigned] csum @@ lib/checksum_kunit.c:616:17: sparse: expected restricted __wsum [usertype] csum lib/checksum_kunit.c:616:17: sparse: got unsigned int [assigned] csum >> lib/checksum_kunit.c:616:17: sparse: sparse: incorrect type in argument 5 (different base types) @@ expected restricted __wsum [usertype] csum @@ got unsigned int [assigned] csum @@ lib/checksum_kunit.c:616:17: sparse: expected restricted __wsum [usertype] csum lib/checksum_kunit.c:616:17: sparse: got unsigned int [assigned] csum vim +616 lib/checksum_kunit.c 593 594 static void test_csum_ipv6_magic(struct kunit *test) 595 { 596 const struct in6_addr *saddr; 597 const struct in6_addr *daddr; 598 unsigned int len; 599 unsigned char proto; 600 unsigned int csum; 601 602 const int daddr_offset = sizeof(struct in6_addr); 603 const int len_offset = sizeof(struct in6_addr) + sizeof(struct in6_addr); 604 const int proto_offset = sizeof(struct in6_addr) + sizeof(struct in6_addr) + 605 sizeof(int); 606 const int csum_offset = sizeof(struct in6_addr) + sizeof(struct in6_addr) + 607 sizeof(int) + sizeof(char); 608 609 for (int i = 0; i < NUM_IPv6_TESTS; i++) { 610 saddr = (const struct in6_addr *)(random_buf + i); 611 daddr = (const struct in6_addr *)(random_buf + i + 612 daddr_offset); 613 len = *(unsigned int *)(random_buf + i + len_offset); 614 proto = *(random_buf + i + proto_offset); 615 csum = *(unsigned int *)(random_buf + i + csum_offset); > 616 CHECK_EQ(expected_csum_ipv6_magic[i], 617 csum_ipv6_magic(saddr, daddr, len, proto, csum)); 618 } 619 } 620 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki