All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@suse.de>
To: Jesper Juhl <jesper.juhl@gmail.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>,
	linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org,
	andersen@codepoet.org
Subject: Re: [PATCH] ide-cd cleanup (casts, whitespace and codingstyle)
Date: Tue, 4 Oct 2005 08:21:51 +0200	[thread overview]
Message-ID: <20051004062146.GD3511@suse.de> (raw)
In-Reply-To: <9a8748490510031557q26f41f78s84ad936d9e78756c@mail.gmail.com>

On Tue, Oct 04 2005, Jesper Juhl wrote:
> On 10/4/05, Alexey Dobriyan <adobriyan@gmail.com> wrote:
> > On Tue, Oct 04, 2005 at 12:17:56AM +0200, Jesper Juhl wrote:
> > > --- linux-2.6.14-rc3-git3-orig/drivers/ide/ide-cd.c
> > > +++ linux-2.6.14-rc3-git3/drivers/ide/ide-cd.c
> >
> > What was wrong with these ones? [snipping the rest]
> >
> 
> Nothing much, simply that as far as I know, the common coding style is
> that function declarations/definitions should be on one line and if
> that line can't fit in 80 chars then arguments are moved to the next
> line and indented by two tabs. That's the style I believe is the most
> official one (if such a thing exists), so that's the style I changed
> everything throughout the file to obey.

That is by no means the common style. What I usually do is indent the
arguments so the match up with the first line.

> > >  static int cdrom_log_sense(ide_drive_t *drive, struct request *rq,
> > > -                        struct request_sense *sense)
> > > +             struct request_sense *sense)

This is a mess. So NACK on this patch. And why are you changing the
driver version for non-functional changes?

And I prefer a space after a cast. And regardless of what others may
think, I do indent cases in a switch unless it's tight for space.

-- 
Jens Axboe

  reply	other threads:[~2005-10-04  6:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-03 22:17 [PATCH] ide-cd cleanup (casts, whitespace and codingstyle) Jesper Juhl
2005-10-03 23:04 ` Alexey Dobriyan
2005-10-03 22:57   ` Jesper Juhl
2005-10-04  6:21     ` Jens Axboe [this message]
2005-10-04  9:28       ` Jesper Juhl
2005-10-04 22:19       ` [PATCH] ide-cd mini cleanup of casts (mainly) Jesper Juhl
2005-10-04 23:43         ` Erik Andersen
2005-10-05 11:34         ` Jens Axboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051004062146.GD3511@suse.de \
    --to=axboe@suse.de \
    --cc=adobriyan@gmail.com \
    --cc=andersen@codepoet.org \
    --cc=jesper.juhl@gmail.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.