Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Oct 2021 12:21:14 GMT
From:      Alex Richardson <arichardson@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 9017870541da - main - Add missing const after 6c4f95161d6e
Message-ID:  <202110111221.19BCLEqw060119@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by arichardson:

URL: https://cgit.FreeBSD.org/src/commit/?id=9017870541daf46358c6cbaa3d4a40e1bffaaaa1

commit 9017870541daf46358c6cbaa3d4a40e1bffaaaa1
Author:     Alex Richardson <arichardson@FreeBSD.org>
AuthorDate: 2021-10-11 12:20:36 +0000
Commit:     Alex Richardson <arichardson@FreeBSD.org>
CommitDate: 2021-10-11 12:20:56 +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")
---
 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 cc89947c4d00..5e17cf59a84a 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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202110111221.19BCLEqw060119>