|
@@ -53,7 +53,7 @@ static const struct file_operations tracefs_file_operations = {
|
|
|
static struct tracefs_dir_ops {
|
|
|
int (*mkdir)(const char *name);
|
|
|
int (*rmdir)(const char *name);
|
|
|
-} tracefs_ops;
|
|
|
+} tracefs_ops __ro_after_init;
|
|
|
|
|
|
static char *get_dname(struct dentry *dentry)
|
|
|
{
|
|
@@ -478,7 +478,8 @@ struct dentry *tracefs_create_dir(const char *name, struct dentry *parent)
|
|
|
*
|
|
|
* Returns the dentry of the instances directory.
|
|
|
*/
|
|
|
-struct dentry *tracefs_create_instance_dir(const char *name, struct dentry *parent,
|
|
|
+__init struct dentry *tracefs_create_instance_dir(const char *name,
|
|
|
+ struct dentry *parent,
|
|
|
int (*mkdir)(const char *name),
|
|
|
int (*rmdir)(const char *name))
|
|
|
{
|