From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758067AbcB1Orq (ORCPT ); Sun, 28 Feb 2016 09:47:46 -0500 Received: from aibo.runbox.com ([91.220.196.211]:45490 "EHLO aibo.runbox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757864AbcB1Oro (ORCPT ); Sun, 28 Feb 2016 09:47:44 -0500 From: "M. Vefa Bicakci" To: linux-kernel@vger.kernel.org Cc: Oleg Drokin , Andreas Dilger , Greg Kroah-Hartman , "M. Vefa Bicakci" Subject: [PATCH 1/2] staging: lustre: Use const static file_operations struct Date: Sun, 28 Feb 2016 09:26:21 -0500 Message-Id: <1456669582-16318-2-git-send-email-m.v.b@runbox.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1456669582-16318-1-git-send-email-m.v.b@runbox.com> References: <1456669582-16318-1-git-send-email-m.v.b@runbox.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This commit corrects the following sparse warning regarding a file_operations structure being non-static and constifies the structure in question as well. warning: symbol 'lprocfs_stats_seq_fops' was not declared. Should it be static? Signed-off-by: M. Vefa Bicakci --- drivers/staging/lustre/lustre/obdclass/lprocfs_status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lustre/obdclass/lprocfs_status.c b/drivers/staging/lustre/lustre/obdclass/lprocfs_status.c index 28bb4e53adaa..1c39e90979df 100644 --- a/drivers/staging/lustre/lustre/obdclass/lprocfs_status.c +++ b/drivers/staging/lustre/lustre/obdclass/lprocfs_status.c @@ -1196,7 +1196,7 @@ static int lprocfs_stats_seq_open(struct inode *inode, struct file *file) return 0; } -struct file_operations lprocfs_stats_seq_fops = { +static const struct file_operations lprocfs_stats_seq_fops = { .owner = THIS_MODULE, .open = lprocfs_stats_seq_open, .read = seq_read, -- 2.5.0