Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2368147ybv; Mon, 24 Feb 2020 04:05:40 -0800 (PST) X-Google-Smtp-Source: APXvYqywNxu2c6sggC9lBHpqBs++pZf0+jHfK49YKHf16/Ym0Nmw+Q1HkKEyueksp+CA2Hy+j2UY X-Received: by 2002:a9d:7386:: with SMTP id j6mr38967930otk.336.1582545939863; Mon, 24 Feb 2020 04:05:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582545939; cv=none; d=google.com; s=arc-20160816; b=p6ltl43BQR+jqZl+ut+dBpOVxTKJoBAW6bkO0cyDRrVqx5+k4YQDW/hPH9aL08jFhB TJCcg7ByshXnDcSHQa6uOR3oQsFHH4qE7cZ5+MksbX8t9kq5Ocj4MwioGW9p5UinkP5Y eUre/Om88R86gX45uu1TzPVZv74wtQ7la7WI/Vj60329L6fXQ2ShSeyKYjSem9yjqTeL FXS7gn1cvqKr6w5W9RVlCjwYliEZGPzPufRdSxEmt4oBqpPm+vw0P5+O5t2j8slMFaOo TfTK0Zv0Ye+egz8apObjL+Dbek+EJo9dDqZsymY7w9BAGWajnJ36FBQ/+jdr/HHzHhby +2tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=JOqKnjYUoLkNkwcNI9nYCxtZiHSCyvTr73qeXZCg5p0=; b=M9/Fo//2cAqmG5gu+foiwoqDz0+HgP2ZQBmRWErYCErdV59jF8uZ5skLTV9dJeW292 p8amF5zTDrTFmIRva4Citk7Derq8+4MgFlXPP5osTiywDKFznE44+1EmbHVE3u01+V7g IMM5v3eXS7jqPMlpUI8n3ExWr83jVjCmuniMcXfOZvvlrSeS+ywfdtr+hPNTNP0wK5At aIBZUC5qny7n+KYpY2T7gqZqvqPGt2S45g5edWVxCRIkH3KV7AC+zV77aIjN3qGMWg9m 4+U+QGskyDe2TTyz57Xb1bDL5OR5l2GNQ883x4wI7Ktrdqjawp0WvsWwS0yR6fT+OleX Vo4g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i2si5723590otc.130.2020.02.24.04.05.24; Mon, 24 Feb 2020 04:05:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727389AbgBXMFB (ORCPT + 99 others); Mon, 24 Feb 2020 07:05:01 -0500 Received: from foss.arm.com ([217.140.110.172]:36086 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727275AbgBXMFB (ORCPT ); Mon, 24 Feb 2020 07:05:01 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6E8F930E; Mon, 24 Feb 2020 04:05:00 -0800 (PST) Received: from e121166-lin.cambridge.arm.com (e121166-lin.cambridge.arm.com [10.1.196.255]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 39D313F534; Mon, 24 Feb 2020 04:04:59 -0800 (PST) Date: Mon, 24 Feb 2020 12:04:56 +0000 From: Lorenzo Pieralisi To: Dexuan Cui Cc: kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, bhelgaas@google.com, linux-hyperv@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, mikelley@microsoft.com Subject: Re: [PATCH v2 1/2] PCI: hv: Remove unnecessary type casting from kzalloc Message-ID: <20200224120456.GC11120@e121166-lin.cambridge.arm.com> References: <1582351197-12303-1-git-send-email-decui@microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1582351197-12303-1-git-send-email-decui@microsoft.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 21, 2020 at 09:59:56PM -0800, Dexuan Cui wrote: > In C, there is no need to cast a void * to any other pointer type. > > Fixes: 877b911a5ba0 ("PCI: hv: Avoid a kmemleak false positive caused by the hbus buffer") This patch fixes nothing, anyway, that's a leftover that I removed. Applied the series to pci/hv for v5.7. Thanks, Lorenzo > Signed-off-by: Dexuan Cui > Reviewed-by: Michael Kelley > --- > > Change in v2: this was part of v1. > > drivers/pci/controller/pci-hyperv.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/pci/controller/pci-hyperv.c b/drivers/pci/controller/pci-hyperv.c > index 9977abff92fc..0fe0283368d2 100644 > --- a/drivers/pci/controller/pci-hyperv.c > +++ b/drivers/pci/controller/pci-hyperv.c > @@ -2922,7 +2922,7 @@ static int hv_pci_probe(struct hv_device *hdev, > * positive by using kmemleak_alloc() and kmemleak_free() to ask > * kmemleak to track and scan the hbus buffer. > */ > - hbus = (struct hv_pcibus_device *)kzalloc(HV_HYP_PAGE_SIZE, GFP_KERNEL); > + hbus = kzalloc(HV_HYP_PAGE_SIZE, GFP_KERNEL); > if (!hbus) > return -ENOMEM; > hbus->state = hv_pcibus_init; > -- > 2.19.1 >