Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755884AbbBLMmY (ORCPT ); Thu, 12 Feb 2015 07:42:24 -0500 Received: from smtprelay0093.hostedemail.com ([216.40.44.93]:50822 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755839AbbBLMmX (ORCPT ); Thu, 12 Feb 2015 07:42:23 -0500 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::,RULES_HIT:41:355:379:541:599:960:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1539:1593:1594:1711:1714:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3350:3622:3867:3872:4250:4321:5007:6261:7903:10004:10400:10848:11026:11232:11473:11658:11914:12043:12438:12517:12519:12740:13069:13311:13357:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: side73_88d5e1b08765b X-Filterd-Recvd-Size: 1626 Message-ID: <1423744938.15343.29.camel@perches.com> Subject: Re: [PATCH 2/4] spi: imx: checkpatch cleanup From: Joe Perches To: Aurelien BOUIN Cc: broonie@kernel.org, festevam@gmail.com, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Date: Thu, 12 Feb 2015 04:42:18 -0800 In-Reply-To: <1423742848-15369-2-git-send-email-a.bouin@gmail.com> References: <1423742848-15369-1-git-send-email-a.bouin@gmail.com> <1423742848-15369-2-git-send-email-a.bouin@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.12.7-0ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 957 Lines: 32 On Thu, 2015-02-12 at 13:07 +0100, Aurelien BOUIN wrote: > This patch solve various issue detected by checkpatch.pl trivia: > diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c [] > @@ -282,7 +282,8 @@ static unsigned int mx51_ecspi_clkdiv(unsigned int fin, unsigned int fspi, > (post << MX51_ECSPI_CTRL_POSTDIV_OFFSET); > } > > -static void __maybe_unused mx51_ecspi_intctrl(struct spi_imx_data *spi_imx, int enable) > +static void __maybe_unused mx51_ecspi_intctrl(struct spi_imx_data *spi_imx, > + int enable) Perhaps it'd be better to use this style: __maybe_unused static void foo(...) ie: __maybe_unused static void mx51_ecspi_intctrl(struct spi_imx_data *spi_imx, int enable) etc.. -- 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/