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 2F56AC4708C for ; Tue, 6 Dec 2022 15:07:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6CE428E0013; Tue, 6 Dec 2022 10:07:24 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 67EFA8E0001; Tue, 6 Dec 2022 10:07:24 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 546588E0013; Tue, 6 Dec 2022 10:07:24 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 467A68E0001 for ; Tue, 6 Dec 2022 10:07:24 -0500 (EST) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 14E89120587 for ; Tue, 6 Dec 2022 15:07:24 +0000 (UTC) X-FDA: 80212210008.26.91591ED Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by imf09.hostedemail.com (Postfix) with ESMTP id BC75A140018 for ; Tue, 6 Dec 2022 15:07:21 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=M8bTN+rR; spf=none (imf09.hostedemail.com: domain of andriy.shevchenko@linux.intel.com has no SPF policy when checking 192.55.52.151) smtp.mailfrom=andriy.shevchenko@linux.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=1670339242; 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:in-reply-to:references:references:dkim-signature; bh=eCtDDapdV90bYlMcBIsi8aZgoDyuuEIGayu01WDYhRo=; b=oorcUQcgFNhUOo56uypHUzgnVFEvDuVbbEIjNPzrtASgvstUV+1PIuylT6VoclW/Yh83LE J2NcmVscMTSR3hr8boUOMmWRyVeb4CQ6dA2KRYjpt26TcdV9Xmy7caC805tPziB309sX/S IlYnpf4SbwzyAj3aVsYd7Vo0uC6GXXk= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=M8bTN+rR; spf=none (imf09.hostedemail.com: domain of andriy.shevchenko@linux.intel.com has no SPF policy when checking 192.55.52.151) smtp.mailfrom=andriy.shevchenko@linux.intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1670339242; a=rsa-sha256; cv=none; b=WnE9BjWxVhc9b0/wIfXYGZQNG1dsG1rIp+DrJxzkF0CuTknXXrxIOmg4jBk5RLGHprfs+E eiairpHcVj0E6KWKCC4fbiyxVdbOp4yFa0ELP+1N8+fhEY/MnS75/b0YO8ro6D29yMmEqM Vz9IC6UsrnaBny8niI5dTDrj2wV9vdY= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1670339241; x=1701875241; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=iClVVExPn+fhNXrIkrHdRlhurNW2BnPY6vZoe5rvkJ8=; b=M8bTN+rR00z81U9LBsaHXQ4lSn7giQvfImIAVWiHU8Yk+PQyeOc/BWNf Gc62e9Aerbtop672wrhXz+aA4jK7JHrmpT/uyxX8CG/6nDJsdvFHWzRIZ OzDZGHo4mNHk1YAMVc1kKFr/Sqx2DQydtoflzGCd1eqNL7zg6fhktAf9/ ELvy0oEAoQuFz2NX+UHBJEBo/ysgSD3rPgAd6BIBVyk5s79N+54L+OeBQ wso7OZyMOSlLfzIUp1HDniVum8UQkWrdVLX41Yz75eaNu2p07bLABrNGj v7A8PbGKi2l9fCUSLP+kGd78ZaO6MrRx9tZ71/ajvcE8BbWjcLJ3Bjxuy w==; X-IronPort-AV: E=McAfee;i="6500,9779,10553"; a="297000118" X-IronPort-AV: E=Sophos;i="5.96,222,1665471600"; d="scan'208";a="297000118" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Dec 2022 07:07:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10553"; a="770751505" X-IronPort-AV: E=Sophos;i="5.96,222,1665471600"; d="scan'208";a="770751505" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga004.jf.intel.com with ESMTP; 06 Dec 2022 07:07:18 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1p2ZXR-005M5C-0c; Tue, 06 Dec 2022 17:07:17 +0200 Date: Tue, 6 Dec 2022 17:07:16 +0200 From: Andy Shevchenko To: kernel test robot Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List Subject: Re: [linux-next:master 11969/13282] drivers/net/thunderbolt.c:733:47: sparse: sparse: restricted __le32 degrades to integer Message-ID: References: <202212061455.6GE7y0jg-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202212061455.6GE7y0jg-lkp@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: BC75A140018 X-Rspam-User: X-Stat-Signature: qcwttpikfhf9nd4g9zh75gbo4hj8ffta X-Spamd-Result: default: False [-5.69 / 9.00]; BAYES_HAM(-5.99)[99.98%]; SUBJECT_HAS_UNDERSCORES(1.00)[]; DMARC_POLICY_ALLOW(-0.50)[intel.com,none]; R_DKIM_ALLOW(-0.20)[intel.com:s=Intel]; RCVD_NO_TLS_LAST(0.10)[]; MIME_GOOD(-0.10)[text/plain]; DKIM_TRACE(0.00)[intel.com:+]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; HAS_ORG_HEADER(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_THREE(0.00)[3]; ARC_SIGNED(0.00)[hostedemail.com:s=arc-20220608:i=1]; TO_DN_SOME(0.00)[]; ARC_NA(0.00)[] X-HE-Tag: 1670339241-323325 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 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. (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] -- With Best Regards, Andy Shevchenko