From: Andrew Morton <akpm@osdl.org>
To: "David S. Miller" <davem@davemloft.net>
Cc: torvalds@osdl.org, git@vger.kernel.org
Subject: Re: : Networking
Date: Tue, 26 Apr 2005 00:57:25 -0700 [thread overview]
Message-ID: <20050426005725.6bfe6135.akpm@osdl.org> (raw)
In-Reply-To: <20050425214326.512b006e.davem@davemloft.net>
"David S. Miller" <davem@davemloft.net> wrote:
>
> Linus, please pull from:
>
> rsync://rsync.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6.git
So I tried to apply my new get-mm-patches-from-git methodology on this and
came unstuck.
-mm kernels consist of a series of patches against the most recent release
(2.6.12-rc3 today):
linus.patch (Linus' changes since 2.6.12-rc3)
git-net.patch (Davem's changes wrt Linus's latest tree)
etc...
The algorithm is:
a) Set up the git repo
mkdir git26
git init rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
(Futz around in `git log' output to identify the v2.6.12-rc3 commit, do
`git tag v2.6.12-rc3 a2755a80f40e5794ddc20e00f781af9d6320fafb')
b) Add davem's repo:
git addremote git-net rsync://rsync.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6.git
c) To generate -mm's linus.patch (patch against 2.6.12-rc3):
git pull origin
git diff -r v2.6.12-rc3 > ../25/patches/linus.patch
d) To generate davem's tree (patch against linus's current tree (ie: patch
against 2.6.12-rc3+linus.patch)):
git pull git-net
MERGE_BASE=$(merge-base $(cat .git/heads/origin ) $(cat .git/heads/git-net))
git diff -r $MERGE_BASE:$(cat .git/heads/git-net) > ../25/patches/git-net.patch
e) Repeat d) for all known git trees.
But git-net.patch has a bunch of bluetooth stuff in it which is already in
Linus's tree. And git-net.patch modifies net/sched/simple.c, which doesn't
appear in either 2.6.12-rc3 or in current -linus.
Doing step d) by hand:
bix:/usr/src/git26> cat .git/heads/origin
b453257f057b834fdf9f4a6ad6133598b79bd982
bix:/usr/src/git26> cat .git/heads/git-net
5523662c4cd585b892811d7bb3e25d9a787e19b3
bix:/usr/src/git26> merge-base b453257f057b834fdf9f4a6ad6133598b79bd982 5523662c4cd585b892811d7bb3e25d9a787e19b3
25ee7e3832951cf5896b194f6cd929a44863f419
bix:/usr/src/git26> cat-file commit 25ee7e3832951cf5896b194f6cd929a44863f419
tree 5b6486ded5188e41ac9bc81ad4a5e2bd746f7ede
parent 056de2fa12febe02597f971eb6ea8f2cc9c9b06e
author Adrian Bunk <bunk@stusta.de> 1114442294 -0700
committer Linus Torvalds <torvalds@ppc970.osdl.org> 1114442294 -0700
[PATCH] fs/aio.c: make some code static
This patch makes some needlessly global code static.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Acked-by: Benjamin LaHaise <bcrl@kvack.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
That seems to be a reasonable gca. It's the last thing which Linus added
prior to merging the ARM patches, which presumably weren't in Dave's tree.
So let's try to grab davem's diff wrt that gca:
bix:/usr/src/git26> git diff -r 25ee7e3832951cf5896b194f6cd929a44863f419:5523662c4cd585b892811d7bb3e25d9a787e19b3 | diffstat
drivers/net/tg3.c | 73 ++++++++++++++-------------
net/bluetooth/af_bluetooth.c | 1
net/bluetooth/bnep/sock.c | 1
net/bluetooth/cmtp/capi.c | 1
net/bluetooth/cmtp/core.c | 1
net/bluetooth/cmtp/sock.c | 1
net/bluetooth/hci_conn.c | 1
net/bluetooth/hci_core.c | 1
net/bluetooth/hci_event.c | 1
net/bluetooth/hci_sock.c | 1
net/bluetooth/hidp/core.c | 1
net/bluetooth/hidp/sock.c | 1
net/bluetooth/l2cap.c | 1
net/bluetooth/rfcomm/sock.c | 1
net/bluetooth/sco.c | 1
net/core/rtnetlink.c | 1
net/core/scm.c | 1
net/core/sock.c | 1
net/ipv4/af_inet.c | 1
net/ipv4/ip_output.c | 2
net/ipv4/netfilter/ip_conntrack_ftp.c | 4 -
net/ipv4/netfilter/ip_conntrack_standalone.c | 7 --
net/ipv4/tcp_input.c | 1
net/ipv6/af_inet6.c | 1
net/netlink/af_netlink.c | 1
net/sched/simple.c | 18 ------
net/unix/af_unix.c | 1
27 files changed, 46 insertions(+), 80 deletions(-)
And that's the bad patch.
What did I do wrong?
Can someone suggest a better approach?
Thanks.
next parent reply other threads:[~2005-04-26 7:53 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20050425214326.512b006e.davem@davemloft.net>
2005-04-26 7:57 ` Andrew Morton [this message]
2005-04-26 14:59 ` : Networking Linus Torvalds
2005-04-26 15:40 ` Daniel Barkalow
2005-04-26 18:15 ` Petr Baudis
2005-04-26 17:19 ` Jan Harkes
2005-04-26 18:33 ` Petr Baudis
2005-04-26 18:56 ` Andrew Morton
2005-04-26 19:13 ` Linus Torvalds
2005-04-26 19:51 ` Andrew Morton
2005-04-26 20:11 ` Linus Torvalds
2005-04-26 20:35 ` Bram Cohen
2005-04-28 3:55 ` Ryan Anderson
2005-04-28 4:43 ` Daniel Barkalow
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=20050426005725.6bfe6135.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=davem@davemloft.net \
--cc=git@vger.kernel.org \
--cc=torvalds@osdl.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