git: 299d5e2b640b - stable/13 - Add missing const after 6c4f95161d6e
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 07 May 2022 15:57:17 UTC
The branch stable/13 has been updated by arichardson:
URL: https://cgit.FreeBSD.org/src/commit/?id=299d5e2b640b4a0b9c02e25fc4520a0019d21661
commit 299d5e2b640b4a0b9c02e25fc4520a0019d21661
Author: Alex Richardson <arichardson@FreeBSD.org>
AuthorDate: 2021-10-11 12:20:36 +0000
Commit: Alex Richardson <arichardson@FreeBSD.org>
CommitDate: 2022-05-07 12:09:43 +0000
Add missing const after 6c4f95161d6e
I accidentally didn't include hunk in the committed patch.
Fixes: 6c4f95161d6e ("virtio: make the write_config buffer argument const")
(cherry picked from commit 9017870541daf46358c6cbaa3d4a40e1bffaaaa1)
---
sys/dev/virtio/mmio/virtio_mmio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/dev/virtio/mmio/virtio_mmio.c b/sys/dev/virtio/mmio/virtio_mmio.c
index 72c68400cb28..0c2766af6220 100644
--- a/sys/dev/virtio/mmio/virtio_mmio.c
+++ b/sys/dev/virtio/mmio/virtio_mmio.c
@@ -741,7 +741,7 @@ vtmmio_write_dev_config(device_t dev, bus_size_t offset,
{
struct vtmmio_softc *sc;
bus_size_t off;
- uint8_t *s;
+ const uint8_t *s;
int size;
sc = device_get_softc(dev);