]> Git Repo - linux.git/blobdiff - kernel/configs.c
Merge tag 'block-5.11-2021-01-24' of git://git.kernel.dk/linux-block
[linux.git] / kernel / configs.c
index c09ea4c995e104b2ed0dd62b5ab010d4b255dc91..a28c79c5f713a2f8b70b18beca1827a75c96b8f2 100644 (file)
@@ -47,10 +47,9 @@ ikconfig_read_current(struct file *file, char __user *buf,
                                       &kernel_config_data);
 }
 
-static const struct file_operations ikconfig_file_ops = {
-       .owner = THIS_MODULE,
-       .read = ikconfig_read_current,
-       .llseek = default_llseek,
+static const struct proc_ops config_gz_proc_ops = {
+       .proc_read      = ikconfig_read_current,
+       .proc_lseek     = default_llseek,
 };
 
 static int __init ikconfig_init(void)
@@ -59,7 +58,7 @@ static int __init ikconfig_init(void)
 
        /* create the current config file */
        entry = proc_create("config.gz", S_IFREG | S_IRUGO, NULL,
-                           &ikconfig_file_ops);
+                           &config_gz_proc_ops);
        if (!entry)
                return -ENOMEM;
 
This page took 0.033375 seconds and 4 git commands to generate.