Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751482AbaK1KaH (ORCPT ); Fri, 28 Nov 2014 05:30:07 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:51959 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751033AbaK1KaB (ORCPT ); Fri, 28 Nov 2014 05:30:01 -0500 Date: Fri, 28 Nov 2014 13:29:28 +0300 From: Dan Carpenter To: Luis de Bethencourt Cc: linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org, gregkh@linuxfoundation.org, eunb.song@samsung.com, aaro.koskinen@iki.fi, paul.gortmaker@windriver.com Subject: Re: [PATCH v2] staging: octeon: Fix checkpatch warnings Message-ID: <20141128102928.GD4860@mwanda> References: <20141127161432.GA32577@ks395439.kimsufi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141127161432.GA32577@ks395439.kimsufi.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Source-IP: acsinet22.oracle.com [141.146.126.238] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 27, 2014 at 05:18:10PM +0100, Luis de Bethencourt wrote: > Fixing 80 character limit warnings in octeon/ethernet-rx.c > > Signed-off-by: Luis de Bethencourt > --- > drivers/staging/octeon/ethernet-rx.c | 51 +++++++++++++++++++++++++----------- > 1 file changed, 35 insertions(+), 16 deletions(-) > > diff --git a/drivers/staging/octeon/ethernet-rx.c b/drivers/staging/octeon/ethernet-rx.c > index 1789a12..e387eb1 100644 > --- a/drivers/staging/octeon/ethernet-rx.c > +++ b/drivers/staging/octeon/ethernet-rx.c > @@ -109,6 +109,7 @@ static inline int cvm_oct_check_rcv_error(cvmx_wqe_t *work) > int interface = cvmx_helper_get_interface_num(work->ipprt); > int index = cvmx_helper_get_interface_index_num(work->ipprt); > union cvmx_gmxx_rxx_frm_ctl gmxx_rxx_frm_ctl; > + Do this in a separate patch. > @@ -332,8 +343,10 @@ static int cvm_oct_napi_poll(struct napi_struct *napi, int budget) > skb->protocol = eth_type_trans(skb, dev); > skb->dev = dev; > > - if (unlikely(work->word2.s.not_IP || work->word2.s.IP_exc || > - work->word2.s.L4_error || !work->word2.s.tcp_or_udp)) > + if (unlikely(work->word2.s.not_IP || > + work->word2.s.IP_exc || > + work->word2.s.L4_error || > + !work->word2.s.tcp_or_udp)) > skb->ip_summed = CHECKSUM_NONE; Your patch aligns everything with tabs but it should be slightly different. Run your patch through checkpatch.pl --strict to see what I mean and then redo it all. This one should look like: if (unlikely(work->word2.s.not_IP || work->word2.s.IP_exc || work->word2.s.L4_error || !work->word2.s.tcp_or_udp)) skb->ip_summed = CHECKSUM_NONE; [tab][tab][tab][tab][tab][space][space][space][space][space]work->... regards, dan carpenter -- 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/