head	1.2;
access;
symbols
	netbsd-11-0-RC4:1.2
	netbsd-11-0-RC3:1.2
	netbsd-11-0-RC2:1.2
	netbsd-11-0-RC1:1.2
	perseant-exfatfs-base-20250801:1.2
	netbsd-11:1.2.0.38
	netbsd-11-base:1.2
	netbsd-10-1-RELEASE:1.2
	perseant-exfatfs-base-20240630:1.2
	perseant-exfatfs:1.2.0.36
	perseant-exfatfs-base:1.2
	netbsd-8-3-RELEASE:1.1
	netbsd-9-4-RELEASE:1.2
	netbsd-10-0-RELEASE:1.2
	netbsd-10-0-RC6:1.2
	netbsd-10-0-RC5:1.2
	netbsd-10-0-RC4:1.2
	netbsd-10-0-RC3:1.2
	netbsd-10-0-RC2:1.2
	thorpej-ifq:1.2.0.34
	thorpej-ifq-base:1.2
	thorpej-altq-separation:1.2.0.32
	thorpej-altq-separation-base:1.2
	netbsd-10-0-RC1:1.2
	netbsd-10:1.2.0.30
	netbsd-10-base:1.2
	bouyer-sunxi-drm:1.2.0.28
	bouyer-sunxi-drm-base:1.2
	netbsd-9-3-RELEASE:1.2
	thorpej-i2c-spi-conf2:1.2.0.26
	thorpej-i2c-spi-conf2-base:1.2
	thorpej-futex2:1.2.0.24
	thorpej-futex2-base:1.2
	thorpej-cfargs2:1.2.0.22
	thorpej-cfargs2-base:1.2
	cjep_sun2x-base1:1.2
	cjep_sun2x:1.2.0.20
	cjep_sun2x-base:1.2
	cjep_staticlib_x-base1:1.2
	netbsd-9-2-RELEASE:1.2
	cjep_staticlib_x:1.2.0.18
	cjep_staticlib_x-base:1.2
	thorpej-i2c-spi-conf:1.2.0.16
	thorpej-i2c-spi-conf-base:1.2
	thorpej-cfargs:1.2.0.14
	thorpej-cfargs-base:1.2
	thorpej-futex:1.2.0.12
	thorpej-futex-base:1.2
	netbsd-9-1-RELEASE:1.2
	bouyer-xenpvh-base2:1.2
	phil-wifi-20200421:1.2
	bouyer-xenpvh-base1:1.2
	phil-wifi-20200411:1.2
	bouyer-xenpvh:1.2.0.10
	bouyer-xenpvh-base:1.2
	is-mlppp:1.2.0.8
	is-mlppp-base:1.2
	phil-wifi-20200406:1.2
	netbsd-8-2-RELEASE:1.1
	ad-namecache-base3:1.2
	netbsd-9-0-RELEASE:1.2
	netbsd-9-0-RC2:1.2
	ad-namecache-base2:1.2
	ad-namecache-base1:1.2
	ad-namecache:1.2.0.6
	ad-namecache-base:1.2
	netbsd-9-0-RC1:1.2
	phil-wifi-20191119:1.2
	netbsd-9:1.2.0.4
	netbsd-9-base:1.2
	phil-wifi-20190609:1.2
	netbsd-8-1-RELEASE:1.1
	netbsd-8-1-RC1:1.1
	isaki-audio2:1.2.0.2
	isaki-audio2-base:1.2
	pgoyette-compat-merge-20190127:1.1
	pgoyette-compat-20190127:1.1
	pgoyette-compat-20190118:1.1
	pgoyette-compat-1226:1.1
	pgoyette-compat-1126:1.1
	pgoyette-compat-1020:1.1
	pgoyette-compat-0930:1.1
	pgoyette-compat-0906:1.1
	pgoyette-compat-0728:1.1
	netbsd-8-0-RELEASE:1.1
	phil-wifi:1.1.0.20
	phil-wifi-base:1.1
	pgoyette-compat-0625:1.1
	netbsd-8-0-RC2:1.1
	pgoyette-compat-0521:1.1
	pgoyette-compat-0502:1.1
	pgoyette-compat-0422:1.1
	netbsd-8-0-RC1:1.1
	pgoyette-compat-0415:1.1
	pgoyette-compat-0407:1.1
	pgoyette-compat-0330:1.1
	pgoyette-compat-0322:1.1
	pgoyette-compat-0315:1.1
	pgoyette-compat:1.1.0.18
	pgoyette-compat-base:1.1
	tls-maxphys:1.1.0.16
	tls-maxphys-base-20171202:1.1
	matt-nb8-mediatek:1.1.0.14
	matt-nb8-mediatek-base:1.1
	nick-nhusb:1.1.0.12
	nick-nhusb-base-20170825:1.1
	perseant-stdc-iso10646:1.1.0.10
	perseant-stdc-iso10646-base:1.1
	netbsd-8:1.1.0.8
	netbsd-8-base:1.1
	prg-localcount2-base3:1.1
	prg-localcount2-base2:1.1
	prg-localcount2-base1:1.1
	prg-localcount2:1.1.0.6
	prg-localcount2-base:1.1
	pgoyette-localcount:1.1.0.4
	pgoyette-localcount-20170426:1.1
	bouyer-socketcan:1.1.0.2
	bouyer-socketcan-base1:1.1;
locks; strict;
comment	@# @;


1.2
date	2019.02.17.04.05.48;	author rin;	state Exp;
branches;
next	1.1;
commitid	viEUadQYccaOx4cB;

1.1
date	2017.04.15.04.27.30;	author kamil;	state Exp;
branches
	1.1.2.1
	1.1.4.1
	1.1.12.1
	1.1.16.1
	1.1.20.1;
next	;
commitid	HezLhRDNdYAWiANz;

1.1.2.1
date	2017.04.15.04.27.30;	author kamil;	state dead;
branches;
next	1.1.2.2;

1.1.2.2
date	2017.04.15.04.27.31;	author kamil;	state Exp;
branches;
next	;

1.1.4.1
date	2017.04.15.04.27.30;	author pgoyette;	state dead;
branches;
next	1.1.4.2;
commitid	ojV02aOSdzvBqZOz;

1.1.4.2
date	2017.04.26.02.53.28;	author pgoyette;	state Exp;
branches;
next	;
commitid	ojV02aOSdzvBqZOz;

1.1.12.1
date	2017.04.15.04.27.30;	author skrll;	state dead;
branches;
next	1.1.12.2;
commitid	UQQpnjvcNkUZn05A;

1.1.12.2
date	2017.08.28.17.53.10;	author skrll;	state Exp;
branches;
next	;
commitid	UQQpnjvcNkUZn05A;

1.1.16.1
date	2017.04.15.04.27.30;	author jdolecek;	state dead;
branches;
next	1.1.16.2;
commitid	XcIYRZTAh1LmerhA;

1.1.16.2
date	2017.12.03.11.38.53;	author jdolecek;	state Exp;
branches;
next	;
commitid	XcIYRZTAh1LmerhA;

1.1.20.1
date	2019.06.10.22.09.24;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;


desc
@@


1.2
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.1 2017/04/15 04:27:30 kamil Exp $

#.include "../Makefile.inc"

#S?=	/usr/src/sys

KMOD=	luareadhappy
SRCS=	luareadhappy.c

CPPFLAGS+=	-I${S}/../external/mit/lua/dist/src \
		-I${S}/modules/lua \
		-I${S}/sys

WARNS=	3

.include <bsd.kmodule.mk>
@


1.1
log
@Add new example kernel module in Lua luareadhappy

This example presents a C module with its device (/dev entry) and its
content generator with algorithm defined in Lua state. The Lua state can
be changed dynamically from userland, without interruption of read(2) over
the device.

This is an example how to call Lua code from C.
@
text
@d1 1
a1 1
#	$NetBSD$
d14 2
@


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

@


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


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

#.include "../Makefile.inc"

#S?=	/usr/src/sys

KMOD=	luareadhappy
SRCS=	luareadhappy.c

CPPFLAGS+=	-I${S}/../external/mit/lua/dist/src \
		-I${S}/modules/lua \
		-I${S}/sys

.include <bsd.kmodule.mk>
@


1.1.12.1
log
@file Makefile was added on branch nick-nhusb on 2017-08-28 17:53:10 +0000
@
text
@d1 14
@


1.1.12.2
log
@Sync with HEAD
@
text
@a0 14
#	$NetBSD: Makefile,v 1.1 2017/04/15 04:27:30 kamil Exp $

#.include "../Makefile.inc"

#S?=	/usr/src/sys

KMOD=	luareadhappy
SRCS=	luareadhappy.c

CPPFLAGS+=	-I${S}/../external/mit/lua/dist/src \
		-I${S}/modules/lua \
		-I${S}/sys

.include <bsd.kmodule.mk>
@


1.1.2.1
log
@file Makefile was added on branch bouyer-socketcan on 2017-04-15 04:27:31 +0000
@
text
@d1 14
@


1.1.2.2
log
@1043943
@
text
@a0 14
#	$NetBSD: Makefile,v 1.1 2017/04/15 04:27:30 kamil Exp $

#.include "../Makefile.inc"

#S?=	/usr/src/sys

KMOD=	luareadhappy
SRCS=	luareadhappy.c

CPPFLAGS+=	-I${S}/../external/mit/lua/dist/src \
		-I${S}/modules/lua \
		-I${S}/sys

.include <bsd.kmodule.mk>
@


1.1.4.1
log
@file Makefile was added on branch pgoyette-localcount on 2017-04-26 02:53:28 +0000
@
text
@d1 14
@


1.1.4.2
log
@Sync with HEAD
@
text
@a0 14
#	$NetBSD: Makefile,v 1.1 2017/04/15 04:27:30 kamil Exp $

#.include "../Makefile.inc"

#S?=	/usr/src/sys

KMOD=	luareadhappy
SRCS=	luareadhappy.c

CPPFLAGS+=	-I${S}/../external/mit/lua/dist/src \
		-I${S}/modules/lua \
		-I${S}/sys

.include <bsd.kmodule.mk>
@


