Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp709416ybm; Thu, 28 May 2020 13:08:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvgyqRsepyrUVs1fSUPnwlO/YUalymJ/L+B1ElkmCZDe5im1Kf1qX+iiRXvaB5lysTIpq4 X-Received: by 2002:a17:906:f203:: with SMTP id gt3mr4976449ejb.77.1590696536396; Thu, 28 May 2020 13:08:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590696536; cv=none; d=google.com; s=arc-20160816; b=OUq2F8xOg7WVUrLvrtBJvL12fmjDtRpR1LO2OJJnoHjELEtuF7DfmvBkKNfwA0F9V3 ALky005cgA7IUkr+g2aWL1YFJ3YgaN7U30b08Yzsr3puFlvqzXrsnIGwU2u2NHX6pIu+ WeNpIEydmP/Bj2RY0jP+5DvlLdz8FL55s8gLAZitYb2Y8tAcBzmHlkg0Cc+U8K+daouR Vv+eLafd5J2z6zvtBI1WUP79lNFgREqpqzqngrbKNG3dE2RL5Pc676Cw7xJcL53nHkRA 4Y/Wtu2QUmFeZoZk1b3pe9ZpsqRSRJWQInXh4BAj+jIGdaViBsGOgAkZ3eU/XtPiaSxY jnqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=sAc+Bh7Zn61v0RQ2HaE2ykmPRjXLhSXjazpWmEAvmj8=; b=HgiKeLghZTYuweEoMmbbrBIy0yASTtd6LuduuFkw4aqGW1fiZIaU2C7yGEDEHJgk3N 2SjafYZcUT+WPTDaSEQUU+VFUxEb02+Kne3APQ/Wg52dDy4dGIXvCPnBzcDRDg47jmM6 mBRkOEMQJ9T7Mm5N0RtX20ErnHZmE8PE39jD4TJKy7+UOQEkRdU+GgBlKdAUyIpO6KhR T/jRneHsMQcu9X8iDzfLzrFei3vqFhxtTtaiDDrO+JS3ovfdd3S4JALdyDu1buK7eYmv n9jUQpKgzT2Plbbw+kKlOdL511GZoRuK0dy3wv+QG/Qg1U85ZbeI0q1mWRe/66/29n5s jncw== 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 c15si4359639edm.218.2020.05.28.13.08.31; Thu, 28 May 2020 13:08:56 -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 S2406980AbgE1UGd (ORCPT + 99 others); Thu, 28 May 2020 16:06:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406779AbgE1UGc (ORCPT ); Thu, 28 May 2020 16:06:32 -0400 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D659C08C5C6; Thu, 28 May 2020 13:06:32 -0700 (PDT) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.93 #3 (Red Hat Linux)) id 1jeOmu-00H6ZA-KK; Thu, 28 May 2020 20:06:00 +0000 Date: Thu, 28 May 2020 21:06:00 +0100 From: Al Viro To: Matthew Wilcox Cc: Joe Perches , Linus Torvalds , Christoph Hellwig , Ian Kent , David Howells , Linux Kernel Mailing List , linux-fsdevel , LSM List , NetFilter , Alex Deucher , David Airlie Subject: Re: clean up kernel_{read,write} & friends v2 Message-ID: <20200528200600.GS23230@ZenIV.linux.org.uk> References: <20200528054043.621510-1-hch@lst.de> <20200528193340.GR23230@ZenIV.linux.org.uk> <20200528194441.GQ17206@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200528194441.GQ17206@bombadil.infradead.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 28, 2020 at 12:44:41PM -0700, Matthew Wilcox wrote: > On Thu, May 28, 2020 at 08:33:40PM +0100, Al Viro wrote: > > On Thu, May 28, 2020 at 12:22:08PM -0700, Joe Perches wrote: > > > > > Hard limits at 80 really don't work well, especially with > > > some of the 25+ character length identifiers used today. > > > > IMO any such identifier is a good reason for a warning. > > > > The litmus test is actually very simple: how unpleasant would it be > > to mention the identifiers while discussing the code over the phone? > > Here's a good example of a function which should be taken out and shot: > > int amdgpu_atombios_get_leakage_vddc_based_on_leakage_params(struct amdgpu_devic > e *adev, > ... > switch (frev) { > case 2: > switch (crev) { > ... > if (profile->ucElbVDDC_Num > 0) { > for (i = 0; i < profile->ucElbVDDC_Num; i++) { > if (vddc_id_buf[i] == virtual_voltage_id) { > for (j = 0; j < profile->ucLeakageBinNum; j++) { > if (vbios_voltage_id <= leakage_bin[j]) { > *vddc = vddc_buf[j * profile->ucElbVDDC_Num + i]; > > I mean, I get it that AMD want to show off just how studly a monitor they > support, but good grief ... I must respectfully disagree. It clearly needs to be hanged, drawn and quartered...