From: Pavel Machek <pavel@ucw.cz>
To: Arnd Bergmann <arnd@arndb.de>
Cc: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
viro@zeniv.linux.org.uk, "John Stultz" <john.stultz@linaro.org>,
lkml <linux-kernel@vger.kernel.org>,
devel@driverdev.osuosl.org,
"Linux API" <linux-api@vger.kernel.org>,
"Santosh Shilimkar" <santosh.shilimkar@ti.com>,
"Arve Hjønnevåg" <arve@android.com>,
"Sumit Semwal" <sumit.semwal@linaro.org>,
"Rebecca Schultz Zavin" <rebecca@android.com>,
"Christoffer Dall" <christoffer.dall@linaro.org>,
"Anup Patel" <anup.patel@linaro.org>
Subject: Re: [PATCH] staging: android: binder: move to the "real" part of the kernel
Date: Tue, 21 Oct 2014 22:05:22 +0200 [thread overview]
Message-ID: <20141021200522.GB2969@amd> (raw)
In-Reply-To: <4227199.e5u61J7jtX@wuerfel>
On Tue 2014-10-21 16:12:24, Arnd Bergmann wrote:
> On Tuesday 21 October 2014 12:36:22 Pavel Machek wrote:
> > On Fri 2014-10-17 01:12:21, Greg Kroah-Hartman wrote:
> > > On Thu, Oct 16, 2014 at 10:09:04AM -0700, John Stultz wrote:
> > > > On Thu, Oct 16, 2014 at 5:47 AM, Greg Kroah-Hartman
> > > > <gregkh@linuxfoundation.org> wrote:
> > > > > From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> >
> > > > Are the Android guys comfortable with the ABI stability rules they'll
> > > > now face?
> > >
> > > Just because something is in staging, doesn't mean you don't have to
> > > follow the same ABI stability rules as the rest of the kernel. If a
> > > change had happened to this code that broke userspace in the past, I
> > > would have reverted it. So this should not be anything different from
> > > what has been happening inthe past.
> >
> > Actually, there's big difference.
> >
> > If Al Viro changes core filesystem in a way that breaks
> > staging/binder, binder is broken, and if it can't be fixed... well it
> > can't be fixed.
> >
> > If Al Viro changes core filesystem in a way that breaks
> > drivers/binder, Al's change is going to be reverted.
>
> One might have argued that we'd have to do that already, but the reasons
> for doing that with binder in the main kernel are certainly stronger.
>
> > It is really hard to review without API documentation. Normally, API
> > documentation is required for stuff like this.
> >
> > For example: does it add new files in /proc?
> >
> > Given that it is stable, can we get rid of binder_debug() and
> > especially BINDER_DEBUG_ENTRY stuff?
>
> Good point. We require documentation for every single sysfs attribute
> that gets added to a driver (some escape the review, but that doesn't
> change the rule), so we should not make an exception for a new procfs
> file here.
Actually, it looked like it is debugfs file. Code was messy enough
that I was not sure.
> > Could binder_transcation() be split to smaller functions according to
> > CodingStyle? 17 goto targets at the end of function are not exactly
> > easy to read.
> >
> > ginder_thread_read/write also needs splitting.
>
> Yes, in principle, but this is still a detail that would mainly serve
> to simplify review. The problem is more the lack of review and
> documentation of the API.
Yes, the problem is that code is impossible to review without API
documentation.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
next prev parent reply other threads:[~2014-10-21 20:05 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-16 12:47 [PATCH] staging: android: binder: move to the "real" part of the kernel Greg Kroah-Hartman
2014-10-16 14:18 ` Michael Kerrisk (man-pages)
2014-10-16 23:14 ` Greg Kroah-Hartman
2014-10-20 12:45 ` Dan Carpenter
2014-10-21 10:01 ` Pavel Machek
2014-10-16 17:09 ` John Stultz
2014-10-16 23:12 ` Greg Kroah-Hartman
2014-10-17 3:25 ` John Stultz
2014-10-17 8:01 ` Greg Kroah-Hartman
2014-10-18 21:36 ` One Thousand Gnomes
2014-10-19 22:01 ` Greg Kroah-Hartman
2014-10-21 10:36 ` Pavel Machek
2014-10-21 14:12 ` Arnd Bergmann
2014-10-21 20:05 ` Pavel Machek [this message]
2014-10-17 9:26 ` Dan Carpenter
2014-10-19 22:05 ` Greg Kroah-Hartman
2014-10-20 9:20 ` Dan Carpenter
2014-10-20 23:32 ` Arve Hjønnevåg
2014-10-22 3:10 ` Rom Lemarchand
2014-10-22 3:16 ` Joe Perches
2014-10-24 5:00 ` Dan Carpenter
2014-10-17 9:43 ` Christoph Hellwig
2014-10-19 22:04 ` Greg Kroah-Hartman
2014-10-21 10:46 ` Christoph Hellwig
2014-10-20 17:06 ` Arnd Bergmann
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=20141021200522.GB2969@amd \
--to=pavel@ucw.cz \
--cc=anup.patel@linaro.org \
--cc=arnd@arndb.de \
--cc=arve@android.com \
--cc=christoffer.dall@linaro.org \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=john.stultz@linaro.org \
--cc=linux-api@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rebecca@android.com \
--cc=santosh.shilimkar@ti.com \
--cc=sumit.semwal@linaro.org \
--cc=viro@zeniv.linux.org.uk \
/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