aboutsummaryrefslogtreecommitdiff
path: root/tools/tools
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2023-11-24 20:12:57 +0000
committerWarner Losh <imp@FreeBSD.org>2023-11-27 05:24:01 +0000
commit6bfca4dcab07dad45a805879d954876b353c0810 (patch)
treeec5860672309282ee4aa35796c997b579e155486 /tools/tools
parent6dced2c6358e467ac1dccd99f6f648d4f71957a8 (diff)
downloadsrc-6bfca4dcab07dad45a805879d954876b353c0810.tar.gz
src-6bfca4dcab07dad45a805879d954876b353c0810.zip
Diffstat (limited to 'tools/tools')
-rw-r--r--tools/tools/aac/aac_checkq.c1
-rw-r--r--tools/tools/bootparttest/bootparttest.c1
-rw-r--r--tools/tools/dmardump/dmardump.c1
-rw-r--r--tools/tools/drm/radeon/mkregtable/mkregtable.c1
-rw-r--r--tools/tools/ifpifa/ifpifa.c2
-rw-r--r--tools/tools/ipw/ipwstats.c1
-rw-r--r--tools/tools/iwi/iwistats.c1
-rw-r--r--tools/tools/mfi/mfi_checkq.c1
-rw-r--r--tools/tools/ncpus/biosmptable.c1
-rw-r--r--tools/tools/netmap/nmreplay.c3
-rw-r--r--tools/tools/pciroms/pciroms.c1
-rw-r--r--tools/tools/pirtool/pirtool.c2
-rw-r--r--tools/tools/switch_tls/switch_tls.c1
-rw-r--r--tools/tools/tscdrift/tscdrift.c2
-rw-r--r--tools/tools/vhba/vhba.h2
15 files changed, 4 insertions, 17 deletions
diff --git a/tools/tools/aac/aac_checkq.c b/tools/tools/aac/aac_checkq.c
index 220d2eb7b793..007f224ba003 100644
--- a/tools/tools/aac/aac_checkq.c
+++ b/tools/tools/aac/aac_checkq.c
@@ -23,7 +23,6 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/fcntl.h>
#include <sys/ioctl.h>
diff --git a/tools/tools/bootparttest/bootparttest.c b/tools/tools/bootparttest/bootparttest.c
index af784027f95e..7556f02929f8 100644
--- a/tools/tools/bootparttest/bootparttest.c
+++ b/tools/tools/bootparttest/bootparttest.c
@@ -24,7 +24,6 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/stat.h>
diff --git a/tools/tools/dmardump/dmardump.c b/tools/tools/dmardump/dmardump.c
index 08b2570ba6e5..6888200983bc 100644
--- a/tools/tools/dmardump/dmardump.c
+++ b/tools/tools/dmardump/dmardump.c
@@ -25,7 +25,6 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/endian.h>
#include <sys/pciio.h>
diff --git a/tools/tools/drm/radeon/mkregtable/mkregtable.c b/tools/tools/drm/radeon/mkregtable/mkregtable.c
index e39264fbcd2b..5a82b6b75849 100644
--- a/tools/tools/drm/radeon/mkregtable/mkregtable.c
+++ b/tools/tools/drm/radeon/mkregtable/mkregtable.c
@@ -9,7 +9,6 @@
* Dave Airlie
*/
-#include <sys/cdefs.h>
#include <sys/types.h>
#include <stdlib.h>
#include <string.h>
diff --git a/tools/tools/ifpifa/ifpifa.c b/tools/tools/ifpifa/ifpifa.c
index 493be768f048..bc8f7352bbb6 100644
--- a/tools/tools/ifpifa/ifpifa.c
+++ b/tools/tools/ifpifa/ifpifa.c
@@ -28,7 +28,7 @@
#include <sys/types.h>
#include <sys/callout.h>
-#include <sys/cdefs.h>
+
#include <sys/param.h>
#include <sys/protosw.h>
#include <sys/queue.h>
diff --git a/tools/tools/ipw/ipwstats.c b/tools/tools/ipw/ipwstats.c
index 1da6efeeaea5..8b95607397b0 100644
--- a/tools/tools/ipw/ipwstats.c
+++ b/tools/tools/ipw/ipwstats.c
@@ -25,7 +25,6 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/sysctl.h>
diff --git a/tools/tools/iwi/iwistats.c b/tools/tools/iwi/iwistats.c
index 16044f1a7ba7..48572e44a875 100644
--- a/tools/tools/iwi/iwistats.c
+++ b/tools/tools/iwi/iwistats.c
@@ -26,7 +26,6 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/sysctl.h>
diff --git a/tools/tools/mfi/mfi_checkq.c b/tools/tools/mfi/mfi_checkq.c
index ca3fc0c7fa8c..05d0e97e21d6 100644
--- a/tools/tools/mfi/mfi_checkq.c
+++ b/tools/tools/mfi/mfi_checkq.c
@@ -23,7 +23,6 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/fcntl.h>
#include <sys/ioctl.h>
diff --git a/tools/tools/ncpus/biosmptable.c b/tools/tools/ncpus/biosmptable.c
index 0289409939be..848eadf02d0f 100644
--- a/tools/tools/ncpus/biosmptable.c
+++ b/tools/tools/ncpus/biosmptable.c
@@ -30,7 +30,6 @@
* the number of cpu's identified.
*/
-#include <sys/cdefs.h>
#include <sys/types.h>
#include <x86/mptable.h>
diff --git a/tools/tools/netmap/nmreplay.c b/tools/tools/netmap/nmreplay.c
index 75b5b8b5f62b..257157c48945 100644
--- a/tools/tools/netmap/nmreplay.c
+++ b/tools/tools/netmap/nmreplay.c
@@ -1538,8 +1538,7 @@ uniform_delay_run(struct _qs *q, struct _cfg *arg)
{
uint64_t x = my_random24();
q->cur_delay = arg->d[0] + ((arg->d[2] * x) >> 24);
-#if 0 /* COMPUTE_STATS */
-#endif /* COMPUTE_STATS */
+
return 0;
}
diff --git a/tools/tools/pciroms/pciroms.c b/tools/tools/pciroms/pciroms.c
index 0e5e3236c96f..48bd7be75eef 100644
--- a/tools/tools/pciroms/pciroms.c
+++ b/tools/tools/pciroms/pciroms.c
@@ -24,7 +24,6 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/pciio.h>
diff --git a/tools/tools/pirtool/pirtool.c b/tools/tools/pirtool/pirtool.c
index 024810109a72..03659dbb56dd 100644
--- a/tools/tools/pirtool/pirtool.c
+++ b/tools/tools/pirtool/pirtool.c
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*
*/
-#include <sys/cdefs.h>
+
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
diff --git a/tools/tools/switch_tls/switch_tls.c b/tools/tools/switch_tls/switch_tls.c
index 2e214af2e45b..e79cba5a30f8 100644
--- a/tools/tools/switch_tls/switch_tls.c
+++ b/tools/tools/switch_tls/switch_tls.c
@@ -17,7 +17,6 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/types.h>
#include <sys/socket.h>
diff --git a/tools/tools/tscdrift/tscdrift.c b/tools/tools/tscdrift/tscdrift.c
index 7d8940e9f3a1..cf20993bd1ee 100644
--- a/tools/tools/tscdrift/tscdrift.c
+++ b/tools/tools/tscdrift/tscdrift.c
@@ -25,8 +25,6 @@
* SUCH DAMAGE.
*/
-
-#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/cpuset.h>
#include <machine/atomic.h>
diff --git a/tools/tools/vhba/vhba.h b/tools/tools/vhba/vhba.h
index 9e9ca0e7eabe..d6b32b10b56d 100644
--- a/tools/tools/vhba/vhba.h
+++ b/tools/tools/vhba/vhba.h
@@ -26,7 +26,7 @@
/*
* Virtual HBA defines
*/
-#include <sys/cdefs.h>
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/endian.h>