Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp289519pxk; Thu, 17 Sep 2020 03:12:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVBZOhOXO0B6QS3Wg5P3ueE/W7v4RGYWN18QP3nj+2qnDpbI8XYUjidai4VC8j2Gziw5mw X-Received: by 2002:a17:906:4b4a:: with SMTP id j10mr29727574ejv.498.1600337526874; Thu, 17 Sep 2020 03:12:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600337526; cv=none; d=google.com; s=arc-20160816; b=R29sh31lTesGipuypf1kYOu4f44QKKzHoh6TLdd6tdwn4BA5pR11xy7aaBa3olDrD3 cXM3iXBFPtVKsazoir434GsSUIWr/o2pQP0hFdgQ8IDpqibM59o6BnStZq5dWt12IDV7 /F6u0/22ed6cO7O4mwdkvRk7TEDXCYmwT4WOfpbzLHhlqIru17vtj73HVgLsgRU6Zb8K eZoxxhturuVrPlTE9ndMkUGfN2qfjcZPBHqfNUj4jeluLP/MSRcYZRDKJrOiIrakKodw ovWMZUj+0bqmUxY9se2Oy7K0fY8+pwJzPfGAX0j8XOLzX1P5Ou5EBOvpS4ML7ki83pF6 C2GQ== 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=YR24S7E7hqwTz3B45WWZJ18Zu/d/Jcsl8asX9iHeUCs=; b=MjwScCbdTUxdpaKHclVhkpX0xgpdaqTvY986q/kbBKSAkucFSHFb25a/N13Vthx4N6 hlk8iUBrJuydeY7K8tWHLn3KzrillhwWrv7Aq62iqelAGylvLI5t51SaY75TMwVU3bZv vJf8AFWLlaTY4VI/sn6biqVqfqzkWC6G2GacRqLKI5vBP0TKO1nX+2PIiACXLh0A/nTu HBHroySWaBMelsxNjNI/ModCmeOFgpZQNP28yo265L/Ay+gLQG43KvtEZDLBoAId+8u4 vXMBHjJ8m7ib6T9n43HfGz1tA8dRrRuZ4XZivN4pwWG25yzGv9koBXTaqyMxZ0z3Mxdr cusg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=A3c2YPQf; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id by20si4218405ejc.416.2020.09.17.03.11.43; Thu, 17 Sep 2020 03:12:06 -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=@kernel.org header.s=default header.b=A3c2YPQf; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726539AbgIQKKY (ORCPT + 99 others); Thu, 17 Sep 2020 06:10:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:36082 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726200AbgIQKJ7 (ORCPT ); Thu, 17 Sep 2020 06:09:59 -0400 Received: from localhost (unknown [193.47.165.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0226A2083B; Thu, 17 Sep 2020 10:09:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600337398; bh=Djf4429iuD41ZbvFSGFovA/lYmcemMUq52Tol+o8Bds=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=A3c2YPQf/B+rkP04c+zEZaSm0RGUWxdNkNi2MR6pD0T6scsEwmUXyLmmY0WWhRaof p0CXNZTZDeZtlUxRzFoD5kDFOyOJAbjNc7gm6GcrSQkS5jyfeKpH47XXrRl+XxhmF+ F4D74+QqWjD9j/G9xIPZprmrBN8kB/Xt1CSYgz9o= Date: Thu, 17 Sep 2020 13:09:54 +0300 From: Leon Romanovsky To: Liu Shixin Cc: Doug Ledford , Jason Gunthorpe , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next v2] RDMA/mlx5: fix type warning of sizeof in __mlx5_ib_alloc_counters() Message-ID: <20200917100954.GD869610@unreal> References: <20200917090810.GB869610@unreal> <20200917095216.2381855-1-liushixin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200917095216.2381855-1-liushixin2@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 17, 2020 at 05:52:16PM +0800, Liu Shixin wrote: > sizeof() when applied to a pointer typed expression should give the > size of the pointed data, even if the data is a pointer. > > Signed-off-by: Liu Shixin > --- > drivers/infiniband/hw/mlx5/counters.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Thanks, Acked-by: Leon Romanovsky