Module Name: src
Committed By: mrg
Date: Mon Jan 25 19:59:49 UTC 2021
Modified Files:
src/sys/dev/ofw: ofw_subr.c openfirm.h
src/sys/dev/pci/ixgbe: if_sriov.c
Log Message:
s/boolean_t/bool/. boolean_t is obsolete (from Mach), and this
also fixes a new build issue in libkvm on sparc*.
To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/sys/dev/ofw/ofw_subr.c
cvs rdiff -u -r1.41 -r1.42 src/sys/dev/ofw/openfirm.h
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/pci/ixgbe/if_sriov.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/ofw/ofw_subr.c
diff -u src/sys/dev/ofw/ofw_subr.c:1.49 src/sys/dev/ofw/ofw_subr.c:1.50
--- src/sys/dev/ofw/ofw_subr.c:1.49 Mon Jan 25 12:15:33 2021
+++ src/sys/dev/ofw/ofw_subr.c Mon Jan 25 19:59:49 2021
@@ -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 @@ of_getnode_byname(int start, const char
* 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 @@ of_to_uint32_prop(prop_dictionary_t dict
* 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)
{
Index: src/sys/dev/ofw/openfirm.h
diff -u src/sys/dev/ofw/openfirm.h:1.41 src/sys/dev/ofw/openfirm.h:1.42
--- src/sys/dev/ofw/openfirm.h:1.41 Mon Jan 18 02:35:49 2021
+++ src/sys/dev/ofw/openfirm.h Mon Jan 25 19:59:49 2021
@@ -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_packagename(int, char *, int);
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);
Index: src/sys/dev/pci/ixgbe/if_sriov.c
diff -u src/sys/dev/pci/ixgbe/if_sriov.c:1.8 src/sys/dev/pci/ixgbe/if_sriov.c:1.9
--- src/sys/dev/pci/ixgbe/if_sriov.c:1.8 Mon Sep 7 05:50:58 2020
+++ src/sys/dev/pci/ixgbe/if_sriov.c Mon Jan 25 19:59:49 2021
@@ -119,7 +119,7 @@ ixgbe_process_vf_ack(struct adapter *ada
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(struct ixgbe_hw *hw,
} /* ixgbe_clear_vfmbmem */
-static boolean_t
+static bool
ixgbe_vf_frame_size_compatible(struct adapter *adapter, struct ixgbe_vf *vf)
{