Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp241037pxk; Thu, 17 Sep 2020 01:32:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSGFPr+LRUmmID1UVx7KzIWTehkW+0rU6np49VmkSF4fhYDSs0Ldn9yf0vuinCbYLCkWT3 X-Received: by 2002:a17:906:a211:: with SMTP id r17mr17820280ejy.444.1600331527156; Thu, 17 Sep 2020 01:32:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600331527; cv=none; d=google.com; s=arc-20160816; b=kwvgDuEp4G3CoggZ9z6PCKKUyDpMMNPK4nALomBuEJl/Nj3I6WKUj94isRxX56oXJU 2zN8XR7JuzanmoT6YgHBoAZOKok7kCuJKo4IKYQJUUkwAXseLJmAdhLRIdPxB2eJq3Sn QDQaspfBzVQqjGI8nB70W0n0qRJB0kbf8/JgT3P0RgOT1bPbprTGUW2+cXLLca4wi9Qk ZznGKha8UA6LUMQO+cz2SaX7QqtGiHu2PNnHjVdws5cspViFBndADLlUvwGDB3VRxSTr ltGK0+BG8lEosJQdD8462TANSGdhybY4EMvl+kgRqlr6Pt6ALLbEI+ZdzTRtY2yxGufu RR7A== 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=qnSFTt1V+ZGiquES05KkR99t12Psy8F4Wj/1zEbjNKk=; b=aTX9XrrLiwHHkoDZoceCT70UXUKi74Z8WbC1cV3rb5f7KGqOlDSLBEIOkz1PbeytO3 LU2vX3IQ3NA9n6wJ8BWzhwH1VnFBZ9cRDe83Zf+6CF5UORLtcTamHIUDYimkfuwnVT+s yu2HdekqRV7aTM6jdtOWQW+7+eKDtIkUiPmqV4kIoDTlUpfkRwFM4w4V7nkO8rVVyMIg OJV7JFO4dOyBNovbdSGh3fMwv0BNnwJvq8fIc8P/p6rfi8HAZUHDh8SEH//z9Ed+EVDg XASA/8A34bM72kjact3c+jUyq1PyBfpwKzYb3LDFblQxRBVDNJaB+pHAJ/UdqIzgCIkv jzDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=13Mwfky3; 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 h17si14193546ejq.747.2020.09.17.01.31.43; Thu, 17 Sep 2020 01:32:07 -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=13Mwfky3; 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 S1726544AbgIQI3h (ORCPT + 99 others); Thu, 17 Sep 2020 04:29:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:59806 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726534AbgIQI3c (ORCPT ); Thu, 17 Sep 2020 04:29:32 -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 8CC1122228; Thu, 17 Sep 2020 08:29:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600331370; bh=+Vr3j6pf/c4D0IsDxnewLGxBc93i2o1qJfDyxZP8dQI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=13Mwfky3NHK2BmSsmuy/rPK210D1BIQfqN8hCmy6JXfZFA9befmCBE+f+E1IItcdj dly8kS6nyIYbRKrW2+4LA0DZBjjU31McJvvM2ndPMn+JGqNdCycTvnhUwRNGGCzwQ6 lrOni6ED4hkt09/tnh4XGHZBZD4rUaUZ9khTsXGE= Date: Thu, 17 Sep 2020 11:29:26 +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] RDMA/mlx5: fix type warning of sizeof in __mlx5_ib_alloc_counters() Message-ID: <20200917082926.GA869610@unreal> References: <20200917081354.2083293-1-liushixin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200917081354.2083293-1-liushixin2@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 17, 2020 at 04:13:54PM +0800, Liu Shixin wrote: > sizeof() when applied to a pointer typed expression should gives the gives -> give > size of the pointed data, even if the data is a pointer. > > Signed-off-by: Liu Shixin > --- > drivers/infiniband/hw/mlx5/counters.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Thanks, Acked-by: Leon Romanovsky