47f43694645f3e6347b536d5e3fb2fee56e715ab.patch 900 B

12345678910111213141516171819202122232425262728
  1. From 47f43694645f3e6347b536d5e3fb2fee56e715ab Mon Sep 17 00:00:00 2001
  2. From: Thomas Klausner <wiz@NetBSD.org>
  3. Date: Mon, 28 Sep 2015 22:49:22 +0200
  4. Subject: Add cast to remove a warning on 32-bit machines.
  5. PCI_REGION_BASE returns a 64-bit value, which needs to be converted
  6. down to 32-bit before it can be put into a 32-bit pointer.
  7. ---
  8. src/s3v_dga.c | 2 +-
  9. 1 file changed, 1 insertion(+), 1 deletion(-)
  10. diff --git a/src/s3v_dga.c b/src/s3v_dga.c
  11. index 0e603cf..0ab374d 100644
  12. --- a/src/s3v_dga.c
  13. +++ b/src/s3v_dga.c
  14. @@ -337,7 +337,7 @@ S3V_OpenFramebuffer(
  15. S3VPtr ps3v = S3VPTR(pScrn);
  16. *name = NULL; /* no special device */
  17. - *mem = (unsigned char*)PCI_REGION_BASE(ps3v->PciInfo, 0, REGION_MEM);
  18. + *mem = (unsigned char*)(uintptr_t)PCI_REGION_BASE(ps3v->PciInfo, 0, REGION_MEM);
  19. *size = ps3v->videoRambytes;
  20. *offset = 0;
  21. *flags = DGA_NEED_ROOT;
  22. --
  23. cgit v1.1