Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
at v3.10 724 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 101Andrew Morton's patch scripts: 102http://userweb.kernel.org/~akpm/stuff/patch-scripts.tar.gz 103quilt 104() 105 1062) 107 108 109 110 X 111 X 112 X 113 114 Linux git 115 116 #15 を見てください。 117 118 119 #3 を見てください。 120 121()()稿 122() N 123 124 URL 125 126 127 128 129 130 ID 131 URL 132 1333) 134 135 136 1371 1382 139 API API 使 1402 141 1421 1431 14411 145 146 147 X 148 149 150 15115 152 1534) 154 155( Linux ) 156 Documentation/CodingStyle 157 158 159 160 161稿 162( scripts/checkpatch.pl ) 163 164 165 1665) 167 168MAINTAINERS 169 170 171 172 173LKML ( linux-kernel@vger.kernel.org ) 174 175 176 17715 vger.kernel.org 178!!! 179 180Linus Torvalds Linux 181 torvalds@linux-foundation.org 182 183 184 185 186 Linus CC 187 188 LKML 189Linus 190 1916) CC () 192 193LKML CC 194 195Linus 196 197LKML Linux 198USB VFS SCSI 199 200 201MAINTAINERS 202 203VGER.KERNEL.ORG 204 205<http://vger.kernel.org/vger-lists.html> 206 207 208MAN-PAGES ( MAINTAINERS 209) man 210 211 212 213 #5 で反応がなかったとしても、メンテナのコードに変更を 214 CC 215 216Trivial Patch Monkey() 217<trivial@kernel.org> CC MAINTAINERS 2181 219 220 221 grep(1) 222 ( 223 ) 224 () 225 () 226 使( check_region ) 227 228 ( 229 ) 230 ( patch monkey ) 231 2327) MIME 233 234Linus 稿 235 236 237 238 239稿 240& 241 242 243 MIME 244 MIME 245 246 247MIME Linus 248 249 250使 251 MIME 252 253 254 Documentation/email-clients.txt 255 2568) 257 258 Linus #7 の手順に従ってください。 259 260 261 300KB 262 URL 263 2649) 265 266 267 268 269Linus 270 271 27210) 稿 273 274稿Linus 275Linus 276姿 277 278 279 280稿 281 282Linus 283姿Linus 284 285* Linux 286* LKML 287* (2) 288* () 289* 290* Linus 291 292* 293 294LKML 295 29611) PATCH 297 298Linus LKML 299 [PATCH] Linus 300 301 302 30312) 304 305 ( 306 Linux ) 307 sign-off 308 309 310 sign-off 311 312 313 314 315 ( DCO ) 1.1 316 317 318 319 (a) 320 321 322 323 (b) 324 325 326 ( 327 稿)稿 328 329 330 (c) (a)(b)(c)3 331 332 333 (d) 334 (稿 sign-off 335 ) 336 沿 337 338 3391 340 341 Signed-off-by: Random J Developer <random@developer.example.org> 342 343使() 344 345 sign-off 346sign-off 347 348 349 350 351稿 352(c)稿 353 354(b) 355稿稿 356稿 357Signed-off-by Signed-off-by 3581 359(1) 360 361 362 363 Signed-off-by: Random J Developer <random@developer.example.org> 364 [lucky@maintainer.example.org: struct foo moved from foo.c to foo.h] 365 Signed-off-by: Lucky K Maintainer <lucky@maintainer.example.org> 366 367 368稿 369 370(From ) 371 372 373() 374 2.6-stable 375 376 Date: Tue May 13 19:10:30 2008 +0000 377 378 SCSI: libiscsi regression in 2.6.25: fix nop timer handling 379 380 commit 4cf1043593db6a337f10e006c23c69e5fc93e722 upstream 381 382 2.4 383 384 Date: Tue May 13 22:12:27 2008 +0200 385 386 wireless, airo: waitbusy() won't delay 387 388 [backport of 2.6 commit b7acbdfbd1f277c1eb23f344f899cfa4cd0bf36a] 389 390 391 392 39313) Acked-by: Cc: 使 394 395 Signed-off-by: 396 397 398 399 Acked-by: 使 400Acked-by: 401 402 403 Acked-by: 404 405Acked-by: Signed-off-by: 406 407 408Acked-by: 409 410Acked-by: 4111 412 Acked-by: Acked-by: 413 414( Acked-by: ) 415 416 417 418Cc: 419 420 421 422 42314) Reported-by Tested-by: Reviewed-by: 424 425 426Reported-by: 427 428 429 430 431 432Tested-by: () 433 434 435 436 437Reviewed-by: 438 439 440 441 442 Reviewed-by: 443 444 (a) 445 () 446 447 : 448 "readiness" 449 450 "readiness" 451 452 453 (b) 稿 454 稿 455 456 (c) 稿(1) 457 (2) 458 459 460 (d) 461 462 () 463 464Reviewd-by 465( 466) Reviewed-by 467 468 469Reviewed-by: 470 471 47215) 473 474 475 476 Subject: [PATCH 001/123] subsystem: summary phrase 477 478 479 480 - from 481 482 - 483 484 - 485 () 486 487 - Signed-off-by: 488 489 490 - --- 491 492 - 493 494 - () 495 496 497( 498)0 499 500 501 502 503 504summary phrase 505summary phrase 506summary phrase 507使( 508) 509 510summary phrase 511summary phrase git 512summary phrase 513 514summary phrase使 google 51523gitk 516git log --oneline使 517 518 519summary phrase 52027075 521summary phrase 522 523 524summary phraseSubject: [PATCH tag] <summary phrase> 525 526summary phrase 527 528v1, v2, v3( 529稿) 530RFC4 5311/4, 2/4, 3/4, 4/4 532 533 534 535 536 537 538 Subject: [patch 2/5] ext2: improve scalability of bitmap searching 539 Subject: [PATCHv2 001/207] x86: fix eflags tracking 540 541 from 542 543 544 From: Original Author <author@example.com> 545 546 from 547 from 548 From: 使 549 550 551 552 553 554( oops ) 555 556 557 558summary phrase 559 560 --- 561 562 563 --- 使1 diffstat 564diffstat 1 565diffstat 566 567 568 569v1 v2 570 571 572 --- diffstat 573 574diffstat -p 1 -w 70 575(80) 576 5773 578 579 58016) git pull(Linus ) 581 582git 58313 584 585 586 587 588 "Please pull from 589 590 git://jdelvare.pck.nerim.net/jdelvare-2.6 i2c-for-linus 591 592 to get these changes:" 593 594( 595 diffstat 596 597 598) 599 600diffstat git diff -M --stat --summary 使 601-M --summary 602 603 604-M ()diffstat 605git () 606 607 608------------------------------------ 6092 - TIPSと小技 610------------------------------------ 611 612 Linux 613 614 615 Linus 101 616 6171) Documentation/CodingStyleを参照 618 619 620 621 622 623 624 625 626 627 628 629 630稿( scripts/checkpatch.pl ) 631 632 633 634 635 6363: 637 - : 638 - 639 - 640 641 642 643 6442) #ifdefは見苦しい 645 646ifdef 647 ifdef 使 ifdef 648使 static inline 649 650 651 652 653 654 dev = alloc_etherdev (sizeof(struct funky_private)); 655 if (!dev) 656 return -ENODEV; 657 #ifdef CONFIG_NET_FUNKINESS 658 init_funky_net(dev); 659 #endif 660 661 662 663(in header) 664 #ifndef CONFIG_NET_FUNKINESS 665 static inline void init_funky_net (struct net_device *d) {} 666 #endif 667 668(in the code itself) 669 dev = alloc_etherdev (sizeof(struct funky_private)); 670 if (!dev) 671 return -ENODEV; 672 init_funky_net(dev); 673 6743) static inline 675 676 static inline 677 678gcc 679 680 static inline ( 681) static inline 使 682()使 683 684 static inline static __inline__ extern inline 685 extern __inline__ 686 6874) 688 689 690 691 692 693---------------------- 6943 695---------------------- 696 697Andrew Morton, "The perfect patch" (tpp). 698 <http://userweb.kernel.org/~akpm/stuff/tpp.txt> 699 700Jeff Garzik, "Linux kernel patch submission format". 701 <http://linux.yyz.us/patch-format.html> 702 703Greg Kroah-Hartman, "How to piss off a kernel subsystem maintainer". 704 <http://www.kroah.com/log/2005/03/31/> 705 <http://www.kroah.com/log/2005/07/08/> 706 <http://www.kroah.com/log/2005/10/19/> 707 <http://www.kroah.com/log/2006/01/11/> 708 709NO!!!! No more huge patch bombs to linux-kernel@vger.kernel.org people! 710 <http://marc.theaimsgroup.com/?l=linux-kernel&m=112112749912944&w=2> 711 712Kernel Documentation/CodingStyle: 713 <http://users.sosdg.org/~qiyong/lxr/source/Documentation/CodingStyle> 714 715Linus Torvalds's mail on the canonical patch format: 716 <http://lkml.org/lkml/2005/4/7/183> 717 718Andi Kleen, "On submitting kernel patches" 719 Some strategies to get difficult or controversial changes in. 720 http://halobates.de/on-submitting-patches.pdf 721 722-- 723 724