Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
at v2.6.25 556 lines 31 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: 2007/10/24 15================================== 16 17linux-2.6.23/Documentation/SubmittingPatches 18 19 JF < http://www.linux.or.jp/JF/ > 20 2007/10/17 21 Keiichi Kii <k-keiichi at bx dot jp dot nec dot com> 22 Masanari Kobayashi <zap03216 at nifty dot ne dot jp> 23 Matsukura <nbh--mats at nifty dot com> 24================================== 25 26 Linux Howto 27 28 Linus Torvalds 29 30Linux 31稿 32 33 34 35稿Documentation/SubmitChecklist 36稿 37Documentation/SubmittingDrivers 38 39-------------------------------------------- 401 41-------------------------------------------- 42 431) diff -up 44------------ 45 46 diff -up diff -uprN 使 47 48Linux diff(1) 49diff(1) -u 50unified 51 C -p 使 52 Linux 53 Linux 54 55 561 57 58 59 SRCTREE= linux-2.6 60 MYFILE= drivers/net/mydriver.c 61 62 cd $SRCTREE 63 cp $MYFILE $MYFILE.orig 64 vi $MYFILE # make your change 65 cd .. 66 diff -up $SRCTREE/$MYFILE{.orig,} > /tmp/patch 67 68( vanilla ) 69 Linux Linux 70 71 72 MYSRC= /devel/linux-2.6 73 74 tar xvfz linux-2.6.12.tar.gz 75 mv linux-2.6.12 linux-2.6.12-vanilla 76 diff -uprN -X linux-2.6.12-vanilla/Documentation/dontdiff \ 77 linux-2.6.12-vanilla $MYSRC > /tmp/patch 78 79dontdiff Linux 80 diff(1) 81dontdiff 2.6.12 82 Linux 83 Linux dontdiff 84<http://www.xenotime.net/linux/doc/dontdiff>から取得することができます。 85 86稿 87diff(1) 88 89 90 91 92 93 94 95 96Quilt: 97http://savannah.nongnu.org/projects/quilt 98 99Andrew Morton's patch scripts: 100http://www.zip.com.au/~akpm/linux/patches/ 101quilt 102() 103 1042) 105 106 107 108 X 109 X 110 X 111 112 113 #3 114 1153) 116 117 118 1191 1202 121 API API 使 1222 123 1241 1251 12611 127 128 129 X 130 131 132 13315 134 1354) 136 137( Linux ) 138 Documentation/CodingStyle 139 140 141 142 143稿 144( scripts/patchcheck.pl ) 145 146 147 1485) 149 150MAINTAINERS 151 152 153 154 155LKML ( linux-kernel@vger.kernel.org ) 156 157 158 15915 vger.kernel.org 160!!! 161 162Linus Torvalds Linux 163 torvalds@linux-foundation.org 164 165 166 167 168 Linus CC 169 170 LKML 171Linus 172 1736) CC () 174 175LKML CC 176 177Linus 178 179LKML Linux 180USB VFS SCSI 181 182 183MAINTAINERS 184 185VGER.KERNEL.ORG 186 187<http://vger.kernel.org/vger-lists.html> 188 189 190MAN-PAGES ( MAINTAINERS 191) man 192 193 194 195 #4 196 CC 197 198Adrian Bunk Trivial Patch Monkey 199()<trivial@kernel.org> CC 2001 201 202 203 grep(1) 204 ( 205 ) 206 () 207 () 208 使( check_region ) 209 210 ( 211 ) 212 ( patch monkey ) 213URL: <http://www.kernel.org/pub/linux/kernel/people/bunk/trivial/> 214 2157) MIME 216 217Linus 稿 218 219 220 221 222稿 223& 224 225 226 MIME 227 MIME 228 229 230MIME Linus 231 232 233使 234 MIME 235 236 Mozilla 237 238---- message header ---- 239Content-Type: text/plain; charset=us-ascii; format=flowed 240---- message header ---- 241 format=flowed 242 243 244 245mozilla defaults/pref/mailnews.js 246 247pref("mailnews.send_plaintext_flowed", false); // RFC 2646======= 248pref("mailnews.display.disable_format_flowed_support", true); 249 2508) 251 252 Linus #7 253 254 255 40KB 256 URL 257 2589) 259 260 261 262 263Linus 264 265 26610) 稿 267 268稿Linus 269Linus 270姿 271 272 273 274稿 275 276Linus 277姿Linus 278 279* Linux 280* LKML 281* (2) 282* () 283* 284* Linus 285 286* 287 288LKML 289 29011) PATCH 291 292Linus LKML 293 [PATCH] Linus 294 295 296 29712) 298 299 ( 300 Linux ) 301 sign-off 302 303 304 sign-off 305 306 307 308 309 ( DCO ) 1.1 310 311 312 313 (a) 314 315 316 317 (b) 318 319 320 ( 321 稿)稿 322 323 324 (c) (a)(b)(c)3 325 326 327 (d) 328 (稿 sign-off 329 ) 330 沿 331 332 3331 334 335 Signed-off-by: Random J Developer <random@developer.example.org> 336 337使() 338 339 sign-off 340sign-off 341 342 34313) Acked-by: 使 344 345 Signed-off-by: 346 347 348 349 Acked-by: 使 350Acked-by: 351 352 353 Acked-by: 354 355Acked-by: Signed-off-by: 356 357 358Acked-by: 359 360Acked-by: 3611 362 Acked-by: Acked-by: 363 364( Acked-by: ) 365 366 36714) 368 369 370 371 Subject: [PATCH 001/123] subsystem: summary phrase 372 373 374 375 - from 376 377 - 378 379 - 380 () 381 382 - Signed-off-by: 383 384 385 - --- 386 387 - 388 389 - () 390 391 392( 393)0 394 395 396 397 398 399 400 401 402使( 403) 404 405 406 git 407 408 409使 410google 411 412 413 414 Subject: [patch 2/5] ext2: improve scalability of bitmap searching 415 Subject: [PATCHv2 001/207] x86: fix eflags tracking 416 417 from 418 419 420 From: Original Author <author@example.com> 421 422 from 423 from 424 From: 使 425 426 427 428 429 430 431 --- 432 433 434 --- 使1 diffstat 435diffstat 1 436diffstat 437 438 439 440 441diffstat -p 1 -w 70 442(80) 443 4443 445 446 447------------------------------------ 4482 - TIPSと小技 449------------------------------------ 450 451 Linux 452 453 454 Linus 101 455 4561) Documentation/CodingStyleを参照 457 458 459 460 461 462 463 464 465 466 467 468 469稿( scripts/checkpatch.pl ) 470 471 472 473 474 4753: 476 - : 477 - 478 - 479 480 481 482 4832) #ifdefは見苦しい 484 485ifdef 486 ifdef 使 ifdef 487使 static inline 488 489 490 491 492 493 dev = alloc_etherdev (sizeof(struct funky_private)); 494 if (!dev) 495 return -ENODEV; 496 #ifdef CONFIG_NET_FUNKINESS 497 init_funky_net(dev); 498 #endif 499 500 501 502(in header) 503 #ifndef CONFIG_NET_FUNKINESS 504 static inline void init_funky_net (struct net_device *d) {} 505 #endif 506 507(in the code itself) 508 dev = alloc_etherdev (sizeof(struct funky_private)); 509 if (!dev) 510 return -ENODEV; 511 init_funky_net(dev); 512 5133) static inline 514 515 static inline 516 517gcc 518 519 static inline ( 520) static inline 使 521()使 522 523 static inline static __inline__ extern inline 524 extern __inline__ 525 5264) 527 528 529 530 531 532---------------------- 5333 534---------------------- 535 536Andrew Morton, "The perfect patch" (tpp). 537 <http://www.zip.com.au/~akpm/linux/patches/stuff/tpp.txt> 538 539Jeff Garzik, "Linux kernel patch submission format". 540 <http://linux.yyz.us/patch-format.html> 541 542Greg Kroah-Hartman, "How to piss off a kernel subsystem maintainer". 543 <http://www.kroah.com/log/2005/03/31/> 544 <http://www.kroah.com/log/2005/07/08/> 545 <http://www.kroah.com/log/2005/10/19/> 546 <http://www.kroah.com/log/2006/01/11/> 547 548NO!!!! No more huge patch bombs to linux-kernel@vger.kernel.org people! 549 <http://marc.theaimsgroup.com/?l=linux-kernel&m=112112749912944&w=2> 550 551Kernel Documentation/CodingStyle: 552 <http://users.sosdg.org/~qiyong/lxr/source/Documentation/CodingStyle> 553 554Linus Torvalds's mail on the canonical patch format: 555 <http://lkml.org/lkml/2005/4/7/183> 556--