mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] via/via_irq: use __func__ to replace string function name
@ 2020-11-19  7:29 Bernard Zhao
  2020-11-23 21:42 ` Sam Ravnborg
  0 siblings, 1 reply; 4+ messages in thread
From: Bernard Zhao @ 2020-11-19  7:29 UTC (permalink / raw)
  To: David Airlie, Daniel Vetter, Bernard Zhao, dri-devel, linux-kernel
  Cc: opensource.kernel

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 <bernard@vivo.com>
---
 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__);
 	if (!dev_priv)
 		return -EINVAL;
 
-- 
2.29.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-11-24  6:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-19  7:29 [PATCH] via/via_irq: use __func__ to replace string function name Bernard Zhao
2020-11-23 21:42 ` Sam Ravnborg
2020-11-23 22:24   ` [RFC PATCH] Add a new "Frozen" status to MAINTAINERS subsystem entries Joe Perches
2020-11-24  6:51     ` Bernard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®