Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev paddr_t might be a different size then a pointer, so...
details: https://anonhg.NetBSD.org/src/rev/44c53d636898
branches: trunk
changeset: 349388:44c53d636898
user: martin <martin%NetBSD.org@localhost>
date: Fri Dec 09 13:06:02 2016 +0000
description:
paddr_t might be a different size then a pointer, so cast viauintptr_t
to avoid compiler warnings.
diffstat:
sys/dev/audio.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 2a1bd7c16d89 -r 44c53d636898 sys/dev/audio.c
--- a/sys/dev/audio.c Fri Dec 09 10:30:48 2016 +0000
+++ b/sys/dev/audio.c Fri Dec 09 13:06:02 2016 +0000
@@ -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 <nathanialsloss%yahoo.com.au@localhost>
@@ -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 @@
}
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;
Home |
Main Index |
Thread Index |
Old Index