Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
at v3.16 719 lines 43 kB view raw
1NOTE: 2This is a version of Documentation/SubmittingPatches into Japanese. 3This document is maintained by Keiichi KII <k-keiichi@bx.jp.nec.com> 4and the JF Project team <http://www.linux.or.jp/JF/>. 5If you find any difference between this document and the original file 6or a problem with the translation, 7please contact the maintainer of this file or JF project. 8 9Please also note that the purpose of this file is to be easier to read 10for non English (read: Japanese) speakers and is not intended as a 11fork. So if you have any comments or updates of this file, please try 12to update the original English file first. 13 14Last Updated: 2011/06/09 15 16================================== 17 18linux-2.6.39/Documentation/SubmittingPatches 19 20 JF < http://www.linux.or.jp/JF/ > 21 2011/06/09 22 Keiichi Kii <k-keiichi at bx dot jp dot nec dot com> 23 Masanari Kobayashi <zap03216 at nifty dot ne dot jp> 24 Matsukura <nbh--mats at nifty dot com> 25 Takeshi Hamasaki <hmatrjp at users dot sourceforge dot jp> 26================================== 27 28 Linux Howto 29 30 Linus Torvalds 31 32Linux 33稿 34 35 36 37稿Documentation/SubmitChecklist 38稿 39Documentation/SubmittingDrivers 40 41-------------------------------------------- 421 43-------------------------------------------- 44 451) diff -up 46------------ 47 48 diff -up diff -uprN 使 49 50Linux diff(1) 51diff(1) -u 52unified 53 C -p 使 54 Linux 55 Linux 56 57 581 59 60 61 SRCTREE= linux-2.6 62 MYFILE= drivers/net/mydriver.c 63 64 cd $SRCTREE 65 cp $MYFILE $MYFILE.orig 66 vi $MYFILE # make your change 67 cd .. 68 diff -up $SRCTREE/$MYFILE{.orig,} > /tmp/patch 69 70( vanilla ) 71 Linux Linux 72 73 74 MYSRC= /devel/linux-2.6 75 76 tar xvfz linux-2.6.12.tar.gz 77 mv linux-2.6.12 linux-2.6.12-vanilla 78 diff -uprN -X linux-2.6.12-vanilla/Documentation/dontdiff \ 79 linux-2.6.12-vanilla $MYSRC > /tmp/patch 80 81dontdiff Linux 82 diff(1) 83dontdiff 2.6.12 84 Linux 85 Linux dontdiff 86<http://www.xenotime.net/linux/doc/dontdiff> 87 88稿 89diff(1) 90 91 92 93 94 95 96 97 98Quilt: 99http://savannah.nongnu.org/projects/quilt 100 1012) 102 103 104 105 X 106 X 107 X 108 109 Linux git 110 111 #15 を見てください。 112 113 114 #3 を見てください。 115 116()()稿 117() N 118 119 URL 120 121 122 123 124 125 ID 126 URL 127 1283) 129 130 131 1321 1332 134 API API 使 1352 136 1371 1381 13911 140 141 142 X 143 144 145 14615 147 1484) 149 150( Linux ) 151 Documentation/CodingStyle 152 153 154 155 156稿 157( scripts/checkpatch.pl ) 158 159 160 1615) 162 163MAINTAINERS 164 165 166 167 168LKML ( linux-kernel@vger.kernel.org ) 169 170 171 17215 vger.kernel.org 173!!! 174 175Linus Torvalds Linux 176 torvalds@linux-foundation.org 177 178 179 180 181 Linus CC 182 183 LKML 184Linus 185 1866) CC () 187 188LKML CC 189 190Linus 191 192LKML Linux 193USB VFS SCSI 194 195 196MAINTAINERS 197 198VGER.KERNEL.ORG 199 200<http://vger.kernel.org/vger-lists.html> 201 202 203MAN-PAGES ( MAINTAINERS 204) man 205 206 207 208 #5 で反応がなかったとしても、メンテナのコードに変更を 209 CC 210 211Trivial Patch Monkey() 212<trivial@kernel.org> CC MAINTAINERS 2131 214 215 216 grep(1) 217 ( 218 ) 219 () 220 () 221 使( check_region ) 222 223 ( 224 ) 225 ( patch monkey ) 226 2277) MIME 228 229Linus 稿 230 231 232 233 234稿 235& 236 237 238 MIME 239 MIME 240 241 242MIME Linus 243 244 245使 246 MIME 247 248 249 Documentation/email-clients.txt 250 2518) 252 253 Linus #7 の手順に従ってください。 254 255 256 300KB 257 URL 258 2599) 260 261 262 263 264Linus 265 266 26710) 稿 268 269稿Linus 270Linus 271姿 272 273 274 275稿 276 277Linus 278姿Linus 279 280* Linux 281* LKML 282* (2) 283* () 284* 285* Linus 286 287* 288 289LKML 290 29111) PATCH 292 293Linus LKML 294 [PATCH] Linus 295 296 297 29812) 299 300 ( 301 Linux ) 302 sign-off 303 304 305 sign-off 306 307 308 309 310 ( DCO ) 1.1 311 312 313 314 (a) 315 316 317 318 (b) 319 320 321 ( 322 稿)稿 323 324 325 (c) (a)(b)(c)3 326 327 328 (d) 329 (稿 sign-off 330 ) 331 沿 332 333 3341 335 336 Signed-off-by: Random J Developer <random@developer.example.org> 337 338使() 339 340 sign-off 341sign-off 342 343 344 345 346稿 347(c)稿 348 349(b) 350稿稿 351稿 352Signed-off-by Signed-off-by 3531 354(1) 355 356 357 358 Signed-off-by: Random J Developer <random@developer.example.org> 359 [lucky@maintainer.example.org: struct foo moved from foo.c to foo.h] 360 Signed-off-by: Lucky K Maintainer <lucky@maintainer.example.org> 361 362 363稿 364 365(From ) 366 367 368() 369 2.6-stable 370 371 Date: Tue May 13 19:10:30 2008 +0000 372 373 SCSI: libiscsi regression in 2.6.25: fix nop timer handling 374 375 commit 4cf1043593db6a337f10e006c23c69e5fc93e722 upstream 376 377 2.4 378 379 Date: Tue May 13 22:12:27 2008 +0200 380 381 wireless, airo: waitbusy() won't delay 382 383 [backport of 2.6 commit b7acbdfbd1f277c1eb23f344f899cfa4cd0bf36a] 384 385 386 387 38813) Acked-by: Cc: 使 389 390 Signed-off-by: 391 392 393 394 Acked-by: 使 395Acked-by: 396 397 398 Acked-by: 399 400Acked-by: Signed-off-by: 401 402 403Acked-by: 404 405Acked-by: 4061 407 Acked-by: Acked-by: 408 409( Acked-by: ) 410 411 412 413Cc: 414 415 416 417 41814) Reported-by Tested-by: Reviewed-by: 419 420 421Reported-by: 422 423 424 425 426 427Tested-by: () 428 429 430 431 432Reviewed-by: 433 434 435 436 437 Reviewed-by: 438 439 (a) 440 () 441 442 : 443 "readiness" 444 445 "readiness" 446 447 448 (b) 稿 449 稿 450 451 (c) 稿(1) 452 (2) 453 454 455 (d) 456 457 () 458 459Reviewd-by 460( 461) Reviewed-by 462 463 464Reviewed-by: 465 466 46715) 468 469 470 471 Subject: [PATCH 001/123] subsystem: summary phrase 472 473 474 475 - from 476 477 - 478 479 - 480 () 481 482 - Signed-off-by: 483 484 485 - --- 486 487 - 488 489 - () 490 491 492( 493)0 494 495 496 497 498 499summary phrase 500summary phrase 501summary phrase 502使( 503) 504 505summary phrase 506summary phrase git 507summary phrase 508 509summary phrase使 google 51023gitk 511git log --oneline使 512 513 514summary phrase 51527075 516summary phrase 517 518 519summary phraseSubject: [PATCH tag] <summary phrase> 520 521summary phrase 522 523v1, v2, v3( 524稿) 525RFC4 5261/4, 2/4, 3/4, 4/4 527 528 529 530 531 532 533 Subject: [patch 2/5] ext2: improve scalability of bitmap searching 534 Subject: [PATCHv2 001/207] x86: fix eflags tracking 535 536 from 537 538 539 From: Original Author <author@example.com> 540 541 from 542 from 543 From: 使 544 545 546 547 548 549( oops ) 550 551 552 553summary phrase 554 555 --- 556 557 558 --- 使1 diffstat 559diffstat 1 560diffstat 561 562 563 564v1 v2 565 566 567 --- diffstat 568 569diffstat -p 1 -w 70 570(80) 571 5723 573 574 57516) git pull(Linus ) 576 577git 57813 579 580 581 582 583 "Please pull from 584 585 git://jdelvare.pck.nerim.net/jdelvare-2.6 i2c-for-linus 586 587 to get these changes:" 588 589( 590 diffstat 591 592 593) 594 595diffstat git diff -M --stat --summary 使 596-M --summary 597 598 599-M ()diffstat 600git () 601 602 603------------------------------------ 6042 - TIPSと小技 605------------------------------------ 606 607 Linux 608 609 610 Linus 101 611 6121) Documentation/CodingStyleを参照 613 614 615 616 617 618 619 620 621 622 623 624 625稿( scripts/checkpatch.pl ) 626 627 628 629 630 6313: 632 - : 633 - 634 - 635 636 637 638 6392) #ifdefは見苦しい 640 641ifdef 642 ifdef 使 ifdef 643使 static inline 644 645 646 647 648 649 dev = alloc_etherdev (sizeof(struct funky_private)); 650 if (!dev) 651 return -ENODEV; 652 #ifdef CONFIG_NET_FUNKINESS 653 init_funky_net(dev); 654 #endif 655 656 657 658(in header) 659 #ifndef CONFIG_NET_FUNKINESS 660 static inline void init_funky_net (struct net_device *d) {} 661 #endif 662 663(in the code itself) 664 dev = alloc_etherdev (sizeof(struct funky_private)); 665 if (!dev) 666 return -ENODEV; 667 init_funky_net(dev); 668 6693) static inline 670 671 static inline 672 673gcc 674 675 static inline ( 676) static inline 使 677()使 678 679 static inline static __inline__ extern inline 680 extern __inline__ 681 6824) 683 684 685 686 687 688---------------------- 6893 690---------------------- 691 692Andrew Morton, "The perfect patch" (tpp). 693 <http://www.ozlabs.org/~akpm/stuff/tpp.txt> 694 695Jeff Garzik, "Linux kernel patch submission format". 696 <http://linux.yyz.us/patch-format.html> 697 698Greg Kroah-Hartman, "How to piss off a kernel subsystem maintainer". 699 <http://www.kroah.com/log/2005/03/31/> 700 <http://www.kroah.com/log/2005/07/08/> 701 <http://www.kroah.com/log/2005/10/19/> 702 <http://www.kroah.com/log/2006/01/11/> 703 704NO!!!! No more huge patch bombs to linux-kernel@vger.kernel.org people! 705 <https://lkml.org/lkml/2005/7/11/336> 706 707Kernel Documentation/CodingStyle: 708 <http://users.sosdg.org/~qiyong/lxr/source/Documentation/CodingStyle> 709 710Linus Torvalds's mail on the canonical patch format: 711 <http://lkml.org/lkml/2005/4/7/183> 712 713Andi Kleen, "On submitting kernel patches" 714 Some strategies to get difficult or controversial changes in. 715 http://halobates.de/on-submitting-patches.pdf 716 717-- 718 719