head	1.2;
access;
symbols
	netbsd-11-0-RC5:1.2
	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-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
	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
	isaki-audio2:1.2.0.2
	isaki-audio2-base:1.2
	pgoyette-compat-merge-20190127:1.1.2.2
	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
	phil-wifi:1.1.0.4
	phil-wifi-base:1.1
	pgoyette-compat-0625:1.1
	pgoyette-compat-0521:1.1
	pgoyette-compat-0502:1.1
	pgoyette-compat:1.1.0.2
	pgoyette-compat-0422:1.1;
locks; strict;
comment	@# @;


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

1.1
date	2018.04.20.00.06.45;	author kamil;	state Exp;
branches
	1.1.2.1
	1.1.4.1;
next	;
commitid	sw7zaXbvcW0VW6zA;

1.1.2.1
date	2018.04.20.00.06.45;	author pgoyette;	state dead;
branches;
next	1.1.2.2;
commitid	W6xykws0Zbl4kpzA;

1.1.2.2
date	2018.04.22.07.20.27;	author pgoyette;	state Exp;
branches;
next	;
commitid	W6xykws0Zbl4kpzA;

1.1.4.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 2018/04/20 00:06:45 kamil Exp $

.include "../Makefile.inc"

#S?=	/usr/src/sys
KMOD=	readhappy_mpsafe
SRCS=	readhappy_mpsafe.c

WARNS=	3

.include <bsd.kmodule.mk>

# To make use of this module, you'll need to separately build the
# test_readhappy program, with a Makefile similar to
#
#	MKMAN=	NO
#	PROG=	test_readhappy
#
#	CFLAGS+=-pthread
#
#	LDADD+= -lpthread
#	DPADD+= ${LIBPTHREAD}
#
#	.include <bsd.prog.mk>
@


1.1
log
@
Add new example loadable kernel module: readhappy_mpsafe

readhappy_mpsafe - demonstrates how to make a module MPSAFE

This module contains an additional helper program test_readhappy.c,
that is designed to exercise the kernel module with multiple threads.

Submitted by <Siddharth Muralee>
@
text
@d1 1
a1 1
#	$NetBSD$
d9 2
@


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

@


1.1.2.1
log
@file Makefile was added on branch pgoyette-compat on 2018-04-22 07:20:27 +0000
@
text
@d1 22
@


1.1.2.2
log
@Sync with HEAD
@
text
@a0 22
#	$NetBSD: Makefile,v 1.1 2018/04/20 00:06:45 kamil Exp $

.include "../Makefile.inc"

#S?=	/usr/src/sys
KMOD=	readhappy_mpsafe
SRCS=	readhappy_mpsafe.c

.include <bsd.kmodule.mk>

# To make use of this module, you'll need to separately build the
# test_readhappy program, with a Makefile similar to
#
#	MKMAN=	NO
#	PROG=	test_readhappy
#
#	CFLAGS+=-pthread
#
#	LDADD+= -lpthread
#	DPADD+= ${LIBPTHREAD}
#
#	.include <bsd.prog.mk>
@


