Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1146989ybl; Sun, 1 Dec 2019 21:42:30 -0800 (PST) X-Google-Smtp-Source: APXvYqyaKs9CCU7eQkuqGBepeWx3hF62jV02xpeHdvP2k1iEQ3bJc8gv7Ebo1+l4T7oYpbTEJqul X-Received: by 2002:a17:906:eda9:: with SMTP id sa9mr32237528ejb.297.1575265349614; Sun, 01 Dec 2019 21:42:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575265349; cv=none; d=google.com; s=arc-20160816; b=E3oBrrTBZatnQJ0533EtYsUYfI/FU1nZk6IGOkXxqTsO0AKczJooFbSwpbEWWxx31v BIy10r0HwmilreEaUTYBDnvAxvblqr8rLUOIMGnAPFSYfrrfSYCnv3E0ZLwHtIPX/m5L bZp6p4qsGV1+n/EFojheVf6nJMwPnHNpyhUA5C9TnSWcPPB0BGjAt2VRy+kGIC+7toB+ guqpOabrudX5Y/sIIF1c1H7mzZiWCdvKSVbwbSJmqzLox7o+T2hTugNohM4klBLmn6X8 yLuFei0AmccvTlJaWavSByQNts2jppOn9tK3GQ6A9eGD5LiAHPJrSvpMLDEpUPRpsI2Q 7Zjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=zzQN8wezjT7b8g3+ghWsdGp9+x99xEeyGabO3I6sDJg=; b=BVp0Y6f9wRtxgBqb920DBXIk+d7yOQHS90v91e8M9kSu9VCX8/Y4/6Y823S95pnIWl 17/zVEe+Fu/WFKpc0/r/FSgsaNqKVgDGgyTxkNX0qJVo+ddMCOa8HUD9Ia6/MZofonjs 7cJaIRA5VAoVDy5hqie4K9cvcvkLpkm5/C/QV/OJzuQM5PNLQ/DDB7D5RmacZ0HpAYD9 WEgxH/7Ruz86J4h12QfzHVr6gTIjnV22xpQSgphZZ+LgW/6YodmVDf8hKB4Ww1wD/8xe jbaXBxaPl0RzoH0fftoVwgOMi2gkchKc7WLUGkD0u27tBTylEq8YCJVl0doWs7aPyxeL aTkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="U7v/I2bc"; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b13si5049695ejj.93.2019.12.01.21.41.53; Sun, 01 Dec 2019 21:42:29 -0800 (PST) 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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="U7v/I2bc"; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726024AbfLBFgF (ORCPT + 99 others); Mon, 2 Dec 2019 00:36:05 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:43140 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725807AbfLBFgE (ORCPT ); Mon, 2 Dec 2019 00:36:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To: From:Date:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=zzQN8wezjT7b8g3+ghWsdGp9+x99xEeyGabO3I6sDJg=; b=U7v/I2bc5x5IaFlgbKhxfCG9/ 3alyresmA6+o81UZ1foOF28PTS51KwKjRyhlwbda2VanIfwRh3q0+xs0PR5Pb61sWpfT7oY0RI4HA BmF0XKuX9YTc0KHeMF0e1H9J/a9qQ9s0EFCn4qXa+xFJ5dEdAniVTm5RyzRCk9O3josCIR07amc4n fHUKXBwc9mQgPaDLto9J0zhXIND5sXPYfHsQlQ0xUJC1eQFjCcejbwuzm1ZtLlzEMMzA5N5sFA4/X jItRphDUN+6O2M/dNDs7JPp5CUdXtCm5lr7K83ptbZMotQ3Eab2VxU8xHkV/F+gOHkcfaLs7MdOQh 4iZRJA2YA==; Received: from [80.156.29.194] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1ibeNM-0007z9-8d; Mon, 02 Dec 2019 05:36:00 +0000 Date: Mon, 2 Dec 2019 06:35:55 +0100 From: Mauro Carvalho Chehab To: Amit Choudhary Cc: "Daniel W. S. Almeida" , gregkh@linuxfoundation.org, rfontana@redhat.com, kstewart@linuxfoundation.org, tglx@linutronix.de, skhan@linuxfoundation.org, linux-kernel-mentees@lists.linuxfoundation.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/6] media: dvb_dummy_fe: Fix long lines Message-ID: <20191202063555.0f75e68f@kernel.org> In-Reply-To: References: <20191201161542.69535-1-dwlsalmeida@gmail.com> <20191201161542.69535-5-dwlsalmeida@gmail.com> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Sun, 1 Dec 2019 22:07:22 +0530 Amit Choudhary escreveu: > +static int dvb_dummy_fe_read_signal_strength(struct dvb_frontend *fe, > > > + u16 *strength) > > > > In my opinion, the arguments on new line should be just below the start of > arguments on top line. Like this: > > +static int dvb_dummy_fe_read_signal_strength(struct dvb_frontend *fe, > + u16 > *strength) No, that is not the way we indent. The alignment is relative to the open parenthesis: foo(arg1, arg2); Btw, if you run checkpatch --strict, you'll see it complaining if the alignment is different: CHECK: Alignment should match open parenthesis #2: FILE: a.c:2: +void foo(int arg1, + int arg2) > + .caps = FE_CAN_FEC_1_2 | > > + FE_CAN_FEC_2_3 | The alignment here is given by the first argument: bitfield = BIT_1 | BIT_2 | BIT_3 | ... or bitfield = BIT_1 | BIT_2 | BIT_3 ... On media, we usually prefer the first form. Cheers, Mauro