Editing Kernel patches
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
{{Virtuozzo}} | {{Virtuozzo}} | ||
− | This document describes how to contribute your patches to the OpenVZ | + | <translate> |
+ | <!--T:1--> | ||
+ | This document describes how to contribute your patches to the OpenVZ kernel. In a nutshell, the process is similar to the one for the upstream kernel — we use git for source control and a mailing list for communication. | ||
− | == Source code == | + | == Source code == <!--T:2--> |
− | Kernel source code is available from git repository at | + | <!--T:3--> |
+ | Kernel source code is available from git repository at | ||
+ | <!--T:4--> | ||
+ | https://src.openvz.org/projects/OVZ/repos/vzkernel/browse | ||
+ | |||
+ | <!--T:5--> | ||
To clone, use | To clone, use | ||
git clone https://src.openvz.org/scm/ovz/vzkernel.git | git clone https://src.openvz.org/scm/ovz/vzkernel.git | ||
− | == Editing == | + | == Editing == <!--T:6--> |
+ | <!--T:7--> | ||
As with the upstream kernel, modifications to the code should conform to the [https://www.kernel.org/doc/Documentation/CodingStyle Linux kernel coding style]. | As with the upstream kernel, modifications to the code should conform to the [https://www.kernel.org/doc/Documentation/CodingStyle Linux kernel coding style]. | ||
− | == Preparing patches == | + | == Preparing patches == <!--T:8--> |
+ | <!--T:9--> | ||
Use <code>git format-patch</code> to prepare your patches. See git documentation for more info. | Use <code>git format-patch</code> to prepare your patches. See git documentation for more info. | ||
− | === Checkpatch === | + | === Checkpatch === <!--T:10--> |
+ | <!--T:11--> | ||
There is a tool (scripts/checkpatch.pl) that '''should''' be used to check your patches. Use | There is a tool (scripts/checkpatch.pl) that '''should''' be used to check your patches. Use | ||
− | ./scripts/checkpatch.pl *.patch | + | <!--T:12--> |
+ | ./scripts/checkpatch.pl *.patch | ||
+ | <!--T:13--> | ||
It will produce a detailed report on style problems in your patch(es). Make sure to fix all the errors (some warnings may be ignored) before sending. | It will produce a detailed report on style problems in your patch(es). Make sure to fix all the errors (some warnings may be ignored) before sending. | ||
− | == Sending patches == | + | == Sending patches == <!--T:14--> |
+ | <!--T:15--> | ||
Please send your patches to <code>devel (AT) openvz.org</code> mailing list, preferably using <code>git send-email</code>. | Please send your patches to <code>devel (AT) openvz.org</code> mailing list, preferably using <code>git send-email</code>. | ||
+ | <!--T:16--> | ||
You need to be subscribed in order to post. The list is managed by mailman, there are two ways to subscribe: | You need to be subscribed in order to post. The list is managed by mailman, there are two ways to subscribe: | ||
+ | <!--T:17--> | ||
# Send an email to <code>devel-join (AT) openvz.org</code> | # Send an email to <code>devel-join (AT) openvz.org</code> | ||
# Use a web interface at https://lists.openvz.org/mailman/listinfo/devel | # Use a web interface at https://lists.openvz.org/mailman/listinfo/devel | ||
+ | <!--T:18--> | ||
{{Note|You need to be subscribed first in order to be able to post.}} | {{Note|You need to be subscribed first in order to be able to post.}} | ||
− | == See also == | + | == See also == <!--T:19--> |
* [[Contribute]] | * [[Contribute]] | ||
* [[Kernel build]] | * [[Kernel build]] | ||
Line 48: | Line 64: | ||
* [[Remote console setup]] | * [[Remote console setup]] | ||
− | == External links == | + | == External links == <!--T:20--> |
* https://www.kernel.org/doc/Documentation/CodingStyle | * https://www.kernel.org/doc/Documentation/CodingStyle | ||
* http://book.git-scm.com/ | * http://book.git-scm.com/ | ||
* http://git-scm.com/documentation | * http://git-scm.com/documentation | ||
+ | </translate> | ||
[[Category:Development]] | [[Category:Development]] |