[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <MN2PR12MB448898AB31147F34D4E3B3C1F78E0@MN2PR12MB4488.namprd12.prod.outlook.com>
Date: Thu, 28 May 2020 20:14:41 +0000
From: "Deucher, Alexander" <Alexander.Deucher@....com>
To: Al Viro <viro@...iv.linux.org.uk>,
Matthew Wilcox <willy@...radead.org>
CC: Joe Perches <joe@...ches.com>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Christoph Hellwig <hch@....de>, Ian Kent <raven@...maw.net>,
David Howells <dhowells@...hat.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
linux-fsdevel <linux-fsdevel@...r.kernel.org>,
LSM List <linux-security-module@...r.kernel.org>,
NetFilter <netfilter-devel@...r.kernel.org>,
David Airlie <airlied@...ux.ie>
Subject: RE: clean up kernel_{read,write} & friends v2
[AMD Official Use Only - Internal Distribution Only]
> -----Original Message-----
> From: Al Viro <viro@....linux.org.uk> On Behalf Of Al Viro
> Sent: Thursday, May 28, 2020 4:06 PM
> To: Matthew Wilcox <willy@...radead.org>
> Cc: Joe Perches <joe@...ches.com>; Linus Torvalds <torvalds@...ux-
> foundation.org>; Christoph Hellwig <hch@....de>; Ian Kent
> <raven@...maw.net>; David Howells <dhowells@...hat.com>; Linux
> Kernel Mailing List <linux-kernel@...r.kernel.org>; linux-fsdevel <linux-
> fsdevel@...r.kernel.org>; LSM List <linux-security-
> module@...r.kernel.org>; NetFilter <netfilter-devel@...r.kernel.org>;
> Deucher, Alexander <Alexander.Deucher@....com>; David Airlie
> <airlied@...ux.ie>
> Subject: Re: clean up kernel_{read,write} & friends v2
>
> 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...
You found it necessary to add me to a random thread with no context to complain about the coding style? How about sending a patch to clean it up if you find it that unsavory.
Alex
Powered by blists - more mailing lists