Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
filesystems
lustre_2_12
0048-LU-16291-build-make-kobj_type-constant.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0048-LU-16291-build-make-kobj_type-constant.patch of Package lustre_2_12
From d1dbf26afd6676e02a2a00e635b9ad1fe14cf68e Mon Sep 17 00:00:00 2001 From: Jian Yu <yujian@whamcloud.com> Date: Fri, 2 Dec 2022 11:27:43 -0800 Subject: [PATCH] LU-16291 build: make kobj_type constant Kernel v5.16-rc2-28-gee6d3dd4ed48: commit ee6d3dd4ed48ab24b74bab3c3977b8218518247d driver core: make kobj_type constant. This patch makes struct kobj_type constant to fix the following build failure against kernel 5.16: lustre/obdclass/obd_config.c: In function 'class_modify_config': lustre/obdclass/obd_config.c:1639:13: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 1639 | typ = get_ktype(kobj); | ^ Signed-off-by: Jian Yu <yujian@whamcloud.com> Change-Id: I19e0d1f4e3cf97f6871e038487cda9294ac1f67b Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49043 Tested-by: jenkins <devops@whamcloud.com> Tested-by: Maloo <maloo@whamcloud.com> Reviewed-by: Oleg Drokin <green@whamcloud.com> Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com> Reviewed-by: Andreas Dilger <adilger@whamcloud.com> --- lustre/obdclass/obd_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/lustre/obdclass/obd_config.c +++ b/lustre/obdclass/obd_config.c @@ -1358,7 +1358,7 @@ EXPORT_SYMBOL(class_process_config); ssize_t class_modify_config(struct lustre_cfg *lcfg, const char *prefix, struct kobject *kobj) { - struct kobj_type *typ; + const struct kobj_type *typ; ssize_t count = 0; int i;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor