diff options
| author | riastradh <riastradh@NetBSD.org> | 2023-03-27 10:48:46 +0000 |
|---|---|---|
| committer | riastradh <riastradh@NetBSD.org> | 2023-03-27 10:48:46 +0000 |
| commit | eef763987f7fa6f5a2c11546ec22347d1b4c2070 (patch) | |
| tree | 110551709ae52185151f3aee1c10f3f2dc2b0c27 /sys/dev | |
| parent | 7ac029eb17bf23df71a00e6e1d78c9b88cf8649f (diff) | |
virtio(4): Avoid name collision with global intrhand on sparc64.
Pacifies -Werror=shadow.
No functional change intended.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/pci/virtio.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/virtio.c b/sys/dev/pci/virtio.c index 65023618ddf..623dbb73487 100644 --- a/sys/dev/pci/virtio.c +++ b/sys/dev/pci/virtio.c @@ -1,4 +1,4 @@ -/* $NetBSD: virtio.c,v 1.69 2023/03/25 02:59:23 yamaguchi Exp $ */ +/* $NetBSD: virtio.c,v 1.70 2023/03/27 10:48:46 riastradh Exp $ */ /* * Copyright (c) 2020 The NetBSD Foundation, Inc. @@ -28,7 +28,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: virtio.c,v 1.69 2023/03/25 02:59:23 yamaguchi Exp $"); +__KERNEL_RCSID(0, "$NetBSD: virtio.c,v 1.70 2023/03/27 10:48:46 riastradh Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -746,7 +746,7 @@ virtio_init_vq_vqdone(struct virtio_softc *sc, struct virtqueue *vq, void virtio_init_vq(struct virtio_softc *sc, struct virtqueue *vq, int index, - int (*intrhand)(void *), void *arg) + int (*func)(void *), void *arg) { memset(vq, 0, sizeof(*vq)); @@ -754,7 +754,7 @@ virtio_init_vq(struct virtio_softc *sc, struct virtqueue *vq, int index, vq->vq_owner = sc; vq->vq_num = sc->sc_ops->read_queue_size(sc, index); vq->vq_index = index; - vq->vq_intrhand = intrhand; + vq->vq_intrhand = func; vq->vq_intrhand_arg = arg; } |
