Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1198568
| From | Shraddha Barke <shraddha.6596@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | (none) |
| Date | 2015-08-03 08:20 +0200 |
| Message-ID | <pThgl-2NH-3@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
From b67c6c20455b04b77447ab4561e44f1a75dd978d Mon Sep 17 00:00:00 2001
From: Shraddha Barke <shraddha.6596@gmail.com>
Date: Mon, 3 Aug 2015 11:34:19 +0530
Subject: [PATCH] Staging : lustre : Use -EINVAL instead of -ENOSYS
ENOSYS means that a nonexistent system call was called. This should
not be used for invalid operations on otherwise valid syscalls.
Use -EINVAL instead of -ENOSYS. This fixes checkpatch warning message:
WARNING: ENOSYS means 'invalid syscall nr' and nothing else
Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
---
drivers/staging/lustre/lustre/llite/file.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/lustre/lustre/llite/file.c b/drivers/staging/lustre/lustre/llite/file.c
index 2c467bf..93619a8 100644
--- a/drivers/staging/lustre/lustre/llite/file.c
+++ b/drivers/staging/lustre/lustre/llite/file.c
@@ -2786,7 +2786,7 @@ ll_file_flock(struct file *file, int cmd, struct file_lock *file_lock)
static int
ll_file_noflock(struct file *file, int cmd, struct file_lock *file_lock)
{
- return -ENOSYS;
+ return -EINVAL;
}
/**
--
2.1.0
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
(none) Shraddha Barke <shraddha.6596@gmail.com> - 2015-08-03 08:20 +0200
Re: about ENOSYS "Drokin, Oleg" <oleg.drokin@intel.com> - 2015-08-03 08:50 +0200
Re: about ENOSYS Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2015-08-03 18:30 +0200
Re: your mail Sudip Mukherjee <sudipm.mukherjee@gmail.com> - 2015-08-03 09:20 +0200
Re: your mail Dan Carpenter <dan.carpenter@oracle.com> - 2015-08-03 09:30 +0200
csiph-web