Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1695828ybm; Thu, 23 May 2019 05:28:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqyGATOXDMafw3mj00mdzMUv8gKTMpZ9bXFuhnlnGAOC4ZvM5IRH/+T5sZK131l4+Z67UNTD X-Received: by 2002:a63:2315:: with SMTP id j21mr2517583pgj.414.1558614511700; Thu, 23 May 2019 05:28:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558614511; cv=none; d=google.com; s=arc-20160816; b=mtUHCLOFoa8w/sCbtZ/7Vl6HgNGuGD5hoNHxFXNqmkmlLvItgM2uwFud92AlKcF0lo HaD83E58vjbcV31f7J8BKBdVqXkdjVy7sbxCE99FBpCYwefVwilVuL2rSJMxIUmb2ixL 8W4xm0i6NvpQCVNFYWS6v82WdE7ZEcfiem4k11dv100gDkkmujYWEaBQqs01eoQOJYZi CU7m+I1pHJ7/sXXJ9Qb7r5OPY/Dms6x6wJ/dA1M/Qoj8IcSMfiKBFXqrdYH4pLAnDIxd BJHEIgyLaWJeuUSzQ7CVx1QhDXDJWi1s+KjOgJrNwe95lGZYp3l27MovSPN4LzJtV9cl APyw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6rvkJ5hWjc77qQC4xwg5z7GQebWppVVebwaWm3c5m9I=; b=PeA4Trd7Qs6VQ+4j8QJNA3PLcnsBhw2RMmzUoyRyYjZ1bgubXs7qxNRtxcfQT4Krzl EBffqu3Hu53uO+o7CKk5Jdpo14pMxE6sfCK+WJ8sA90yH1TBWE2FSmaI2YcVU8gBx64X A3+lcfPpL8DMNIgr/DDXpqUnZhk49WSAO6X0hM+DfAhhvIv+2r4eENGx37mWKvMv33v0 nr3WOi8qq1H142M7pCVRHbT8wHSMdDznkirLVHqheDmB5jwOYC7yWG30AlliXxzsTb/H 4JFKRJ8qNZOI4J32483bH0zEoTaeK8EnOKJzXRORiJcD92ncJGK1OOqgssXPaM4aM1j+ Qz5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Rs8PlBDu; 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 a128si29002554pgc.242.2019.05.23.05.28.15; Thu, 23 May 2019 05:28:31 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=Rs8PlBDu; 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 S1730780AbfEWM0v (ORCPT + 99 others); Thu, 23 May 2019 08:26:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:46648 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730560AbfEWM0u (ORCPT ); Thu, 23 May 2019 08:26:50 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 BD2D020851; Thu, 23 May 2019 12:26:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558614410; bh=HK+MM2tEj5krZ4ZVCzJ1PseSGZxhZ7gCRD7VksuUYZ4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Rs8PlBDuvJVnF7DqEA6hA8cx19nFcYB9jxFuuFeo9iOC7D19mp2mgSSj9Og88jlLa R3be9VphvUgvbw3fevnZixLZTJEwitM0NmdDkhpkuqqghGVtAbZUtFj/rKE4DrdmkH yZkFAIQUpt2G/xkMBtplp/hAbxmn6Ach5ROhnR58= Date: Thu, 23 May 2019 14:26:47 +0200 From: Greg KH To: Simon =?iso-8859-1?Q?Sandstr=F6m?= Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, dan.carpenter@oracle.com Subject: Re: [PATCH 2/8] staging: kpc2000: use __func__ in debug messages Message-ID: <20190523122647.GB26641@kroah.com> References: <20190523113613.28342-1-simon@nikanor.nu> <20190523113613.28342-3-simon@nikanor.nu> <20190523115553.GA6953@kroah.com> <20190523120937.zq6gif6amslfruna@dev.nikanor.nu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190523120937.zq6gif6amslfruna@dev.nikanor.nu> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 23, 2019 at 02:09:37PM +0200, Simon Sandstr?m wrote: > On Thu, May 23, 2019 at 01:55:53PM +0200, Greg KH wrote: > > On Thu, May 23, 2019 at 01:36:07PM +0200, Simon Sandstr?m wrote: > > > Fixes checkpatch.pl warning "Prefer using '"%s...", __func__' to using > > > '', this function's name, in a string". > > > > > > Signed-off-by: Simon Sandstr?m > > > --- > > > drivers/staging/kpc2000/kpc2000/cell_probe.c | 22 +++++++++++++------- > > > 1 file changed, 14 insertions(+), 8 deletions(-) > > > > > > diff --git a/drivers/staging/kpc2000/kpc2000/cell_probe.c b/drivers/staging/kpc2000/kpc2000/cell_probe.c > > > index 95bfbe4aae4d..7b850f3e808b 100644 > > > --- a/drivers/staging/kpc2000/kpc2000/cell_probe.c > > > +++ b/drivers/staging/kpc2000/kpc2000/cell_probe.c > > > @@ -299,7 +299,8 @@ static int probe_core_uio(unsigned int core_num, struct kp2000_device *pcard, > > > > > > kudev = kzalloc(sizeof(struct kpc_uio_device), GFP_KERNEL); > > > if (!kudev) { > > > - dev_err(&pcard->pdev->dev, "probe_core_uio: failed to kzalloc kpc_uio_device\n"); > > > + dev_err(&pcard->pdev->dev, "%s: failed to kzalloc kpc_uio_device\n", > > > + __func__); > > > > kmalloc and friend error messages should just be deleted. Didn't > > checkpatch say something about that? > > > > thanks, > > > > greg k-h > > Yes sorry, it did. Should I delete this chunk from this patch and add > another patch to this series that just deletes the message, in v2? Yes please. thanks, greg k-h