Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp1651996pxb; Mon, 13 Sep 2021 02:24:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsZrhJmKxnq0vcp+jKiQTo58+JuW/MLzL32tjV8L104eKTFkuCWeVbg+3RE90YKbZR3sIl X-Received: by 2002:a05:6402:27c6:: with SMTP id c6mr12043973ede.111.1631525082279; Mon, 13 Sep 2021 02:24:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631525082; cv=none; d=google.com; s=arc-20160816; b=z/3Q0tj/0XQTDqQL6SteKtcn62sgRFzZR6ZCJRKZON+TN4Ga1Q/NRo988Ay6/p5rDE ZPEDVkh0BKroF8EmRfSfC0nEYq3mn0sdBXQ+tuVWCmtqep+A49iIvfF7zzzvqNvmOWNr hMebO2IcsNdP0dOvW7T/NPGewSVsTcE/2ZgfEK3mo/ipCCr27x+85FYpGRekTWJmQWVW RH6vu61LERoNHzOkUC6T635la5rjvMmp78VPdRxbRmpYs2Y3d35u8DXIlkijnOOz+fYn 7kvRXE9giRMFwDkbWmNYmO1JrgG02SHcmhGZMmyD1J7UTPfZu5byMZVD7awIcpgOHCkW B0hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=O8RhwD434zCMehEmpGCUUM/Q3Qv+zqePWNa7zAHg+/Y=; b=EEAIebmYZiW4EIoPgAD+Bi8Pf7V5QlmFpKYHmWWQO0uqbaGcNEC87eWbT/o6/t1Nze ezQuhZDyZPrisvRZKGexM7cEEuL9zF2cOvCAi4nJ8EFx2kpMLEH9JKZ1wlFwuRafyvnJ kKjSW+PFJ3h0S1csDRFAYJPaZFqbEwT6hKfs7YMfWv0e1rnYs+FSVMmv+3++WYCP4JV4 3b3fxqXzlYfoMLYy1Iblgj10+MP/X7OFKihOfVbD2irKGv3IWaSrTCh3K9IhHOCW75DB 06WRpOjYDcZq4mJ19P3b7MJVylPX4AIKmqnRpAPYOqpbqWuGSI5+Pk2b7qzl5XReQayE guFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=l4NKr4PV; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p17si6617508edy.229.2021.09.13.02.24.17; Mon, 13 Sep 2021 02:24:42 -0700 (PDT) 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=@linaro.org header.s=google header.b=l4NKr4PV; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238477AbhIMJXD (ORCPT + 99 others); Mon, 13 Sep 2021 05:23:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238367AbhIMJXC (ORCPT ); Mon, 13 Sep 2021 05:23:02 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB96BC061574 for ; Mon, 13 Sep 2021 02:21:46 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id g1so8208777lfj.12 for ; Mon, 13 Sep 2021 02:21:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=O8RhwD434zCMehEmpGCUUM/Q3Qv+zqePWNa7zAHg+/Y=; b=l4NKr4PVhAEJ/wIbdb4Vm9pEOqPqc5B2ZA6XLZfLfnLeRKPr7jIY/2IIiym3p/6YzR r1UGxuo3J3mvrvy1q8IoPWWgzU6QtVQ4WjLfEPW8KS73KbmXDtFii7gMMhksyQ53zRg6 MVMIi5CZy/Tn0fxSjSlcVs119nNDZ3t56UUwJTgz7yhQEjkr18i+mn2vjjOJA8KJUyhc 6656jYrp2x1jH5BAgJzX+K+tadWkg8nKlCYn13mlPBU1XDTkGFpZL1TXrci4+awieh8Z N++HTqEsqqdISWOBMJi0xYgf6X22mmB5TcivjZaTh1FCFQR9UhxB2vJkRj8n5YidLMCz KfZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=O8RhwD434zCMehEmpGCUUM/Q3Qv+zqePWNa7zAHg+/Y=; b=wSD3wWQq6gTgdETjBxNeTKhJfJJn9LR/14chdtZ9RA1dCdyn0g5UzCkTaZOEyvDUXz tVcWgLO94KjbqwmGPLnEmTc29rwF769dXknSL33ow759Cr+UGO9CUmIwfDvuNZvZY9Q1 JLso7b5PBwzyAe3RxGf9xvoBbbdzu7Q/xLvEgQfW92wgJjUu3Pmy5orlRx9PIyGN05Pf Mh6+FJdq+y25Sq5A2P8n0kBT0KTM663MsrEHbjW9xBFjfKjM/fcofHcuABbj9TqDwhpH NgMakxAD8lVSx4N3nKlwcpRzFtDwycbg6aBULzQ/Y8SqiqGsZdvxxR2HrIxkc3B5gksG 2x2Q== X-Gm-Message-State: AOAM530syYP2CtIyifSqxvDMV6HPhM7UtTs43MnpnJsfbqJ+9m/bYnxf rK9TSV1HKtJ94qEDnH+e4jJ56g== X-Received: by 2002:ac2:4116:: with SMTP id b22mr8271697lfi.587.1631524905196; Mon, 13 Sep 2021 02:21:45 -0700 (PDT) Received: from jade (h-94-254-48-165.A175.priv.bahnhof.se. [94.254.48.165]) by smtp.gmail.com with ESMTPSA id u17sm910326ljk.124.2021.09.13.02.21.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Sep 2021 02:21:44 -0700 (PDT) Date: Mon, 13 Sep 2021 11:21:43 +0200 From: Jens Wiklander To: Daniel Thompson Cc: CGEL , Sumit Garg , op-tee@lists.trustedfirmware.org, linux-kernel@vger.kernel.org, jing yangyang , Zeal Robot Subject: Re: [PATCH linux-next] tee/optee/shm_pool: fix application of sizeof to pointer Message-ID: <20210913092143.GA165502@jade> References: <20210902103428.bdbkybvi6he6mgy2@maple.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210902103428.bdbkybvi6he6mgy2@maple.lan> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 02, 2021 at 11:34:28AM +0100, Daniel Thompson wrote: > On Thu, Aug 19, 2021 at 08:21:27PM -0700, CGEL wrote: > > From: jing yangyang > > > > sizeof when applied to a pointer typed expression gives the size of > > the pointer. > > > > ./drivers/tee/optee/shm_pool.c:38:28-34: ERROR application of sizeof to pointer > > > > This issue was detected with the help of Coccinelle. > > > > Reported-by: Zeal Robot > > Signed-off-by: jing yangyang > > This should not affect code generation since both pages and *pages are > pointers but the change looks good to me. > > Reviewed-by: Daniel Thompson Thanks for reviewing, I agree with your analysis. I'm picking this up as a bugfix for V5.15. Cheers, Jens