Commit 4f0146919be6bff47b5ea97252bcec0286e4dd19
Committed by
Greg Kroah-Hartman
1 parent
ae72cddb23
Exists in
master
and in
4 other branches
UIO: constify function pointer tables
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
drivers/uio/uio.c
... | ... | @@ -39,7 +39,7 @@ |
39 | 39 | |
40 | 40 | static int uio_major; |
41 | 41 | static DEFINE_IDR(uio_idr); |
42 | -static struct file_operations uio_fops; | |
42 | +static const struct file_operations uio_fops; | |
43 | 43 | |
44 | 44 | /* UIO class infrastructure */ |
45 | 45 | static struct uio_class { |
... | ... | @@ -508,7 +508,7 @@ |
508 | 508 | } |
509 | 509 | } |
510 | 510 | |
511 | -static struct file_operations uio_fops = { | |
511 | +static const struct file_operations uio_fops = { | |
512 | 512 | .owner = THIS_MODULE, |
513 | 513 | .open = uio_open, |
514 | 514 | .release = uio_release, |