mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
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 <[email protected]> Signed-off-by: Rusty Russell <[email protected]>
This commit is contained in:
parent
0d34cc2d6d
commit
9350393239
6 changed files with 6 additions and 6 deletions
|
|
@ -222,7 +222,7 @@ static void rproc_virtio_finalize_features(struct virtio_device *vdev)
|
|||
rvdev->gfeatures = vdev->features[0];
|
||||
}
|
||||
|
||||
static struct virtio_config_ops rproc_virtio_config_ops = {
|
||||
static const struct virtio_config_ops rproc_virtio_config_ops = {
|
||||
.get_features = rproc_virtio_get_features,
|
||||
.finalize_features = rproc_virtio_finalize_features,
|
||||
.find_vqs = rproc_virtio_find_vqs,
|
||||
|
|
|
|||
Loading…
Reference in a new issue