Skip to contentSkip to conversation

Correct syntax error

PATCH Wang Honghui 2 participants 2 messages Nov 22, 2022 Printk

lore
Share & tools
lore
#0 lore raw

printk_ringbuffer.c

From 8d1e2b96c62d06bb691802a06501762da606e97e Mon Sep 17 00:00:00 2001
From: Wang Honghui <[email protected]>
Date: Mon, 21 Nov 2022 16:58:00 +0800
Subject: [PATCH] Correct syntax error.

---
 kernel/printk/printk_ringbuffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/printk/printk_ringbuffer.c +1 -1
index 2b7b6ddab4f7..2dc4d5a1f1ff 100644
@@ -203,7 +203,7 @@
  *	prb_rec_init_wr(&r, 5);
  *
  *	// try to extend, but only if it does not exceed 32 bytes
- *	if (prb_reserve_in_last(&e, &test_rb, &r, printk_caller_id()), 32) {
+ *	if (prb_reserve_in_last(&e, &test_rb, &r, printk_caller_id(), 32)) {
  *		snprintf(&r.text_buf[r.info->text_len],
  *			 r.text_buf_size - r.info->text_len, "hello");
  *
Signature · 1 line
2.34.1
#1 lore raw
Quoted 1 line · Wang Honghui

printk_ringbuffer.c

Welcome to LKML! If you want to contribute to Linux kernel, please see Documentation/process/submitting-patches.rst.

Quoted 15 lines
Quoted 1 line

From 8d1e2b96c62d06bb691802a06501762da606e97e Mon Sep 17 00:00:00 2001

From: Wang Honghui <[email protected]>
Date: Mon, 21 Nov 2022 16:58:00 +0800
Subject: [PATCH] Correct syntax error.

---
 kernel/printk/printk_ringbuffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/printk/printk_ringbuffer.c +0 -0
index 2b7b6ddab4f7..2dc4d5a1f1ff 100644

kernel/printk/printk_ringbuffer.c line 209

Quoted 8 lines
kernel/printk/printk_ringbuffer.c +1 -1
@@ -203,7 +203,7 @@
  *	prb_rec_init_wr(&r, 5);
  *
  *	// try to extend, but only if it does not exceed 32 bytes
- *	if (prb_reserve_in_last(&e, &test_rb, &r, printk_caller_id()), 32) {
+ *	if (prb_reserve_in_last(&e, &test_rb, &r, printk_caller_id(), 32)) {
  *		snprintf(&r.text_buf[r.info->text_len],
  *			 r.text_buf_size - r.info->text_len, "hello");
  *

Your patch is attached, please send it inline using git-send-email(1) instead. Use also scripts/get_maintainer.pl to determine appropriate recipient for the patch.

Also, you need to describe about what and (especially important) why you made the patch. Write it in imperative mood ("Do foo" instead of "This patch/commit does foo").

Last but not least, build the kernel with your changes, preferably also cross-compile it.

PS: I send this reply from mutt, which treats text attachments as inline message body. Other MUAs may handle them differently.

Thanks.

Signature · 1 line
An old man doll... just what I always wanted! - Clara