Module Name:    src
Committed By:   martin
Date:           Fri Dec  9 13:06:02 UTC 2016

Modified Files:
        src/sys/dev: audio.c

Log Message:
paddr_t might be a different size then a pointer, so cast  viauintptr_t
to avoid compiler warnings.


To generate a diff of this commit:
cvs rdiff -u -r1.270 -r1.271 src/sys/dev/audio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/audio.c
diff -u src/sys/dev/audio.c:1.270 src/sys/dev/audio.c:1.271
--- src/sys/dev/audio.c:1.270	Thu Dec  8 20:33:52 2016
+++ src/sys/dev/audio.c	Fri Dec  9 13:06:02 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: audio.c,v 1.270 2016/12/08 20:33:52 nat Exp $	*/
+/*	$NetBSD: audio.c,v 1.271 2016/12/09 13:06:02 martin Exp $	*/
 
 /*-
  * Copyright (c) 2016 Nathanial Sloss <[email protected]>
@@ -148,7 +148,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.270 2016/12/08 20:33:52 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.271 2016/12/09 13:06:02 martin Exp $");
 
 #include "audio.h"
 #if NAUDIO > 0
@@ -3167,7 +3167,7 @@ audio_mmap(struct audio_softc *sc, off_t
 	}
 
 	mutex_exit(sc->sc_lock);
-	rv = (paddr_t)cb->s.start + off;
+	rv = (paddr_t)(uintptr_t)(cb->s.start + off);
 	mutex_enter(sc->sc_lock);
 
 	return rv;

Reply via email to