From: Andrew Morton <akpm@linux-foundation.org>
To: Eric Paris <eparis@redhat.com>
Cc: linux-kernel@vger.kernel.org, torvalds@linux-foundation.org,
agruen@suse.de, jengelh@medozas.de, davem@davemloft.net,
andi@firstfloor.org
Subject: Re: Process to push changes to include/linux/types.h
Date: Thu, 14 Oct 2010 12:54:58 -0700 [thread overview]
Message-ID: <20101014125458.9e51ac58.akpm@linux-foundation.org> (raw)
In-Reply-To: <1287084892.3367.18.camel@dhcp231-212.rdu.redhat.com>
On Thu, 14 Oct 2010 15:34:52 -0400
Eric Paris <eparis@redhat.com> wrote:
> A patch was posted a bit ago by agruen which made a change to
> include/linux/types.h changing aligned_u64 to __aligned_u64 and exposing
> this new type to userspace.
>
> http://marc.info/?l=linux-kernel&m=128316627912457&w=2
>
> Everyone seemed to agree the patch was a good idea and was correct. At
> the moment this change only really affects network code, but I would
> very much like to make use of this change in the notification tree.
> Dave Miller did not apply the patch because "Someone has to first add
> the types to linux/types.h, and that doesn't go through my tree."
>
> http://marc.info/?l=linux-kernel&m=128634544524035&w=2
>
> I'm a little stuck as to the right path forward. I normally would have
> had no qualms about adding __aligned_u64 to types.h in the notification
> tree and pushing it to Linus next go-round and then the net tree could
> convert and potentially drop the old aligned_u64 type (but again that
> would be outside the net tree). Since Dave isn't willing to add the
> type and I don't want to get called too many bad names, I figured I
> should try to find if there is some better way, maintainer, or tree who
> should be adding this new type.
>
> Who needs to sign off on a new type in types.h? Who should add it?
> Should I just ram it on in there myself, take any flames that come
> along, and then let net finish their cleanups after I've been charred?
> Any suggestions on the best course of action would be appreciated.
>
The usual approach here is someone sends it to me and I send it to
Linus ;)
If the change is simple, obviously safe and is needed in two or more
subsystem trees then I'll usually sneak it into mainline late in -rc,
simply to make everyone's life easier. Of course, you could both agree
to merge the same patch into local trees and I assume that git will
sort it all out.
For this particular patch I'd suggest it be split into two: one adds
the new __aligned_u64 and friends. The second patch kills off
aligned_u64 and friends. I'd say the first four-liner would then be
safe for immediate merge and the cleanup patch can go in any old time.
Regarding the patch itself: it uses open-coded
__attribute__((aligned(...))), however we have the __aligned(...)
helpers in compiler.h.
I'm always a bit ambivalent about those helpers (__packed, etc).
They're not a very kernely thing to do, but the gcc __attribute__
syntax really is a mouthful.
And adding a compiler.h dependency to the shared-with-userspace types.h
may not be practical or safe, dunno.
So if this works, I'd suggest preparing the simple four-liner with the
intention of an immediate merge.
next prev parent reply other threads:[~2010-10-14 19:55 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-14 19:34 Process to push changes to include/linux/types.h Eric Paris
2010-10-14 19:45 ` Andi Kleen
2010-10-14 19:54 ` Andrew Morton [this message]
2010-10-14 21:26 ` Jan Engelhardt
2010-10-14 21:35 ` Eric Paris
2010-10-14 21:37 ` Andrew Morton
2010-10-14 21:46 ` Randy Dunlap
2010-10-14 21:50 ` Jan Engelhardt
2010-10-14 22:01 ` Andrew Morton
2010-10-14 22:13 ` Linus Torvalds
2010-10-14 23:05 ` Jan Engelhardt
2010-10-15 3:03 ` Abbrevieated SHA1s (Was: Re: Process to push changes to include/linux/types.h) Stephen Rothwell
2010-10-15 8:22 ` Process to push changes to include/linux/types.h Andi Kleen
2010-10-15 9:01 ` Andrew Morton
2010-10-15 10:15 ` Andreas Gruenbacher
2010-10-15 14:26 ` Andi Kleen
2010-10-15 14:44 ` Andreas Gruenbacher
2010-10-15 15:24 ` Jan Engelhardt
2010-10-15 10:13 ` Jan Engelhardt
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=20101014125458.9e51ac58.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=agruen@suse.de \
--cc=andi@firstfloor.org \
--cc=davem@davemloft.net \
--cc=eparis@redhat.com \
--cc=jengelh@medozas.de \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@linux-foundation.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.