Source-Changes-HG archive

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

[src/trunk]: src/sys/dev s/boolean_t/bool/. boolean_t is obsolete (from Mach...



details:   https://anonhg.NetBSD.org/src/rev/e4641c6e77bb
branches:  trunk
changeset: 950354:e4641c6e77bb
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Jan 25 19:59:49 2021 +0000

description:
s/boolean_t/bool/.  boolean_t is obsolete (from Mach), and this
also fixes a new build issue in libkvm on sparc*.

diffstat:

 sys/dev/ofw/ofw_subr.c       |  8 ++++----
 sys/dev/ofw/openfirm.h       |  8 +++-----
 sys/dev/pci/ixgbe/if_sriov.c |  4 ++--
 3 files changed, 9 insertions(+), 11 deletions(-)

diffs (79 lines):

diff -r 03febf06b7fb -r e4641c6e77bb sys/dev/ofw/ofw_subr.c
--- a/sys/dev/ofw/ofw_subr.c    Mon Jan 25 19:57:05 2021 +0000
+++ b/sys/dev/ofw/ofw_subr.c    Mon Jan 25 19:59:49 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ofw_subr.c,v 1.49 2021/01/25 12:15:33 jmcneill Exp $   */
+/*     $NetBSD: ofw_subr.c,v 1.50 2021/01/25 19:59:49 mrg Exp $        */
 
 /*
  * Copyright 1998
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ofw_subr.c,v 1.49 2021/01/25 12:15:33 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ofw_subr.c,v 1.50 2021/01/25 19:59:49 mrg Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -395,7 +395,7 @@
  * Create a uint32_t integer property from an OFW node property.
  */
 
-boolean_t
+bool
 of_to_uint32_prop(prop_dictionary_t dict, int node, const char *ofname,
     const char *propname)
 {
@@ -411,7 +411,7 @@
  * Create a data property from an OFW node property.  Max size of 256bytes.
  */
 
-boolean_t
+bool
 of_to_dataprop(prop_dictionary_t dict, int node, const char *ofname,
     const char *propname)
 {
diff -r 03febf06b7fb -r e4641c6e77bb sys/dev/ofw/openfirm.h
--- a/sys/dev/ofw/openfirm.h    Mon Jan 25 19:57:05 2021 +0000
+++ b/sys/dev/ofw/openfirm.h    Mon Jan 25 19:59:49 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: openfirm.h,v 1.41 2021/01/18 02:35:49 thorpej Exp $    */
+/*     $NetBSD: openfirm.h,v 1.42 2021/01/25 19:59:49 mrg Exp $        */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -115,10 +115,8 @@
 int    of_find_firstchild_byname(int, const char *);
 int    of_find_bycompat(int, const char *);
 int    of_getnode_byname(int, const char *);
-boolean_t      of_to_uint32_prop(prop_dictionary_t, int, const char *,
-    const char *);
-boolean_t      of_to_dataprop(prop_dictionary_t, int, const char *,
-    const char *);
+bool   of_to_uint32_prop(prop_dictionary_t, int, const char *, const char *);
+bool   of_to_dataprop(prop_dictionary_t, int, const char *, const char *);
 
 int    *of_network_decode_media(int, int *, int *);
 char   *of_get_mode_string(char *, int);
diff -r 03febf06b7fb -r e4641c6e77bb sys/dev/pci/ixgbe/if_sriov.c
--- a/sys/dev/pci/ixgbe/if_sriov.c      Mon Jan 25 19:57:05 2021 +0000
+++ b/sys/dev/pci/ixgbe/if_sriov.c      Mon Jan 25 19:59:49 2021 +0000
@@ -119,7 +119,7 @@
                ixgbe_send_vf_nack(adapter, vf, 0);
 }
 
-static inline boolean_t
+static inline bool
 ixgbe_vf_mac_changed(struct ixgbe_vf *vf, const uint8_t *mac)
 {
        return (bcmp(mac, vf->ether_addr, ETHER_ADDR_LEN) != 0);
@@ -264,7 +264,7 @@
 } /* ixgbe_clear_vfmbmem */
 
 
-static boolean_t
+static bool
 ixgbe_vf_frame_size_compatible(struct adapter *adapter, struct ixgbe_vf *vf)
 {
 



Home | Main Index | Thread Index | Old Index