head	1.4;
access;
symbols
	netbsd-11-0-RC4:1.4
	netbsd-11-0-RC3:1.4
	netbsd-11-0-RC2:1.4
	netbsd-11-0-RC1:1.4
	perseant-exfatfs-base-20250801:1.4
	netbsd-11:1.4.0.38
	netbsd-11-base:1.4
	netbsd-10-1-RELEASE:1.4
	perseant-exfatfs-base-20240630:1.4
	perseant-exfatfs:1.4.0.36
	perseant-exfatfs-base:1.4
	netbsd-8-3-RELEASE:1.2.12.1
	netbsd-9-4-RELEASE:1.4
	netbsd-10-0-RELEASE:1.4
	netbsd-10-0-RC6:1.4
	netbsd-10-0-RC5:1.4
	netbsd-10-0-RC4:1.4
	netbsd-10-0-RC3:1.4
	netbsd-10-0-RC2:1.4
	thorpej-ifq:1.4.0.34
	thorpej-ifq-base:1.4
	thorpej-altq-separation:1.4.0.32
	thorpej-altq-separation-base:1.4
	netbsd-10-0-RC1:1.4
	netbsd-10:1.4.0.30
	netbsd-10-base:1.4
	bouyer-sunxi-drm:1.4.0.28
	bouyer-sunxi-drm-base:1.4
	netbsd-9-3-RELEASE:1.4
	thorpej-i2c-spi-conf2:1.4.0.26
	thorpej-i2c-spi-conf2-base:1.4
	thorpej-futex2:1.4.0.24
	thorpej-futex2-base:1.4
	thorpej-cfargs2:1.4.0.22
	thorpej-cfargs2-base:1.4
	cjep_sun2x-base1:1.4
	cjep_sun2x:1.4.0.20
	cjep_sun2x-base:1.4
	cjep_staticlib_x-base1:1.4
	netbsd-9-2-RELEASE:1.4
	cjep_staticlib_x:1.4.0.18
	cjep_staticlib_x-base:1.4
	thorpej-i2c-spi-conf:1.4.0.16
	thorpej-i2c-spi-conf-base:1.4
	thorpej-cfargs:1.4.0.14
	thorpej-cfargs-base:1.4
	thorpej-futex:1.4.0.12
	thorpej-futex-base:1.4
	netbsd-9-1-RELEASE:1.4
	bouyer-xenpvh-base2:1.4
	phil-wifi-20200421:1.4
	bouyer-xenpvh-base1:1.4
	phil-wifi-20200411:1.4
	bouyer-xenpvh:1.4.0.10
	bouyer-xenpvh-base:1.4
	is-mlppp:1.4.0.8
	is-mlppp-base:1.4
	phil-wifi-20200406:1.4
	netbsd-8-2-RELEASE:1.2.12.1
	ad-namecache-base3:1.4
	netbsd-9-0-RELEASE:1.4
	netbsd-9-0-RC2:1.4
	ad-namecache-base2:1.4
	ad-namecache-base1:1.4
	ad-namecache:1.4.0.6
	ad-namecache-base:1.4
	netbsd-9-0-RC1:1.4
	phil-wifi-20191119:1.4
	netbsd-9:1.4.0.4
	netbsd-9-base:1.4
	phil-wifi-20190609:1.4
	netbsd-8-1-RELEASE:1.2.12.1
	netbsd-8-1-RC1:1.2.12.1
	isaki-audio2:1.4.0.2
	isaki-audio2-base:1.4
	pgoyette-compat-merge-20190127:1.3
	pgoyette-compat-20190127:1.3
	pgoyette-compat-20190118:1.3
	pgoyette-compat-1226:1.3
	pgoyette-compat-1126:1.3
	pgoyette-compat-1020:1.3
	pgoyette-compat-0930:1.3
	pgoyette-compat-0906:1.3
	pgoyette-compat-0728:1.3
	netbsd-8-0-RELEASE:1.2.12.1
	phil-wifi:1.3.0.4
	phil-wifi-base:1.3
	pgoyette-compat-0625:1.3
	netbsd-8-0-RC2:1.2.12.1
	pgoyette-compat-0521:1.3
	pgoyette-compat-0502:1.3
	pgoyette-compat-0422:1.3
	netbsd-8-0-RC1:1.2.12.1
	pgoyette-compat-0415:1.3
	pgoyette-compat-0407:1.3
	pgoyette-compat-0330:1.3
	pgoyette-compat-0322:1.3
	pgoyette-compat-0315:1.3
	pgoyette-compat:1.3.0.2
	pgoyette-compat-base:1.3
	tls-maxphys:1.2.0.18
	tls-maxphys-base-20171202:1.2
	matt-nb8-mediatek:1.2.0.16
	matt-nb8-mediatek-base:1.2
	nick-nhusb-base-20170825:1.2
	perseant-stdc-iso10646:1.2.0.14
	perseant-stdc-iso10646-base:1.2
	netbsd-8:1.2.0.12
	netbsd-8-base:1.2
	prg-localcount2-base3:1.2
	prg-localcount2-base2:1.2
	prg-localcount2-base1:1.2
	prg-localcount2:1.2.0.10
	prg-localcount2-base:1.2
	pgoyette-localcount-20170426:1.2
	bouyer-socketcan-base1:1.2
	jdolecek-ncq:1.2.0.8
	jdolecek-ncq-base:1.2
	pgoyette-localcount-20170320:1.2
	nick-nhusb-base-20170204:1.2
	bouyer-socketcan:1.2.0.6
	bouyer-socketcan-base:1.2
	pgoyette-localcount-20170107:1.2
	nick-nhusb-base-20161204:1.2
	pgoyette-localcount-20161104:1.2
	nick-nhusb:1.2.0.4
	nick-nhusb-base-20161004:1.2
	pgoyette-localcount:1.2.0.2
	localcount-20160914:1.2;
locks; strict;
comment	@# @;


1.4
date	2019.02.17.04.05.51;	author rin;	state Exp;
branches;
next	1.3;
commitid	viEUadQYccaOx4cB;

1.3
date	2017.12.09.08.03.07;	author pgoyette;	state Exp;
branches
	1.3.4.1;
next	1.2;
commitid	Q2FWSKJI8vGbRbiA;

1.2
date	2016.08.18.11.41.58;	author knakahara;	state Exp;
branches
	1.2.2.1
	1.2.4.1
	1.2.12.1
	1.2.18.1;
next	1.1;
commitid	TYmI9qpTebMzrMiz;

1.1
date	2016.08.07.14.27.38;	author christos;	state Exp;
branches;
next	;
commitid	oEvJBsiBwb2kInhz;

1.3.4.1
date	2019.06.10.22.09.27;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;

1.2.2.1
date	2016.08.18.11.41.58;	author pgoyette;	state dead;
branches;
next	1.2.2.2;
commitid	0FvUzdNwg07UHcmz;

1.2.2.2
date	2016.09.14.03.04.18;	author pgoyette;	state Exp;
branches;
next	;
commitid	0FvUzdNwg07UHcmz;

1.2.4.1
date	2016.08.18.11.41.58;	author skrll;	state dead;
branches;
next	1.2.4.2;
commitid	uuAdz3JYHQmaWZoz;

1.2.4.2
date	2016.10.05.20.56.05;	author skrll;	state Exp;
branches;
next	;
commitid	uuAdz3JYHQmaWZoz;

1.2.12.1
date	2017.12.21.19.14.41;	author snj;	state Exp;
branches;
next	;
commitid	EAquKQt3qzracNjA;

1.2.18.1
date	2016.08.18.11.41.58;	author jdolecek;	state dead;
branches;
next	1.2.18.2;
commitid	XcIYRZTAh1LmerhA;

1.2.18.2
date	2017.12.03.11.38.55;	author jdolecek;	state Exp;
branches;
next	;
commitid	XcIYRZTAh1LmerhA;


desc
@@


1.4
log
@Bump default value of WARNS for modules from 3 to 5, and
explicitly set WARNS for modules that fail with WARNS=5.

Also, turn on -Wno-missing-noreturn for clang for some files.

At the moment, among ~ 360 modules,
- 2 (lua and zfs) need WARNS=0
- 1 (solaris) needs WARNS=1
- 136 need WARNS=3 (mostly due to sign-compare)
- 4 need WARNS=4
- others can be compiled with WARNS=5

Discussed on tech-kern.
@
text
@# $NetBSD: Makefile,v 1.3 2017/12/09 08:03:07 pgoyette Exp $

.include "../Makefile.inc"

.PATH:  ${S}/net ${S}/netinet ${S}/netinet6

KMOD=		if_gif
IOCONF=		gif.ioconf
SRCS=		if_gif.c in_gif.c in6_gif.c

CPPFLAGS+=	-DINET
CPPFLAGS+=	-DINET6

WARNS=		3

.include <bsd.kmodule.mk>
@


1.3
log
@Split ip_ecn code into its own module, so it can be shared between
gif(4), stf(4), and ipsec(4).  Without this, loading the if_gif
module can result in redefined global symbols if either ipsec(4) or
stf(4) but not gif(4) is built into the kernel.

Fixes PR kern/52795 (as reported by martin@@ via irc).

XXX pullup to netbsd-8
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2016/08/18 11:41:58 knakahara Exp $
d14 2
@


1.3.4.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2019/02/17 04:05:51 rin Exp $
a13 2
WARNS=		3

@


1.2
log
@add required files to if_gif module. (unify to rump)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2016/08/07 14:27:38 christos Exp $
d9 1
a9 1
SRCS=		if_gif.c in_gif.c in6_gif.c ip_ecn.c
@


1.2.12.1
log
@Pull up following revision(s) (requested by pgoyette in ticket #436):
	distrib/sets/lists/modules/mi: revision 1.112
	sys/modules/Makefile: revision 1.196
	sys/modules/ip_ecn/Makefile: revision 1.1
	sys/modules/if_gif/Makefile: revision 1.3
	sys/net/if_gif.c: revision 1.136
	sys/netinet/ip_ecn.c: revision 1.17
Split ip_ecn code into its own module, so it can be shared between
gif(4), stf(4), and ipsec(4).  Without this, loading the if_gif
module can result in redefined global symbols if either ipsec(4) or
stf(4) but not gif(4) is built into the kernel.
Fixes PR kern/52795 (as reported by martin@@ via irc).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2016/08/18 11:41:58 knakahara Exp $
d9 1
a9 1
SRCS=		if_gif.c in_gif.c in6_gif.c
@


1.2.18.1
log
@file Makefile was added on branch tls-maxphys on 2017-12-03 11:38:55 +0000
@
text
@d1 14
@


1.2.18.2
log
@update from HEAD
@
text
@a0 14
# $NetBSD$

.include "../Makefile.inc"

.PATH:  ${S}/net ${S}/netinet ${S}/netinet6

KMOD=		if_gif
IOCONF=		gif.ioconf
SRCS=		if_gif.c in_gif.c in6_gif.c ip_ecn.c

CPPFLAGS+=	-DINET
CPPFLAGS+=	-DINET6

.include <bsd.kmodule.mk>
@


1.2.4.1
log
@file Makefile was added on branch nick-nhusb on 2016-10-05 20:56:05 +0000
@
text
@d1 14
@


1.2.4.2
log
@Sync with HEAD
@
text
@a0 14
# $NetBSD: Makefile,v 1.2 2016/08/18 11:41:58 knakahara Exp $

.include "../Makefile.inc"

.PATH:  ${S}/net ${S}/netinet ${S}/netinet6

KMOD=		if_gif
IOCONF=		gif.ioconf
SRCS=		if_gif.c in_gif.c in6_gif.c ip_ecn.c

CPPFLAGS+=	-DINET
CPPFLAGS+=	-DINET6

.include <bsd.kmodule.mk>
@


1.2.2.1
log
@file Makefile was added on branch pgoyette-localcount on 2016-09-14 03:04:18 +0000
@
text
@d1 14
@


1.2.2.2
log
@Sync with HEAD
@
text
@a0 14
# $NetBSD: Makefile,v 1.2 2016/08/18 11:41:58 knakahara Exp $

.include "../Makefile.inc"

.PATH:  ${S}/net ${S}/netinet ${S}/netinet6

KMOD=		if_gif
IOCONF=		gif.ioconf
SRCS=		if_gif.c in_gif.c in6_gif.c ip_ecn.c

CPPFLAGS+=	-DINET
CPPFLAGS+=	-DINET6

.include <bsd.kmodule.mk>
@


1.1
log
@add new modules
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2016/08/06 06:06:54 christos Exp $
d5 1
a5 1
.PATH:  ${S}/net
d9 1
a9 1
SRCS=		if_gif.c
@

