Skip to content

Commit 53387b0

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6: Driver core: fix 'dynamic_debug' cmd line parameter HOWTO: Sync patch for jp_JP/HOWTO Update stable tree documentation sysfs: Fix return values for sysdev_store_{ulong,int} driver core: drivers/base/sys.c: update comments Document kernel taint flags properly
2 parents 52e8e19 + 1133283 commit 53387b0

5 files changed

Lines changed: 34 additions & 19 deletions

File tree

‎Documentation/ja_JP/HOWTO‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ for non English (read: Japanese) speakers and is not intended as a
1111
fork. So if you have any comments or updates for this file, please try
1212
to update the original English file first.
1313

14-
Last Updated: 2008/08/21
14+
Last Updated: 2008/10/24
1515
==================================
1616
これは、
17-
linux-2.6.27/Documentation/HOWTO
17+
linux-2.6.28/Documentation/HOWTO
1818
の和訳です。
1919

2020
翻訳団体: JF プロジェクト < http://www.linux.or.jp/JF/ >
21-
翻訳日: 2008/8/5
21+
翻訳日: 2008/10/24
2222
翻訳者: Tsugikazu Shibata <tshibata at ab dot jp dot nec dot com>
2323
校正者: 松倉さん <nbh--mats at nifty dot com>
2424
小林 雅典さん (Masanori Kobayasi) <zap03216 at nifty dot ne dot jp>
@@ -110,8 +110,8 @@ Linux カーネルソースツリーは幅広い範囲のドキュメントを
110110
新しいドキュメントファイルも追加することを勧めます。
111111
カーネルの変更が、カーネルがユーザ空間に公開しているインターフェイスの
112112
変更を引き起こす場合、その変更を説明するマニュアルページのパッチや情報
113-
をマニュアルページのメンテナ mtk.manpages@gmail.com に送ることを勧めま
114-
す。
113+
をマニュアルページのメンテナ mtk.manpages@gmail.com に送り、CC を
114+
linux-api@ver.kernel.org に送ることを勧めます。
115115

116116
以下はカーネルソースツリーに含まれている読んでおくべきファイルの一覧で
117117
す-
@@ -149,7 +149,7 @@ Linux カーネルソースツリーは幅広い範囲のドキュメントを
149149
この他にパッチを作る方法についてのよくできた記述は-
150150

151151
"The Perfect Patch"
152-
http://www.zip.com.au/~akpm/linux/patches/stuff/tpp.txt
152+
http://userweb.kernel.org/~akpm/stuff/tpp.txt
153153
"Linux kernel patch submission format"
154154
http://linux.yyz.us/patch-format.html
155155

@@ -664,7 +664,7 @@ Linux カーネルコミュニティは、一度に大量のコードの塊を
664664
これについて全てがどのようにあるべきかについての詳細は、以下のドキュメ
665665
ントの ChangeLog セクションを見てください-
666666
"The Perfect Patch"
667-
http://www.zip.com.au/~akpm/linux/patches/stuff/tpp.txt
667+
http://userweb.kernel.org/~akpm/stuff/tpp.txt
668668

669669
これらのどれもが、時にはとても困難です。これらの慣例を完璧に実施するに
670670
は数年かかるかもしれません。これは継続的な改善のプロセスであり、そのた

‎Documentation/stable_kernel_rules.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Rules on what kind of patches are accepted, and which ones are not, into the
1212
marked CONFIG_BROKEN), an oops, a hang, data corruption, a real
1313
security issue, or some "oh, that's not good" issue. In short, something
1414
critical.
15+
- New device IDs and quirks are also accepted.
1516
- No "theoretical race condition" issues, unless an explanation of how the
1617
race can be exploited is also provided.
1718
- It cannot contain any "trivial" fixes in it (spelling changes,

‎Documentation/sysctl/kernel.txt‎

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -363,11 +363,21 @@ tainted:
363363
Non-zero if the kernel has been tainted. Numeric values, which
364364
can be ORed together:
365365

366-
1 - A module with a non-GPL license has been loaded, this
367-
includes modules with no license.
368-
Set by modutils >= 2.4.9 and module-init-tools.
369-
2 - A module was force loaded by insmod -f.
370-
Set by modutils >= 2.4.9 and module-init-tools.
371-
4 - Unsafe SMP processors: SMP with CPUs not designed for SMP.
372-
64 - A module from drivers/staging was loaded.
366+
1 - A module with a non-GPL license has been loaded, this
367+
includes modules with no license.
368+
Set by modutils >= 2.4.9 and module-init-tools.
369+
2 - A module was force loaded by insmod -f.
370+
Set by modutils >= 2.4.9 and module-init-tools.
371+
4 - Unsafe SMP processors: SMP with CPUs not designed for SMP.
372+
8 - A module was forcibly unloaded from the system by rmmod -f.
373+
16 - A hardware machine check error occurred on the system.
374+
32 - A bad page was discovered on the system.
375+
64 - The user has asked that the system be marked "tainted". This
376+
could be because they are running software that directly modifies
377+
the hardware, or for other reasons.
378+
128 - The system has died.
379+
256 - The ACPI DSDT has been overridden with one supplied by the user
380+
instead of using the one provided by the hardware.
381+
512 - A kernel warning has occurred.
382+
1024 - A module from drivers/staging was loaded.
373383

‎drivers/base/sys.c‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ static void __sysdev_resume(struct sys_device *dev)
355355
* sysdev_suspend - Suspend all system devices.
356356
* @state: Power state to enter.
357357
*
358-
* We perform an almost identical operation as sys_device_shutdown()
358+
* We perform an almost identical operation as sysdev_shutdown()
359359
* above, though calling ->suspend() instead. Interrupts are disabled
360360
* when this called. Devices are responsible for both saving state and
361361
* quiescing or powering down the device.
@@ -437,7 +437,7 @@ int sysdev_suspend(pm_message_t state)
437437
/**
438438
* sysdev_resume - Bring system devices back to life.
439439
*
440-
* Similar to sys_device_suspend(), but we iterate the list forwards
440+
* Similar to sysdev_suspend(), but we iterate the list forwards
441441
* to guarantee that parent devices are resumed before their children.
442442
*
443443
* Note: Interrupts are disabled when called.
@@ -488,7 +488,8 @@ ssize_t sysdev_store_ulong(struct sys_device *sysdev,
488488
if (end == buf)
489489
return -EINVAL;
490490
*(unsigned long *)(ea->var) = new;
491-
return end - buf;
491+
/* Always return full write size even if we didn't consume all */
492+
return size;
492493
}
493494
EXPORT_SYMBOL_GPL(sysdev_store_ulong);
494495

@@ -511,7 +512,8 @@ ssize_t sysdev_store_int(struct sys_device *sysdev,
511512
if (end == buf || new > INT_MAX || new < INT_MIN)
512513
return -EINVAL;
513514
*(int *)(ea->var) = new;
514-
return end - buf;
515+
/* Always return full write size even if we didn't consume all */
516+
return size;
515517
}
516518
EXPORT_SYMBOL_GPL(sysdev_store_int);
517519

‎lib/dynamic_printk.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,8 @@ static int __init dynamic_printk_init(void)
402402
iter->logical_modname,
403403
iter->flag_names, iter->hash, iter->hash2);
404404
}
405+
if (dynamic_enabled == DYNAMIC_ENABLED_ALL)
406+
set_all(true);
405407
return 0;
406408
}
407409
module_init(dynamic_printk_init);
@@ -411,7 +413,7 @@ static int __init dynamic_printk_setup(char *str)
411413
{
412414
if (str)
413415
return -ENOENT;
414-
set_all(true);
416+
dynamic_enabled = DYNAMIC_ENABLED_ALL;
415417
return 0;
416418
}
417419
/* Use early_param(), so we can get debug output as early as possible */

0 commit comments

Comments
 (0)