]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/ksysfs.c
scsi_debug: support sg chaining
[linux-2.6-omap-h63xx.git] / kernel / ksysfs.c
index d0e5c48e18c78c3fe1fea8a2d87d26fe4973ca2c..6046939d08047fc1f68db06b5366eada62c133d1 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/kexec.h>
+#include <linux/sched.h>
 
 #define KERNEL_ATTR_RO(_name) \
 static struct subsys_attribute _name##_attr = __ATTR_RO(_name)
@@ -116,6 +117,13 @@ static int __init ksysfs_init(void)
                                              &notes_attr);
        }
 
+       /*
+        * Create "/sys/kernel/uids" directory and corresponding root user's
+        * directory under it.
+        */
+       if (!error)
+               error = uids_kobject_init();
+
        return error;
 }