From: Gustavo Padovan <padovan@profusion.mobi>
To: David Miller <davem@davemloft.net>
Cc: gustavo@padovan.org, johan.hedberg@gmail.com,
linville@tuxdriver.com, netdev@vger.kernel.org
Subject: Re: pull request: bluetooth-next 2012-03-01
Date: Fri, 2 Mar 2012 13:37:16 -0300 [thread overview]
Message-ID: <20120302163716.GA18758@joana> (raw)
In-Reply-To: <20120301.222604.1508242694024394849.davem@davemloft.net>
Hi Dave,
* David Miller <davem@davemloft.net> [2012-03-01 22:26:04 -0500]:
> From: David Miller <davem@davemloft.net>
> Date: Thu, 01 Mar 2012 22:23:16 -0500 (EST)
>
> > From: David Miller <davem@davemloft.net>
> > Date: Thu, 01 Mar 2012 22:16:43 -0500 (EST)
> >
> >> This was only three commits into your tree, therefore I'm not very
> >> optimistic to be honest with you.
> >
> > In the very next commit, 3175405b906a85ed2bad21e09c444266e4a05a8e we end
> > up with:
>
> And then 2 commits later in ff9ef5787046c3fd20cf9f7ca1cd70260c1eedb9:
>
> + if (hdev->discovery.state != DISCOVERY_STOPPED) {
> + err = cmd_status(sk, index, MGMT_OP_START_DISCOVERY,
> + MGMT_STATUS_BUSY);
> + goto failed;
> + }
>
> it must be isntead:
>
> err = cmd_status(sk, index, MGMT_OP_START_DISCOVERY,
> MGMT_STATUS_BUSY);
>
> And that's pretty much as far as I'm willing to go.
>
> You know what really pisses me off? This is the one issue I made a huge
> stink about last week, arguments to function calls and prototypes lining
> up properl. And it's in ever 2nd or 3rd commit in this pull request.
The styles in these patches is the same style we've been using in Bluetooth
code for more than 10 years and no one ever complained to us and we are the
only subsystem under Net doing something like this. I could find some examples
over the net code in a quick look.
I can see only two options here, leave this as is since this is coding style
we've been using since beginning or change the whole Bluetooth subsystem to
work like you said. In other words, are you telling me to make a patch to fix
this issue in the whole Bluetooth subsystem and not only in this pull request
diff? Otherwise we are putting the Bluetooth code in a inconsistent state with
two different coding styles. Is that what you want, an inconsistent state?
I'd be ok with changing the whole subsystem's style if you want.
Gustavo
next prev parent reply other threads:[~2012-03-02 16:37 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-02 2:55 pull request: bluetooth-next 2012-03-01 Gustavo Padovan
2012-03-02 3:16 ` David Miller
2012-03-02 3:23 ` David Miller
2012-03-02 3:26 ` David Miller
2012-03-02 4:13 ` Joe Perches
2012-03-02 5:35 ` [PATCH] checkpatch: Add --strict tests for braces, comments and casts Joe Perches
2012-03-02 5:54 ` [PATCH] checkpatch: Add --strict test for strings split across multiple lines Joe Perches
2012-03-02 16:37 ` Gustavo Padovan [this message]
2012-03-02 21:15 ` pull request: bluetooth-next 2012-03-01 David Miller
2012-03-03 16:46 ` Gustavo Padovan
2012-03-03 19:46 ` David Miller
2012-03-03 19:47 ` David Miller
2012-03-03 20:04 ` Joe Perches
2012-03-03 20:06 ` David Miller
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=20120302163716.GA18758@joana \
--to=padovan@profusion.mobi \
--cc=davem@davemloft.net \
--cc=gustavo@padovan.org \
--cc=johan.hedberg@gmail.com \
--cc=linville@tuxdriver.com \
--cc=netdev@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).