Skip to contentSkip to conversation

printk: fix kernel-doc name for nbcon_write_context_is_braille

PATCH Superseded Muhammad Mahdi Amirpour 3 participants 5 messages Oct 6 – Oct 14 Printk

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 printk: fix kernel-doc name for nbcon_write_context_is_braille

---
 kernel/printk/nbcon.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/printk/nbcon.c +1 -1
index fb1b37741..6f9735f4b 100644
@@ -2005,7 +2005,7 @@ void nbcon_kdb_release(struct nbcon_write_context *wctxt)
 }
 
 /**
- * nbcon_is_braille - Checks whether the nbcon write context is using Braille console
+ * nbcon_write_context_is_braille - Checks whether the nbcon write context is using Braille console
  *
  * @wctxt:	checked nbcon write context
  *
Signature · 1 line
2.55.0
maintainer
#1 lore raw
Quoted 1 line · Muhammad Mahdi Amirpour

Do we allow empty commit messages? The patch title says it all, so I guess it is ok.

Now that Linus has pulled the Braille fix, please add:

Fixes c83e3d291243 ("braille: nbcon: Allow to use a serial console with NBCON API as Braille console")
Quoted 1 line

...

kernel/printk/nbcon.c void nbcon_kdb_release(struct nbcon_write_context *wctxt) · line 2008

Quoted 10 lines
kernel/printk/nbcon.c +1 -1
index fb1b37741..6f9735f4b 100644
@@ -2005,7 +2005,7 @@ void nbcon_kdb_release(struct nbcon_write_context *wctxt)
 }
 
 /**
- * nbcon_is_braille - Checks whether the nbcon write context is using Braille console
+ * nbcon_write_context_is_braille - Checks whether the nbcon write context is using Braille console

Please wrap the comment to 80 columns. You can see nbcon_device_try_acquire() for an example of a wrapping short kerneldoc description.

John Ogness

#2 lore raw

PATCH v2 1/1 printk: fix kernel-doc name for nbcon_write_context_is_braille

In reply to Muhammad Mahdi Amirpour

Use the function name in the kerneldoc description.

Fixes c83e3d291243 ("braille: nbcon: Allow to use a serial console with NBCON API as Braille console")
---
 kernel/printk/nbcon.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
kernel/printk/nbcon.c +2 -1
index fb1b37741..5f8afaca8 100644
@@ -2005,7 +2005,8 @@ void nbcon_kdb_release(struct nbcon_write_context *wctxt)
 }
 
 /**
- * nbcon_is_braille - Checks whether the nbcon write context is using Braille console
+ * nbcon_write_context_is_braille - Checks whether the nbcon write context
+ *                                  is using Braille console
  *
  * @wctxt:	checked nbcon write context
  *
Signature · 1 line
2.55.0
maintainer Reviewed-by on v2 1/1
#3 lore raw
Quoted 13 lines · Muhammad Mahdi Amirpour

Use the function name in the kerneldoc description.

Fixes c83e3d291243 ("braille: nbcon: Allow to use a serial console with NBCON API as Braille console")
---
 kernel/printk/nbcon.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
kernel/printk/nbcon.c +0 -0
index fb1b37741..5f8afaca8 100644

kernel/printk/nbcon.c void nbcon_kdb_release(struct nbcon_write_context *wctxt) · line 2009

Quoted 6 lines
kernel/printk/nbcon.c +2 -1
@@ -2005,7 +2005,8 @@ void nbcon_kdb_release(struct nbcon_write_context *wctxt)
 }
 
 /**
- * nbcon_is_braille - Checks whether the nbcon write context is using Braille console
+ * nbcon_write_context_is_braille - Checks whether the nbcon write context
+ *                                  is using Braille console

Generally we use tabs instead of spaces, but perhaps Petr can fix it up on commit or maybe he does not care. Either way:

maintainer
#4 lore raw
In reply to Muhammad Mahdi Amirpour
Quoted 4 lines · Muhammad Mahdi Amirpour

Use the function name in the kerneldoc description.

Fixes c83e3d291243 ("braille: nbcon: Allow to use a serial console with NBCON API as Braille console")

Thanks for the fix.

JFYI, the patch has been committed into printk/linux.git, branch for-7.3-hotfix.

Note that for-7.3-hotfix is the branch where the original code was committed. Obviously, this fix is not a hotfix on its own ;-)

It might actually still end up in 7.3 because there is another urgent fix in this branch. Alternatively, it will end up in 7.4-rc1 if there are some problems with the other fix.

Best Regards,
Petr