proc: Fix four errors in kmsg.c
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 proc: Fix four errors in kmsg.c
The following checkpatch errors are removed:
ERROR: "foo * bar" should be "foo *bar"
ERROR: "foo * bar" should be "foo *bar"
ERROR: "foo * bar" should be "foo *bar"
ERROR: "foo * bar" should be "foo *bar"
--- fs/proc/kmsg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
fs/proc/kmsg.c +2 -2
@@ -17,12 +17,12 @@#include <asm/io.h> -static int kmsg_open (struct inode * inode,struct file * file) +static int kmsg_open (struct inode *inode,struct file *file) {return do_syslog (SYSLOG_ACTION_OPEN ,NULL ,0 ,SYSLOG_FROM_PROC ); } -static int kmsg_release (struct inode * inode,struct file * file) +static int kmsg_release (struct inode *inode,struct file *file) { (void )do_syslog (SYSLOG_ACTION_CLOSE ,NULL ,0 ,SYSLOG_FROM_PROC );return 0 ;
Quoted 5 lines · On Fri 2023-07-14 14:57:59, [email protected] wrote:
The following checkpatch errors are removed:
ERROR: "foo * bar" should be "foo *bar"
ERROR: "foo * bar" should be "foo *bar"
ERROR: "foo * bar" should be "foo *bar"
ERROR: "foo * bar" should be "foo *bar"
Please, do not do fix these cosmetic issues reported by checkpatch.pl. It is not worth the effort. In fact, it is contra productive. It complicates the git history, backports.
I suggest to find an area in the kernel which might be interesting for you (any driver or subsystem, ...) and try to fix a real bug there or implement a real feature.
You might start with reading the related discussions on lkml or related mailing list, reviewing or testing patches, ...
Best Regards,
Petr
Quoted 10 lines · Petr Mladek
Quoted 5 lines · On Fri 2023-07-14 14:57:59, [email protected] wrote:
The following checkpatch errors are removed:
ERROR: "foo * bar" should be "foo *bar"
ERROR: "foo * bar" should be "foo *bar"
ERROR: "foo * bar" should be "foo *bar"
ERROR: "foo * bar" should be "foo *bar"Please, do not do fix these cosmetic issues reported by checkpatch.pl. It is not worth the effort. In fact, it is contra productive. It complicates the git history, backports.
BTW, Did anyone suggest you to fix errors/warnings reported by checkpatch.pl?
You seem to be 2nd person who sent similar patch from @suo.com within the last week. The first patch was rejected as well, see
https://lore.kernel.org/all/[email protected]/
You might want to tell this person that there are better ways how to get involved into the kernel development.
Best Regards,
Petr
Quoted 10 lines · Petr Mladek
Quoted 5 lines · On Fri 2023-07-14 14:57:59, [email protected] wrote:
The following checkpatch errors are removed:
ERROR: "foo * bar" should be "foo *bar"
ERROR: "foo * bar" should be "foo *bar"
ERROR: "foo * bar" should be "foo *bar"
ERROR: "foo * bar" should be "foo *bar"Please, do not do fix these cosmetic issues reported by checkpatch.pl. It is not worth the effort. In fact, it is contra productive. It complicates the git history, backports.
Absolutely agree with Petr.
As a side note, I wonder if checkpatch can deprecate that -f option?
Quoted 8 lines · Sergey Senozhatsky
Quoted 7 lines · Petr Mladek
Quoted 5 lines · On Fri 2023-07-14 14:57:59, [email protected] wrote:
The following checkpatch errors are removed:
ERROR: "foo * bar" should be "foo *bar"
ERROR: "foo * bar" should be "foo *bar"
ERROR: "foo * bar" should be "foo *bar"
ERROR: "foo * bar" should be "foo *bar"
Quoted 7 lines
Quoted 3 lines
Please, do not do fix these cosmetic issues reported by checkpatch.pl. It is not worth the effort. In fact, it is contra productive. It complicates the git history, backports.
Absolutely agree with Petr.
As a side note, I wonder if checkpatch can deprecate that -f option?
Either that or document in very strong language that it should only be used in very special circumstances, usually by the file owner or maintainer.
Signature · 1 line
~Randy