Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3838152imm; Tue, 29 May 2018 14:57:54 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKsSkQDKPCyZO0IZ+pRMYYSygQWHUtJSzGdrCG1RkRSKhW80Fj6hNdVHqCTv7Zxm9LlEdDu X-Received: by 2002:a63:8048:: with SMTP id j69-v6mr103703pgd.429.1527631074702; Tue, 29 May 2018 14:57:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527631074; cv=none; d=google.com; s=arc-20160816; b=L4GrOu8btuuOoAsnaPpLSvSAiN3F9QjEDO33xNqE+sG0PSwLNP1rZYWzex5oDCMbRd JbqJWcG6E6I3kWmZMf1HWHcPvqwVgyYfoWG9AUx4uKA3/yeoRUYh4GvHu08O+lWBz3H+ oX25SBt/89droCiv6w2bBZvHHnf9FWN8dROXhR3C3JvxluHgGcsX2hv00W1urqD7jpqA hFWANLOIlQxjVyQ5DpGjKXiaj8sQmdViXi9Me5hBLRC2XP3YUXTKYUvd1TBVGRg7t5ON d/deQs8hoFdWTYm8ybM3llTSFZaQR5Tp+8XyHobI732+OK51y+06oDvsrmkPOE2pvNwc xdyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:references :in-reply-to:subject:cc:date:to:from:arc-authentication-results; bh=JUsMymOPcBsou38gTAmUIBtD7vtCXFX6rBqYTXUnB20=; b=aU8D/AgCoNZXzsJhVwsrrX3adH/NH2UnBRNzMIebH0Cjs5z9CTW2l+8iQJnlaND1Nv kqnfG0NFyYnLhcFkxwtRzBfL8jUlQVM6CIrYVVR3tGBD8G9ou4ipDOUcgdbBaQ7Zvbzd KAEp1tWvfLcy1MbAlPylPUcy+P8aOOgEzoT+BPynjSl5dtyK49G/s2/VEJ5IpnU/1ROe qycpPtxt2VdsjabeCT/NW8Pd3evB6rg/320NICbqilFiBtqb9lCdmincC2DF0PA+++OI VHzXE4WK2x8QywEQU1/PBLBZOwhKP2jyz81NWvmtvH9EolLMtbMEyEPsHqYp64xR+CAd JrZg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b35-v6si33423340plh.36.2018.05.29.14.57.40; Tue, 29 May 2018 14:57:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967183AbeE2V5O (ORCPT + 99 others); Tue, 29 May 2018 17:57:14 -0400 Received: from mx2.suse.de ([195.135.220.15]:44603 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966304AbeE2V5N (ORCPT ); Tue, 29 May 2018 17:57:13 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 9B76AAB08; Tue, 29 May 2018 21:57:11 +0000 (UTC) From: NeilBrown To: Sankalp Negi , Greg Kroah-Hartman , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Date: Wed, 30 May 2018 07:57:05 +1000 Cc: Sankalp Negi Subject: Re: [PATCH] staging: mt7621-mmc: Fix line size exceeding 80 columns. In-Reply-To: <20180529173757.nmw46a6xbrgh35wd@localhost> References: <20180529173757.nmw46a6xbrgh35wd@localhost> Message-ID: <87vab6unv2.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, May 29 2018, Sankalp Negi wrote: > This patch fixes the checkpatch.pl warning: > > WARNING: line over 80 characters > > Signed-off-by: Sankalp Negi > --- > drivers/staging/mt7621-mmc/dbg.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/mt7621-mmc/dbg.c b/drivers/staging/mt7621-mm= c/dbg.c > index d897b1216348..0b007e060ddc 100644 > --- a/drivers/staging/mt7621-mmc/dbg.c > +++ b/drivers/staging/mt7621-mmc/dbg.c > @@ -229,7 +229,7 @@ static int msdc_debug_proc_read(struct seq_file *s, v= oid *p) > } >=20=20 > static ssize_t msdc_debug_proc_write(struct file *file, > - const char __user *buf, size_t count, loff_t *data) > + const char __user *buf, size_t count, loff_t *data) Thanks, but .... not like this please. The code inside () should never be indented before the '(' unless the '(' is at the end of a line. So you could make it static ssize_t msdc_debug_proc_write(struct file *file, const char __user *= buf, size_t count, loff_t *data) or static ssize_t msdc_debug_proc_write(struct file *file, const char __user *buf, size_t cou= nt, loff_t *data) or even static ssize_t msdc_debug_proc_write( struct file *file, const char __user *buf, size_t count, loff_t *data) (though I don't think checkpatch will like that). But neither the original or your new version are indented properly. Try to do more than just remove the warnings - try to make the code beautiful! Thanks, NeilBrown > { > int ret; >=20=20 > --=20 > 2.11.0 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG8Yp69OQ2HB7X0l6Oeye3VZigbkFAlsNzLEACgkQOeye3VZi gbmXkQ//TjZnJwNjwhJlIIpgvL6uR05CETVeLBx9eWojD5JQcWBtsM491JEc+ebq MpS6RjQOOT35oaFijnnQzfiY3FMPeqtGZJrpFY6c7kvzHLddWMRFPqPpcLDfzBwy lmgQofaHSOLScsD4VqA9aN7uctu3dWkdfM3v831rtDgoTKq4p4oH8oFi/SVgF6E7 YzVyzWU55TAQGotqkrghvu9x2ZSC0LFm4qVEUxB4DekUvzYHroDRBNBMN4v1wxeh yWyFd0sCLHNot6PVTesoDySIyaZ4Voskja1Zoiup7jpvRKkByaNyICLlWfNBmAox B+U1v4u63pTWcnV7ZopZ2/t7YbGnUuTI4lI1WVrlHlhVCqckVfvAjyvlMkLd9IrN 0YGBaHVK3SJOMqtzLBLA5vj+xaBZtKQlNkJ0Xdt4IYmY/Zo1Vxh8vcJxNAG6DjWf 3ui8sI88XUQGkxUtOP1pZdgWkAGpxLtl3x2+gZBtaWuX27FXmTMzd6utp/fpzCLh p1TBQb8ZFadaO7iraVJR9PLgXST/PAONqKHP2/0v1Y5c3b52UPoC/R0S1veNhzwQ bfzesl87VRMS5g/AGWqp7qvMYASnrWF5JrXgmzC2henmG2Nbhtu+ag1BclrZeE4A sTlUXQ+N5weqKDcqsDBiJbpn2iaXIzdzihfciP10RJyPXXT/U+4= =UxS9 -----END PGP SIGNATURE----- --=-=-=--