Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1238939

[PATCH] staging: lustre: lustre: llite: Added const

Path csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod
From Anjali Menon <cse.anjalimenon@gmail.com>
Newsgroups linux.kernel
Subject [PATCH] staging: lustre: lustre: llite: Added const
Date Sat, 03 Oct 2015 17:50:01 +0200
Message-ID <qfxep-678-17@gated-at.bofh.it> (permalink)
X-Original-To oleg.drokin@intel.com
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=fwWLwnhNlSZzY7zHCvvFJvFSGO0Xo3V/RirCOjAXVEQ=; b=XmIpP85Br+x/nTt8M1dtXdzw/Jc0ImalQMbKQkytm7v8gMw5fS0+Y+ztOUzhVSuq9A WiBOiRoRzov6xhy2Z5rCIR0HK1gCOsrTSL9l/g0z4wII7ed2cX6Zens72iz3AMLS9vIG EudTyEyvTCcU4SWWcr13aCdeutiNsiTX6womBoPwQXO4LJWsxiW+YBpYN/3Gt/dr3PIE t2Fp1fR5GzJbdJZPrdO7RDcZ9XjpOsbKEAswV1LMJRrASnCNRc/lJI43K0CmhDBK6rfR 35+n/vpR1Zj7c/Z8TNE01XKxCblVG7OpmeDWXnST8Tyslm+Zg2JRREZhKZkftHs5k344 2Mpw==
X-Received by 10.66.190.41 with SMTP id gn9mr27497469pac.0.1443887079020; Sat, 03 Oct 2015 08:44:39 -0700 (PDT)
X-Mailer git-send-email 1.9.1
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 31
Organization linux.* mail to news gateway
X-Original-Cc gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, HPDD-discuss@lists.01.org, Anjali Menon <cse.anjalimenon@gmail.com>
X-Original-Date Sat, 3 Oct 2015 21:13:36 +0530
X-Original-Message-ID <1443887016-9142-1-git-send-email-cse.anjalimenon@gmail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1238939

Show key headers only | View raw


Added const to the struct statement which fixed the coding
style warning detected by chekpatch.pl

WARNING: struct seq_operations should normally be const

Signed-off-by: Anjali Menon <cse.anjalimenon@gmail.com>
---
 drivers/staging/lustre/lustre/llite/vvp_dev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/lustre/lustre/llite/vvp_dev.c b/drivers/staging/lustre/lustre/llite/vvp_dev.c
index fde41d7..742be5a 100644
--- a/drivers/staging/lustre/lustre/llite/vvp_dev.c
+++ b/drivers/staging/lustre/lustre/llite/vvp_dev.c
@@ -517,7 +517,7 @@ static void vvp_pgcache_stop(struct seq_file *f, void *v)
 	/* Nothing to do */
 }
 
-static struct seq_operations vvp_pgcache_ops = {
+static const struct seq_operations vvp_pgcache_ops = {
 	.start = vvp_pgcache_start,
 	.next  = vvp_pgcache_next,
 	.stop  = vvp_pgcache_stop,
-- 
1.9.1

--
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


Thread

[PATCH] staging: lustre: lustre: llite: Added const Anjali Menon <cse.anjalimenon@gmail.com> - 2015-10-03 17:50 +0200
  Re: [PATCH] staging: lustre: lustre: llite: Added const Sudip Mukherjee <sudipm.mukherjee@gmail.com> - 2015-10-05 08:00 +0200

csiph-web