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 Fix return types of test...



details:   https://anonhg.NetBSD.org/src/rev/f7ad3138e2e2
branches:  trunk
changeset: 992870:f7ad3138e2e2
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 13:40:41 2018 +0000

description:
Fix return types of test_and_{set,clear,change}_bit.

diffstat:

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

diffs (36 lines):

diff -r 45f9908c90b9 -r f7ad3138e2e2 sys/external/bsd/drm2/include/linux/atomic.h
--- a/sys/external/bsd/drm2/include/linux/atomic.h      Mon Aug 27 13:40:28 2018 +0000
+++ b/sys/external/bsd/drm2/include/linux/atomic.h      Mon Aug 27 13:40:41 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atomic.h,v 1.10 2018/08/27 07:14:19 riastradh Exp $    */
+/*     $NetBSD: atomic.h,v 1.11 2018/08/27 13:40:41 riastradh Exp $    */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -228,7 +228,7 @@
        do v = *p; while (atomic_cas_ulong(p, v, (v ^ mask)) != v);
 }
 
-static inline unsigned long
+static inline int
 test_and_set_bit(unsigned int bit, volatile unsigned long *ptr)
 {
        const unsigned int units = (sizeof(*ptr) * CHAR_BIT);
@@ -241,7 +241,7 @@
        return ((v & mask) != 0);
 }
 
-static inline unsigned long
+static inline int
 test_and_clear_bit(unsigned int bit, volatile unsigned long *ptr)
 {
        const unsigned int units = (sizeof(*ptr) * CHAR_BIT);
@@ -254,7 +254,7 @@
        return ((v & mask) != 0);
 }
 
-static inline unsigned long
+static inline int
 test_and_change_bit(unsigned int bit, volatile unsigned long *ptr)
 {
        const unsigned int units = (sizeof(*ptr) * CHAR_BIT);



Home | Main Index | Thread Index | Old Index