Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp738296pxu; Mon, 23 Nov 2020 02:55:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJx0t+2fbAo+wlixpxnd4Cuuh8k1ZO2tb8GzpdSi2CmxBaCvGZ7EX7tfyBIEZtYofXeOAsYB X-Received: by 2002:a17:906:ccc5:: with SMTP id ot5mr44629247ejb.248.1606128909566; Mon, 23 Nov 2020 02:55:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606128909; cv=none; d=google.com; s=arc-20160816; b=r4XofO/kiaIL1i8QzYLtizPImX5g0upOTAjZ1HDjMSkAKaQ/28hgEaR5zAdu2W5T18 kveZPYI5rHwWpYb57WPr+s/D/NnrySF7XX6u6LX8F0KkFwxeu08U/0hpNzWawoNU030r pzSp5Wa9pIEHluvCEwaeh6HO+S1m1ooqwgLX1IKySR0OS4uTZJshud5P3eS7E44o1c29 wjjDEPZMDr2HANCCkWPQlt702okJcQdRs611ahHUAt4+/YVzJ+lTAOK+xnk0ZjfPnNOt gKhJicrwH6EBnpPgzL2eN7/+Xdz5LCwOl4SSzTpkj43ojXpaD6bgoQ+oks68z/QMS6Cr N3wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=QwI5UNR5lRiKI96OQb4V26rl/2WZ+IwdR4D/dv46W4Q=; b=gc6BA3/FYACV49omxGDxgDDl5BtxbmQG8vwdl9sLK8/bdNCS5U3XMB3BNZh6moAaed 00ua6syGvT2I23ZhtRuh6EEcO5LjQKyEJOcCB+LQHc4kUfthIxqo3MMyL2Xj6hsRhOF0 YZ3Oj9yb47AG2swbtnjhP0qpcmlTPLgodfkt3WlNuwbMeUw04eukiUi+e+9QNEcfF5db dHs4A7cB1boVyz78ADwWvW0mYP4pbdhojGfrK+rbjBxAyC8+XNgY6fY6jwu6ZpTgS95A Hus6x2leFdWk79cjcK8DpOOxUZIDVXSAhslY4u1eqLNSzGjjK86/Lm0rO+MgKw3BQlKU 3wuQ== 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 n18si6051756eje.443.2020.11.23.02.54.46; Mon, 23 Nov 2020 02:55:09 -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 S1728812AbgKWKwT (ORCPT + 99 others); Mon, 23 Nov 2020 05:52:19 -0500 Received: from mga03.intel.com ([134.134.136.65]:8422 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726289AbgKWKwS (ORCPT ); Mon, 23 Nov 2020 05:52:18 -0500 IronPort-SDR: 5GCIaZWOi0qHqVrUw/p4LlgplUhUK/pTkZ9d5XeU021Rj9DTvUdqrxaeS/jR3qJF3CJtsbmaeA B4XZC5GlTBJg== X-IronPort-AV: E=McAfee;i="6000,8403,9813"; a="171837063" X-IronPort-AV: E=Sophos;i="5.78,363,1599548400"; d="scan'208";a="171837063" 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; 23 Nov 2020 02:52:18 -0800 IronPort-SDR: bm7uzLOy0YLzf7VLU9K1QVUt31a6g44NW4A/w4B1Ly++pV9MAQQgoeIQr7A3zLL3omE+UuMHuP czE4m+rWvVLA== X-IronPort-AV: E=Sophos;i="5.78,363,1599548400"; d="scan'208";a="478070135" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2020 02:52:16 -0800 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1kh9TB-00982g-Uh; Mon, 23 Nov 2020 12:53:17 +0200 Date: Mon, 23 Nov 2020 12:53:17 +0200 From: Andy Shevchenko To: kernel test robot Cc: Cezary Rojewski , kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Mark Brown Subject: Re: sound/soc/intel/catpt/loader.c:654 catpt_first_boot_firmware() warn: consider using resource_size() here Message-ID: <20201123105317.GZ4077@smile.fi.intel.com> References: <202011220325.oB7oeTEq-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202011220325.oB7oeTEq-lkp@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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?! -- With Best Regards, Andy Shevchenko