From 8e49ef1dbcec8328974d4cc05c53ddf271784c64 Mon Sep 17 00:00:00 2001 From: christos Date: Thu, 26 Sep 2019 02:01:02 +0000 Subject: [PATCH] Kill WARNS = 3 from all the modules that now compile cleanly. --- sys/modules/compat_20/Makefile | 4 +--- sys/modules/compat_30/Makefile | 4 +--- sys/modules/compat_43/Makefile | 4 +--- sys/modules/compat_80/Makefile | 4 +--- sys/modules/compat_netbsd32/Makefile | 4 +--- sys/modules/compat_netbsd32_09/Makefile | 6 +----- sys/modules/compat_netbsd32_12/Makefile | 6 +----- sys/modules/compat_netbsd32_13/Makefile | 6 +----- sys/modules/compat_netbsd32_16/Makefile | 6 +----- sys/modules/compat_netbsd32_20/Makefile | 6 +----- sys/modules/compat_netbsd32_30/Makefile | 6 +----- sys/modules/compat_netbsd32_40/Makefile | 6 +----- sys/modules/compat_netbsd32_43/Makefile | 4 +--- sys/modules/compat_netbsd32_50/Makefile | 4 +--- sys/modules/compat_netbsd32_60/Makefile | 6 +----- sys/modules/compat_netbsd32_80/Makefile | 6 +----- sys/modules/compat_netbsd32_mqueue/Makefile | 6 +----- sys/modules/compat_netbsd32_nfssrv/Makefile | 6 +----- sys/modules/compat_netbsd32_ptrace/Makefile | 6 +----- sys/modules/compat_netbsd32_raid/Makefile | 6 +----- sys/modules/compat_netbsd32_sysvipc/Makefile | 6 +----- sys/modules/compat_netbsd32_sysvipc_10/Makefile | 6 +----- sys/modules/compat_netbsd32_sysvipc_14/Makefile | 6 +----- sys/modules/compat_netbsd32_sysvipc_50/Makefile | 6 +----- sys/modules/compat_ossaudio/Makefile | 4 +--- sys/modules/compat_raid_50/Makefile | 4 +--- sys/modules/compat_sysctl_09_43/Makefile | 4 +--- 27 files changed, 27 insertions(+), 115 deletions(-) diff --git a/sys/modules/compat_20/Makefile b/sys/modules/compat_20/Makefile index b3a577550523..406ce9365d2a 100644 --- a/sys/modules/compat_20/Makefile +++ b/sys/modules/compat_20/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2019/02/17 04:05:45 rin Exp $ +# $NetBSD: Makefile,v 1.4 2019/09/26 02:01:02 christos Exp $ .include "../Makefile.inc" @@ -12,6 +12,4 @@ CPPFLAGS+= -DCOMPAT_40 -DCOMPAT_50 -DCOMPAT_60 -DCOMPAT_70 -DCOMPAT_80 SRCS+= compat_20_mod.c SRCS+= vfs_syscalls_20.c ieee80211_20.c if43_20.c -WARNS= 3 - .include diff --git a/sys/modules/compat_30/Makefile b/sys/modules/compat_30/Makefile index 3466a7b30ab2..abdb894e7f4a 100644 --- a/sys/modules/compat_30/Makefile +++ b/sys/modules/compat_30/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2019/02/17 04:05:45 rin Exp $ +# $NetBSD: Makefile,v 1.4 2019/09/26 02:01:02 christos Exp $ .include "../Makefile.inc" @@ -13,6 +13,4 @@ SRCS+= compat_30_mod.c SRCS+= vfs_syscalls_30.c uipc_syscalls_30.c kern_time_30.c bio_30.c vnd_30.c SRCS+= usb_subr_30.c -WARNS= 3 - .include diff --git a/sys/modules/compat_43/Makefile b/sys/modules/compat_43/Makefile index 794396ea696d..954819b53199 100644 --- a/sys/modules/compat_43/Makefile +++ b/sys/modules/compat_43/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2019/02/17 04:05:45 rin Exp $ +# $NetBSD: Makefile,v 1.4 2019/09/26 02:01:02 christos Exp $ .include "../Makefile.inc" @@ -12,6 +12,4 @@ SRCS= compat_43_mod.c SRCS+= kern_exit_43.c kern_info_43.c kern_resource_43.c kern_sig_43.c \ tty_43.c uipc_syscalls_43.c vfs_syscalls_43.c vm_43.c if_43.c -WARNS= 3 - .include diff --git a/sys/modules/compat_80/Makefile b/sys/modules/compat_80/Makefile index eb8299bde845..c6c45ab04c73 100644 --- a/sys/modules/compat_80/Makefile +++ b/sys/modules/compat_80/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2019/06/22 17:57:01 pgoyette Exp $ +# $NetBSD: Makefile,v 1.5 2019/09/26 02:01:02 christos Exp $ .include "../Makefile.inc" @@ -12,6 +12,4 @@ SRCS+= compat_80_mod.c SRCS+= kern_mod_80.c SRCS+= if_media_80.c -WARNS= 3 - .include diff --git a/sys/modules/compat_netbsd32/Makefile b/sys/modules/compat_netbsd32/Makefile index 3413c3743cf1..3c70d8c14d8b 100644 --- a/sys/modules/compat_netbsd32/Makefile +++ b/sys/modules/compat_netbsd32/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.27 2019/08/20 12:25:41 maxv Exp $ +# $NetBSD: Makefile,v 1.28 2019/09/26 02:01:02 christos Exp $ .include "../Makefile.inc" .include "../Makefile.assym" @@ -65,6 +65,4 @@ SRCS+= netbsd32_machdep.c SRCS+= netbsd32_machdep.c .endif -WARNS= 3 - .include diff --git a/sys/modules/compat_netbsd32_09/Makefile b/sys/modules/compat_netbsd32_09/Makefile index 1e85c8c5e0ec..899381912cc7 100644 --- a/sys/modules/compat_netbsd32_09/Makefile +++ b/sys/modules/compat_netbsd32_09/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2019/02/20 05:11:30 rin Exp $ +# $NetBSD: Makefile,v 1.4 2019/09/26 02:01:02 christos Exp $ .include "../Makefile.inc" @@ -14,8 +14,4 @@ CPPFLAGS+= -I${NETBSDSRCDIR}/sys/external/bsd/libnv/dist SRCS+= netbsd32_compat_09.c -.if !empty(MACHINE_ARCH:Mmips64*) -WARNS= 3 -.endif - .include diff --git a/sys/modules/compat_netbsd32_12/Makefile b/sys/modules/compat_netbsd32_12/Makefile index 1646defa3f59..d2ea8e9b7566 100644 --- a/sys/modules/compat_netbsd32_12/Makefile +++ b/sys/modules/compat_netbsd32_12/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2019/02/20 05:11:30 rin Exp $ +# $NetBSD: Makefile,v 1.4 2019/09/26 02:01:02 christos Exp $ .include "../Makefile.inc" @@ -14,8 +14,4 @@ CPPFLAGS+= -I${NETBSDSRCDIR}/sys/external/bsd/libnv/dist SRCS+= netbsd32_compat_12.c -.if !empty(MACHINE_ARCH:Mmips64*) -WARNS= 3 -.endif - .include diff --git a/sys/modules/compat_netbsd32_13/Makefile b/sys/modules/compat_netbsd32_13/Makefile index a5a5cfbb34d9..da6cb74072a5 100644 --- a/sys/modules/compat_netbsd32_13/Makefile +++ b/sys/modules/compat_netbsd32_13/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2019/02/20 05:11:30 rin Exp $ +# $NetBSD: Makefile,v 1.4 2019/09/26 02:01:03 christos Exp $ .include "../Makefile.inc" @@ -23,8 +23,4 @@ SRCS+= netbsd32_machdep_13.c SRCS+= netbsd32_machdep_13.c .endif -.if !empty(MACHINE_ARCH:Mmips64*) -WARNS= 3 -.endif - .include diff --git a/sys/modules/compat_netbsd32_16/Makefile b/sys/modules/compat_netbsd32_16/Makefile index 62c0a18d2c6e..64a2ae92d45e 100644 --- a/sys/modules/compat_netbsd32_16/Makefile +++ b/sys/modules/compat_netbsd32_16/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2019/02/20 05:11:30 rin Exp $ +# $NetBSD: Makefile,v 1.4 2019/09/26 02:01:03 christos Exp $ .include "../Makefile.inc" .include "../Makefile.assym" @@ -25,8 +25,4 @@ SRCS+= netbsd32_machdep_16.c SRCS+= netbsd32_machdep_16.c .endif -.if !empty(MACHINE_ARCH:Mmips64*) -WARNS= 3 -.endif - .include diff --git a/sys/modules/compat_netbsd32_20/Makefile b/sys/modules/compat_netbsd32_20/Makefile index b2df841521cc..87c0792305f9 100644 --- a/sys/modules/compat_netbsd32_20/Makefile +++ b/sys/modules/compat_netbsd32_20/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2019/02/20 05:11:30 rin Exp $ +# $NetBSD: Makefile,v 1.4 2019/09/26 02:01:03 christos Exp $ .include "../Makefile.inc" @@ -13,8 +13,4 @@ CPPFLAGS+= -I${NETBSDSRCDIR}/sys/external/bsd/libnv/dist SRCS+= netbsd32_compat_20.c -.if !empty(MACHINE_ARCH:Mmips64*) -WARNS= 3 -.endif - .include diff --git a/sys/modules/compat_netbsd32_30/Makefile b/sys/modules/compat_netbsd32_30/Makefile index 057b075d3032..dcad84fa163f 100644 --- a/sys/modules/compat_netbsd32_30/Makefile +++ b/sys/modules/compat_netbsd32_30/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2019/02/20 05:11:30 rin Exp $ +# $NetBSD: Makefile,v 1.4 2019/09/26 02:01:03 christos Exp $ .include "../Makefile.inc" @@ -14,8 +14,4 @@ CPPFLAGS+= -I${NETBSDSRCDIR}/sys/external/bsd/libnv/dist SRCS+= netbsd32_compat_30.c -.if !empty(MACHINE_ARCH:Mmips64*) -WARNS= 3 -.endif - .include diff --git a/sys/modules/compat_netbsd32_40/Makefile b/sys/modules/compat_netbsd32_40/Makefile index 9832f20b6c7b..169470f8f959 100644 --- a/sys/modules/compat_netbsd32_40/Makefile +++ b/sys/modules/compat_netbsd32_40/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2019/02/20 05:11:31 rin Exp $ +# $NetBSD: Makefile,v 1.4 2019/09/26 02:01:03 christos Exp $ .include "../Makefile.inc" @@ -12,8 +12,4 @@ CPPFLAGS+= -I${NETBSDSRCDIR}/sys/external/bsd/libnv/dist SRCS+= netbsd32_compat_40.c -.if !empty(MACHINE_ARCH:Mmips64*) -WARNS= 3 -.endif - .include diff --git a/sys/modules/compat_netbsd32_43/Makefile b/sys/modules/compat_netbsd32_43/Makefile index 15bbd7391dfe..a1346d3e2376 100644 --- a/sys/modules/compat_netbsd32_43/Makefile +++ b/sys/modules/compat_netbsd32_43/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2019/02/17 04:05:45 rin Exp $ +# $NetBSD: Makefile,v 1.4 2019/09/26 02:01:03 christos Exp $ .include "../Makefile.inc" @@ -12,6 +12,4 @@ CPPFLAGS+= -I${NETBSDSRCDIR}/sys/external/bsd/libnv/dist SRCS+= netbsd32_compat_43.c -WARNS= 3 - .include diff --git a/sys/modules/compat_netbsd32_50/Makefile b/sys/modules/compat_netbsd32_50/Makefile index 8fdb8b10a74a..4843ac8e41e5 100644 --- a/sys/modules/compat_netbsd32_50/Makefile +++ b/sys/modules/compat_netbsd32_50/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2019/06/18 15:26:27 pgoyette Exp $ +# $NetBSD: Makefile,v 1.5 2019/09/26 02:01:03 christos Exp $ .include "../Makefile.inc" @@ -13,6 +13,4 @@ CPPFLAGS+= -I${NETBSDSRCDIR}/sys/external/bsd/libnv/dist SRCS+= netbsd32_compat_50.c netbsd32_rndpseudo_50.c -WARNS= 3 - .include diff --git a/sys/modules/compat_netbsd32_60/Makefile b/sys/modules/compat_netbsd32_60/Makefile index 25561bc40679..8c95af8436d3 100644 --- a/sys/modules/compat_netbsd32_60/Makefile +++ b/sys/modules/compat_netbsd32_60/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2019/02/20 05:11:31 rin Exp $ +# $NetBSD: Makefile,v 1.4 2019/09/26 02:01:03 christos Exp $ .include "../Makefile.inc" @@ -12,8 +12,4 @@ CPPFLAGS+= -I${NETBSDSRCDIR}/sys/external/bsd/libnv/dist SRCS+= netbsd32_compat_60.c -.if !empty(MACHINE_ARCH:Mmips64*) -WARNS= 3 -.endif - .include diff --git a/sys/modules/compat_netbsd32_80/Makefile b/sys/modules/compat_netbsd32_80/Makefile index 89ea6700cbff..831854ce6412 100644 --- a/sys/modules/compat_netbsd32_80/Makefile +++ b/sys/modules/compat_netbsd32_80/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2019/02/20 05:11:31 rin Exp $ +# $NetBSD: Makefile,v 1.4 2019/09/26 02:01:03 christos Exp $ .include "../Makefile.inc" @@ -12,8 +12,4 @@ CPPFLAGS+= -I${NETBSDSRCDIR}/sys/external/bsd/libnv/dist SRCS+= netbsd32_compat_80.c -.if !empty(MACHINE_ARCH:Mmips64*) -WARNS= 3 -.endif - .include diff --git a/sys/modules/compat_netbsd32_mqueue/Makefile b/sys/modules/compat_netbsd32_mqueue/Makefile index 483050391236..73698c855d6d 100644 --- a/sys/modules/compat_netbsd32_mqueue/Makefile +++ b/sys/modules/compat_netbsd32_mqueue/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2019/02/20 05:11:31 rin Exp $ +# $NetBSD: Makefile,v 1.4 2019/09/26 02:01:04 christos Exp $ .include "../Makefile.inc" .include "../Makefile.assym" @@ -12,8 +12,4 @@ CPPFLAGS+= -I${NETBSDSRCDIR}/sys/external/bsd/libnv/dist .PATH: ${S}/compat/netbsd32 SRCS+= netbsd32_mqueue.c -.if !empty(MACHINE_ARCH:Mmips64*) -WARNS= 3 -.endif - .include diff --git a/sys/modules/compat_netbsd32_nfssrv/Makefile b/sys/modules/compat_netbsd32_nfssrv/Makefile index bbb44d8ba1c6..5b3c62167e9f 100644 --- a/sys/modules/compat_netbsd32_nfssrv/Makefile +++ b/sys/modules/compat_netbsd32_nfssrv/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2019/02/20 05:11:31 rin Exp $ +# $NetBSD: Makefile,v 1.4 2019/09/26 02:01:04 christos Exp $ .include "../Makefile.inc" .include "../Makefile.assym" @@ -12,8 +12,4 @@ CPPFLAGS+= -I${NETBSDSRCDIR}/sys/external/bsd/libnv/dist .PATH: ${S}/compat/netbsd32 SRCS+= netbsd32_nfssvc.c -.if !empty(MACHINE_ARCH:Mmips64*) -WARNS= 3 -.endif - .include diff --git a/sys/modules/compat_netbsd32_ptrace/Makefile b/sys/modules/compat_netbsd32_ptrace/Makefile index 802f40ca915e..5813e5d2516a 100644 --- a/sys/modules/compat_netbsd32_ptrace/Makefile +++ b/sys/modules/compat_netbsd32_ptrace/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2019/02/20 05:11:31 rin Exp $ +# $NetBSD: Makefile,v 1.5 2019/09/26 02:01:04 christos Exp $ .include "../Makefile.inc" .include "../Makefile.assym" @@ -12,8 +12,4 @@ CPPFLAGS+= -I${NETBSDSRCDIR}/sys/external/bsd/libnv/dist .PATH: ${S}/compat/netbsd32 SRCS+= netbsd32_ptrace.c -.if !empty(MACHINE_ARCH:Mmips64*) -WARNS= 3 -.endif - .include diff --git a/sys/modules/compat_netbsd32_raid/Makefile b/sys/modules/compat_netbsd32_raid/Makefile index ee3dd3db0b05..6608b1d5de03 100644 --- a/sys/modules/compat_netbsd32_raid/Makefile +++ b/sys/modules/compat_netbsd32_raid/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2019/02/20 05:11:31 rin Exp $ +# $NetBSD: Makefile,v 1.3 2019/09/26 02:01:04 christos Exp $ .include "../Makefile.inc" @@ -10,8 +10,4 @@ CPPFLAGS+= -DCOMPAT_NETBSD32 SRCS+= rf_compat32.c -.if !empty(MACHINE_ARCH:Mmips64*) -WARNS= 3 -.endif - .include diff --git a/sys/modules/compat_netbsd32_sysvipc/Makefile b/sys/modules/compat_netbsd32_sysvipc/Makefile index 8fb9113bc7e7..32eaf158e3df 100644 --- a/sys/modules/compat_netbsd32_sysvipc/Makefile +++ b/sys/modules/compat_netbsd32_sysvipc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2019/02/20 05:11:31 rin Exp $ +# $NetBSD: Makefile,v 1.5 2019/09/26 02:01:04 christos Exp $ .include "../Makefile.inc" .include "../Makefile.assym" @@ -14,8 +14,4 @@ CPPFLAGS+= -I${NETBSDSRCDIR}/sys/external/bsd/libnv/dist SRCS+= netbsd32_ipc.c -.if !empty(MACHINE_ARCH:Mmips64*) -WARNS= 3 -.endif - .include diff --git a/sys/modules/compat_netbsd32_sysvipc_10/Makefile b/sys/modules/compat_netbsd32_sysvipc_10/Makefile index d9aac22b0e21..34a07e6658d3 100644 --- a/sys/modules/compat_netbsd32_sysvipc_10/Makefile +++ b/sys/modules/compat_netbsd32_sysvipc_10/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2019/02/20 05:11:31 rin Exp $ +# $NetBSD: Makefile,v 1.4 2019/09/26 02:01:04 christos Exp $ .include "../Makefile.inc" .include "../Makefile.assym" @@ -14,8 +14,4 @@ CPPFLAGS+= -I${NETBSDSRCDIR}/sys/external/bsd/libnv/dist SRCS+= netbsd32_compat_10_sysv.c -.if !empty(MACHINE_ARCH:Mmips64*) -WARNS= 3 -.endif - .include diff --git a/sys/modules/compat_netbsd32_sysvipc_14/Makefile b/sys/modules/compat_netbsd32_sysvipc_14/Makefile index e00148e7b267..50a8d45a8422 100644 --- a/sys/modules/compat_netbsd32_sysvipc_14/Makefile +++ b/sys/modules/compat_netbsd32_sysvipc_14/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2019/02/20 05:11:31 rin Exp $ +# $NetBSD: Makefile,v 1.4 2019/09/26 02:01:04 christos Exp $ .include "../Makefile.inc" .include "../Makefile.assym" @@ -14,8 +14,4 @@ CPPFLAGS+= -I${NETBSDSRCDIR}/sys/external/bsd/libnv/dist SRCS+= netbsd32_compat_14_sysv.c -.if !empty(MACHINE_ARCH:Mmips64*) -WARNS= 3 -.endif - .include diff --git a/sys/modules/compat_netbsd32_sysvipc_50/Makefile b/sys/modules/compat_netbsd32_sysvipc_50/Makefile index c35864da4fc2..5defc30879e9 100644 --- a/sys/modules/compat_netbsd32_sysvipc_50/Makefile +++ b/sys/modules/compat_netbsd32_sysvipc_50/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2019/02/20 05:11:32 rin Exp $ +# $NetBSD: Makefile,v 1.4 2019/09/26 02:01:04 christos Exp $ .include "../Makefile.inc" .include "../Makefile.assym" @@ -14,8 +14,4 @@ CPPFLAGS+= -I${NETBSDSRCDIR}/sys/external/bsd/libnv/dist SRCS+= netbsd32_compat_50_sysv.c -.if !empty(MACHINE_ARCH:Mmips64*) -WARNS= 3 -.endif - .include diff --git a/sys/modules/compat_ossaudio/Makefile b/sys/modules/compat_ossaudio/Makefile index 2e24676ca2c2..33b6af41e865 100644 --- a/sys/modules/compat_ossaudio/Makefile +++ b/sys/modules/compat_ossaudio/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2019/02/17 04:05:46 rin Exp $ +# $NetBSD: Makefile,v 1.3 2019/09/26 02:01:05 christos Exp $ .include "../Makefile.inc" @@ -7,6 +7,4 @@ KMOD= compat_ossaudio SRCS= ossaudio.c -WARNS= 3 - .include diff --git a/sys/modules/compat_raid_50/Makefile b/sys/modules/compat_raid_50/Makefile index 10b485e69e4b..b4c2a2fee33b 100644 --- a/sys/modules/compat_raid_50/Makefile +++ b/sys/modules/compat_raid_50/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2019/02/17 04:05:46 rin Exp $ +# $NetBSD: Makefile,v 1.4 2019/09/26 02:01:05 christos Exp $ .include "../Makefile.inc" @@ -8,6 +8,4 @@ KMOD= compat_raid_50 SRCS+= rf_compat50.c -WARNS= 3 - .include diff --git a/sys/modules/compat_sysctl_09_43/Makefile b/sys/modules/compat_sysctl_09_43/Makefile index 12def6f8b291..f1714bdcd588 100644 --- a/sys/modules/compat_sysctl_09_43/Makefile +++ b/sys/modules/compat_sysctl_09_43/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2019/02/17 04:05:46 rin Exp $ +# $NetBSD: Makefile,v 1.4 2019/09/26 02:01:05 christos Exp $ .include "../Makefile.inc" @@ -10,6 +10,4 @@ CPPFLAGS+= -DCOMPAT_09 -DCOMPAT_43 SRCS+= compat_sysctl_09_43.c -WARNS= 3 - .include