Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp347853pxf; Wed, 7 Apr 2021 00:37:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYI7d31D0K23XJxnMYjqMJX3X37Nz0cDn/kWwGOww2XE1XFuHMxr+TDrdgGSdqCCbDevnb X-Received: by 2002:a05:6638:35ab:: with SMTP id v43mr2138909jal.65.1617781049391; Wed, 07 Apr 2021 00:37:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617781049; cv=none; d=google.com; s=arc-20160816; b=viOgNm/kscbmdUh98bstN6GOTAt5ui3oJ8F2mNeeBdDVoLBoGWC1DnqRcOS/ofExbj ioJCgDVFeyDqcrcug+klUqupgy5/iiSdOWXPhHsKxWE9XVz4EPRRqJyetFGyoOATS6Ar O659s33ewqLEwMDBriYzXnJI9uh4jUeF+Ojv5GmCdGgtXcNmscYPoBAXBpT80jSn1zob iNXSjvrL3ZBxQncownjT8dZJGwueUHGO0vbEKFsRpMeiV+KBbRwvyg3C13IV5/IR4S36 H4ANENteChJiB8SjAftFFvSLFSwqLybaMH+lWoTSwYDac5q5UvsuCem6yNyQ6M2o7n81 x16Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=7zn/0KQajpECvse4bVnzpSSq+ifkaibixR9PbYpEe8s=; b=M5mukahkHMXy/pBQAES/hhN0/O7FaYU5LUvgUemPG6lltfCuPtN6PKnSs3o2hvZ79K pwoSyjA+ZPAX+0ddbmmCGTYCSVuA1pc6hIXIojs9URj+JkVCmfJdMx+tAszzr9VkVdxd x14M9K/FDfqIgqSPFOxmn0G4sm4nmMT1hiBLwapqhY6TEeSNXVLMChnxmM3qPINNkTlX j0SdKNO4OIy48s0qrwvi/+A181QwAUBf/UnT0FTUFAuw60pog/e2X1TQ4rSESgxLiSBF g2Mdg7kXNCLTjUAfDPUi/LaMNqjs9itzPrklivZTO1COQ8ifDdUYmh4FdlPJQw/YBPII piUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k3si21013956iop.67.2021.04.07.00.37.17; Wed, 07 Apr 2021 00:37:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244529AbhDFRVu (ORCPT + 99 others); Tue, 6 Apr 2021 13:21:50 -0400 Received: from smtprelay0183.hostedemail.com ([216.40.44.183]:53336 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233676AbhDFRVu (ORCPT ); Tue, 6 Apr 2021 13:21:50 -0400 Received: from omf15.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay05.hostedemail.com (Postfix) with ESMTP id C3182180428ED; Tue, 6 Apr 2021 17:21:41 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf15.hostedemail.com (Postfix) with ESMTPA id 601A2C4182; Tue, 6 Apr 2021 17:21:40 +0000 (UTC) Message-ID: <7d7be8bcc0e80d826083890ed7791070ad25e603.camel@perches.com> Subject: Re: [PATCH] staging: greybus: Match parentheses alignment From: Joe Perches To: Greg KH , Zhansaya Bagdauletkyzy Cc: johan@kernel.org, elder@kernel.org, greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy-kernel@googlegroups.com Date: Tue, 06 Apr 2021 10:21:38 -0700 In-Reply-To: References: <20210406124259.GA96537@zhans> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.38.1-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 601A2C4182 X-Spam-Status: No, score=0.10 X-Stat-Signature: c6sadr7ectuaniqta9h19aj9ajc7unsy X-Rspamd-Server: rspamout04 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX1+jIsA223eKF3R6VcYnwZUQdsfBWilGY3I= X-HE-Tag: 1617729700-769365 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2021-04-06 at 15:27 +0200, Greg KH wrote: > On Tue, Apr 06, 2021 at 06:42:59PM +0600, Zhansaya Bagdauletkyzy wrote: > > Match next line with open parentheses by adding tabs/spaces > > to conform with Linux kernel coding style. > > Reported by checkpatch. [] > > diff --git a/drivers/staging/greybus/camera.c b/drivers/staging/greybus/camera.c [] > > @@ -378,8 +378,8 @@ struct ap_csi_config_request { > > ?#define GB_CAMERA_CSI_CLK_FREQ_MARGIN 150000000U > > ? > > > > ?static int gb_camera_setup_data_connection(struct gb_camera *gcam, > > - struct gb_camera_configure_streams_response *resp, > > - struct gb_camera_csi_params *csi_params) > > + struct gb_camera_configure_streams_response *resp, > > + struct gb_camera_csi_params *csi_params) > > And now you violate another coding style requirement, which means > someone will send another patch to fix that up and around and around it > goes... None of the coding style document is an actual requirement Greg. It's all rules of thumb. Useful rules, but not hard and fast right? To me, the biggest issue with this code isn't whether or not the code is aligned at open parentheses or stays within 80 columns, but is the use of 30+ character length identifiers. Using identifiers of that length makes using 80 column, or even 100 column length lines infeasible. Perhaps seeing if include/linux/greybus/greybus_protocols.h could be updated to use shorter length identifiers might be useful. The median length identifier there is ~25 chars long and the maximum length identifier is ~50 chars.