|
@@ -93,7 +93,7 @@ static int rcudata_open(struct inode *inode, struct file *file)
|
|
return single_open(file, show_rcudata, NULL);
|
|
return single_open(file, show_rcudata, NULL);
|
|
}
|
|
}
|
|
|
|
|
|
-static struct file_operations rcudata_fops = {
|
|
|
|
|
|
+static const struct file_operations rcudata_fops = {
|
|
.owner = THIS_MODULE,
|
|
.owner = THIS_MODULE,
|
|
.open = rcudata_open,
|
|
.open = rcudata_open,
|
|
.read = seq_read,
|
|
.read = seq_read,
|
|
@@ -145,7 +145,7 @@ static int rcudata_csv_open(struct inode *inode, struct file *file)
|
|
return single_open(file, show_rcudata_csv, NULL);
|
|
return single_open(file, show_rcudata_csv, NULL);
|
|
}
|
|
}
|
|
|
|
|
|
-static struct file_operations rcudata_csv_fops = {
|
|
|
|
|
|
+static const struct file_operations rcudata_csv_fops = {
|
|
.owner = THIS_MODULE,
|
|
.owner = THIS_MODULE,
|
|
.open = rcudata_csv_open,
|
|
.open = rcudata_csv_open,
|
|
.read = seq_read,
|
|
.read = seq_read,
|
|
@@ -159,7 +159,7 @@ static void print_one_rcu_state(struct seq_file *m, struct rcu_state *rsp)
|
|
struct rcu_node *rnp;
|
|
struct rcu_node *rnp;
|
|
|
|
|
|
seq_printf(m, "c=%ld g=%ld s=%d jfq=%ld j=%x "
|
|
seq_printf(m, "c=%ld g=%ld s=%d jfq=%ld j=%x "
|
|
- "nfqs=%lu/nfqsng=%lu(%lu) fqlh=%lu\n",
|
|
|
|
|
|
+ "nfqs=%lu/nfqsng=%lu(%lu) fqlh=%lu\n",
|
|
rsp->completed, rsp->gpnum, rsp->signaled,
|
|
rsp->completed, rsp->gpnum, rsp->signaled,
|
|
(long)(rsp->jiffies_force_qs - jiffies),
|
|
(long)(rsp->jiffies_force_qs - jiffies),
|
|
(int)(jiffies & 0xffff),
|
|
(int)(jiffies & 0xffff),
|
|
@@ -196,7 +196,7 @@ static int rcuhier_open(struct inode *inode, struct file *file)
|
|
return single_open(file, show_rcuhier, NULL);
|
|
return single_open(file, show_rcuhier, NULL);
|
|
}
|
|
}
|
|
|
|
|
|
-static struct file_operations rcuhier_fops = {
|
|
|
|
|
|
+static const struct file_operations rcuhier_fops = {
|
|
.owner = THIS_MODULE,
|
|
.owner = THIS_MODULE,
|
|
.open = rcuhier_open,
|
|
.open = rcuhier_open,
|
|
.read = seq_read,
|
|
.read = seq_read,
|
|
@@ -222,7 +222,7 @@ static int rcugp_open(struct inode *inode, struct file *file)
|
|
return single_open(file, show_rcugp, NULL);
|
|
return single_open(file, show_rcugp, NULL);
|
|
}
|
|
}
|
|
|
|
|
|
-static struct file_operations rcugp_fops = {
|
|
|
|
|
|
+static const struct file_operations rcugp_fops = {
|
|
.owner = THIS_MODULE,
|
|
.owner = THIS_MODULE,
|
|
.open = rcugp_open,
|
|
.open = rcugp_open,
|
|
.read = seq_read,
|
|
.read = seq_read,
|
|
@@ -276,7 +276,7 @@ static int rcu_pending_open(struct inode *inode, struct file *file)
|
|
return single_open(file, show_rcu_pending, NULL);
|
|
return single_open(file, show_rcu_pending, NULL);
|
|
}
|
|
}
|
|
|
|
|
|
-static struct file_operations rcu_pending_fops = {
|
|
|
|
|
|
+static const struct file_operations rcu_pending_fops = {
|
|
.owner = THIS_MODULE,
|
|
.owner = THIS_MODULE,
|
|
.open = rcu_pending_open,
|
|
.open = rcu_pending_open,
|
|
.read = seq_read,
|
|
.read = seq_read,
|