Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp53171ybt; Tue, 7 Jul 2020 15:51:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHqw3gb720yZdxKn5xccxlwH+v7xBVtK+avZpEFUB8V2/lPpZG9Y9F8M0iC0HpiT06/aKj X-Received: by 2002:a17:906:4bcf:: with SMTP id x15mr39491727ejv.188.1594162304090; Tue, 07 Jul 2020 15:51:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594162304; cv=none; d=google.com; s=arc-20160816; b=QtQOSoi6KsSc4YnkSQNgO3bzZvOLEaNmjpJYid8S8tSx9nQzhknCNEMmG7Fm90Gq0w M93TuBbfCGCZzIXVVDBL/nBizmQIo3gcBHCWqaoMubiw9vP0s6dsWy9z6UfwLMPNZLnq 2CVzunoO27yIyfr9oXeuuye7rQ21EoNbYlC5nTVtkp/0CiaftGGYNpr1QUPHAkFIyKf9 2JPBPgDejJUXcqr/bU1tEKf1pia1wnU+PYgLKG2E/XaNe8gThuTq2mAHy9sssUyaLET0 mc+MJzYqb1nknseUCzes0i7v+G64in9UwlcwXl9s+JlM/YMlPMf3sFPqdpdOj4FHPG5Z YTpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=rs4smA8rRZL84aDLehgfCtdNL+fX+tRfI2fW3+c13+A=; b=NWz1TwZtRkh+OiAvwUmHU0aS36Rh4bXHFp1+967oYLIGbp6NsYnrDUi1+crm086jrS WD7lNWs5yQT/ZEdpw9Yiq7vX3BQ5tlOhCrAqn19S1BFcDIRDeGBqIG6ziLPvZUdFCpHe 8tm7dYfzsXcUKUaaxBLnrZuf2+Bsf/1cFVuKBt1Z4T3x4o14X96KxpHHs/3K6sKpYcZI Vz4I5uZYWJpuYPOB31BuLwViZ2sjeuXWxPkg2XIQGcXOUCXQbVv2DwXJbwnHof6DY4+S /YefXH/q2Ftsm78B0yBr5hXIAEK4Awc1QOySRcmalHhlUGK+tgZ18y3/BCxJdtCF3NLw 58Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iFSFhwxs; 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 of23si10380986ejb.414.2020.07.07.15.51.21; Tue, 07 Jul 2020 15:51:44 -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=iFSFhwxs; 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 S1729280AbgGGW0I (ORCPT + 99 others); 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 >