Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1271999pxu; Mon, 23 Nov 2020 16:39:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJwhmW/JCEa7ZI6nyiCRs1TAPqFjzYmOcReOLCGCzoEwxvn9H2DZjOCMXg5UYAJRkfvaybM4 X-Received: by 2002:a17:907:7253:: with SMTP id ds19mr2191747ejc.166.1606178394373; Mon, 23 Nov 2020 16:39:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606178394; cv=none; d=google.com; s=arc-20160816; b=ZEUIw/rnrrS8L0/2moVceSv8Cz5yrnq4qkHMmX9daZPxranzfVxYRvvPazjjVt5YIW MjLMYDUYKH2s607yODxHRcZ0cRbfxR8pd7mchP56pixH9wPA/tN88a3vzXgjlMLtk6iA Mv1Bkdgx6SBEzjNtR370iDGqKwECDxf07Hd7dtz7K2cIxEZvmkiCkifw6ziXt9egWxV3 6JMVOmMdyvqYvBrZdMXDh4StVD8hMBJnYX36VmEsSenAXR04U+ksVgK8ixL9hWl2Oumz 6SLI+pTENF8npG4fByS4pvCyVnYa7fKKJRiAGUZx1zzdRhY6qcBxUCjbNg30dG4rQF6P vn9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=5McmU4diWCpYZXvgVRV/erAHyzOjT76/tYfWoJE9CBY=; b=wX8Q7IZzfN8jH87AOICABsS0yzDTgVbVMu3RW3GPjtIMrGNHufxDVpLAP8X/m/mFI3 TTIiIQRGGwRcptLWRZJ1Cz8b6rtd5bC+YZmTuZNk5w2pGRA715ScyQ0KJWxbGkG285ng h42QFrnlmr43fQe9cwhzO2BRq0KYxeYahUVnZCmV51JrhfyEVu7II+1O6NxqujhfgVHU 7/p/TBlIlAalD+53jx2SDYOyf8GOZbKXgA/RBT/gD1/j5ND3x45JCFvQIc3VL24T3qzh anpbU94soAZd9Mhs4/j+edMj/n63Tltw3uqaKxMYq/mPM0I5LvnqmdjyILP4+w0sdEHL tX1g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t12si10059537edc.298.2020.11.23.16.39.31; Mon, 23 Nov 2020 16:39:54 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731258AbgKWVmM (ORCPT + 99 others); Mon, 23 Nov 2020 16:42:12 -0500 Received: from asavdk3.altibox.net ([109.247.116.14]:41072 "EHLO asavdk3.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727725AbgKWVmM (ORCPT ); Mon, 23 Nov 2020 16:42:12 -0500 Received: from ravnborg.org (unknown [188.228.123.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk3.altibox.net (Postfix) with ESMTPS id BE4AD20051; Mon, 23 Nov 2020 22:42:09 +0100 (CET) Date: Mon, 23 Nov 2020 22:42:08 +0100 From: Sam Ravnborg To: Bernard Zhao Cc: David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, opensource.kernel@vivo.com Subject: Re: [PATCH] via/via_irq: use __func__ to replace string function name Message-ID: <20201123214208.GB675342@ravnborg.org> References: <20201119072957.108941-1-bernard@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201119072957.108941-1-bernard@vivo.com> X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=VbvZwmh9 c=1 sm=1 tr=0 a=S6zTFyMACwkrwXSdXUNehg==:117 a=S6zTFyMACwkrwXSdXUNehg==:17 a=kj9zAlcOel0A:10 a=1WtWmnkvAAAA:8 a=iPqO3eFckTJRmb16J7wA:9 a=CjuIK1q_8ugA:10 a=-_UHfarfsM-RsASml2Jt:22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bernard. On Wed, Nov 18, 2020 at 11:29:55PM -0800, Bernard Zhao wrote: > This change also fix checkpatch.pl warning: > WARNING: Prefer using '"%s...", __func__' to using > 'via_driver_irq_postinstall', this function's name, in a string > + DRM_DEBUG("via_driver_irq_postinstall\n"); > > Signed-off-by: Bernard Zhao > --- > drivers/gpu/drm/via/via_irq.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/via/via_irq.c b/drivers/gpu/drm/via/via_irq.c > index 24cc445169e2..56ce5d4ee24a 100644 > --- a/drivers/gpu/drm/via/via_irq.c > +++ b/drivers/gpu/drm/via/via_irq.c > @@ -308,7 +308,7 @@ int via_driver_irq_postinstall(struct drm_device *dev) > drm_via_private_t *dev_priv = (drm_via_private_t *) dev->dev_private; > u32 status; > > - DRM_DEBUG("via_driver_irq_postinstall\n"); > + DRM_DEBUG("fun: %s\n", __func__); DRM_DEBUG() will print the name of the calling function so the use of __func__ here is not relevant. For this old driver we should try to limit patches to bug fixing and infrastructure updates. Sam