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


Groups > linux.kernel > #1698780 > unrolled thread

[PATCH] dlm: constify kset_uevent_ops structure

Started byBhumika Goyal <bhumirks@gmail.com>
First post2017-07-28 15:20 +0200
Last post2017-07-28 15:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] dlm: constify kset_uevent_ops structure Bhumika Goyal <bhumirks@gmail.com> - 2017-07-28 15:20 +0200

#1698780 — [PATCH] dlm: constify kset_uevent_ops structure

FromBhumika Goyal <bhumirks@gmail.com>
Date2017-07-28 15:20 +0200
Subject[PATCH] dlm: constify kset_uevent_ops structure
Message-ID<u8dlo-4dP-31@gated-at.bofh.it>
Declare kset_uevent_ops structure as const as it is only passed as an
argument to the function kset_create_and_add. This argument is of type
const, so declare the structure as const.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 fs/dlm/lockspace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/dlm/lockspace.c b/fs/dlm/lockspace.c
index 9ebfa05..78a7c85 100644
--- a/fs/dlm/lockspace.c
+++ b/fs/dlm/lockspace.c
@@ -235,7 +235,7 @@ static int dlm_uevent(struct kset *kset, struct kobject *kobj,
 	return 0;
 }
 
-static struct kset_uevent_ops dlm_uevent_ops = {
+static const struct kset_uevent_ops dlm_uevent_ops = {
 	.uevent = dlm_uevent,
 };
 
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web