Commit aa43fdfe authored by Andrew Morton's avatar Andrew Morton Committed by James Toy

ERROR: "foo * bar" should be "foo *bar"

#357: FILE: fs/proc/kcore.c:486:
+static int open_kcore(struct inode * inode, struct file *filp)

total: 1 errors, 0 warnings, 309 lines checked

./patches/kcore-use-registerd-physmem-information.patch has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.

Please run checkpatch prior to sending patches

Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent efb89699
...@@ -483,8 +483,7 @@ read_kcore(struct file *file, char __user *buffer, size_t buflen, loff_t *fpos) ...@@ -483,8 +483,7 @@ read_kcore(struct file *file, char __user *buffer, size_t buflen, loff_t *fpos)
return acc; return acc;
} }
static int open_kcore(struct inode *inode, struct file *filp)
static int open_kcore(struct inode * inode, struct file *filp)
{ {
if (!capable(CAP_SYS_RAWIO)) if (!capable(CAP_SYS_RAWIO))
return -EPERM; return -EPERM;
...@@ -493,7 +492,6 @@ static int open_kcore(struct inode * inode, struct file *filp) ...@@ -493,7 +492,6 @@ static int open_kcore(struct inode * inode, struct file *filp)
return 0; return 0;
} }
static const struct file_operations proc_kcore_operations = { static const struct file_operations proc_kcore_operations = {
.read = read_kcore, .read = read_kcore,
.open = open_kcore, .open = open_kcore,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment