Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751395AbbHBLD7 (ORCPT ); Sun, 2 Aug 2015 07:03:59 -0400 Received: from mail-pd0-f175.google.com ([209.85.192.175]:35782 "EHLO mail-pd0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751031AbbHBLD5 (ORCPT ); Sun, 2 Aug 2015 07:03:57 -0400 From: Shraddha Barke To: Oleg Drokin , Andreas Dilger , Al Viro , Julia Lawall , Greg Kroah-Hartman , Frank Zago , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Cc: Shraddha Barke Subject: [PATCH] Staging : lustre: Struct file_operations should be const Date: Sun, 2 Aug 2015 16:32:46 +0530 Message-Id: <1438513366-23462-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: 1112 Lines: 30 This patch fixes the following checkpatch.pl warning: WARNING: struct file_operations should normally be const 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 dcd0c6d..369a722 100644 --- a/drivers/staging/lustre/lustre/llite/file.c +++ b/drivers/staging/lustre/lustre/llite/file.c @@ -3116,7 +3116,7 @@ int ll_inode_permission(struct inode *inode, int mask) } /* -o localflock - only provides locally consistent flock locks */ -struct file_operations ll_file_operations = { +const struct file_operations ll_file_operations = { .read_iter = ll_file_read_iter, .write_iter = ll_file_write_iter, .unlocked_ioctl = ll_file_ioctl, -- 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/