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/db5567524472
branches:  trunk
changeset: 365202:db5567524472
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 5fb47eafc510 -r db5567524472 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