Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752781AbbHCGTR (ORCPT ); Mon, 3 Aug 2015 02:19:17 -0400 Received: from mail-pd0-f180.google.com ([209.85.192.180]:34632 "EHLO mail-pd0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751957AbbHCGTQ (ORCPT ); Mon, 3 Aug 2015 02:19:16 -0400 From: Shraddha Barke To: Oleg Drokin , Al Viro , Julia Lawall , aybuke ozdemir , Andreas Dilger , "John L. Hammond" , Frank Zago , Greg Kroah-Hartman , HPDD-discuss@ml01.01.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Cc: Shraddha Barke Subject: Date: Mon, 3 Aug 2015 11:48:59 +0530 Message-Id: <1438582739-2626-1-git-send-email-shraddha.6596@gmail.com> X-Mailer: git-send-email 2.1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1362 Lines: 38 >From b67c6c20455b04b77447ab4561e44f1a75dd978d Mon Sep 17 00:00:00 2001 From: Shraddha Barke 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 --- 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/