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


Groups > linux.kernel > #1238939 > unrolled thread

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

Started byAnjali Menon <cse.anjalimenon@gmail.com>
First post2015-10-03 17:50 +0200
Last post2015-10-05 08:00 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [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

#1238939 — [PATCH] staging: lustre: lustre: llite: Added const

FromAnjali Menon <cse.anjalimenon@gmail.com>
Date2015-10-03 17:50 +0200
Subject[PATCH] staging: lustre: lustre: llite: Added const
Message-ID<qfxep-678-17@gated-at.bofh.it>
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/

[toc] | [next] | [standalone]


#1239283

FromSudip Mukherjee <sudipm.mukherjee@gmail.com>
Date2015-10-05 08:00 +0200
Message-ID<qg6Yy-6Nv-1@gated-at.bofh.it>
In reply to#1238939
On Sat, Oct 03, 2015 at 09:13:36PM +0530, Anjali Menon wrote:
> 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>
> ---
Again same problem. This has already been done. I think you are using
some other tree.

regards
sudip
--
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/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web