Skip to contentSkip to conversation

Fixes styleguide related issues in tty drivers

PATCH Greg KH 1 participant 2 messages Feb 7, 2022 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): YgE3wNira6AmpHab@ankit-vm

Greg KH

author
#1 lore raw
Quoted 47 lines · Ankit Kumar Pandey

Various styleguide warnings are raised in drivers/tty. This patch aims to fix those and bring styleguide warning to zero.

---
 drivers/tty/ehv_bytechan.c | 5 +++--
 drivers/tty/goldfish.c     | 2 ++
 2 files changed, 5 insertions(+), 2 deletions(-)
drivers/tty/ehv_bytechan.c +3 -2
index 19d32cb6a..c41c4c07b 100644
@@ -324,8 +324,9 @@ static int __init ehv_bc_console_init(void)
 #endif
 
 	/* add_preferred_console() must be called before register_console(),
-	   otherwise it won't work.  However, we don't want to enumerate all the
-	   byte channels here, either, since we only care about one. */
+	 * otherwise it won't work.  However, we don't want to enumerate all the
+	 * byte channels here, either, since we only care about one.
+	 */
 
 	add_preferred_console(ehv_bc_console.name, ehv_bc_console.index, NULL);
 	register_console(&ehv_bc_console);
drivers/tty/goldfish.c +2 -0
index 5ed19a985..61ccbf670 100644
@@ -173,6 +173,7 @@ static void goldfish_tty_shutdown(struct tty_port *port)
 static int goldfish_tty_open(struct tty_struct *tty, struct file *filp)
 {
 	struct goldfish_tty *qtty = &goldfish_ttys[tty->index];
+
 	return tty_port_open(&qtty->port, tty, filp);
 }
 
@@ -202,6 +203,7 @@ static unsigned int goldfish_tty_chars_in_buffer(struct tty_struct *tty)
 {
 	struct goldfish_tty *qtty = &goldfish_ttys[tty->index];
 	void __iomem *base = qtty->base;
+
 	return __raw_readl(base + GOLDFISH_TTY_REG_BYTES_READY);
 }
 
Signature · 1 line
2.32.0

Hi,

This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree.

You are receiving this message because of the following common error(s) as indicated below:

- Your patch does not have a Signed-off-by: line in the correct location.. Please read the kernel file, Documentation/SubmittingPatches and resend it after adding that line. Note, the line needs to be in the body of the email, before the patch, not at the bottom of the patch or in the email signature.

- Your patch did many different things all at once, making it difficult to review. All Linux kernel patches need to only do one thing at a time. If you need to do multiple things (such as clean up all coding style issues in a file/driver), do it in a sequence of patches, each one doing only one thing. This will make it easier to review the patches to ensure that they are correct, and to help alleviate any merge issues that larger patches can cause.

- You did not specify a description of why the patch is needed, or possibly, any description at all, in the email body. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/SubmittingPatches for what is needed in order to properly describe the change.

- You did not write a descriptive Subject: for the patch, allowing Greg, and everyone else, to know what this patch is all about. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/SubmittingPatches for what a proper Subject: line should look like.

- This looks like a new version of a previously submitted patch, but you did not list below the --- line any changes from the previous version. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/SubmittingPatches for what needs to be done here to properly describe this.

If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers.

thanks,

greg k-h's patch email bot

author
#2 lore raw
In reply to a message not in the archive
Quoted 7 lines · Ankit Kumar Pandey

Various styleguide warnings are raised in drivers/tty. This patch aims to fix those and bring styleguide warning to zero.

---
 drivers/tty/ehv_bytechan.c | 5 +++--
 drivers/tty/goldfish.c     | 2 ++
 2 files changed, 5 insertions(+), 2 deletions(-)

Please practice on stuff like this in the drivers/staging/ portion of the kernel, as that is what it is there for, and you do not disrupt the workflows of the other kernel developers by touching files like this in in correct ways.

good luck!

greg k-h