diff options
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/Kconfig | 2 | ||||
-rw-r--r-- | drivers/char/consolemap.c | 2 | ||||
-rw-r--r-- | drivers/char/mem.c | 3 | ||||
-rw-r--r-- | drivers/char/mwave/mwavedd.c | 2 | ||||
-rw-r--r-- | drivers/char/random.c | 5 | ||||
-rw-r--r-- | drivers/char/sysrq.c | 20 |
6 files changed, 15 insertions, 19 deletions
diff --git a/drivers/char/Kconfig b/drivers/char/Kconfig index 1697043119bd..35914b6e1d2a 100644 --- a/drivers/char/Kconfig +++ b/drivers/char/Kconfig | |||
@@ -841,7 +841,7 @@ config JS_RTC | |||
841 | 841 | ||
842 | config GEN_RTC | 842 | config GEN_RTC |
843 | tristate "Generic /dev/rtc emulation" | 843 | tristate "Generic /dev/rtc emulation" |
844 | depends on RTC!=y && !IA64 && !ARM && !M32R && !MIPS && !SPARC && !FRV && !S390 && !SUPERH && !AVR32 | 844 | depends on RTC!=y && !IA64 && !ARM && !M32R && !MIPS && !SPARC && !FRV && !S390 && !SUPERH && !AVR32 && !BLACKFIN |
845 | ---help--- | 845 | ---help--- |
846 | If you say Y here and create a character special file /dev/rtc with | 846 | If you say Y here and create a character special file /dev/rtc with |
847 | major number 10 and minor number 135 using mknod ("man mknod"), you | 847 | major number 10 and minor number 135 using mknod ("man mknod"), you |
diff --git a/drivers/char/consolemap.c b/drivers/char/consolemap.c index 4246b8e36cb3..45d3e80156d4 100644 --- a/drivers/char/consolemap.c +++ b/drivers/char/consolemap.c | |||
@@ -554,7 +554,7 @@ int con_set_unimap(struct vc_data *vc, ushort ct, struct unipair __user *list) | |||
554 | __get_user(fontpos, &list->fontpos); | 554 | __get_user(fontpos, &list->fontpos); |
555 | if ((err1 = con_insert_unipair(p, unicode,fontpos)) != 0) | 555 | if ((err1 = con_insert_unipair(p, unicode,fontpos)) != 0) |
556 | err = err1; | 556 | err = err1; |
557 | list++; | 557 | list++; |
558 | } | 558 | } |
559 | 559 | ||
560 | if (con_unify_unimap(vc, p)) | 560 | if (con_unify_unimap(vc, p)) |
diff --git a/drivers/char/mem.c b/drivers/char/mem.c index 6431f6921a67..3586b3b3df3f 100644 --- a/drivers/char/mem.c +++ b/drivers/char/mem.c | |||
@@ -425,9 +425,6 @@ static ssize_t read_oldmem(struct file *file, char __user *buf, | |||
425 | } | 425 | } |
426 | #endif | 426 | #endif |
427 | 427 | ||
428 | extern long vread(char *buf, char *addr, unsigned long count); | ||
429 | extern long vwrite(char *buf, char *addr, unsigned long count); | ||
430 | |||
431 | #ifdef CONFIG_DEVKMEM | 428 | #ifdef CONFIG_DEVKMEM |
432 | /* | 429 | /* |
433 | * This function reads the *virtual* memory as seen by the kernel. | 430 | * This function reads the *virtual* memory as seen by the kernel. |
diff --git a/drivers/char/mwave/mwavedd.c b/drivers/char/mwave/mwavedd.c index 4f8d67fed292..94ad2c3bfc4a 100644 --- a/drivers/char/mwave/mwavedd.c +++ b/drivers/char/mwave/mwavedd.c | |||
@@ -663,7 +663,7 @@ static int __init mwave_init(void) | |||
663 | #if 0 | 663 | #if 0 |
664 | /* sysfs */ | 664 | /* sysfs */ |
665 | memset(&mwave_device, 0, sizeof (struct device)); | 665 | memset(&mwave_device, 0, sizeof (struct device)); |
666 | snprintf(mwave_device.bus_id, BUS_ID_SIZE, "mwave"); | 666 | dev_set_name(&mwave_device, "mwave"); |
667 | 667 | ||
668 | if (device_register(&mwave_device)) | 668 | if (device_register(&mwave_device)) |
669 | goto cleanup_error; | 669 | goto cleanup_error; |
diff --git a/drivers/char/random.c b/drivers/char/random.c index c7afc068c28d..7c13581ca9cd 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c | |||
@@ -407,7 +407,7 @@ struct entropy_store { | |||
407 | /* read-write data: */ | 407 | /* read-write data: */ |
408 | spinlock_t lock; | 408 | spinlock_t lock; |
409 | unsigned add_ptr; | 409 | unsigned add_ptr; |
410 | int entropy_count; /* Must at no time exceed ->POOLBITS! */ | 410 | int entropy_count; |
411 | int input_rotate; | 411 | int input_rotate; |
412 | }; | 412 | }; |
413 | 413 | ||
@@ -767,11 +767,10 @@ static size_t account(struct entropy_store *r, size_t nbytes, int min, | |||
767 | { | 767 | { |
768 | unsigned long flags; | 768 | unsigned long flags; |
769 | 769 | ||
770 | BUG_ON(r->entropy_count > r->poolinfo->POOLBITS); | ||
771 | |||
772 | /* Hold lock while accounting */ | 770 | /* Hold lock while accounting */ |
773 | spin_lock_irqsave(&r->lock, flags); | 771 | spin_lock_irqsave(&r->lock, flags); |
774 | 772 | ||
773 | BUG_ON(r->entropy_count > r->poolinfo->POOLBITS); | ||
775 | DEBUG_ENT("trying to extract %d bits from %s\n", | 774 | DEBUG_ENT("trying to extract %d bits from %s\n", |
776 | nbytes * 8, r->name); | 775 | nbytes * 8, r->name); |
777 | 776 | ||
diff --git a/drivers/char/sysrq.c b/drivers/char/sysrq.c index 94966edfb44d..d41b9f6f7903 100644 --- a/drivers/char/sysrq.c +++ b/drivers/char/sysrq.c | |||
@@ -82,7 +82,7 @@ static void sysrq_handle_loglevel(int key, struct tty_struct *tty) | |||
82 | } | 82 | } |
83 | static struct sysrq_key_op sysrq_loglevel_op = { | 83 | static struct sysrq_key_op sysrq_loglevel_op = { |
84 | .handler = sysrq_handle_loglevel, | 84 | .handler = sysrq_handle_loglevel, |
85 | .help_msg = "loglevel0-8", | 85 | .help_msg = "loglevel(0-9)", |
86 | .action_msg = "Changing Loglevel", | 86 | .action_msg = "Changing Loglevel", |
87 | .enable_mask = SYSRQ_ENABLE_LOG, | 87 | .enable_mask = SYSRQ_ENABLE_LOG, |
88 | }; | 88 | }; |
@@ -233,7 +233,7 @@ static void sysrq_handle_showallcpus(int key, struct tty_struct *tty) | |||
233 | 233 | ||
234 | static struct sysrq_key_op sysrq_showallcpus_op = { | 234 | static struct sysrq_key_op sysrq_showallcpus_op = { |
235 | .handler = sysrq_handle_showallcpus, | 235 | .handler = sysrq_handle_showallcpus, |
236 | .help_msg = "aLlcpus", | 236 | .help_msg = "show-backtrace-all-active-cpus(L)", |
237 | .action_msg = "Show backtrace of all active CPUs", | 237 | .action_msg = "Show backtrace of all active CPUs", |
238 | .enable_mask = SYSRQ_ENABLE_DUMP, | 238 | .enable_mask = SYSRQ_ENABLE_DUMP, |
239 | }; | 239 | }; |
@@ -247,7 +247,7 @@ static void sysrq_handle_showregs(int key, struct tty_struct *tty) | |||
247 | } | 247 | } |
248 | static struct sysrq_key_op sysrq_showregs_op = { | 248 | static struct sysrq_key_op sysrq_showregs_op = { |
249 | .handler = sysrq_handle_showregs, | 249 | .handler = sysrq_handle_showregs, |
250 | .help_msg = "showPc", | 250 | .help_msg = "show-registers(P)", |
251 | .action_msg = "Show Regs", | 251 | .action_msg = "Show Regs", |
252 | .enable_mask = SYSRQ_ENABLE_DUMP, | 252 | .enable_mask = SYSRQ_ENABLE_DUMP, |
253 | }; | 253 | }; |
@@ -258,7 +258,7 @@ static void sysrq_handle_showstate(int key, struct tty_struct *tty) | |||
258 | } | 258 | } |
259 | static struct sysrq_key_op sysrq_showstate_op = { | 259 | static struct sysrq_key_op sysrq_showstate_op = { |
260 | .handler = sysrq_handle_showstate, | 260 | .handler = sysrq_handle_showstate, |
261 | .help_msg = "showTasks", | 261 | .help_msg = "show-task-states(T)", |
262 | .action_msg = "Show State", | 262 | .action_msg = "Show State", |
263 | .enable_mask = SYSRQ_ENABLE_DUMP, | 263 | .enable_mask = SYSRQ_ENABLE_DUMP, |
264 | }; | 264 | }; |
@@ -269,7 +269,7 @@ static void sysrq_handle_showstate_blocked(int key, struct tty_struct *tty) | |||
269 | } | 269 | } |
270 | static struct sysrq_key_op sysrq_showstate_blocked_op = { | 270 | static struct sysrq_key_op sysrq_showstate_blocked_op = { |
271 | .handler = sysrq_handle_showstate_blocked, | 271 | .handler = sysrq_handle_showstate_blocked, |
272 | .help_msg = "shoW-blocked-tasks", | 272 | .help_msg = "show-blocked-tasks(W)", |
273 | .action_msg = "Show Blocked State", | 273 | .action_msg = "Show Blocked State", |
274 | .enable_mask = SYSRQ_ENABLE_DUMP, | 274 | .enable_mask = SYSRQ_ENABLE_DUMP, |
275 | }; | 275 | }; |
@@ -297,7 +297,7 @@ static void sysrq_handle_showmem(int key, struct tty_struct *tty) | |||
297 | } | 297 | } |
298 | static struct sysrq_key_op sysrq_showmem_op = { | 298 | static struct sysrq_key_op sysrq_showmem_op = { |
299 | .handler = sysrq_handle_showmem, | 299 | .handler = sysrq_handle_showmem, |
300 | .help_msg = "showMem", | 300 | .help_msg = "show-memory-usage(M)", |
301 | .action_msg = "Show Memory", | 301 | .action_msg = "Show Memory", |
302 | .enable_mask = SYSRQ_ENABLE_DUMP, | 302 | .enable_mask = SYSRQ_ENABLE_DUMP, |
303 | }; | 303 | }; |
@@ -323,7 +323,7 @@ static void sysrq_handle_term(int key, struct tty_struct *tty) | |||
323 | } | 323 | } |
324 | static struct sysrq_key_op sysrq_term_op = { | 324 | static struct sysrq_key_op sysrq_term_op = { |
325 | .handler = sysrq_handle_term, | 325 | .handler = sysrq_handle_term, |
326 | .help_msg = "tErm", | 326 | .help_msg = "terminate-all-tasks(E)", |
327 | .action_msg = "Terminate All Tasks", | 327 | .action_msg = "Terminate All Tasks", |
328 | .enable_mask = SYSRQ_ENABLE_SIGNAL, | 328 | .enable_mask = SYSRQ_ENABLE_SIGNAL, |
329 | }; | 329 | }; |
@@ -341,7 +341,7 @@ static void sysrq_handle_moom(int key, struct tty_struct *tty) | |||
341 | } | 341 | } |
342 | static struct sysrq_key_op sysrq_moom_op = { | 342 | static struct sysrq_key_op sysrq_moom_op = { |
343 | .handler = sysrq_handle_moom, | 343 | .handler = sysrq_handle_moom, |
344 | .help_msg = "Full", | 344 | .help_msg = "memory-full-oom-kill(F)", |
345 | .action_msg = "Manual OOM execution", | 345 | .action_msg = "Manual OOM execution", |
346 | .enable_mask = SYSRQ_ENABLE_SIGNAL, | 346 | .enable_mask = SYSRQ_ENABLE_SIGNAL, |
347 | }; | 347 | }; |
@@ -353,7 +353,7 @@ static void sysrq_handle_kill(int key, struct tty_struct *tty) | |||
353 | } | 353 | } |
354 | static struct sysrq_key_op sysrq_kill_op = { | 354 | static struct sysrq_key_op sysrq_kill_op = { |
355 | .handler = sysrq_handle_kill, | 355 | .handler = sysrq_handle_kill, |
356 | .help_msg = "kIll", | 356 | .help_msg = "kill-all-tasks(I)", |
357 | .action_msg = "Kill All Tasks", | 357 | .action_msg = "Kill All Tasks", |
358 | .enable_mask = SYSRQ_ENABLE_SIGNAL, | 358 | .enable_mask = SYSRQ_ENABLE_SIGNAL, |
359 | }; | 359 | }; |
@@ -364,7 +364,7 @@ static void sysrq_handle_unrt(int key, struct tty_struct *tty) | |||
364 | } | 364 | } |
365 | static struct sysrq_key_op sysrq_unrt_op = { | 365 | static struct sysrq_key_op sysrq_unrt_op = { |
366 | .handler = sysrq_handle_unrt, | 366 | .handler = sysrq_handle_unrt, |
367 | .help_msg = "Nice", | 367 | .help_msg = "nice-all-RT-tasks(N)", |
368 | .action_msg = "Nice All RT Tasks", | 368 | .action_msg = "Nice All RT Tasks", |
369 | .enable_mask = SYSRQ_ENABLE_RTNICE, | 369 | .enable_mask = SYSRQ_ENABLE_RTNICE, |
370 | }; | 370 | }; |