diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2013-02-10 00:27:38 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2013-02-11 00:02:17 -0500 |
commit | 9350393239153c4a98cbed4d69b9ed81e37d5e74 (patch) | |
tree | 180ddb2f2968721c52ed9b5917378aff00c7b7f6 /drivers/lguest/lguest_device.c | |
parent | 0d34cc2d6d904e2d0160e42734bccc1cb391cec0 (diff) |
virtio: make config_ops const
It is just a table of function pointers, make it const for cleanliness and security
reasons.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/lguest/lguest_device.c')
-rw-r--r-- | drivers/lguest/lguest_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/lguest/lguest_device.c b/drivers/lguest/lguest_device.c index fc92ccbd71dc..b3256ff0d426 100644 --- a/drivers/lguest/lguest_device.c +++ b/drivers/lguest/lguest_device.c | |||
@@ -396,7 +396,7 @@ static const char *lg_bus_name(struct virtio_device *vdev) | |||
396 | } | 396 | } |
397 | 397 | ||
398 | /* The ops structure which hooks everything together. */ | 398 | /* The ops structure which hooks everything together. */ |
399 | static struct virtio_config_ops lguest_config_ops = { | 399 | static const struct virtio_config_ops lguest_config_ops = { |
400 | .get_features = lg_get_features, | 400 | .get_features = lg_get_features, |
401 | .finalize_features = lg_finalize_features, | 401 | .finalize_features = lg_finalize_features, |
402 | .get = lg_get, | 402 | .get = lg_get, |