Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp695081ybm; Thu, 28 May 2020 12:49:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZVee9eLE6t+VBM11UBfzdEtcaYYMpYy/HU/J9e2mfidFitgOhH73ZyxnINYecF+5d9UYb X-Received: by 2002:a17:906:4949:: with SMTP id f9mr4493393ejt.247.1590695390614; Thu, 28 May 2020 12:49:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590695390; cv=none; d=google.com; s=arc-20160816; b=H445xumqeZ7cAbK7rXb+1QopqcuM0ZVBYEfNBn4quEQ4bbK/ANffqvmaDB1Lmc8ENs NaLDCOPXJBtINrXiRBIozqrz8xF1GbKZ0TjZCjch0GlKQZa7pwoSaBgp+NINz6clIvkH prV2oyPzalYHF/snwoGBLLhRnkEDn/l5QeYBYLWZ9j+8xIpZE07/H0PAgGRqC87QrU3r uufQgDQMPd6KOX6gW+/tCIqjS+NdcpCVUr9vc4jo8EhP6KBqMoJv79zAdeAH6CPZbynb 49Knw4JtCLKz4DG126CXi1HFT3wmZFDaiQfCIRCjU2C0Lzsjt5wKhKc1QmJV8+JGF2cU 8hng== 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 :dkim-signature; bh=x7dH7/wqGQYUhGLFyHpl4QVuiKHZ8TJfm6m4hIlJFCU=; b=ncIpxujslvO6RJ9vQ+8S32rjaXKYhdGFkeqvcV7EblyvOQHYohX7Lum61KHbkgBenw /aWQ1rmv2Jmgkj1dAkK81HlyA9kLNvUXLgULnQhgfhM50xbjokjBvrK8PBVEqEGrmS1W In7EWLXhstD2RDAyYIJ9qVPwnl6WqmArrN7o76MzKQnSpBgMNU8ei4V7wi6iJxy6PGxU Ss9HbmRoUs6YHPO2RBOg5hs6R81f5ScMPAxmEd0Lgj7zFX2pkgEHd+6MhoiQBR8OEK5P xz+Wjwy//zG5nh694sUrLVGoq4elfX3eDuXNyPTf2vRVwvNCIWtKdFQdW3hpoKBxw13u nYDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=tpJB5DRG; 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 dt20si5764555ejc.24.2020.05.28.12.49.27; Thu, 28 May 2020 12:49:50 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=tpJB5DRG; 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 S1728663AbgE1To4 (ORCPT + 99 others); Thu, 28 May 2020 15:44:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728638AbgE1Toy (ORCPT ); Thu, 28 May 2020 15:44:54 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16C19C08C5C6; Thu, 28 May 2020 12:44:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=x7dH7/wqGQYUhGLFyHpl4QVuiKHZ8TJfm6m4hIlJFCU=; b=tpJB5DRG71JcOlL/QbiSxI7K5w oTGjW2VsvhDjsXVucoZ70kvRuxv1QP/5c6OywuIyRmSMFFBr4MZ48Y+PzOo8Al+oarjiHEa1iN9wp ky9phVHRj3h6fWDyhOw+BQWwEC/lxUYEZzEDzSstWeIYv2ZtkACb1XIlxIIQRKdofnwXVWypGd2Vy pew9P2+Q6BwWzjPA9MhY6Nhh7LkdxQV5xtHiJM4VbpW/Qky0DsDu60zRwMaRRE0CnkNNtsuIGVtvP fEy4NDcALXKejbtJKpi+3sD8qcpypSeLDoW55RsaD21f9C48TawCNL4A7G1OCAUgsyUPPIgzLzRKU Rv5C03gw==; Received: from willy by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jeOSH-0001Tf-La; Thu, 28 May 2020 19:44:41 +0000 Date: Thu, 28 May 2020 12:44:41 -0700 From: Matthew Wilcox To: Al Viro 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: <20200528194441.GQ17206@bombadil.infradead.org> References: <20200528054043.621510-1-hch@lst.de> <20200528193340.GR23230@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200528193340.GR23230@ZenIV.linux.org.uk> 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 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 ...