From: Cong Wang <xiyou.wangcong@gmail.com>
To: "Chen, Dennis (SRDC SW)" <Dennis1.Chen@amd.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 1/2] Refine mutex and rcu method in module.c, kernel<3.2.9>
Date: Sat, 10 Mar 2012 11:42:02 +0800 [thread overview]
Message-ID: <4F5ACD8A.4000706@gmail.com> (raw)
In-Reply-To: <491D6B4EAD0A714894D8AD22F4BDE0430328E3@SCYBEXDAG04.amd.com>
On 03/07/2012 11:52 PM, Chen, Dennis (SRDC SW) wrote:
>
> diff -u module.ori.c module.c> module.patch
>
> give more details please?
Let me copy-and-paste it for you as you still don't read it. :)
Documentation/SubmittingPatches
Use "diff -up" or "diff -uprN" to create patches.
All changes to the Linux kernel occur in the form of patches, as
generated by diff(1). When creating your patch, make sure to create it
in "unified diff" format, as supplied by the '-u' argument to diff(1).
Also, please use the '-p' argument which shows which C function each
change is in - that makes the resultant diff a lot easier to read.
Patches should be based in the root kernel source directory,
not in any lower subdirectory.
To create a patch for a single file, it is often sufficient to do:
SRCTREE= linux-2.6
MYFILE= drivers/net/mydriver.c
cd $SRCTREE
cp $MYFILE $MYFILE.orig
vi $MYFILE # make your change
cd ..
diff -up $SRCTREE/$MYFILE{.orig,} > /tmp/patch
To create a patch for multiple files, you should unpack a "vanilla",
or unmodified kernel source tree, and generate a diff against your
own source tree. For example:
MYSRC= /devel/linux-2.6
tar xvfz linux-2.6.12.tar.gz
mv linux-2.6.12 linux-2.6.12-vanilla
diff -uprN -X linux-2.6.12-vanilla/Documentation/dontdiff \
linux-2.6.12-vanilla $MYSRC > /tmp/patch
next prev parent reply other threads:[~2012-03-10 3:42 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-07 14:51 [PATCH 1/2] Refine mutex and rcu method in module.c, kernel<3.2.9> Chen, Dennis (SRDC SW)
2012-03-07 14:57 ` [PATCH 2/2] " Chen, Dennis (SRDC SW)
2012-03-07 16:48 ` Chen, Dennis (SRDC SW)
2012-03-10 3:44 ` Cong Wang
2012-03-07 15:37 ` [PATCH 1/2] " Cong Wang
2012-03-07 15:52 ` Chen, Dennis (SRDC SW)
2012-03-10 3:42 ` Cong Wang [this message]
2012-03-07 16:46 ` Chen, Dennis (SRDC SW)
2012-03-08 9:18 ` Rusty Russell
2012-03-08 12:18 ` Chen, Dennis (SRDC SW)
2012-03-08 16:13 ` Chen, Dennis (SRDC SW)
2012-03-10 4:26 ` Cong Wang
2012-03-11 14:56 ` Paul E. McKenney
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=4F5ACD8A.4000706@gmail.com \
--to=xiyou.wangcong@gmail.com \
--cc=Dennis1.Chen@amd.com \
--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.