Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1662007ybm; Thu, 23 May 2019 04:59:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQLz01HnzzgUl/4PwcvT9PfdD5KFDrJ1tJ2fpnZ2cdl9j8LBFoIcdjgDPA0xwnGdbyGGXe X-Received: by 2002:a63:465b:: with SMTP id v27mr96219680pgk.38.1558612758036; Thu, 23 May 2019 04:59:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558612758; cv=none; d=google.com; s=arc-20160816; b=bPX7+7mtbj4DY/MwDJKy7zcSdaPZEuwWzChmZcdb/X4KbDaJgm0CJ0N33xNCmcQ1me KxfJ1e6z+AFBeyKOGcfvv9YMxMtFN6OQVPafKDNeO9PBNlqqIH0cZpDiQID7oGaY2/vm MIqmuSgEDBD5tHb5c/lf7ZrHQkQY70pWazXf7tyQyvOFonCxyjNmoD+FfEMCAzRRzR8+ IVFvo2jES4uEzX2cN080U7c0N2Ksv244NDTot2njSK6thjtHBRLMVBCtCzAnCVV6ekLl 8UrXxFykUSyg+Pl3eR7nVkB+JE7Z4avOAY2ewdSe2wzFmTRmQtvPoi3kh3ee/9tCXUEo OeUw== 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=iaubqedXbW7ypqH8sNjE6xZ3Xr5zOfkUHBa6mcwslqw=; b=Q0gG25aWkHuwLTqVtP7ktyxTBhzcpF5aJ+cGdYv/B9TiECau6zD8pJ4pQ9zjgLTABV pec8svbBCkpo6F66TRFX1zkUzHCPBRkYT3MmT/sS4Gl3Ee9bgF9DfhdG0zvRuHwzvCri pY45Y8E1RyAIqo7yYt4eICvBnBkNeizi3HmjUTisr5wU4hBa5vJqu8xkm0YU3y5y+S3O yfXdHWdQdF/8cv1AqebgU/xqgQa29gv0va2g7gwPnqEjZhE5YQpg7q1oDa9/to6jp96e s4G6/Ge+aqrSeSu9tBfzsjiZ9j4UvMEsIkGCHte5M5XweZzr2SfOiO9kfB8K1nGjrH+K ZTIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bfSxSYHW; 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 l6si27401533pgp.382.2019.05.23.04.59.02; Thu, 23 May 2019 04:59:18 -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=bfSxSYHW; 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 S1730571AbfEWLz4 (ORCPT + 99 others); Thu, 23 May 2019 07:55:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:38014 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730369AbfEWLz4 (ORCPT ); Thu, 23 May 2019 07:55:56 -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 0F26C20881; Thu, 23 May 2019 11:55:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558612555; bh=puKLNTiE7cwyf6xYtoR1KxBZnqtcCNUUrpxzR1l2XNU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bfSxSYHWib7RKerqZ7PBtGoXvOrTDtTmqD2U0Hu4ZJcKaES8KbxBFvBeXvdfPpmh+ cSCuoGOPeAIWKBGxrrDfczrinK/Nd2zWokRXbFG8k56NYkIEUxGNWLpz7ViQZ1ijgZ Jo+Q2LcQ4DoiPoSMEoZuYGCunHxM6MPUTf4wdu9Y= Date: Thu, 23 May 2019 13:55:53 +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: <20190523115553.GA6953@kroah.com> References: <20190523113613.28342-1-simon@nikanor.nu> <20190523113613.28342-3-simon@nikanor.nu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190523113613.28342-3-simon@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 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