From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DC25DC433E0 for ; Tue, 7 Jul 2020 22:26:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A9C8A20771 for ; Tue, 7 Jul 2020 22:26:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594160768; bh=T0DwWvl2eKQOwlym/Ko2pveZIneqmF3MFNc5/b/pqUc=; h=Date:From:To:Cc:Subject:In-Reply-To:List-ID:From; b=qqfLkTe3v5JJB53aOGbPN/IK7gro1MxpJ4N1ezD1/oPihtZJMOn5OXYVGEbZELRHf Vw+GjkpbQmhqTOS02zubOvAVaefV2yUaRJzvTbyhpnHturk/5A5M9b/abrQA8c0ffE pnwyTr1Rgestyb33e3VLDy/wAHXJgCY8D3OV1FwA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729267AbgGGW0I (ORCPT ); Tue, 7 Jul 2020 18:26:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:49656 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726946AbgGGW0H (ORCPT ); Tue, 7 Jul 2020 18:26:07 -0400 Received: from localhost (mobile-166-175-191-139.mycingular.net [166.175.191.139]) (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 0FEC72075B; Tue, 7 Jul 2020 22:26:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594160767; bh=T0DwWvl2eKQOwlym/Ko2pveZIneqmF3MFNc5/b/pqUc=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=iFSFhwxsVgud7cEq81TXjXMt+pj4sGtRZLl5pqFopex1zqIZhnmgiRmIj9Q4Tzpia TQsRN7Tckb+OJLbjWiU0jTkVg3AMnBq9nrhE0wYd9XJZlSn6AvifOkwmKZ4e+m3WGB hRemOCesXYEBoZT9KaRl8R6fCQczl3Oc5XOZ+keE= Date: Tue, 7 Jul 2020 17:26:00 -0500 From: Bjorn Helgaas To: Yi Wang Cc: bhelgaas@google.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, xue.zhihong@zte.com.cn, wang.liang82@zte.com.cn, Liao Pingfang Subject: Re: [PATCH] PCI: Replace kmalloc with kzalloc in the comment/message Message-ID: <20200707222600.GA391475@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1590714119-15744-1-git-send-email-wang.yi59@zte.com.cn> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org On Fri, May 29, 2020 at 09:01:59AM +0800, Yi Wang wrote: > From: Liao Pingfang > > Use kzalloc instead of kmalloc in the comment/message according to > the previous kzalloc() call. > > Signed-off-by: Liao Pingfang I would be happy to apply this, but this needs to show a connection between Liao Pingfang and Yi Wang. Ideally this patch would be sent directly by Liao Pingfang. The sender should at least appear in the Signed-off-by chain. See Documentation/process/submitting-patches.rst > --- > drivers/pci/hotplug/ibmphp_pci.c | 2 +- > drivers/pci/setup-bus.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/pci/hotplug/ibmphp_pci.c b/drivers/pci/hotplug/ibmphp_pci.c > index e22d023..2d36992 100644 > --- a/drivers/pci/hotplug/ibmphp_pci.c > +++ b/drivers/pci/hotplug/ibmphp_pci.c > @@ -205,7 +205,7 @@ int ibmphp_configure_card(struct pci_func *func, u8 slotno) > cur_func->next = newfunc; > > rc = ibmphp_configure_card(newfunc, slotno); > - /* This could only happen if kmalloc failed */ > + /* This could only happen if kzalloc failed */ > if (rc) { > /* We need to do this in case bridge itself got configured properly, but devices behind it failed */ > func->bus = 1; /* To indicate to the unconfigure function that this is a PPB */ > diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c > index bbcef1a..13c5a44 100644 > --- a/drivers/pci/setup-bus.c > +++ b/drivers/pci/setup-bus.c > @@ -151,7 +151,7 @@ static void pdev_sort_resources(struct pci_dev *dev, struct list_head *head) > > tmp = kzalloc(sizeof(*tmp), GFP_KERNEL); > if (!tmp) > - panic("pdev_sort_resources(): kmalloc() failed!\n"); > + panic("%s: kzalloc() failed!\n", __func__); > tmp->res = r; > tmp->dev = dev; > > -- > 2.9.5 >