Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp41462pxu; Tue, 24 Nov 2020 18:00:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJz64W7zn4NirDbxwzvIlsngzYawcMySFTZQZWGJWLIj75kDORYzen4GDD2CA3oGtaJG7/Oc X-Received: by 2002:a17:906:95c4:: with SMTP id n4mr772918ejy.222.1606269603525; Tue, 24 Nov 2020 18:00:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606269603; cv=none; d=google.com; s=arc-20160816; b=1HJxqT83VwkIEON8NG3TR/4VI/L+ALBz8LUw6qw0DsWc0CVjsUSfSX4vMRqMm3t25c lH8Q0tpGy6VUwQF15ff86JGNoLujUM3qHeHW++QUWcQ7roDgyWssOi7u1E16UI5G0JcR hYHp1Yt8i8NOTFrrAQ55Ral4RD0NPe8ckQJgN7CyBc3mm0xAzklp5k8g1WfXhnXSZ18u nTO+hBvaq9DIO7iT3/ziCd63jqqHqKe+R90s3cBS9alxdtUMGXBFxhmCDxWWiGoTERGa /sMzfSp7fRETX/Yia6Xb8qpPggJq1veXUZRILH5ba6nbFA6A0kJVM8KBApv+OrpMhxOV 0/wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=KnkrvzjGaZpOvYHvxOZGnFaqpCbly6IyuUX8y1JLV34=; b=a+h6MsDCqIMJUI5SrRAIgMqg7r4GuhhEg+zsa66TaAuDgmoyDEOEhdHlDEu9WnTlwi GHfv5oDqo/MNQbVviwofgqsDrFEJh/6Vg646kmBdUsrWUBS18OimT4v5XB+Az2TD1U2J vKnciyfs0UEw59MzWR6zkONXRoi6Qs2+RX7t8X9bcHaqktTheSgZeXNGAMd3RlPP1kvu WS9028Z+0fTEZcCBiQaNCm2hKgLJM3dbTio/9UX3F9m6X7lZn4QMJZDK7TB9642PO+Xi dba0LF5utFjnIXneJLQtT/8d0BLIBT/7RzLhs0GMFjE+7+zF21QOZ4QzgD3kS8+sNus3 po4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iJWDXdP0; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e16si330127eds.500.2020.11.24.17.59.40; Tue, 24 Nov 2020 18:00:03 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iJWDXdP0; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731013AbgKXJMU (ORCPT + 99 others); Tue, 24 Nov 2020 04:12:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728826AbgKXJMT (ORCPT ); Tue, 24 Nov 2020 04:12:19 -0500 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F4A8C0613D6 for ; Tue, 24 Nov 2020 01:12:18 -0800 (PST) Received: by mail-pg1-x534.google.com with SMTP id m9so16904785pgb.4 for ; Tue, 24 Nov 2020 01:12:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KnkrvzjGaZpOvYHvxOZGnFaqpCbly6IyuUX8y1JLV34=; b=iJWDXdP0Yl7fg/b6lAhLnu7BQkcZ5b/VoBWvOppnEzGB6B93Mv1fUFXu+NEmyIv3pV 88/58ioU6xEmaje4RQ8BaFwjdmWNzbT6O3ds19HcP52egrg25BgxS6ID88xP7o5naUx7 YeNE9F9oDc3Kdrv/ZJcljA69FMHUQXj9slqM26jVwvf2KqM7r/LJSK0WBAcOJqlJ4gw3 ZNRCaUvxOajIKoPdXzflUcbNjAO83ij2cntHJuyR3c+aXbgcXSGrQQTt0VEGE95p0MBQ cyOWNxbSmvVPKGMnYcfWwDmkdk/NzicJnOMwHvY4ngBq2bRi8gXTHm590ps3UCdyndsI +sMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KnkrvzjGaZpOvYHvxOZGnFaqpCbly6IyuUX8y1JLV34=; b=d26f6DrrD0GA+c7S0KmP0ar32IC1Gu7U4DCy1ISCh0EZv84JnxDjL4M1msHKUKYEji a9uZyEkKDEaDgCo2XOICXNd4aUHdPLqSIghHdPqgyUMWv54xXKDI3nuYoSO07zGOU5kX p6fjfgSXWyD23EOcxtScUF7PGfVmGZd95mCHcuoXeii38RDDeDSod7+ODiKjlCBzF764 8dTT5afnM5P0eSaIy2ndcS14Xe+LoOiMwgDBwW9GHvulaHJC/3lAOgFPiYVX9gUiEfRd 8IUXgsRkmcgdIgbtfEefU8MM8dMkwY8o+OF7yC/dvCnu/DKcW7FIJz0mds1n2I/EoJaS Zaqg== X-Gm-Message-State: AOAM530+BCKgZ58OlPybIYXmduhScesHoMYAgGq7WY0Rta8nz/mYKVHJ Lk7wcH6IaeakysVLNfrSPpaTmKoaBpe/JW+5Tso= X-Received: by 2002:a17:90a:4816:: with SMTP id a22mr3913508pjh.228.1606209138147; Tue, 24 Nov 2020 01:12:18 -0800 (PST) MIME-Version: 1.0 References: <202011220325.oB7oeTEq-lkp@intel.com> <20201123105317.GZ4077@smile.fi.intel.com> <8cb2dcbdef2446238c6a1fe8e8b74504@intel.com> In-Reply-To: From: Andy Shevchenko Date: Tue, 24 Nov 2020 11:13:06 +0200 Message-ID: Subject: Re: [kbuild-all] Re: sound/soc/intel/catpt/loader.c:654 catpt_first_boot_firmware() warn: consider using resource_size() here To: Rong Chen Cc: "Rojewski, Cezary" , Andy Shevchenko , lkp , "kbuild-all@lists.01.org" , "linux-kernel@vger.kernel.org" , Mark Brown Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 24, 2020 at 10:06 AM Rong Chen wrote: > 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: ... > >> 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 > Thanks a lot, we'll ignore the warning next time. I think the proper solution here is to notify smatch upstream to fix the tool. -- With Best Regards, Andy Shevchenko