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 22505C4332F for ; Thu, 8 Dec 2022 08:47:15 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 60BC48E0003; Thu, 8 Dec 2022 03:47:14 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 5BBC28E0001; Thu, 8 Dec 2022 03:47:14 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 483B68E0003; Thu, 8 Dec 2022 03:47:14 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 372268E0001 for ; Thu, 8 Dec 2022 03:47:14 -0500 (EST) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id F37BB403A8 for ; Thu, 8 Dec 2022 08:47:13 +0000 (UTC) X-FDA: 80218509546.29.F4F3544 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by imf12.hostedemail.com (Postfix) with ESMTP id 7EF344001B for ; Thu, 8 Dec 2022 08:47:11 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=XjBDf3Vb; spf=none (imf12.hostedemail.com: domain of andriy.shevchenko@linux.intel.com has no SPF policy when checking 134.134.136.100) 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=1670489232; 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=LHscyLIaecK4NZUXcW5DtirYGAzNxJva9FuKOXBwYmo=; b=dJISlLvJYpXTEN8KXnhSAohJ+tnzCnA46WXA3h3SLm6TbTxEKeNY6PMj3I3O3aR4/gi+6D kxzoD1ru1MqbVINdf67CAa1YOFOaqeOlqq0h/no9BaDdhpqaTwierF2CvaabICHQLT20Lj 7JZjxmC6isJ/8vYNF8fYV1ba3AfgeLA= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=XjBDf3Vb; spf=none (imf12.hostedemail.com: domain of andriy.shevchenko@linux.intel.com has no SPF policy when checking 134.134.136.100) 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=1670489232; a=rsa-sha256; cv=none; b=RWEAbnoGcIQFZTY/K4KC38cXsGHiX/z+PFNRB4Xfb4BgC4sLIX8pADaQSXFB0xKW64oGKR /lR7WPF5MgJlRi4gplxl8ytQurARk9m9jhcx5QieqF0Yf2NJxHUI8bgHEL1aEoDt+DlKmy /pTvQMDz3mfSYgmyOahk15Dzvtdr1NE= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1670489231; x=1702025231; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=I8N7JecfIiQIATbWWv00NC9eoVsc5mY0sQbfMXkpx6w=; b=XjBDf3Vby28eDa2Qrpwr3VRi/PqYQG+gwefLkzawwD79ReuHS5dZZdXS rpNZCtXPuqzIEmyYFsnr196pb8aGo2sF8gFtbjh+icWITIeGlUX42dESL gn8fRfvO0YfCqdz0quK9d4ef1rVNZpPfZZ+0iJg2R9OejqUIw+F7ggkEz nMMbPwA8GPg4bREb0CW2n869H64nuyBAXTtsbwaYBSEYxWCS5QXJfk8+J SBGNbtWOot8FNqkpOFUAbsAedPEPG+LAUNOVNGLzd9F0VrBzzGiPe0b/h gAdiFzcaG/CTFZd5MRpJPJzww2DU4ZsZasGLPrdFMvOvGZeqmmoSb2RmE g==; X-IronPort-AV: E=McAfee;i="6500,9779,10554"; a="381409904" X-IronPort-AV: E=Sophos;i="5.96,227,1665471600"; d="scan'208";a="381409904" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2022 00:47:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10554"; a="975781632" X-IronPort-AV: E=Sophos;i="5.96,227,1665471600"; d="scan'208";a="975781632" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga005.fm.intel.com with ESMTP; 08 Dec 2022 00:47:08 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1p3CYd-006ClE-09; Thu, 08 Dec 2022 10:47:07 +0200 Date: Thu, 8 Dec 2022 10:47:06 +0200 From: Andy Shevchenko To: "Chen, Rong A" Cc: kernel test robot , 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: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Stat-Signature: ufi5eqpz93didye657rxms7tp8zkgge1 X-Rspam-User: X-Rspamd-Queue-Id: 7EF344001B X-Rspamd-Server: rspam06 X-HE-Tag: 1670489231-620073 X-HE-Meta: U2FsdGVkX19MsP9LlNr9kvE4EPZ+phMKZuRqoQAM0GA75oDdz4cVTRVh+Mdq5kSuFEIt3C/zpI1wPBs0rjXqbHb1ZK06lNyG/VprQAaGLkJGJ8LFMYAsgKrisCP0SS/cAJALsNP1f7UAFUBP56vEo4A8DPh9kov1GIqhEYafhcWd+5RLJ8hL3sywoKdSEFOZuFlIFfk2YZj8GiJ5Hgxh0gtFU3+/PRwcujVZgo6/yw6pRaGuKWl+8vswHHVnopIYgG1iN9+6mYoeFsV2aYWUqZXAOupRjsPqu9Mhx1p0VLYh39Z6uD6Jg1aqKEss70pI+c2w2hbUw69nvT2XFbm3wVBcsy3ZeEvI12WJG9heKnKfB7s+RSHTK7JqiFpH5XH4HzoZPWnU+fgdQY+uAea/vAsLHS58AwrR5x8KQ0I8hUKV6Xvq7tAeF8NHCXwEdRBOchR6j3bz14vY3u6Uap/bItnY5Qf3z2sWir+YaA2V6uU32LjInn4c1MyG5dD5kMJ+LmA3ioJZjd1Tkj/BNwev+Pae5k45i7Rqpnas7u0Y2oIdcgKl8Gmxtcubl55nMGlq6NVhY/vGjIcJenwtk5mPRSTDisi+0REqcary+LRA24fgxIdNsoWBjSY8wByKmQx0FuWwERa7MC6ZXS+NBmyc7FackZBY3gqQAAT7bGtdIqc3Gx365rDebHLIeJeGzZwxG4jg/36T79NKpdX1BnJ1dntksfYhe3nqJc0C+IMVppSGrMnR79xsVwc0LvjklUUfJ13DB4EFhh0hxIkodUTrX75VuiGbpqFcP0vSO2t9cnFmKJpW6GDk5edcBnZM8SVRSsWOhsuWpz/xJDKdbJGP0aBX6plVLjmwi6XXHBQQgPNIs9rK7ofuE8Vp4RpkU8sgRrdZJOs5EgfeGLqsbJmVaAHKUIT+0rs2zWSkgbb6dHJ9/5IhfJ+1FA== 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 Thu, Dec 08, 2022 at 03:04:52PM +0800, Chen, Rong A wrote: > 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. Ideally you should have compared the warnings before and after the change and tell something like warnings number dropped or increased to N (arbitrary number, should be real one based on the parser's output) and leave new warnings to be produced. > > (wsum warning is not counted in the above statistics) And this warning is still in place, so it shouldn't be reflected in the 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