Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1456975pxu; Tue, 24 Nov 2020 00:06:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJw0s1OO4LsCy5s7nMiXXzeZxlP6BKYuyckihItfUfOYO3PstjC/0+WFESlqg9JoKgegnr7l X-Received: by 2002:a17:907:d01:: with SMTP id gn1mr2370015ejc.357.1606205160257; Tue, 24 Nov 2020 00:06:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606205160; cv=none; d=google.com; s=arc-20160816; b=v1r6NZLSq9j3HBQyX6s4TFgZ5EZ4DGVDP2qXJvxl8PXD1r79BgEwfaTXcUskuxcGKR Ahb03DVgc332ReMhY/H3nBDKPTvKKfdlawvMOZJC2qnXi4p7EZsGqeLEqKz2PmbV7Vun tAjtEEmKD4l4OXXpdVo0PTyyKBHCE/k7TU1OGu9fkbyGv318t+WbjXajDeELpE0EbNgm 4ngbRlmj7H9QhkOI0T9JfFoZoNLLfthcD/Ux2k0F471nPX2W8KKssKseRUCdvqYNh97i 9BG8SAG+8cQjHOqt8nC/U8piiJOxXHrp7DC6TOTBQCKY0POEqVyU5z/dlEE59OmZdaUS MIow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=p540ilpvEwOoAwqMXUxaVQT60Lf9cyBu5pY7Dt9tVko=; b=bVn2BcjS4MN9T3tPldLaZgewzfA2RhinEzV2ONGiSrS6xOpfEX2YIK5oPjBTBANKcs ncaIi9XCr1InVLsHkDFFM1HnNJWHJ4Z7AZx9NjjhG87exq82i4IJMpqDGu7uMOMOI2gg ZrVzVDj4bdmeo/k/rhBLYU3MIjmsKSDtnmhnEMSs4LaGDLbiLPuYV/rnRmiZZkIVgwWT gYFB3kpfgiOfcJSz3hbd/3IraQqmKOCauaKw5LddUGSJT7/MC8kgS40kWeJeyvniBCE1 ss4C9R2ZdtmueoDM7/o6AiVgFf4meyK3dqj7Y2WMgtmSdJVGo2jHuZSHKbje2HXynm90 xTZA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j1si7934560edf.417.2020.11.24.00.05.36; Tue, 24 Nov 2020 00:06:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730345AbgKXIBl (ORCPT + 99 others); Tue, 24 Nov 2020 03:01:41 -0500 Received: from mga03.intel.com ([134.134.136.65]:54010 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730248AbgKXIBl (ORCPT ); Tue, 24 Nov 2020 03:01:41 -0500 IronPort-SDR: 1cMqnpTyoXD8k8AyTdMHzBgY/ZHv7Ux8cDuRbHOJBm/3gYRPNSoDXyLMw66dUEikG0IG4seuJR Zfr2GyAWlwDw== X-IronPort-AV: E=McAfee;i="6000,8403,9814"; a="172003161" X-IronPort-AV: E=Sophos;i="5.78,365,1599548400"; d="scan'208";a="172003161" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2020 00:01:40 -0800 IronPort-SDR: wFEf4qRNJPUR0/CmrXn7S4TJBdmYrgTlsGu7k8XhaDZBB0Md6eCb9a59okejddGjyjr3vCvxb+ 7JBoq5x6Dx0w== X-IronPort-AV: E=Sophos;i="5.78,365,1599548400"; d="scan'208";a="478417780" Received: from shao2-debian.sh.intel.com (HELO [10.239.13.117]) ([10.239.13.117]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2020 00:01:38 -0800 Subject: Re: [kbuild-all] Re: sound/soc/intel/catpt/loader.c:654 catpt_first_boot_firmware() warn: consider using resource_size() here To: "Rojewski, Cezary" , Andy Shevchenko , lkp Cc: "kbuild-all@lists.01.org" , "linux-kernel@vger.kernel.org" , Mark Brown References: <202011220325.oB7oeTEq-lkp@intel.com> <20201123105317.GZ4077@smile.fi.intel.com> <8cb2dcbdef2446238c6a1fe8e8b74504@intel.com> From: Rong Chen Message-ID: Date: Tue, 24 Nov 2020 16:00:50 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <8cb2dcbdef2446238c6a1fe8e8b74504@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/23/20 7:41 PM, Rojewski, Cezary wrote: > 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.git master >>> head: 27bba9c532a8d21050b94224ffd310ad0058c353 >>> commit: 6cbfa11d2694b8a1e46d6834fb9705d5589e3ef1 ASoC: Intel: Select catpt 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: consider using resource_size() here >> ... >> >>> a9aa6fb3eb6c7e Cezary Rojewski 2020-09-29 652 for (res = cdev->dram.child; res->sibling; res = 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 Hi all, Thanks a lot, we'll ignore the warning next time. Best Regards, Rong Chen