forked from Minki/linux
drbd: Constify struct file_operations
Signed-off-by: Emese Revfy <re.emese@gmail.com> Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
This commit is contained in:
parent
66ae291978
commit
7d4e9d0962
@ -1490,7 +1490,7 @@ void drbd_bump_write_ordering(struct drbd_conf *mdev, enum write_ordering_e wo);
|
|||||||
|
|
||||||
/* drbd_proc.c */
|
/* drbd_proc.c */
|
||||||
extern struct proc_dir_entry *drbd_proc;
|
extern struct proc_dir_entry *drbd_proc;
|
||||||
extern struct file_operations drbd_proc_fops;
|
extern const struct file_operations drbd_proc_fops;
|
||||||
extern const char *drbd_conn_str(enum drbd_conns s);
|
extern const char *drbd_conn_str(enum drbd_conns s);
|
||||||
extern const char *drbd_role_str(enum drbd_role s);
|
extern const char *drbd_role_str(enum drbd_role s);
|
||||||
|
|
||||||
|
@ -151,7 +151,7 @@ wait_queue_head_t drbd_pp_wait;
|
|||||||
|
|
||||||
DEFINE_RATELIMIT_STATE(drbd_ratelimit_state, 5 * HZ, 5);
|
DEFINE_RATELIMIT_STATE(drbd_ratelimit_state, 5 * HZ, 5);
|
||||||
|
|
||||||
static struct block_device_operations drbd_ops = {
|
static const struct block_device_operations drbd_ops = {
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.open = drbd_open,
|
.open = drbd_open,
|
||||||
.release = drbd_release,
|
.release = drbd_release,
|
||||||
|
@ -38,7 +38,7 @@ static int drbd_proc_open(struct inode *inode, struct file *file);
|
|||||||
|
|
||||||
|
|
||||||
struct proc_dir_entry *drbd_proc;
|
struct proc_dir_entry *drbd_proc;
|
||||||
struct file_operations drbd_proc_fops = {
|
const struct file_operations drbd_proc_fops = {
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.open = drbd_proc_open,
|
.open = drbd_proc_open,
|
||||||
.read = seq_read,
|
.read = seq_read,
|
||||||
|
Loading…
Reference in New Issue
Block a user