From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============5133449472738795200==" MIME-Version: 1.0 From: Rojewski, Cezary To: kbuild-all@lists.01.org Subject: Re: sound/soc/intel/catpt/loader.c:654 catpt_first_boot_firmware() warn: consider using resource_size() here Date: Mon, 23 Nov 2020 11:41:23 +0000 Message-ID: <8cb2dcbdef2446238c6a1fe8e8b74504@intel.com> In-Reply-To: <20201123105317.GZ4077@smile.fi.intel.com> List-Id: --===============5133449472738795200== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On 2020-11-23 11:53 AM, Andy Shevchenko wrote: > On Sun, Nov 22, 2020 at 03:52:27AM +0800, kernel test robot wrote: >> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.g= it master >> head: 27bba9c532a8d21050b94224ffd310ad0058c353 >> commit: 6cbfa11d2694b8a1e46d6834fb9705d5589e3ef1 ASoC: Intel: Select cat= pt and deprecate haswell >> date: 7 weeks ago >> config: x86_64-randconfig-m001-20201122 (attached as .config) >> compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 >> >> If you fix the issue, kindly add following tag as appropriate >> Reported-by: kernel test robot >> >> smatch warnings: >> sound/soc/intel/catpt/loader.c:654 catpt_first_boot_firmware() warn: con= sider using resource_size() here > = > ... > = >> a9aa6fb3eb6c7e Cezary Rojewski 2020-09-29 652 for (res =3D cdev->dram= .child; res->sibling; res =3D res->sibling) >> a9aa6fb3eb6c7e Cezary Rojewski 2020-09-29 653 ; >> a9aa6fb3eb6c7e Cezary Rojewski 2020-09-29 @654 __request_region(&cdev-= >dram, res->end + 1, > = > = > This sounds like false positive. From where it gets the idea of resource_= size() > for the *start* offset?! > = Indeed it is false positive. I've already explained this in: RE: [bug report] ASoC: Intel: catpt: Firmware loading and context restore https://www.spinics.net/lists/alsa-devel/msg117145.html Regards, Czarek --===============5133449472738795200==--