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 BE240C4332F for ; Thu, 8 Dec 2022 07:06:35 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E95168E0003; Thu, 8 Dec 2022 02:06:34 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E46F28E0001; Thu, 8 Dec 2022 02:06:34 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D0E098E0003; Thu, 8 Dec 2022 02:06:34 -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 C049E8E0001 for ; Thu, 8 Dec 2022 02:06:34 -0500 (EST) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 6FADC402A6 for ; Thu, 8 Dec 2022 07:06:34 +0000 (UTC) X-FDA: 80218255908.19.C777368 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by imf25.hostedemail.com (Postfix) with ESMTP id 3B85DA0017 for ; Thu, 8 Dec 2022 07:06:29 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=MvP1nwYv; spf=pass (imf25.hostedemail.com: domain of rong.a.chen@intel.com designates 134.134.136.126 as permitted sender) smtp.mailfrom=rong.a.chen@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1670483191; 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:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=g9NgeF6XcuL4XaX2AejaBZucrOivxL+eP6hEEW+jSGg=; b=pscGweoJZPWaK8y/YHMtXAnRGQ6BH9YE3N9+c8IxZcBpU+dDwPS7hCMAYIghFej3f2uL0i i/WJFtMutuyY5dJU/2yTfXmQF9LIrVhAwCb1D3WLl+c8pfNV+GkiQgQdMuj+4eWTqjEFRq HkPDWSOZP3x7Jz7I5+v6017XWq2LjhA= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=MvP1nwYv; spf=pass (imf25.hostedemail.com: domain of rong.a.chen@intel.com designates 134.134.136.126 as permitted sender) smtp.mailfrom=rong.a.chen@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1670483191; a=rsa-sha256; cv=none; b=GdzPRlZitend66DkAp+6cl4+WggfcWWEnseqt0knHQ2ZykGKyFbnj7RosreKqj4Eau+VKK uX8cCj7huet6Pbp+7ia5FOfMcLo6RM/QvEtkQ8y0l/suXxByqnSs434WvZhMRJH6N2NVdO jiHmtYqT3DsuwXDUKmSMtXCgIips9mY= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1670483190; x=1702019190; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=MazzARJ0TDY2vqbGWOp0+Y8XRTB/z8nD9pxfSFQRlWE=; b=MvP1nwYvXzSdT+f29o1BYAjPNtKrXV4gez8U/IDD3wVjzbHLDEDcArIL 775RYmpxlk1wA/bPSK0owUgYjNmJsxODVXMER1A3tkBx+e9sb6bCTxL64 pIfP6VSUAFDBTlhXql1kl0M7CBc+N7NouSZZ0sjHiiR0fM4QLcMvHUcz3 cgqamoPVWYpjRIkwk5gmit/+JhMvjEmhvKSIbZGSuiGiilHz6lwD0IG3c KPoFcHRPWKrAlbWbBRkTb+LZkr5K6RgIJkl6w0P0EJCndUcWCj/OrG/1z Z0CjpyLNf7iLsIaAl4C79Pyy7mzfbc24+9P8EOslqwx6pHnYwClLTAemO A==; X-IronPort-AV: E=McAfee;i="6500,9779,10554"; a="300510664" X-IronPort-AV: E=Sophos;i="5.96,227,1665471600"; d="scan'208";a="300510664" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Dec 2022 23:04:56 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10554"; a="821232154" X-IronPort-AV: E=Sophos;i="5.96,227,1665471600"; d="scan'208";a="821232154" Received: from rongch2-mobl.ccr.corp.intel.com (HELO [10.254.215.59]) ([10.254.215.59]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Dec 2022 23:04:55 -0800 Subject: Re: [linux-next:master 11969/13282] drivers/net/thunderbolt.c:733:47: sparse: sparse: restricted __le32 degrades to integer To: Andy Shevchenko , kernel test robot Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List References: <202212061455.6GE7y0jg-lkp@intel.com> From: "Chen, Rong A" Message-ID: Date: Thu, 8 Dec 2022 15:04:52 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 3B85DA0017 X-Stat-Signature: uf3yjdyehn39e7frq9qd5r9rhsgjdr5b X-HE-Tag: 1670483189-457315 X-HE-Meta: U2FsdGVkX1+Im/l6HzgpgQHoc1a7Z3U1oTPuEbyrgIDXI4bH9wwAwhG2aUQVVKLyKlzP5cBIfb1ElB4VBGIIUK6NOUcFrcxNpcnKsBQ3Oj1x5oTSvZtBsJqD8zNLfOdQamu4SF0GXnEq1oP0/ZJwRFyR6J3Ykz0GleeV/T8UfIQyZfqAWA4QnyPGGB+/i4PaaIapZB7EywyTubsO69M/KxWbTLYe8TXqqbjtwsblEY6rfJ1HR1TCdeKbCQL8a1nPsvXu4UUKJwn691SBzaIZmlJ49dWtdqZZ7ZajzbZW/S/xSKIcY3uqPu2FpOC3avS40+uy54cqFp3HwVxSS7nc+GWI/bhqHJqRoALE8StHACteyguloMAq1d8YJUdGqTYSG6eZpBazcdnT/Xxbf2IHZgJGy7yS5srV5zR1gLWKhvIJuWO8eoGDV7VRLdu5otUxfWNOIHiVdKdDphtYXuA4KNXG0VTYXE11sDO0b/KcvNLPamEgNCtsAJ8nDklSkjDEzaJEBsKivNW+3xvfrIUOoY492dKyRZKZuncELelYZAUlKoBwRKM8K7AwmjzpCLhrKdzLjI19c8tO/2lLchOSIWGMZz6DGSBV87iu0K/qMY+lvwwPR2TziSrLLg3S1bv8KClLCzPft9XdlAf05v6pmb2JD5enyNXtuJ8YXvzZbXtIF9UXCEeehqztP3m0bDXici5aclweeI4gWzFaoxpNGu7nzCQpW/3qIjYMCkgU1IoSCbRG87DVF92dgxrSlqLIsLTJc6ivAu54gLG8lEfNwxDoFaMAtCDqvtqXW3uFJlsbm5ciHU71fKBYnyuPoNKbjjF/buBPmarDjX62U//xj4tM1BeJ9dO1qf528N0VavWLfBsvQGs7F4e2FQPDRNGML7xANR7/HxXxZ9xBwCecLCmpYw8g2uot X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On 12/6/2022 11:07 PM, Andy Shevchenko wrote: > On Tue, Dec 06, 2022 at 02:40:16PM +0800, kernel test robot wrote: >> tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master >> head: 5d562c48a21eeb029a8fd3f18e1b31fd83660474 >> commit: a479f9264bddfd0c266615b83f784222eccf9b91 [11969/13282] net: thunderbolt: Use bitwise types in the struct thunderbolt_ip_frame_header >> config: openrisc-randconfig-s041-20221205 >> compiler: or1k-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/next/linux-next.git/commit/?id=a479f9264bddfd0c266615b83f784222eccf9b91 >> git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git >> git fetch --no-tags linux-next master >> git checkout a479f9264bddfd0c266615b83f784222eccf9b91 >> # 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=openrisc SHELL=/bin/bash drivers/net/ drivers/nvme/target/ >> >> If you fix the issue, kindly add following tag where applicable >> | Reported-by: kernel test robot > > Yes, it's expected. The change flip-flopped the warnings. As a result the > amount of warnings has been reduced from 17 to 9. Hi Andy, Sorry for the inconvenience, we'll add it to our ignore list. Best Regards, Rong Chen > > (wsum warning is not counted in the above statistics) > >> sparse warnings: (new ones prefixed by >>) >>>> drivers/net/thunderbolt.c:733:47: sparse: sparse: restricted __le32 degrades to integer >>>> drivers/net/thunderbolt.c:741:47: sparse: sparse: restricted __le16 degrades to integer >> drivers/net/thunderbolt.c:742:44: sparse: sparse: restricted __le16 degrades to integer >>>> drivers/net/thunderbolt.c:838:40: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] frame_size @@ got unsigned int [assigned] [usertype] frame_size @@ >> drivers/net/thunderbolt.c:838:40: sparse: expected restricted __le32 [usertype] frame_size >> drivers/net/thunderbolt.c:838:40: sparse: got unsigned int [assigned] [usertype] frame_size >>>> drivers/net/thunderbolt.c:839:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] frame_count @@ got unsigned int [usertype] @@ >> drivers/net/thunderbolt.c:839:41: sparse: expected restricted __le32 [usertype] frame_count >> drivers/net/thunderbolt.c:839:41: sparse: got unsigned int [usertype] >>>> drivers/net/thunderbolt.c:840:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] frame_index @@ got unsigned short [usertype] @@ >> drivers/net/thunderbolt.c:840:41: sparse: expected restricted __le16 [usertype] frame_index >> drivers/net/thunderbolt.c:840:41: sparse: got unsigned short [usertype] >>>> drivers/net/thunderbolt.c:841:38: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] frame_id @@ got unsigned short [usertype] @@ >> drivers/net/thunderbolt.c:841:38: sparse: expected restricted __le16 [usertype] frame_id >> drivers/net/thunderbolt.c:841:38: sparse: got unsigned short [usertype] >> drivers/net/thunderbolt.c:842:62: sparse: sparse: restricted __le32 degrades to integer >> drivers/net/thunderbolt.c:842:35: sparse: sparse: restricted __le16 degrades to integer >> drivers/net/thunderbolt.c:953:23: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __wsum [usertype] wsum @@ got restricted __be32 [usertype] @@ >> drivers/net/thunderbolt.c:953:23: sparse: expected restricted __wsum [usertype] wsum >> drivers/net/thunderbolt.c:953:23: sparse: got restricted __be32 [usertype] >