Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754475AbbG0S7i (ORCPT ); Mon, 27 Jul 2015 14:59:38 -0400 Received: from mail-bl2on0124.outbound.protection.outlook.com ([65.55.169.124]:48474 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751245AbbG0S7g (ORCPT ); Mon, 27 Jul 2015 14:59:36 -0400 Authentication-Results: freescale.com; dkim=none (message not signed) header.d=none; Message-ID: <1438023565.2993.299.camel@freescale.com> Subject: Re: [PATCH 02/10] dpaa_eth: add support for DPAA Ethernet From: Scott Wood To: Bucur Madalin-Cristian-B32716 CC: Joe Perches , "netdev@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" , Liberman Igal-B31950 , "ppc@mindchasers.com" , "pebolle@tiscali.nl" , "joakim.tjernlund@transmode.se" Date: Mon, 27 Jul 2015 13:59:25 -0500 In-Reply-To: References: <1437581806-17420-1-git-send-email-madalin.bucur@freescale.com> <1437581806-17420-2-git-send-email-madalin.bucur@freescale.com> <1437586665.20787.24.camel@perches.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.16.0-fta1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Originating-IP: [2601:448:8100:f9f:12bf:48ff:fe84:c9a0] X-ClientProxiedBy: BY2PR02CA0111.namprd02.prod.outlook.com (25.163.44.165) To BLUPR03MB1473.namprd03.prod.outlook.com (25.163.81.158) X-Microsoft-Exchange-Diagnostics: 1;BLUPR03MB1473;2:U5R5Ei4pe1X485zc37+Mm00yC+I+3Ef2Bkkwn/Ih7jb7Xdmt7mykCwYtjJz775+x;3:Ks4iFFspxH49Po8ysO03MxBA0Ltppe5B5Um2rSthpVfVEhr/0W7lM95MNzx6vlP8wTZC2WnLdbBfmxHaOUpEg5yxr27K6xH3aXtW40c3iQA9abbUkdKGk3y7Imy5WxDFKglaLy1IVXMC67cEsQ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8Z7qOGtbS2UIY2ksoA91w0dK6E7RHjDDm97hr265g6cgCE1zk/u8uq3fizopiHZouVBQoR5bCnWsqeYVL5+hhid1NZev6OAZnJ8hNPtl6EofHPyIc= BLUPR03MB1473: X-MS-Exchange-Organization-RulesExecuted X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:BLUPR03MB1473;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB1473; X-Forefront-PRVS: 0650714AAA X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6009001)(377424004)(13464003)(24454002)(46102003)(103116003)(40100003)(2950100001)(77096005)(62966003)(50226001)(76176999)(87976001)(5001960100002)(86362001)(23676002)(36756003)(189998001)(50986999)(4001450100002)(5001920100001)(122386002)(19580405001)(110136002)(92566002)(42186005)(47776003)(33646002)(77156002)(50466002)(5820100001)(3826002)(19627235001);DIR:OUT;SFP:1102;SCL:1;SRVR:BLUPR03MB1473;H:[IPv6:2601:448:8100:f9f:12bf:48ff:fe84:c9a0];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BLUPR03MB1473;23:6teUFI0zHoe0XVVDgCTz18bW3AjtLggQOa4LJaXI3CSosvGcSOmctvZYXIk4Of4SsDpPh8hBA0lTtZGMM/RQD0CXvoGFvbuOXH5Gbi/bq9riCZbpQu02u339EXsoJUNzFnHTfXB/y44I35P0YD8inYGTZa9cIpkXADdLU7aH1iuttZMwIg3IsjOHbWUm3i1qLazd2TfzJ9Ew4mmgqy+g7dmoq+A5J8v1EbOZsW39GWtBZMtGFgtvllb4koOqwLR/40I6o2W17rziUvFbHPQIy44RIy8bGowgKcoWGFHdhfvm7lmugU6ixLhicrOXQzlQQtsfLXY5rp1jWKs5yiW31o0ClSrjJXC17TAsuEUgn+mb7qG+s2LXZG/fAtfqgt/wGzXrPoKQSqoltpljzagpg2TLvotLiytR3jwyw8PtB/k2b31tzP2Xh5w++UwdFpX29U6Gv10fPYYi4fF1MJbcZqivqg3zDHcMzxZ8M3lqwT0JEnM0BxeO99uBLf74pR12vwdJhOruAR75vSKxIv3XEwfRtlu9XSgtbqN6QcmvdEhkZKCmUeIsbrWL/M0dU7U9LbLrkrS/kQSUQXbRt2MyovKscmL9Ei3uZjl7o4un48GtFsq85iWFS/JpmqjlKWwwo2g/l3X8joA5Z0mk3yYtpUy43I6AElQ/eLB8Ex6dMJzqQq6Uiauq2fJ0lazrbLvQWl+R4fmWJfA2zqJ05ADVzdZIpJK8TPf8tR8hljSMce3bg3+NqKr+qifGFJ6iJRoDgJiR/h+dTTBYdF2l0Pz08TjIfYGoLgyh3ytljqrbXTEDzAp0W8gv2P56ii70ezKczPYjExdLYh1s+0/ylwtdLiDVpsSV/LmwSZBFswRdDKBM8kreoMStKbfFyOrVW17U4pjVIhNeKgrtFbtBqt1IIg== X-Microsoft-Exchange-Diagnostics: 1;BLUPR03MB1473;5:cBJmO4BIbYfSAZ4uwR8ndHq/UFfvFKcDynyGZtV7+yjbQr+8eyLZ4QwpEyIzsOOd2RuCy2lnROSFSQuUYWxv7J0+l5GmHoCVA7J7jfGHmuWK4lRQ3EXxgc//wsU/+t6IcGPRS+udtYvEi5ibXZIwfw==;24:eLg5+xunTX1fY7iT4HeIUP4t9d1NjGK4+d7aK0jIHHE1bVmweKb9203tCtumnxl/TmmPZam69Y2+h7oTO+z3C0fZBprhCmFCWRWj6d+nqmA=;20:WU69gpWtNrwu/6mOwTFZZtr5Y7azXAT2zOIzpCEXJeQdwfXXeaw0gHg4QlQZoFCvcTxQFgQrPJNgl0X0wMcCIA== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jul 2015 18:59:32.7194 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB1473 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1802 Lines: 55 On Fri, 2015-07-24 at 10:45 -0500, Bucur Madalin-Cristian-B32716 wrote: > > -----Original Message----- > > From: Joe Perches [mailto:joe@perches.com] > > On Wed, 2015-07-22 at 19:16 +0300, Madalin Bucur wrote: > > > +static int __init dpa_load(void) > > > +{ > > [] > > > + 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_fmt > > Agree. How about dropping all that complexity, and just using pr_debug("%s\n", __func__), or dev_dbg where possible? > > > > +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. > > > > > diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.h > > b/drivers/net/ethernet/freescale/dpaa/dpaa_eth.h > > [] > > > +#define __hot > > > > curious. > > > > Maybe it'd be good to add a real __hot to compiler.h > > They'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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/