]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/proc/generic.c
[PATCH] mark struct file_operations const 6
[linux-2.6-omap-h63xx.git] / fs / proc / generic.c
index 853cb877d5f3e42b2c617f972a6292bc03912ee8..aa52f1080e626ccbfda328707cdf70d3301124ba 100644 (file)
@@ -39,7 +39,7 @@ int proc_match(int len, const char *name, struct proc_dir_entry *de)
        return !memcmp(name, de->name, len);
 }
 
-static struct file_operations proc_file_operations = {
+static const struct file_operations proc_file_operations = {
        .llseek         = proc_file_lseek,
        .read           = proc_file_read,
        .write          = proc_file_write,
@@ -497,7 +497,7 @@ out:        unlock_kernel();
  * use the in-memory "struct proc_dir_entry" tree to parse
  * the /proc directory.
  */
-static struct file_operations proc_dir_operations = {
+static const struct file_operations proc_dir_operations = {
        .read                   = generic_read_dir,
        .readdir                = proc_readdir,
 };