head	1.8;
access;
symbols
	netbsd-11-0-RC3:1.8
	netbsd-11-0-RC2:1.8
	netbsd-11-0-RC1:1.8
	perseant-exfatfs-base-20250801:1.8
	netbsd-11:1.8.0.38
	netbsd-11-base:1.8
	netbsd-10-1-RELEASE:1.8
	perseant-exfatfs-base-20240630:1.8
	perseant-exfatfs:1.8.0.36
	perseant-exfatfs-base:1.8
	netbsd-8-3-RELEASE:1.2
	netbsd-9-4-RELEASE:1.8
	netbsd-10-0-RELEASE:1.8
	netbsd-10-0-RC6:1.8
	netbsd-10-0-RC5:1.8
	netbsd-10-0-RC4:1.8
	netbsd-10-0-RC3:1.8
	netbsd-10-0-RC2:1.8
	thorpej-ifq:1.8.0.34
	thorpej-ifq-base:1.8
	thorpej-altq-separation:1.8.0.32
	thorpej-altq-separation-base:1.8
	netbsd-10-0-RC1:1.8
	netbsd-10:1.8.0.30
	netbsd-10-base:1.8
	bouyer-sunxi-drm:1.8.0.28
	bouyer-sunxi-drm-base:1.8
	netbsd-9-3-RELEASE:1.8
	thorpej-i2c-spi-conf2:1.8.0.26
	thorpej-i2c-spi-conf2-base:1.8
	thorpej-futex2:1.8.0.24
	thorpej-futex2-base:1.8
	thorpej-cfargs2:1.8.0.22
	thorpej-cfargs2-base:1.8
	cjep_sun2x-base1:1.8
	cjep_sun2x:1.8.0.20
	cjep_sun2x-base:1.8
	cjep_staticlib_x-base1:1.8
	netbsd-9-2-RELEASE:1.8
	cjep_staticlib_x:1.8.0.18
	cjep_staticlib_x-base:1.8
	thorpej-i2c-spi-conf:1.8.0.16
	thorpej-i2c-spi-conf-base:1.8
	thorpej-cfargs:1.8.0.14
	thorpej-cfargs-base:1.8
	thorpej-futex:1.8.0.12
	thorpej-futex-base:1.8
	netbsd-9-1-RELEASE:1.8
	bouyer-xenpvh-base2:1.8
	phil-wifi-20200421:1.8
	bouyer-xenpvh-base1:1.8
	phil-wifi-20200411:1.8
	bouyer-xenpvh:1.8.0.10
	bouyer-xenpvh-base:1.8
	is-mlppp:1.8.0.8
	is-mlppp-base:1.8
	phil-wifi-20200406:1.8
	netbsd-8-2-RELEASE:1.2
	ad-namecache-base3:1.8
	netbsd-9-0-RELEASE:1.8
	netbsd-9-0-RC2:1.8
	ad-namecache-base2:1.8
	ad-namecache-base1:1.8
	ad-namecache:1.8.0.6
	ad-namecache-base:1.8
	netbsd-9-0-RC1:1.8
	phil-wifi-20191119:1.8
	netbsd-9:1.8.0.4
	netbsd-9-base:1.8
	phil-wifi-20190609:1.8
	netbsd-8-1-RELEASE:1.2
	netbsd-8-1-RC1:1.2
	isaki-audio2:1.8.0.2
	isaki-audio2-base:1.8
	pgoyette-compat-merge-20190127:1.2.18.2
	pgoyette-compat-20190127:1.7
	pgoyette-compat-20190118:1.7
	pgoyette-compat-1226:1.7
	pgoyette-compat-1126:1.7
	pgoyette-compat-1020:1.7
	pgoyette-compat-0930:1.7
	pgoyette-compat-0906:1.7
	netbsd-7-2-RELEASE:1.1
	pgoyette-compat-0728:1.7
	netbsd-8-0-RELEASE:1.2
	phil-wifi:1.6.0.2
	phil-wifi-base:1.6
	pgoyette-compat-0625:1.6
	netbsd-8-0-RC2:1.2
	pgoyette-compat-0521:1.2
	pgoyette-compat-0502:1.2
	pgoyette-compat-0422:1.2
	netbsd-8-0-RC1:1.2
	pgoyette-compat-0415:1.2
	pgoyette-compat-0407:1.2
	pgoyette-compat-0330:1.2
	pgoyette-compat-0322:1.2
	pgoyette-compat-0315:1.2
	netbsd-7-1-2-RELEASE:1.1
	pgoyette-compat:1.2.0.18
	pgoyette-compat-base:1.2
	netbsd-7-1-1-RELEASE:1.1
	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
	netbsd-7-1:1.1.0.22
	netbsd-7-1-RELEASE:1.1
	netbsd-7-1-RC2:1.1
	nick-nhusb-base-20170204:1.2
	netbsd-7-nhusb-base-20170116:1.1
	bouyer-socketcan:1.2.0.6
	bouyer-socketcan-base:1.2
	pgoyette-localcount-20170107:1.2
	netbsd-7-1-RC1:1.1
	nick-nhusb-base-20161204:1.2
	pgoyette-localcount-20161104:1.2
	netbsd-7-0-2-RELEASE:1.1
	nick-nhusb-base-20161004:1.2
	localcount-20160914:1.2
	netbsd-7-nhusb:1.1.0.20
	netbsd-7-nhusb-base:1.1
	pgoyette-localcount-20160806:1.2
	pgoyette-localcount-20160726:1.2
	pgoyette-localcount:1.2.0.4
	pgoyette-localcount-base:1.2
	nick-nhusb-base-20160907:1.2
	nick-nhusb-base-20160529:1.2
	netbsd-7-0-1-RELEASE:1.1
	nick-nhusb-base-20160422:1.2
	nick-nhusb-base-20160319:1.2
	nick-nhusb-base-20151226:1.2
	netbsd-7-0:1.1.0.18
	netbsd-7-0-RELEASE:1.1
	nick-nhusb-base-20150921:1.2
	netbsd-7-0-RC3:1.1
	netbsd-7-0-RC2:1.1
	netbsd-7-0-RC1:1.1
	nick-nhusb-base-20150606:1.2
	nick-nhusb-base-20150406:1.2
	nick-nhusb:1.2.0.2
	nick-nhusb-base:1.2
	netbsd-7:1.1.0.16
	netbsd-7-base:1.1
	yamt-pagecache-base9:1.1
	yamt-pagecache-tag8:1.1.2.2
	tls-earlyentropy:1.1.0.14
	tls-earlyentropy-base:1.1
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1
	riastradh-drm2-base3:1.1
	rmind-smpnet-nbase:1.1
	riastradh-drm2-base2:1.1
	riastradh-drm2-base1:1.1
	riastradh-drm2:1.1.0.12
	riastradh-drm2-base:1.1
	rmind-smpnet:1.1.0.4
	rmind-smpnet-base:1.1
	khorben-n900:1.1.0.10
	agc-symver:1.1.0.8
	agc-symver-base:1.1
	tls-maxphys-base:1.1
	tls-maxphys:1.1.0.6
	yamt-pagecache-base8:1.1
	yamt-pagecache:1.1.0.2
	yamt-pagecache-base7:1.1;
locks; strict;
comment	@# @;


1.8
date	2019.02.17.04.05.48;	author rin;	state Exp;
branches;
next	1.7;
commitid	viEUadQYccaOx4cB;

1.7
date	2018.06.29.11.33.47;	author kamil;	state Exp;
branches;
next	1.6;
commitid	9V34Ksh1245SwaIA;

1.6
date	2018.06.07.13.21.44;	author kamil;	state Exp;
branches
	1.6.2.1;
next	1.5;
commitid	O3KRdKiHs4B9QlFA;

1.5
date	2018.06.06.15.01.13;	author kamil;	state Exp;
branches;
next	1.4;
commitid	K87b9qeElSuEqeFA;

1.4
date	2018.06.06.14.57.38;	author kamil;	state Exp;
branches;
next	1.3;
commitid	hJOmWU2TPtsfpeFA;

1.3
date	2018.05.28.21.05.01;	author chs;	state Exp;
branches;
next	1.2;
commitid	NQFwoUduS0toJ6EA;

1.2
date	2014.09.18.19.45.24;	author wiz;	state Exp;
branches
	1.2.18.1;
next	1.1;
commitid	EGHd76O7W2VhCRQx;

1.1
date	2012.12.02.01.05.17;	author chs;	state Exp;
branches
	1.1.2.1
	1.1.6.1;
next	;

1.6.2.1
date	2019.06.10.22.09.22;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;

1.2.18.1
date	2018.06.25.07.26.05;	author pgoyette;	state Exp;
branches;
next	1.2.18.2;
commitid	8PtAu9af7VvhiDHA;

1.2.18.2
date	2018.07.28.04.38.09;	author pgoyette;	state Exp;
branches;
next	;
commitid	1UP1xAIUxv1ZgRLA;

1.1.2.1
date	2012.12.02.01.05.17;	author yamt;	state dead;
branches;
next	1.1.2.2;

1.1.2.2
date	2013.01.16.05.33.47;	author yamt;	state Exp;
branches;
next	;

1.1.6.1
date	2012.12.02.01.05.17;	author tls;	state dead;
branches;
next	1.1.6.2;

1.1.6.2
date	2013.02.25.00.30.00;	author tls;	state Exp;
branches;
next	1.1.6.3;

1.1.6.3
date	2017.12.03.11.38.52;	author jdolecek;	state Exp;
branches;
next	;
commitid	XcIYRZTAh1LmerhA;


desc
@@


1.8
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.7 2018/06/29 11:33:47 kamil Exp $

.include "../../Makefile.inc"

.PATH: ${NETBSDSRCDIR}/external/cddl/osnet/dev/profile

KMOD=		dtrace_profile
SRCS=		profile.c

CPPFLAGS+=	-I${NETBSDSRCDIR}/external/cddl/osnet/sys \
		-I${NETBSDSRCDIR}/external/cddl/osnet/dev/profile \
		-I${NETBSDSRCDIR}/external/cddl/osnet/dist/uts/common

CPPFLAGS+=	-Wno-unknown-pragmas -Wno-cast-qual

CPPFLAGS+=	${${ACTIVE_CC} == "gcc" :? -Wno-discarded-qualifiers :}
CPPFLAGS+=	${${ACTIVE_CC} == "clang" :? -Wno-incompatible-pointer-types-discards-qualifiers :}

WARNS=		3

.include <bsd.kmodule.mk>
@


1.7
log
@Rework the changes to DTRACE/ZFS files that were fixing Clang/LLVM build

Rever changes to upstream files and replace them with additional -Wno-
compiler argument flags.

Tested with base LLVM.

Requested by <chuq>
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2018/06/07 13:21:44 kamil Exp $
d19 2
@


1.6
log
@Replace HAVE_GCC with ACTIVE_CC == gcc checks

Kernel modules build with GCC and Clang/LLVM.

Requested by <joerg>
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2018/06/06 15:01:13 kamil Exp $
d17 1
@


1.6.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2019/02/17 04:05:48 rin Exp $
a16 3
CPPFLAGS+=	${${ACTIVE_CC} == "clang" :? -Wno-incompatible-pointer-types-discards-qualifiers :}

WARNS=		3
@


1.5
log
@Swap conditions HAVE_LLVM -> HAVE_GCC
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2018/06/06 14:57:38 kamil Exp $
d16 1
a16 3
.if defined(HAVE_GCC)
CPPFLAGS+=	-Wno-discarded-qualifiers
.endif
@


1.4
log
@Restrict -Wno-discarded-qualifiers in sys/modules/dtrace/* to GCC

Clang/LLVM does not recognize it.

This is a step forward functional MKLLVM=yes HAVE_LLVM=yes build.

Sponsored by <The NetBSD Foundation>
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2018/05/28 21:05:01 chs Exp $
d16 1
a16 1
.if defined(HAVE_LLVM)
@


1.3
log
@merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
 - dtrace FBT probes can now be placed in kernel modules.
 - ZFS now supports mmap().
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2014/09/18 19:45:24 wiz Exp $
d14 5
a18 1
CPPFLAGS+=	-Wno-unknown-pragmas -Wno-cast-qual -Wno-discarded-qualifiers
@


1.2
log
@Per the wiki roadmap, rename the three dtrace modules to have
a "dtrace_" prefix.
amd64 build tested, other set list changes done the same way.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2012/12/02 01:05:17 chs Exp $
d14 1
a14 1
CPPFLAGS+=	-Wno-unknown-pragmas -Wno-cast-qual
@


1.2.18.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2018/06/07 13:21:44 kamil Exp $
a15 2
CPPFLAGS+=	${${ACTIVE_CC} == "gcc" :? -Wno-discarded-qualifiers :}

@


1.2.18.2
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2018/06/29 11:33:47 kamil Exp $
a16 1
CPPFLAGS+=	${${ACTIVE_CC} == "clang" :? -Wno-incompatible-pointer-types-discards-qualifiers :}
@


1.1
log
@adapt the cyclic module and profile dtrace provider to netbsd.
for now, just hook the cyclic callback into hardclock().
@
text
@d1 1
a1 1
# $NetBSD$
d7 1
a7 1
KMOD=		profile
@


1.1.6.1
log
@file Makefile was added on branch tls-maxphys on 2013-02-25 00:30:00 +0000
@
text
@d1 16
@


1.1.6.2
log
@resync with head
@
text
@a0 16
# $NetBSD$

.include "../../Makefile.inc"

.PATH: ${NETBSDSRCDIR}/external/cddl/osnet/dev/profile

KMOD=		profile
SRCS=		profile.c

CPPFLAGS+=	-I${NETBSDSRCDIR}/external/cddl/osnet/sys \
		-I${NETBSDSRCDIR}/external/cddl/osnet/dev/profile \
		-I${NETBSDSRCDIR}/external/cddl/osnet/dist/uts/common

CPPFLAGS+=	-Wno-unknown-pragmas -Wno-cast-qual

.include <bsd.kmodule.mk>
@


1.1.6.3
log
@update from HEAD
@
text
@d7 1
a7 1
KMOD=		dtrace_profile
@


1.1.2.1
log
@file Makefile was added on branch yamt-pagecache on 2013-01-16 05:33:47 +0000
@
text
@d1 16
@


1.1.2.2
log
@sync with (a bit old) head
@
text
@a0 16
# $NetBSD$

.include "../../Makefile.inc"

.PATH: ${NETBSDSRCDIR}/external/cddl/osnet/dev/profile

KMOD=		profile
SRCS=		profile.c

CPPFLAGS+=	-I${NETBSDSRCDIR}/external/cddl/osnet/sys \
		-I${NETBSDSRCDIR}/external/cddl/osnet/dev/profile \
		-I${NETBSDSRCDIR}/external/cddl/osnet/dist/uts/common

CPPFLAGS+=	-Wno-unknown-pragmas -Wno-cast-qual

.include <bsd.kmodule.mk>
@


