orangefs: Constify struct kobj_type

-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEEIGSFVdO6eop9nER2z0QOqevODb4FAmbfErgACgkQz0QOqevO
 Db5qaA//ZxJKZvw6K8HfEiP/0+7osKEPcMYTRpS52XwlRlka6VOK0bzr826uIlhq
 r3aG9Pdycnk/zSDLLhZdMAjLqGv9o96v2+JI+aZnKZwNZbs5OhAlpSLyoTzaI0gL
 ktT22x/NoAbplFQeP46EByevoy53B0fg3hQZp5tACK+Tb96d/hdHikUKTZL2fXSu
 KDXUHk/Y0IjtUqI8JqI7/qgGyD3zRRreoIsPDL9yXBRVRn6VKPXAKQ13tr4GvYqC
 9rdo/3DVTcxREFQ26omq6CkPBzHKxH9CaowRmbmb6jY52KeonLi575bJzoFpKJoy
 O2rA2sO4odXcOHGv7MnJh6CP9/cSAoRwMLbi9ZVixaFky+Nos+Q2NFeT5oVu95cc
 I8Cw+b/MG2dxQvbs4BFpAafn8O9vTFzfxDGxXm5za7EE5Jju8gVjD/Q8pelBh9NY
 yly3OXSDbbLwgcIM0wriviMF1/QQybdoVNlNO+h9ayF0Xpc14LuuIWp2vlbgjH79
 BVxnxH8kbzPQVbPIpwjb7hrXaDNPZAyyMxF79pEKMgT9JbH6pC9PU4if/Seox2vG
 esJTVbR+VN24CkXi7EyqpPHXNkSSbzHGJnOChVUJblSWQiiVSTHL9WhDrEeNMKpI
 I7ZAEee8JW6ocvVqXyq87+MO5zMmZ3YqI+hxuJNg9ntzoVsMeZU=
 =5JwL
 -----END PGP SIGNATURE-----

Merge tag 'for-linux-6.12-ofs1' of git://git.kernel.org/pub/scm/linux/kernel/git/hubcap/linux

Pull orangefs update from Mike Marshall:
 "Constify struct kobj_type"

* tag 'for-linux-6.12-ofs1' of git://git.kernel.org/pub/scm/linux/kernel/git/hubcap/linux:
  orangefs: Constify struct kobj_type
This commit is contained in:
Linus Torvalds 2024-09-20 19:34:00 -07:00
commit 1868f9d026

View File

@ -904,7 +904,7 @@ static void orangefs_obj_release(struct kobject *kobj)
orangefs_obj = NULL;
}
static struct kobj_type orangefs_ktype = {
static const struct kobj_type orangefs_ktype = {
.sysfs_ops = &orangefs_sysfs_ops,
.default_groups = orangefs_default_groups,
.release = orangefs_obj_release,
@ -951,7 +951,7 @@ static void acache_orangefs_obj_release(struct kobject *kobj)
acache_orangefs_obj = NULL;
}
static struct kobj_type acache_orangefs_ktype = {
static const struct kobj_type acache_orangefs_ktype = {
.sysfs_ops = &orangefs_sysfs_ops,
.default_groups = acache_orangefs_default_groups,
.release = acache_orangefs_obj_release,
@ -998,7 +998,7 @@ static void capcache_orangefs_obj_release(struct kobject *kobj)
capcache_orangefs_obj = NULL;
}
static struct kobj_type capcache_orangefs_ktype = {
static const struct kobj_type capcache_orangefs_ktype = {
.sysfs_ops = &orangefs_sysfs_ops,
.default_groups = capcache_orangefs_default_groups,
.release = capcache_orangefs_obj_release,
@ -1045,7 +1045,7 @@ static void ccache_orangefs_obj_release(struct kobject *kobj)
ccache_orangefs_obj = NULL;
}
static struct kobj_type ccache_orangefs_ktype = {
static const struct kobj_type ccache_orangefs_ktype = {
.sysfs_ops = &orangefs_sysfs_ops,
.default_groups = ccache_orangefs_default_groups,
.release = ccache_orangefs_obj_release,
@ -1092,7 +1092,7 @@ static void ncache_orangefs_obj_release(struct kobject *kobj)
ncache_orangefs_obj = NULL;
}
static struct kobj_type ncache_orangefs_ktype = {
static const struct kobj_type ncache_orangefs_ktype = {
.sysfs_ops = &orangefs_sysfs_ops,
.default_groups = ncache_orangefs_default_groups,
.release = ncache_orangefs_obj_release,
@ -1132,7 +1132,7 @@ static void pc_orangefs_obj_release(struct kobject *kobj)
pc_orangefs_obj = NULL;
}
static struct kobj_type pc_orangefs_ktype = {
static const struct kobj_type pc_orangefs_ktype = {
.sysfs_ops = &orangefs_sysfs_ops,
.default_groups = pc_orangefs_default_groups,
.release = pc_orangefs_obj_release,
@ -1165,7 +1165,7 @@ static void stats_orangefs_obj_release(struct kobject *kobj)
stats_orangefs_obj = NULL;
}
static struct kobj_type stats_orangefs_ktype = {
static const struct kobj_type stats_orangefs_ktype = {
.sysfs_ops = &orangefs_sysfs_ops,
.default_groups = stats_orangefs_default_groups,
.release = stats_orangefs_obj_release,