Loading fs/sysfs/file.c +6 −4 Original line number Diff line number Diff line Loading @@ -336,8 +336,9 @@ static int sysfs_open_file(struct inode *inode, struct file *file) if (kobj->ktype && kobj->ktype->sysfs_ops) ops = kobj->ktype->sysfs_ops; else { WARN(1, KERN_ERR "missing sysfs attribute operations for " "kobject: %s\n", kobject_name(kobj)); WARN(1, KERN_ERR "missing sysfs attribute operations for kobject: %s\n", kobject_name(kobj)); goto err_out; } Loading Loading @@ -515,8 +516,9 @@ static int sysfs_attr_ns(struct kobject *kobj, const struct attribute *attr, ns = ops->namespace(kobj, attr); out: if (err) { WARN(1, KERN_ERR "missing sysfs namespace attribute operation for " "kobject: %s\n", kobject_name(kobj)); WARN(1, KERN_ERR "missing sysfs namespace attribute operation for kobject: %s\n", kobject_name(kobj)); } *pns = ns; return err; Loading Loading
fs/sysfs/file.c +6 −4 Original line number Diff line number Diff line Loading @@ -336,8 +336,9 @@ static int sysfs_open_file(struct inode *inode, struct file *file) if (kobj->ktype && kobj->ktype->sysfs_ops) ops = kobj->ktype->sysfs_ops; else { WARN(1, KERN_ERR "missing sysfs attribute operations for " "kobject: %s\n", kobject_name(kobj)); WARN(1, KERN_ERR "missing sysfs attribute operations for kobject: %s\n", kobject_name(kobj)); goto err_out; } Loading Loading @@ -515,8 +516,9 @@ static int sysfs_attr_ns(struct kobject *kobj, const struct attribute *attr, ns = ops->namespace(kobj, attr); out: if (err) { WARN(1, KERN_ERR "missing sysfs namespace attribute operation for " "kobject: %s\n", kobject_name(kobj)); WARN(1, KERN_ERR "missing sysfs namespace attribute operation for kobject: %s\n", kobject_name(kobj)); } *pns = ns; return err; Loading