Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/include/linux hweight32 should take ui...



details:   https://anonhg.NetBSD.org/src/rev/5444311bbb5c
branches:  trunk
changeset: 991901:5444311bbb5c
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 06 00:29:49 2018 +0000

description:
hweight32 should take uint32_t, not uint16_t.  OOPS.

XXX pullup

diffstat:

 sys/external/bsd/drm2/include/linux/bitops.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r e3590bfb8b16 -r 5444311bbb5c sys/external/bsd/drm2/include/linux/bitops.h
--- a/sys/external/bsd/drm2/include/linux/bitops.h      Sun Aug 05 18:57:49 2018 +0000
+++ b/sys/external/bsd/drm2/include/linux/bitops.h      Mon Aug 06 00:29:49 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bitops.h,v 1.11 2015/10/13 00:42:59 riastradh Exp $    */
+/*     $NetBSD: bitops.h,v 1.12 2018/08/06 00:29:49 riastradh Exp $    */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -69,7 +69,7 @@
 }
 
 static inline unsigned int
-hweight32(uint16_t n)
+hweight32(uint32_t n)
 {
        return popcount32(n);
 }



Home | Main Index | Thread Index | Old Index