Skip to content

Commit 8bf1000

Browse files
committed
Merge tag 'printk-for-6.11-trivial' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux
Pull printk updates from Petr Mladek: - trivial printk changes The bigger "real" printk work is still being discussed. * tag 'printk-for-6.11-trivial' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux: vsprintf: add missing MODULE_DESCRIPTION() macro printk: Rename console_replay_all() and update context
2 parents b485625 + a930fde commit 8bf1000

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

drivers/tty/sysrq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ static const struct sysrq_key_op sysrq_unrt_op = {
452452

453453
static void sysrq_handle_replay_logs(u8 key)
454454
{
455-
console_replay_all();
455+
console_try_replay_all();
456456
}
457457
static struct sysrq_key_op sysrq_replay_logs_op = {
458458
.handler = sysrq_handle_replay_logs,

include/linux/printk.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ void show_regs_print_info(const char *log_lvl);
196196
extern asmlinkage void dump_stack_lvl(const char *log_lvl) __cold;
197197
extern asmlinkage void dump_stack(void) __cold;
198198
void printk_trigger_flush(void);
199-
void console_replay_all(void);
199+
void console_try_replay_all(void);
200200
#else
201201
static inline __printf(1, 0)
202202
int vprintk(const char *s, va_list args)
@@ -276,7 +276,7 @@ static inline void dump_stack(void)
276276
static inline void printk_trigger_flush(void)
277277
{
278278
}
279-
static inline void console_replay_all(void)
279+
static inline void console_try_replay_all(void)
280280
{
281281
}
282282
#endif

kernel/printk/printk.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4372,15 +4372,15 @@ void kmsg_dump_rewind(struct kmsg_dump_iter *iter)
43724372
EXPORT_SYMBOL_GPL(kmsg_dump_rewind);
43734373

43744374
/**
4375-
* console_replay_all - replay kernel log on consoles
4375+
* console_try_replay_all - try to replay kernel log on consoles
43764376
*
43774377
* Try to obtain lock on console subsystem and replay all
43784378
* available records in printk buffer on the consoles.
43794379
* Does nothing if lock is not obtained.
43804380
*
4381-
* Context: Any context.
4381+
* Context: Any, except for NMI.
43824382
*/
4383-
void console_replay_all(void)
4383+
void console_try_replay_all(void)
43844384
{
43854385
if (console_trylock()) {
43864386
__console_rewind_all();

lib/test_printf.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -824,4 +824,5 @@ static void __init selftest(void)
824824

825825
KSTM_MODULE_LOADERS(test_printf);
826826
MODULE_AUTHOR("Rasmus Villemoes <[email protected]>");
827+
MODULE_DESCRIPTION("Test cases for printf facility");
827828
MODULE_LICENSE("GPL");

lib/test_scanf.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -810,4 +810,5 @@ static void __init selftest(void)
810810

811811
KSTM_MODULE_LOADERS(test_scanf);
812812
MODULE_AUTHOR("Richard Fitzgerald <[email protected]>");
813+
MODULE_DESCRIPTION("Test cases for sscanf facility");
813814
MODULE_LICENSE("GPL v2");

0 commit comments

Comments
 (0)