projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5916a22
)
dm ioctl: constify ioctl lookup table
author
Eric Biggers
<ebiggers@google.com>
Thu, 22 Jun 2017 18:33:47 +0000
(11:33 -0700)
committer
Mike Snitzer
<snitzer@redhat.com>
Mon, 28 Aug 2017 15:47:18 +0000
(11:47 -0400)
Constify the lookup table for device-mapper ioctls so that it is placed
in .rodata.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-ioctl.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/dm-ioctl.c
b/drivers/md/dm-ioctl.c
index e06f0ef7d2ecf2b12beb1d13b6ae2f35580be885..8756a6850431d007f756079a595f5ae30d51a8df 100644
(file)
--- a/
drivers/md/dm-ioctl.c
+++ b/
drivers/md/dm-ioctl.c
@@
-1629,7
+1629,7
@@
static int target_message(struct file *filp, struct dm_ioctl *param, size_t para
*---------------------------------------------------------------*/
static ioctl_fn lookup_ioctl(unsigned int cmd, int *ioctl_flags)
{
- static struct {
+ static
const
struct {
int cmd;
int flags;
ioctl_fn fn;