Re: [PATCH 02/10] dpaa_eth: add support for DPAA Ethernet
flat view
From: Scott Wood <hidden>
Date: 2015-07-27 18:59:38
Also in:
linuxppc-dev, lkml
On Fri, 2015-07-24 at 10:45 -0500, Bucur Madalin-Cristian-B32716 wrote:
quoted
-----Original Message----- From: Joe Perches [mailto:joe@perches.com] On Wed, 2015-07-22 at 19:16 +0300, Madalin Bucur wrote:quoted
+static int __init dpa_load(void) +{[]quoted
+ err = platform_driver_register(&dpa_driver); + if (unlikely(err < 0)) { + pr_err(KBUILD_MODNAME + ": %s:%hu:%s(): platform_driver_register() = %d\n", + KBUILD_BASENAME ".c", __LINE__, __func__, err); + } + + pr_debug(KBUILD_MODNAME ": %s:%s() ->\n", + KBUILD_BASENAME ".c", __func__);Perhaps these should use pr_fmtAgree.
How about dropping all that complexity, and just using pr_debug("%s\n",
__func__), or dev_dbg where possible?
quoted
quoted
+static void __exit dpa_unload(void) +{ + pr_debug(KBUILD_MODNAME ": -> %s:%s()\n", + KBUILD_BASENAME ".c", __func__);dynamic debug has __func__ available and perhaps the function tracer might be used instead.quoted
diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.hb/drivers/net/ethernet/freescale/dpaa/dpaa_eth.h []quoted
+#define __hotcurious. Maybe it'd be good to add a real __hot to compiler.hThey're mostly there to make readers aware the code is critical, any changes could mess performance.
Mostly or entirely? Why not just use a comment, which could also point out specific things that were done for performance? -Scott