From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752565AbbIPMcb (ORCPT ); Wed, 16 Sep 2015 08:32:31 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:36463 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752175AbbIPMca (ORCPT ); Wed, 16 Sep 2015 08:32:30 -0400 From: Sakshi Vaid To: oleg.drokin@intel.com Cc: andreas.dilger@intel.com, gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Sakshi Vaid Subject: [PATCH] Staging: lustre: lustre: mdc: lproc_mdc.c: declared file_operations struct as const Date: Wed, 16 Sep 2015 18:01:01 +0530 Message-Id: <1442406661-3924-1-git-send-email-sakshivaid95@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Declared the file_operations structure as const as done elsewhere in the kernel, as there are no modifiactions to this field. Following warning found by checkpatch WARNING: struct file_operations should normally be const Signed-off-by: Sakshi Vaid --- drivers/staging/lustre/lustre/mdc/lproc_mdc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lustre/mdc/lproc_mdc.c b/drivers/staging/lustre/lustre/mdc/lproc_mdc.c index c791941..c62c0ac 100644 --- a/drivers/staging/lustre/lustre/mdc/lproc_mdc.c +++ b/drivers/staging/lustre/lustre/mdc/lproc_mdc.c @@ -146,7 +146,7 @@ static ssize_t mdc_kuc_write(struct file *file, return count; } -struct file_operations mdc_kuc_fops = { +const struct file_operations mdc_kuc_fops = { .open = mdc_kuc_open, .write = mdc_kuc_write, .release = single_release, -- 1.9.1