1NOTE: 2This is a version of Documentation/process/submitting-patches.rst 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/process/submitting-patches.rst ��������� 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/process/submit-checklist.rst ������������������������ 38��������������������������������������������� 39 40-------------------------------------------- 41���������������1 ��������������������������������� 42-------------------------------------------- 43 441) ��� diff -up ��� 45------------ 46 47��������������������������� diff -up ������������ diff -uprN ������������������������������ 48 49Linux ������������������������������������������ diff(1) ������������������������������������������ 50������������������������������������������������������������������diff(1) ������������������ -u ������ 51���������������������unified ������������������������������������������������������������������������������ 52��������������� C ��������������������������������������������� -p ������������������������������������ 53��������������������������������������������������������������������������������������������� Linux 54������������������������������������������������������������������ Linux ��������������������������������� 55������������������������������������������������������������ 56 571������������������������������������������������������������������������������������������������ 58������������������������������������������ 59 60 SRCTREE=linux-2.6 61 MYFILE=drivers/net/mydriver.c 62 63 cd $SRCTREE 64 cp $MYFILE $MYFILE.orig 65 vi $MYFILE # make your change 66 cd .. 67 diff -up $SRCTREE/$MYFILE{.orig,} > /tmp/patch 68 69���������������������������������������������������������������������������������( vanilla )������ 70��������������������������������� Linux ������������������������������������ Linux ������������ 71������������������������������������������������������������������������ 72 73 MYSRC=/devel/linux-2.6 74 75 tar xvfz linux-2.6.12.tar.gz 76 mv linux-2.6.12 linux-2.6.12-vanilla 77 diff -uprN -X linux-2.6.12-vanilla/Documentation/dontdiff \ 78 linux-2.6.12-vanilla $MYSRC > /tmp/patch 79 80dontdiff ������������������ Linux ��������������������������������������������������������������� 81��������������������������������������������������������������������������������������������� diff(1) 82���������������������������������������������dontdiff ��������������� 2.6.12 ��������������������� 83������ Linux ��������������������������������������������������������� 84 85������������������������������������������������������������������������������������������������������ 86������������������������diff(1) ��������������������������������������������������������������������� 87��������������������������������������������������������� 88 89��������������������������������������������������������������������������������������������������� 90������������������������������������������������������������������������������������������ 91��������������������������������������������������������������������������������������������������� 92������������������������������������������������������������������������������������������������������ 93��������������������������������������������� 94 95Quilt: 96http://savannah.nongnu.org/projects/quilt 97 982) ��������������������������� 99 100������������������������������������������������������������������������������������������������ 101 102������������������������������������������������������������������������������������ X ��������������� 103������������������ X ��������������������������������������������������������������������������������� 104������ X ��������������������������������������������������������������������������������������������������� 105 106��������������������� Linux ������������������������������������������������������������������ git ������ 107��������������������������������������������������������������������������������������������������������������������� 108��������� #15 ������������������������ 109 110��������������������������������������������������������������������������������������������������������� 111������������������������������ #3 ������������������������ 112 113���������(������������)���(���)������������������������������������������������������������������������������������ 114���������������������������������������������������������������(������������)������������������ N������������ 115������������������������������������������������������������������������������������������������������������������ 116��������������������������������������������������������������������������������������������� URL ��������������� 117��������������������������������������������� 118��������������������������������������������������������������������������������������������������������������������� 119��������������������������������������������������������������������������������������������������������������������� 120������������������������������������������������������������������������������������ 121 122��������������������������������������������������������������������������������������������������������������� ID 123��� URL ������������������������������ 124 125��������������������������������������������������������� SHA-1 ID ��������������������������������� 126��������������������������������������������������������������������������������������������������������������� 127��������������������������������������� 128��� (���������������): 129 130 Commit e21d2170f36602ae2708 ("video: remove unnecessary 131 platform_set_drvdata()") removed the unnecessary 132 platform_set_drvdata(), but left the variable "dev" unused, 133 delete it. 134 135 1363) ������������������ 137 138������������������������������������������������������������������������������������������������������������ 139 140������������������1��������������������������������������������������������������������������������� 141������������������������������������������������������������������������2��������������������������� 142������������������������������������������ API ������������������������������ API ������������������ 143���������������������������������������������2������������������������������������������ 144 145���������������������������������������������������������������������������������1��������������������� 146������������������������������������1������������������������������������������������������������������ 147������������������1���������������1������������������������������������������ 148 149������������������������������������������������������������������������������������������������������ 150������������������������������������������������������������������������������������������ X ��������� 151������������������������������������������������������������������ 152 153��������������������������������������������������������������������������������������������������������� 15415��������������������������������������������������������������������������������������� 155 1564) ������������������������������������ 157 158������������������������������������( Linux ���������������)������������������������������������������ 159��������������������������������������������������������������� Documentation/process/coding-style.rst ��� 160������������������������������������������������������������������������������������������������������ 161��������������������������������������������������������������������������������������������������������� 162������������������������������ 163 164��������������������������������������������������������������������������������������� 165( scripts/checkpatch.pl )��������������������������������������������������������� 166������������������������������������������������������������������������������������������������������������ 167��������������������������������������������������������������� 168 1695) ������������������������������������ 170 171MAINTAINERS ��������������������������������������������������������������������������������������� 172������������������������������������������������������������������������������������������������������ 173������������������������������������������������������������������������ 174./scripts/get_maintainers.pl ������������������������������������ 175 176��������������������������������������������������������������������������������������������������� 177LKML ( linux-kernel@vger.kernel.org )��������������������������������������������������� 178������������������������������������������������������������������������������������������������������ 179��������������������������������������������� 180 18115��������������������������������������� vger.kernel.org ��������������������������������������� 182������������������!!! 183 184Linus Torvalds ��� Linux ��������������������������������������������������������������������������� 185��������������������������������������� torvalds@linux-foundation.org ������������������������ 186������������������������������������������������������������������������������������������������������������ 187������������������������ 188 189��������������������������������������������������������������������������������������������������� 190������������������������������ Linus ������������������������������ CC ��������������������������������� 191������������������������������������������������������������������������������������������������������ 192��� LKML ������������������������������������������������������������������������������������������ 193Linus ������������������������ 194 1956) CC (���������������������)��������������� 196 197������������������������������LKML ������ CC ��������������������� 198 199Linus ������������������������������������������������������������������������������������������������ 200������������������������������������������������������������������������������������������������������ 201���������������������������LKML ������ Linux ��������������������������������������������������������� 202���������������������������USB ������������������������������������������ VFS ��� SCSI ��������������� 203������������������������������������������������������������������������������������������������������ 204��������������������������������������������������������������������������������������������������� 205MAINTAINERS ������������������������������������������ 206 207VGER.KERNEL.ORG ��������������������������������������������������������������������������������� 208��������������������������������� 209<http://vger.kernel.org/vger-lists.html> 210 211������������������������������������������������������������������������������������������ 212���������������������MAN-PAGES ���������������( MAINTAINERS ��������������������� 213���������������)��� man ��������������������������������������������������������������� 214������������������������������������������������������������������������������������������������ 215��������������������������������� 216 217��������������������������� #5 ��������������������������������������������������������������������������� 218������������������������������������������������ CC ������������������������������������������������������ 219 220 2217) MIME ������������������������������������������������������������������������������������������������ 222 223Linus ������������������������������������������������������������������������������������������������ 224��������������������������������������������������������������������������������������������������������� 225��������������������������������������������������������������������������������������������������������� 226��������������������������������� 227 228��������������������������������������������������������������������������������������������������� 229���������������������������������������������������������������&������������������������������������ 230������������������������������������������������������������������������������������ 231 232������������������������������������������ MIME ������������������������������������������������������ 233��������������������������������������������������� MIME ��������������������������������������������� 234������������������������������������������������������������������������������������������������������ 235������������������������������������������������������������������������������������������������������ 236MIME ������������������������������ Linus ��������������������������������������������������������� 237��������������������������������������������������������������������� 238 239������������������������������������������������������������������������������������������������������ 240��������������������� MIME ������������������������������������������������������������������������ 241 242��������������������������������������������������������������������������������������������������������������������� 243��������������������������� Documentation/process/email-clients.rst ������������������������������ 244 2458) ��������������������������� 246 247������������ Linus ������������������������ #7 ������������������������������������ 248 249������������������������������������������������������������������������������������������������������ 250������������ 300KB ������������������������������������������������������������������������������������ 251��������������������������������������������� URL ������������������������������������ 252 2539) ������������������������������������ 254 255��������������������������������������������������������������������������������������������������� 256������������������������������������������������������ 257 258���������������������������������������������������������������������������������������Linus ��� 259������������������������������������������������ 260 26110) ��������������������������� 262 263���������������������������������������������������������������������������Linus ��������������������� 264���������������������������������������Linus ��������������������������������������������������������� 265��������������������������������������� 266 267��������������������������������������������������������������������������������������������������������� 268��������������������������������������������������������������������������������������������������������� 269��������������������������������������������������������������� 270 271Linus ������������������������������������������������������������������������������������������������ 272������������������������������������������������������������������Linus ������������������������������ 273������������������������������������������������������������������������������ 274* ������������������������������������ Linux ��������������������������������������������������� 275* ������������ LKML ������������������������������������������ 276* ���������������������(���������������2���������) 277* ������������������������������������������(������������������������������) 278* ��������������������������������������� 279* Linus ��������������������������������������������������������������������������������������������� 280 ��������� 281* ��������������������������� 282 283������������������������������LKML ������������������������������������������ 284 28511) ������������������������ PATCH ��� 286 287Linus ��� LKML ������������������������������������������������������������������������������������������ 288��� [PATCH] ������������������������������������������������������������������������ Linus ��������� 289��������������������������������������������������������������������������������������������������������������� 290������������������������������������������ 291 29212) ��������������������� 293 294��������������������������������������������������������������� (��������������������������������� 295��������������������������������� Linux ���������������������������������������������������)��������� 296��������������������������������������������������������� sign-off ��������������������������������� 297������������ 298 299��� sign-off ��������������������������������������������������������������������������������� 300������������������������������������������������������������������������������������������������������ 301������������������������������������������������������������������������������������������ 302������������������������������������������������������������������������������ 303 304 ���������������������( DCO ) 1.1 305 306 ������������������������������������������������������������������������������������������ 307 308 (a) ��������������������������������������������������������������������������������������� 309 ��������������������������������������������������������������������������������������� 310 ������������������������������������ 311 312 (b) ������������������������������������������������������������������������������������������ 313 ������������������������������������������������������������������������������������������ 314 ������������������������������������������������������������������������������������������ 315 ���������������������������������������������������������(��������������������������������� 316 ������������������������������������������������������������)������������������������������ 317 ������������������������ 318 319 (c) ������������(a)���(b)���(c)������������������3������������������������������������ 320 ��������������������������������������������������������������� 321 322 (d) ������������������������������������������������������������������������������������������������ 323 ������������������������������������(��������������������������������������� sign-off ��� 324 ������)������������������������������������������������������������������������������������ 325 ��������������������������������������������������������������������������������������������� 326 ��������������� 327 328���������������������������������������������������������1��������������������������������� 329 330 Signed-off-by: Random J Developer <random@developer.example.org> 331 332���������������������������������(���������������������������������������������������������������������) 333 334������������������ sign-off ��������������������������������������������������������������������������������� 335������������������������������������������������������������������������������������������sign-off ��������� 336������������������������������������������������������ 337 338��������������������������������������������������������������������������������������������������������������������� 339��������������������������������������������������������������������������������������������������������������� 340��������������������������������������������������������������������������������������������������������������������� 341���������������������������������������������(c)������������������������������������������������������������ 342��������������������������������������������������������������������������������������������������������������� 343���������������������������������(b)������������������������������������������������������������������������ 344������������������������������������������������������������������������������������������������������������������ 345������������������������������������������������������������������������������������������������������ 346Signed-off-by ������������������������������������������ Signed-off-by ��������������������� 347������������������������1������������������������������������������������������ 348(������1������������������)��������������������������������������������������������������������������������������� 349������������������������������������������������������������������������������������������������������������������ 350��������������������������������������������������������������������������������� 351 352 Signed-off-by: Random J Developer <random@developer.example.org> 353 [lucky@maintainer.example.org: struct foo moved from foo.c to foo.h] 354 Signed-off-by: Lucky K Maintainer <lucky@maintainer.example.org> 355 356������������������������������������������������������������������������������������������������������������ 357��������������������������������������������������������������������������������������������������������������� 358������������������������������������������������������������������������������������������������������ 359������������������������������(From ���������)��������������������������������������������������������� 360 361��������������������������������������������������������������������������������������������������������������� 362���������������������������(���������������������������������)��������������������������������������������������� 363������������������������������������������������������������������ 2.6-stable ������������������������������ 364 365 Date: Tue May 13 19:10:30 2008 +0000 366 367 SCSI: libiscsi regression in 2.6.25: fix nop timer handling 368 369 commit 4cf1043593db6a337f10e006c23c69e5fc93e722 upstream 370 371��������������������� 2.4 ������������������������������ 372 373 Date: Tue May 13 22:12:27 2008 +0200 374 375 wireless, airo: waitbusy() won't delay 376 377 [backport of 2.6 commit b7acbdfbd1f277c1eb23f344f899cfa4cd0bf36a] 378 379��������������������������������������������������������������������������������������������������������������������� 380������������������������������������������������������������������������������������ 381 38213) ������ Acked-by: ��� Cc: ��������������� 383 384��� Signed-off-by: ��������������������������������������������������������������������������������������� 385������������������������������������������������������ 386 387��������������������������������������������������������������������������������������������������������������� 388������������������������������������������������������������������������������������������ Acked-by: ������ 389������������Acked-by: ������������������������������������������������������������ 390 391��������������������������������������������������������������������������������������������������������������� 392������������������������������������������������������������ Acked-by: ��������������������������������� 393 394Acked-by: ��� Signed-off-by: ��������������������������������������������������������������������������� 395������������������������������������������������������������������������������������������������������������ 396��������������������������������������������������������������������������������������������������������������� 397Acked-by: ������������������������������������������ 398 399Acked-by: ��������������������������������������������������������������������������������������������������� 400���������������������������������������������������������������������������������������1������������������������ 401������������������������ Acked-by: ������������������������������������������������Acked-by: ��������� 402������������������������������������������������������������������������������������������������������������ 403������������������������������������������������������(������ Acked-by: ���)������������������������ 404������������������������������������������������������������������������������������������ 405 406��������������������������������������������������������������������������������������������������������������������� 407���������������������Cc:��������������������������������������������������������������������������������������������� 408������������������������������������������������������������������������ 409��������������������������������������������������������������������������������������������������������������������� 410������������������������ 411 41214) Reported-by:, Tested-by:, Reviewed-by: ��������� Suggested-by: ��������� 413 414��������������������������������������������������������������������������������������������������������������������� 415���������������������������������Reported-by: ��������������������������������������������������������� 416��������������������������������������������������������������������������������������������������������������������� 417������������������������������������������������������������ 418��������������������������������������������������������������������������������������������������������������� 419��������������������������������������������������������������������� 420 421Tested-by: ������������������������������������������������(������������������)������������������������������ 422������������������������������������������������������������������������������������������������������������ 423������������������������������������������������������������������������������������������������������������������ 424��������������������������������������������� 425 426Reviewed-by: ������������������������������������������������������������������������������������������������ 427������������������������������������������������������������������������������ 428 429 ������������������������������������ 430 431 ������ Reviewed-by: ��������������������������������������������������������������������������� 432 433 (a) ��������������������������������������������������������������������������������������������� 434 (������)��������������������������������������������������������������������������������� 435 436 ������: 437 ��������������������������� "readiness"��� 438 ������������������������������������������������������������������������������������������������������ 439 ������������������������������������������������������ "readiness" ������������������������ 440 ��������������� 441 442 (b) ��������������������������������������������������������������������������������������������������� 443 ������������������������������������������������������������������������������������������������ 444 445 (c) ���������������������������������������������������������������������������������(1)��������� 446 ���������������������������������������������������������������������������(2)������������������ 447 ��������������������������������������������������������������������������� 448 449 (d) ��������������������������������������������������������������������������������������������� 450 ������������������������������������������������������������������������������������������������ 451 ������������������������������(���������������������������������������)��� 452 453Reviewed-by ��������������������������������������������������������������������������������������������������� 454������������������������������������������������������������������������������������������������������(������������ 455���������������������)��������������������� Reviewed-by ��������������������������������������������� 456������������������������������������������������������������������������������������������������������������ 457������������������������������������������������������������������������������������������������������������ 458���������������������������������������������������������������������������Reviewed-by: ��������������������� 459������������������������������������������������������������������������������ 460 461Suggested-by: ������������������������������������������������������������������������������������������ 462��������������������������������������������������������������������������������������������������������������� 463��������������������������������������������������������������������������������������������������������������� 464��������������������������������������������������������������������������������������������������������������� 465��������������������������������������������������������������������������������������������������������������� 466������������������������������������������ 467 46815) ������������������������������������������ 469 470������������������������������������������������������������������������ 471 472 Subject: [PATCH 001/123] subsystem: summary phrase 473 474������������������������������������������������������������������������������������������������ 475 476 - ��������������������������������������� from ������ 477 478 - ������ 479 480 - ��������������������������������������������������������������������������������������������� 481 (������������)��������������������������� 482 483 - ��������������� Signed-off-by: ��������������������������������������������������� 484 ��������������������������������������� 485 486 - ������������������������������ --- ������������ 487 488 - ��������������������������������������������������������������������� 489 490 - ������������������(������������) 491 492������������������������������������������������������������������������������������������������������ 493���������������������������������������������������(������������������������������������������������ 494������������������������������������������)������������������������������������������0������������ 495��������������������������������������������������������������������������������������������������������� 496 497��������������������������������������������������������������������������������������������������� 498������������������������������������������������������������������������������ 499 500������������������������������������������summary phrase��������������������������������������� 501���������������������������������������������summary phrase������������������������������������ 502������������������������������������������������������������������������������summary phrase������ 503���������������������������(������������������������������������������������������������������������������ 504������������������)��� 505 506���������������������������������summary phrase��������������������������������������������������������������� 507���������������������������������������������summary phrase������ git ������������������������������ 508���������������������������������������summary phrase��������������������������������������������������� 509������������������������������������������������������������ 510������������������������������������������������������������������summary phrase��������������� google ��� 511������������������������������������������������2���3������������������������������gitk������ 512���git log --oneline��������������������������������������������������������������������������������� 513��������������������������������������������������� 514 515���������������������������������summary phrase��������������������������������������������������������������� 516������������������2���������������������������70���75������������������������������������������������������ 517���summary phrase��������������������������������������������������������������������������� 518������������������������������������������������������ 519 520���summary phrase���������Subject: [PATCH tag] <summary phrase>������������������ 521��������������������������������������������������������������������������������������������������������� 522���summary phrase������������������������������������������������������������������������������������������ 523������������������ 524������������������v1, v2, v3���������������������������������������������������(������������������������������ 525���������������������������������������������������������������������������������������������������������������)��� 526���RFC������������������������������������������������������������������������������������������������������4������ 527������������������������������������������������1/4, 2/4, 3/4, 4/4������������������������������������ 528��������������������������������������������������������������������������������������������������������������� 529��������������������������������������������������������������������������������������������������������������� 530��������������������������������������������� 531 532��������������������������������� 533 534 Subject: [patch 2/5] ext2: improve scalability of bitmap searching 535 Subject: [PATCHv2 001/207] x86: fix eflags tracking 536 537��� from ������������������������������������������������������������������������������������������ 538������������������������������������������ 539 540 From: Original Author <author@example.com> 541 542��� from ������������������������������������������������������������������������������������������������ 543��������������������������������������������� from ������������������������������������������������������ 544������������ From: ��������������������������������������������������������������������������������������� 545��������������������� 546 547��������������������������������������������������������������������������������������������������������� 548��������������������������������������������������������������������������������������������������������������� 549��������������������������������������������������������������������������������������������������������������� 550���������������(������������������������������������ oops ������������������)��������������������������������� 551������������������������������������������������������������������������������������������������������������ 552��������������������������������������������������������������������������������������������������������������������� 553��������������������������������������������������������������������������������������������������������������� 554���������������������summary phrase��������������������������������������������������������������������������� 555 556��� --- ������������������������������������������������������������������������������������������������������ 557��������������������������������������������������������������������� 558 559��� --- ���������������������������������������������������������������������1������ diffstat ������������ 560������������������diffstat ������������������������������������������������������1��������������������������� 561���������������������������������������������������������diffstat ������������������������������������������ 562��������������������������������������������������������������������������������������������������������������� 563��������������������������������������������������������������������������������������������������������������� 564��������������������������������������������������������������������������� 565���������������������������������������������������v1 ��� v2 ��������������������������������������������������� 566������������������������������������������������������������ 567 568��� --- ��������������������������� diffstat ��������������������������������������������������������������� 569��������������������������������������������������������������������������������������������������������������������� 570������������������������������������������������diffstat ��������������������������������� -p 1 -w 70 ��� 571���������������������������(���������������������������������������80������������������������)��� 572 573������������������������������������������������������������������������������3������������������������������ 574��������������� 575 57616) ���git pull���������������������(Linus ������������������������) 577 578������������������������������������������������������������������git ��������������������������������� 579������������������������������1���������������������������������������������������������3������������������������ 580������������������������������ 581 582������������������������������������������ 583 584 "Please pull from 585 586 git://jdelvare.pck.nerim.net/jdelvare-2.6 i2c-for-linus 587 588 to get these changes:" 589 590���������������������������������������������������������������������������������������������������������(������������ 591������������������������������������������������������������������������������������ diffstat ������������ 592��������������������������������������������������������������������������������������������������������������������� 593��������������������������������������������������������������������������������������������������������� 594������������������������������������������������)��� 595 596diffstat ������������������������������������ git diff -M --stat --summary ��������������� 597���������������-M ������������������������������������������������������������--summary ������������������ 598��������������������������������������������������������������������������������������������������������������������� 599 600-M ���������������(������������������������������)���������������������diffstat ��������������������� 601������������������������git ���������������������(������������������������)������������������������������ 602��������������������������� 603 604------------------------------------ 605���������������2 - ������������TIPS��������� 606------------------------------------ 607 608������������������������ Linux ������������������������������������������������������������������������ 609��������������������������������������������������������������������������������������������������������� 610��������������������������������������������������������������������������������������������������������� 611������������������ Linus ���������������������������������������101������������������������ 612 6131) Documentation/process/coding-style.rst��������� 614 615������������������������������������������������������������������������������������������������������ 616������������������������������������������������������������������������������������������������������ 617��������������� 618 619������������������������������������������������������������������������������������������ 620������������������������������������������������������������������������������������������������������ 621��������������������������������������������������������������������������������������������������� 622��������������������������������������������������������������������������������������������������� 623��������������������������������������������������������������������������������������������������� 624������������������������������������������������������������������������������������������������������ 625 626���������������������������������������������������������������( scripts/checkpatch.pl )��� 627������������������������������������������������������������������������������������������������������ 628������������������������������������������������������������������������������������������������������ 629������������������������������������������������������������������������������������������������������ 630������������������������ 631 632������������������������������������3���������������������: 633 - ���������: ������������������������������������ 634 - ������������������������������������������������������ 635 - ������������������������������������������ 636 637������������������������������������������������������������������������������������������������������������ 638��������������������������������������������������������������� 639 6402) #ifdef��������������� 641 642ifdef ������������������������������������������������������������������������������������������������������ 643��� ifdef ������������������������������������������������������������������������������ ifdef ��������������� 644������������������������������������������������������������ static inline ��������������������������������� 645��������������������������������������������������������������������������������������������������������������� 646������������ 647 648��������������������������������� 649 650 dev = alloc_etherdev (sizeof(struct funky_private)); 651 if (!dev) 652 return -ENODEV; 653 #ifdef CONFIG_NET_FUNKINESS 654 init_funky_net(dev); 655 #endif 656 657������������������������������������������ 658 659(in header) 660 #ifndef CONFIG_NET_FUNKINESS 661 static inline void init_funky_net (struct net_device *d) {} 662 #endif 663 664(in the code itself) 665 dev = alloc_etherdev (sizeof(struct funky_private)); 666 if (!dev) 667 return -ENODEV; 668 init_funky_net(dev); 669 6703) ������������������ static inline ������������ 671 672��� static inline ��������������������������������������������������������������������������������� 673������������������������������������������������������������������������������������������������������ 674gcc ������������������������������������������������������������ 675 676��������������� static inline ������������������������������������������������������(������������������ 677���������������������������������)������ static inline ������������������������������������������������ 678������(������������������������������������������������)������������������������������������ 679 680��� static inline ��������� static __inline__ ��������� extern inline ������ 681��� extern __inline__ ��������������������������� 682 6834) ��������������������������� 684 685��������������������������������������������������������������������������������������������������� 686��������������������������������������������������������������������������������������������������� 687������������������������������������������������ 688 689---------------------- 690���������������3 ������������ 691---------------------- 692 693Andrew Morton, "The perfect patch" (tpp). 694 <http://www.ozlabs.org/~akpm/stuff/tpp.txt> 695 696Jeff Garzik, "Linux kernel patch submission format". 697 <https://web.archive.org/web/20180829112450/http://linux.yyz.us/patch-format.html> 698 699Greg Kroah-Hartman, "How to piss off a kernel subsystem maintainer". 700 <http://www.kroah.com/log/linux/maintainer.html> 701 <http://www.kroah.com/log/linux/maintainer-02.html> 702 <http://www.kroah.com/log/linux/maintainer-03.html> 703 <http://www.kroah.com/log/linux/maintainer-04.html> 704 <http://www.kroah.com/log/linux/maintainer-05.html> 705 706NO!!!! No more huge patch bombs to linux-kernel@vger.kernel.org people! 707 <https://lore.kernel.org/r/20050711.125305.08322243.davem@davemloft.net> 708 709Kernel Documentation/process/coding-style.rst: 710 <http://users.sosdg.org/~qiyong/lxr/source/Documentation/process/coding-style.rst> 711 712Linus Torvalds's mail on the canonical patch format: 713 <https://lore.kernel.org/r/Pine.LNX.4.58.0504071023190.28951@ppc970.osdl.org> 714 715Andi Kleen, "On submitting kernel patches" 716 Some strategies to get difficult or controversial changes in. 717 http://halobates.de/on-submitting-patches.pdf 718 719-- 720 721 722