* [hare-scsi-devel:blk-namespace.v2 4/6] lib/kobject.c:125:4: error: implicit declaration of function 'kernfs_enable_init_ns_propagates'
@ 2021-06-10 13:55 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-06-10 13:55 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3007 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git blk-namespace.v2
head: 292c56144bc8965fbf622e63bda66cc40deeac87
commit: 147e14e30cde27157d6794c149aa0eb10f578ff1 [4/6] kernfs: propagate devices from initial namespace
config: i386-tinyconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git/commit/?id=147e14e30cde27157d6794c149aa0eb10f578ff1
git remote add hare-scsi-devel https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git
git fetch --no-tags hare-scsi-devel blk-namespace.v2
git checkout 147e14e30cde27157d6794c149aa0eb10f578ff1
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
lib/kobject.c: In function 'create_dir':
>> lib/kobject.c:125:4: error: implicit declaration of function 'kernfs_enable_init_ns_propagates' [-Werror=implicit-function-declaration]
125 | kernfs_enable_init_ns_propagates(kobj->sd);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/kernfs_enable_init_ns_propagates +125 lib/kobject.c
82
83 static int create_dir(struct kobject *kobj)
84 {
85 const struct kobj_type *ktype = get_ktype(kobj);
86 const struct kobj_ns_type_operations *ops;
87 int error;
88
89 error = sysfs_create_dir_ns(kobj, kobject_namespace(kobj));
90 if (error)
91 return error;
92
93 error = populate_dir(kobj);
94 if (error) {
95 sysfs_remove_dir(kobj);
96 return error;
97 }
98
99 if (ktype) {
100 error = sysfs_create_groups(kobj, ktype->default_groups);
101 if (error) {
102 sysfs_remove_dir(kobj);
103 return error;
104 }
105 }
106
107 /*
108 * @kobj->sd may be deleted by an ancestor going away. Hold an
109 * extra reference so that it stays until @kobj is gone.
110 */
111 sysfs_get(kobj->sd);
112
113 /*
114 * If @kobj has ns_ops, its children need to be filtered based on
115 * their namespace tags. Enable namespace support on @kobj->sd.
116 */
117 ops = kobj_child_ns_ops(kobj);
118 if (ops) {
119 BUG_ON(ops->type <= KOBJ_NS_TYPE_NONE);
120 BUG_ON(ops->type >= KOBJ_NS_TYPES);
121 BUG_ON(!kobj_ns_type_registered(ops->type));
122
123 sysfs_enable_ns(kobj->sd, ops->type);
124 if (ops->initial_ns_propagates && ops->initial_ns_propagates())
> 125 kernfs_enable_init_ns_propagates(kobj->sd);
126 }
127
128 return 0;
129 }
130
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 7413 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-10 13:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-10 13:55 [hare-scsi-devel:blk-namespace.v2 4/6] lib/kobject.c:125:4: error: implicit declaration of function 'kernfs_enable_init_ns_propagates' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.