git: e324f1e9f458 - Stop redefining PAGE_SHIFT in virtio-mmio

Andrew Turner andrew at FreeBSD.org
Wed Dec 23 13:14:48 UTC 2020


The branch main has been updated by andrew:

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

commit e324f1e9f458ef5b402c7999b01bedc8a775047d
Author:     Andrew Turner <andrew at FreeBSD.org>
AuthorDate: 2020-12-23 10:59:38 +0000
Commit:     Andrew Turner <andrew at FreeBSD.org>
CommitDate: 2020-12-23 13:10:26 +0000

    Stop redefining PAGE_SHIFT in virtio-mmio
    
    This is alreaady defined by each architecture as that is the only place
    we can know what the correct page shift should be.
    
    Sponsored by:   Innovate UK
---
 sys/dev/virtio/mmio/virtio_mmio.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sys/dev/virtio/mmio/virtio_mmio.c b/sys/dev/virtio/mmio/virtio_mmio.c
index 348c82da3528..bb5d84754f09 100644
--- a/sys/dev/virtio/mmio/virtio_mmio.c
+++ b/sys/dev/virtio/mmio/virtio_mmio.c
@@ -60,8 +60,6 @@ __FBSDID("$FreeBSD$");
 #include "virtio_bus_if.h"
 #include "virtio_if.h"
 
-#define	PAGE_SHIFT	12
-
 struct vtmmio_virtqueue {
 	struct virtqueue	*vtv_vq;
 	int			 vtv_no_intr;


More information about the dev-commits-src-main mailing list