head	1.42;
access;
symbols
	netbsd-11-0-RC4:1.42
	netbsd-11-0-RC3:1.42
	netbsd-11-0-RC2:1.42
	netbsd-11-0-RC1:1.42
	perseant-exfatfs-base-20250801:1.42
	netbsd-11:1.42.0.4
	netbsd-11-base:1.42
	netbsd-10-1-RELEASE:1.41
	perseant-exfatfs-base-20240630:1.42
	perseant-exfatfs:1.42.0.2
	perseant-exfatfs-base:1.42
	netbsd-8-3-RELEASE:1.40
	netbsd-9-4-RELEASE:1.40
	netbsd-10-0-RELEASE:1.41
	netbsd-10-0-RC6:1.41
	netbsd-10-0-RC5:1.41
	netbsd-10-0-RC4:1.41
	netbsd-10-0-RC3:1.41
	netbsd-10-0-RC2:1.41
	netbsd-10-0-RC1:1.41
	netbsd-10:1.41.0.6
	netbsd-10-base:1.41
	netbsd-9-3-RELEASE:1.40
	cjep_sun2x-base1:1.41
	cjep_sun2x:1.41.0.4
	cjep_sun2x-base:1.41
	cjep_staticlib_x-base1:1.41
	netbsd-9-2-RELEASE:1.40
	cjep_staticlib_x:1.41.0.2
	cjep_staticlib_x-base:1.41
	netbsd-9-1-RELEASE:1.40
	phil-wifi-20200421:1.40
	phil-wifi-20200411:1.40
	is-mlppp:1.40.0.16
	is-mlppp-base:1.40
	phil-wifi-20200406:1.40
	netbsd-8-2-RELEASE:1.40
	netbsd-9-0-RELEASE:1.40
	netbsd-9-0-RC2:1.40
	netbsd-9-0-RC1:1.40
	phil-wifi-20191119:1.40
	netbsd-9:1.40.0.14
	netbsd-9-base:1.40
	phil-wifi-20190609:1.40
	netbsd-8-1-RELEASE:1.40
	netbsd-8-1-RC1:1.40
	pgoyette-compat-merge-20190127:1.40
	pgoyette-compat-20190127:1.40
	pgoyette-compat-20190118:1.40
	pgoyette-compat-1226:1.40
	pgoyette-compat-1126:1.40
	pgoyette-compat-1020:1.40
	pgoyette-compat-0930:1.40
	pgoyette-compat-0906:1.40
	netbsd-7-2-RELEASE:1.39
	pgoyette-compat-0728:1.40
	netbsd-8-0-RELEASE:1.40
	phil-wifi:1.40.0.12
	phil-wifi-base:1.40
	pgoyette-compat-0625:1.40
	netbsd-8-0-RC2:1.40
	pgoyette-compat-0521:1.40
	pgoyette-compat-0502:1.40
	pgoyette-compat-0422:1.40
	netbsd-8-0-RC1:1.40
	pgoyette-compat-0415:1.40
	pgoyette-compat-0407:1.40
	pgoyette-compat-0330:1.40
	pgoyette-compat-0322:1.40
	pgoyette-compat-0315:1.40
	netbsd-7-1-2-RELEASE:1.39
	pgoyette-compat:1.40.0.10
	pgoyette-compat-base:1.40
	netbsd-7-1-1-RELEASE:1.39
	matt-nb8-mediatek:1.40.0.8
	matt-nb8-mediatek-base:1.40
	perseant-stdc-iso10646:1.40.0.6
	perseant-stdc-iso10646-base:1.40
	netbsd-8:1.40.0.4
	netbsd-8-base:1.40
	prg-localcount2-base3:1.40
	prg-localcount2-base2:1.40
	prg-localcount2-base1:1.40
	prg-localcount2:1.40.0.2
	prg-localcount2-base:1.40
	pgoyette-localcount-20170426:1.40
	bouyer-socketcan-base1:1.40
	pgoyette-localcount-20170320:1.40
	netbsd-7-1:1.39.0.20
	netbsd-7-1-RELEASE:1.39
	netbsd-7-1-RC2:1.39
	netbsd-7-nhusb-base-20170116:1.39
	bouyer-socketcan:1.39.0.18
	bouyer-socketcan-base:1.39
	pgoyette-localcount-20170107:1.39
	netbsd-7-1-RC1:1.39
	pgoyette-localcount-20161104:1.39
	netbsd-7-0-2-RELEASE:1.39
	localcount-20160914:1.39
	netbsd-7-nhusb:1.39.0.16
	netbsd-7-nhusb-base:1.39
	pgoyette-localcount-20160806:1.39
	pgoyette-localcount-20160726:1.39
	pgoyette-localcount:1.39.0.14
	pgoyette-localcount-base:1.39
	netbsd-7-0-1-RELEASE:1.39
	netbsd-7-0:1.39.0.12
	netbsd-7-0-RELEASE:1.39
	netbsd-7-0-RC3:1.39
	netbsd-7-0-RC2:1.39
	netbsd-7-0-RC1:1.39
	netbsd-5-2-3-RELEASE:1.32
	netbsd-5-1-5-RELEASE:1.32
	netbsd-6-0-6-RELEASE:1.38
	netbsd-6-1-5-RELEASE:1.38
	netbsd-7:1.39.0.10
	netbsd-7-base:1.39
	yamt-pagecache-base9:1.39
	yamt-pagecache-tag8:1.38.2.1
	netbsd-6-1-4-RELEASE:1.38
	netbsd-6-0-5-RELEASE:1.38
	tls-earlyentropy:1.39.0.8
	tls-earlyentropy-base:1.39
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.39
	riastradh-drm2-base3:1.39
	netbsd-6-1-3-RELEASE:1.38
	netbsd-6-0-4-RELEASE:1.38
	netbsd-5-2-2-RELEASE:1.32
	netbsd-5-1-4-RELEASE:1.32
	netbsd-6-1-2-RELEASE:1.38
	netbsd-6-0-3-RELEASE:1.38
	netbsd-5-2-1-RELEASE:1.32
	netbsd-5-1-3-RELEASE:1.32
	netbsd-6-1-1-RELEASE:1.38
	riastradh-drm2-base2:1.39
	riastradh-drm2-base1:1.39
	riastradh-drm2:1.39.0.4
	riastradh-drm2-base:1.39
	netbsd-6-1:1.38.0.10
	netbsd-6-0-2-RELEASE:1.38
	netbsd-6-1-RELEASE:1.38
	netbsd-6-1-RC4:1.38
	netbsd-6-1-RC3:1.38
	agc-symver:1.39.0.6
	agc-symver-base:1.39
	netbsd-6-1-RC2:1.38
	netbsd-6-1-RC1:1.38
	yamt-pagecache-base8:1.39
	netbsd-5-2:1.32.0.14
	netbsd-6-0-1-RELEASE:1.38
	yamt-pagecache-base7:1.39
	netbsd-5-2-RELEASE:1.32
	netbsd-5-2-RC1:1.32
	matt-nb6-plus-nbase:1.38
	yamt-pagecache-base6:1.39
	netbsd-6-0:1.38.0.8
	netbsd-6-0-RELEASE:1.38
	netbsd-6-0-RC2:1.38
	tls-maxphys:1.39.0.2
	tls-maxphys-base:1.39
	matt-nb6-plus:1.38.0.6
	matt-nb6-plus-base:1.38
	netbsd-6-0-RC1:1.38
	yamt-pagecache-base5:1.38
	yamt-pagecache-base4:1.38
	netbsd-6:1.38.0.4
	netbsd-6-base:1.38
	netbsd-5-1-2-RELEASE:1.32
	netbsd-5-1-1-RELEASE:1.32
	yamt-pagecache-base3:1.38
	yamt-pagecache-base2:1.38
	yamt-pagecache:1.38.0.2
	yamt-pagecache-base:1.38
	cherry-xenmp:1.37.0.2
	cherry-xenmp-base:1.37
	bouyer-quota2-nbase:1.36
	bouyer-quota2:1.36.0.2
	bouyer-quota2-base:1.36
	matt-mips64-premerge-20101231:1.36
	matt-nb5-mips64-premerge-20101231:1.32
	matt-nb5-pq3:1.32.0.12
	matt-nb5-pq3-base:1.32
	netbsd-5-1:1.32.0.10
	netbsd-5-1-RELEASE:1.32
	netbsd-5-1-RC4:1.32
	matt-nb5-mips64-k15:1.32
	netbsd-5-1-RC3:1.32
	netbsd-5-1-RC2:1.32
	netbsd-5-1-RC1:1.32
	netbsd-5-0-2-RELEASE:1.32
	matt-nb5-mips64-premerge-20091211:1.32
	matt-premerge-20091211:1.34
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.32
	matt-nb4-mips64-k7-u2a-k9b:1.32
	matt-nb5-mips64-u1-k1-k5:1.32
	matt-nb5-mips64:1.32.0.8
	netbsd-5-0-1-RELEASE:1.32
	jym-xensuspend-nbase:1.32
	netbsd-5-0:1.32.0.6
	netbsd-5-0-RELEASE:1.32
	netbsd-5-0-RC4:1.32
	netbsd-5-0-RC3:1.32
	netbsd-5-0-RC2:1.32
	jym-xensuspend:1.32.0.4
	jym-xensuspend-base:1.32
	netbsd-5-0-RC1:1.32
	netbsd-5:1.32.0.2
	netbsd-5-base:1.32
	matt-mips64-base2:1.32
	matt-mips64:1.31.0.24
	netbsd-4-0-1-RELEASE:1.31
	wrstuden-revivesa-base-3:1.32
	wrstuden-revivesa-base-2:1.32
	wrstuden-fixsa-newbase:1.31
	wrstuden-revivesa-base-1:1.31
	yamt-pf42-base4:1.31
	yamt-pf42-base3:1.31
	hpcarm-cleanup-nbase:1.31
	yamt-pf42-baseX:1.31
	yamt-pf42-base2:1.31
	wrstuden-revivesa:1.31.0.22
	wrstuden-revivesa-base:1.31
	yamt-pf42:1.31.0.20
	yamt-pf42-base:1.31
	mjf-devfs2:1.31.0.18
	mjf-devfs2-base:1.32
	keiichi-mipv6:1.31.0.16
	keiichi-mipv6-base:1.31
	matt-armv6-nbase:1.31
	matt-armv6-prevmlocking:1.31
	wrstuden-fixsa-base-1:1.31
	netbsd-4-0:1.31.0.14
	netbsd-4-0-RELEASE:1.31
	cube-autoconf:1.31.0.12
	cube-autoconf-base:1.31
	mjf-devfs:1.31.0.10
	mjf-devfs-base:1.31
	netbsd-4-0-RC5:1.31
	netbsd-4-0-RC4:1.31
	netbsd-4-0-RC3:1.31
	netbsd-4-0-RC2:1.31
	netbsd-4-0-RC1:1.31
	matt-armv6:1.31.0.8
	matt-armv6-base:1.31
	matt-mips64-base:1.31
	hpcarm-cleanup:1.31.0.6
	hpcarm-cleanup-base:1.31
	netbsd-3-1-1-RELEASE:1.28
	netbsd-3-0-3-RELEASE:1.28
	wrstuden-fixsa:1.31.0.4
	wrstuden-fixsa-base:1.31
	abandoned-netbsd-4-base:1.30
	abandoned-netbsd-4:1.30.0.2
	netbsd-3-1:1.28.0.12
	netbsd-3-1-RELEASE:1.28
	netbsd-3-0-2-RELEASE:1.28
	netbsd-3-1-RC4:1.28
	netbsd-3-1-RC3:1.28
	netbsd-3-1-RC2:1.28
	netbsd-3-1-RC1:1.28
	netbsd-4:1.31.0.2
	netbsd-4-base:1.31
	netbsd-3-0-1-RELEASE:1.28
	netbsd-3-0:1.28.0.10
	netbsd-3-0-RELEASE:1.28
	netbsd-3-0-RC6:1.28
	netbsd-3-0-RC5:1.28
	netbsd-3-0-RC4:1.28
	netbsd-3-0-RC3:1.28
	netbsd-3-0-RC2:1.28
	netbsd-3-0-RC1:1.28
	netbsd-2-0-3-RELEASE:1.28
	netbsd-2-1:1.28.0.8
	netbsd-2-1-RELEASE:1.28
	netbsd-2-1-RC6:1.28
	netbsd-2-1-RC5:1.28
	netbsd-2-1-RC4:1.28
	netbsd-2-1-RC3:1.28
	netbsd-2-1-RC2:1.28
	netbsd-2-1-RC1:1.28
	netbsd-2-0-2-RELEASE:1.28
	netbsd-3:1.28.0.6
	netbsd-3-base:1.28
	netbsd-2-0-1-RELEASE:1.28
	netbsd-2:1.28.0.4
	netbsd-2-base:1.28
	netbsd-2-0-RELEASE:1.28
	netbsd-2-0-RC5:1.28
	netbsd-2-0-RC4:1.28
	netbsd-2-0-RC3:1.28
	netbsd-2-0-RC2:1.28
	netbsd-2-0-RC1:1.28
	netbsd-2-0:1.28.0.2
	netbsd-2-0-base:1.28
	netbsd-1-6-PATCH002-RELEASE:1.22
	netbsd-1-6-PATCH002:1.22
	netbsd-1-6-PATCH002-RC4:1.22
	netbsd-1-6-PATCH002-RC3:1.22
	netbsd-1-6-PATCH002-RC2:1.22
	netbsd-1-6-PATCH002-RC1:1.22
	netbsd-1-6-PATCH001:1.22
	netbsd-1-6-PATCH001-RELEASE:1.22
	netbsd-1-6-PATCH001-RC3:1.22
	netbsd-1-6-PATCH001-RC2:1.22
	netbsd-1-6-PATCH001-RC1:1.22
	fvdl_fs64_base:1.24
	netbsd-1-6-RELEASE:1.22
	netbsd-1-6-RC3:1.22
	netbsd-1-6-RC2:1.22
	netbsd-1-6-RC1:1.22
	netbsd-1-6:1.22.0.2
	netbsd-1-6-base:1.22
	netbsd-1-5-PATCH003:1.17
	netbsd-1-5-PATCH002:1.17
	netbsd-1-5-PATCH001:1.17
	netbsd-1-5-RELEASE:1.17
	netbsd-1-5-BETA2:1.17
	netbsd-1-5-BETA:1.17
	netbsd-1-4-PATCH003:1.17
	netbsd-1-5-ALPHA2:1.17
	netbsd-1-5:1.17.0.10
	netbsd-1-5-base:1.17
	minoura-xpg4dl:1.17.0.8
	minoura-xpg4dl-base:1.17
	netbsd-1-4-PATCH002:1.17
	wrstuden-devbsize-19991221:1.17
	wrstuden-devbsize:1.17.0.6
	wrstuden-devbsize-base:1.17
	comdex-fall-1999:1.17.0.4
	comdex-fall-1999-base:1.17
	netbsd-1-4-PATCH001:1.17
	netbsd-1-4-RELEASE:1.17
	netbsd-1-4:1.17.0.2
	netbsd-1-4-base:1.17
	netbsd-1-3-PATCH003:1.15
	netbsd-1-3-PATCH003-CANDIDATE2:1.15
	netbsd-1-3-PATCH003-CANDIDATE1:1.15
	netbsd-1-3-PATCH003-CANDIDATE0:1.15
	netbsd-1-3-PATCH002:1.15
	netbsd-1-3-PATCH001:1.15
	netbsd-1-3-RELEASE:1.15
	netbsd-1-3-BETA:1.15
	netbsd-1-3:1.15.0.2
	netbsd-1-3-base:1.15
	lite-2:1.1.1.2
	netbsd-1-2-PATCH001:1.10
	netbsd-1-2-RELEASE:1.10
	netbsd-1-2-BETA:1.10
	netbsd-1-2:1.10.0.4
	netbsd-1-2-base:1.10
	netbsd-1-1-PATCH001:1.9
	netbsd-1-1-RELEASE:1.9
	netbsd-1-1:1.9.0.2
	netbsd-1-1-base:1.9
	netbsd-1-0-PATCH06:1.7
	netbsd-1-0-PATCH05:1.7
	netbsd-1-0-PATCH04:1.7
	netbsd-1-0-PATCH03:1.7
	netbsd-1-0-PATCH02:1.7
	netbsd-1-0-PATCH1:1.7
	netbsd-1-0-PATCH0:1.7
	netbsd-1-0-RELEASE:1.7
	netbsd-1-0:1.7.0.2
	netbsd-1-0-base:1.7
	lite-1:1.1.1.2
	CSRG:1.1.1
	netbsd-0-9-RELEASE:1.3.2.1
	netbsd-0-9-BETA:1.3.2.1
	netbsd-0-9-ALPHA2:1.3.2.1
	netbsd-0-9-ALPHA:1.3.2.1
	netbsd-0-9:1.3.0.2
	netbsd-0-9-base:1.3
	netbsd-0-8:1.3
	netbsd-alpha-1:1.3
	patchkit-0-2-2:1.1.1.1
	WFJ-386bsd-01:1.1.1.1
	WFJ-920714:1.1.1;
locks; strict;
comment	@# @;


1.42
date	2023.06.03.08.52.55;	author lukem;	state Exp;
branches;
next	1.41;
commitid	JFrjk5m11qFkNtrE;

1.41
date	2020.09.06.07.20.27;	author mrg;	state Exp;
branches;
next	1.40;
commitid	IFqEYW6MZdeXkXmC;

1.40
date	2017.02.08.16.11.40;	author rin;	state Exp;
branches;
next	1.39;
commitid	E19jwSaYRiCWjaFz;

1.39
date	2012.08.10.12.20.11;	author joerg;	state Exp;
branches
	1.39.14.1
	1.39.18.1;
next	1.38;

1.38
date	2011.06.20.07.44.00;	author mrg;	state Exp;
branches
	1.38.2.1;
next	1.37;

1.37
date	2011.03.06.17.08.16;	author bouyer;	state Exp;
branches
	1.37.2.1;
next	1.36;

1.36
date	2010.08.09.17.20.57;	author pooka;	state Exp;
branches
	1.36.2.1;
next	1.35;

1.35
date	2009.12.20.15.21.13;	author dsl;	state Exp;
branches;
next	1.34;

1.34
date	2009.06.06.11.09.16;	author haad;	state Exp;
branches;
next	1.33;

1.33
date	2009.06.05.21.52.31;	author haad;	state Exp;
branches;
next	1.32;

1.32
date	2008.08.29.00.02.23;	author gmcgarry;	state Exp;
branches;
next	1.31;

1.31
date	2006.08.26.22.03.47;	author christos;	state Exp;
branches
	1.31.18.1
	1.31.22.1;
next	1.30;

1.30
date	2006.05.11.23.16.29;	author mrg;	state Exp;
branches;
next	1.29;

1.29
date	2005.06.27.01.00.06;	author christos;	state Exp;
branches;
next	1.28;

1.28
date	2003.11.01.17.43.03;	author dsl;	state Exp;
branches;
next	1.27;

1.27
date	2003.10.26.16.30.25;	author mycroft;	state Exp;
branches;
next	1.26;

1.26
date	2003.03.22.19.09.39;	author jdolecek;	state Exp;
branches;
next	1.25;

1.25
date	2003.03.22.15.34.44;	author tron;	state Exp;
branches;
next	1.24;

1.24
date	2002.09.28.20.11.07;	author dbj;	state Exp;
branches;
next	1.23;

1.23
date	2002.08.19.10.16.59;	author lukem;	state Exp;
branches;
next	1.22;

1.22
date	2002.01.08.20.54.49;	author thorpej;	state Exp;
branches;
next	1.21;

1.21
date	2002.01.06.23.09.47;	author lukem;	state Exp;
branches;
next	1.20;

1.20
date	2002.01.04.11.30.33;	author lukem;	state Exp;
branches;
next	1.19;

1.19
date	2002.01.04.10.47.47;	author lukem;	state Exp;
branches;
next	1.18;

1.18
date	2001.07.29.09.59.12;	author lukem;	state Exp;
branches;
next	1.17;

1.17
date	99.01.15.13.32.06;	author bouyer;	state Exp;
branches;
next	1.16;

1.16
date	98.03.18.17.10.15;	author bouyer;	state Exp;
branches;
next	1.15;

1.15
date	97.10.10.19.51.49;	author christos;	state Exp;
branches;
next	1.14;

1.14
date	97.09.15.12.45.54;	author lukem;	state Exp;
branches;
next	1.13;

1.13
date	97.06.30.22.20.30;	author christos;	state Exp;
branches;
next	1.12;

1.12
date	97.05.08.21.11.29;	author gwr;	state Exp;
branches;
next	1.11;

1.11
date	97.05.06.20.45.22;	author gwr;	state Exp;
branches;
next	1.10;

1.10
date	96.05.16.07.13.01;	author thorpej;	state Exp;
branches;
next	1.9;

1.9
date	95.03.18.14.58.37;	author cgd;	state Exp;
branches;
next	1.8;

1.8
date	94.12.22.10.47.10;	author cgd;	state Exp;
branches;
next	1.7;

1.7
date	94.06.08.19.30.24;	author mycroft;	state Exp;
branches;
next	1.6;

1.6
date	94.02.12.17.52.00;	author chopps;	state Exp;
branches;
next	1.5;

1.5
date	93.08.01.05.27.35;	author mycroft;	state Exp;
branches;
next	1.4;

1.4
date	93.07.28.00.57.19;	author cgd;	state Exp;
branches;
next	1.3;

1.3
date	93.03.23.00.29.15;	author cgd;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	93.03.22.08.04.00;	author cgd;	state Exp;
branches;
next	1.1;

1.1
date	93.03.21.09.45.37;	author cgd;	state Exp;
branches
	1.1.1.1;
next	;

1.39.14.1
date	2017.03.20.06.57.02;	author pgoyette;	state Exp;
branches;
next	;
commitid	jjw7cAwgyKq7RfKz;

1.39.18.1
date	2017.04.21.16.53.14;	author bouyer;	state Exp;
branches;
next	;
commitid	dUG7nkTKALCadqOz;

1.38.2.1
date	2012.10.30.18.59.31;	author yamt;	state Exp;
branches;
next	;

1.37.2.1
date	2011.06.23.14.18.44;	author cherry;	state Exp;
branches;
next	;

1.36.2.1
date	2011.01.20.14.24.54;	author bouyer;	state Exp;
branches;
next	;

1.31.18.1
date	2008.09.28.11.17.14;	author mjf;	state Exp;
branches;
next	;

1.31.22.1
date	2008.09.18.04.28.28;	author wrstuden;	state Exp;
branches;
next	;

1.3.2.1
date	93.07.20.00.01.05;	author cgd;	state Exp;
branches;
next	;

1.1.1.1
date	93.03.21.09.45.37;	author cgd;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	94.06.13.22.52.32;	author mycroft;	state Exp;
branches;
next	;


desc
@@


1.42
log
@bsd.own.mk: rename to CC_WNO_ADDRESS_OF_PACKED_MEMBER

Provide a single variable
	CC_WNO_ADDRESS_OF_PACKED_MEMBER
with options for both clang and gcc, to replace
	CLANG_NO_ADDR_OF_PACKED_MEMBER
	CC_NO_ADDR_OF_PACKED_MEMBER
	GCC_NO_ADDR_OF_PACKED_MEMBER

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
@
text
@#	$NetBSD: Makefile,v 1.41 2020/09/06 07:20:27 mrg Exp $
#	@@(#)Makefile	8.2 (Berkeley) 3/27/94

# when making a change to this file, please check if the change is
# also needed for src/distrib/utils/x_newfs.
# such stuff should be into Makefile.common.

.include <bsd.own.mk>

SRCS=	ffs_bswap.c ffs_appleufs.c
MAN=	newfs.8 mount_mfs.8

LINKS=	${BINDIR}/newfs ${BINDIR}/mount_mfs
MLINKS=	mount_mfs.8 mfs.8

.include "Makefile.common"

CWARNFLAGS.gcc+=	${CC_WNO_ADDRESS_OF_PACKED_MEMBER}

.include <bsd.prog.mk>
@


1.41
log
@add support for new GCC 9 warnings that may be too much to fix
right now.  new address-of-packed-member and format-overflow
warnings have new GCC_NO_ADDR_OF_PACKED_MEMBER amd
GCC_NO_FORMAT_OVERFLOW variables to remove these warnings.

apply to a bunch of the tree.  mostly, these are real bugs that
should be fixed, but in many cases, only by removing the 'packed'
attribute from some structure that doesn't really need it.  (i
looked at many different ones, and while perhaps 60-80% were
already properly aligned, it wasn't clear to me that the uses
were always coming from sane data vs network alignment, so it
doesn't seem safe to remove packed without careful research for
each affect struct.)  clang already warned (and was not erroring)
for many of these cases, but gcc picked up dozens more.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.40 2017/02/08 16:11:40 rin Exp $
d18 1
a18 1
CWARNFLAGS.gcc+=	${GCC_NO_ADDR_OF_PACKED_MEMBER}
@


1.40
log
@Add smaller versions of fsck_ffs(8) and newfs(8) for install media, where
support for Endian-Independent FFS and Apple UFS is disabled unless FFS_EI=1
and APPLE_UFS=1 are added to CRUNCHENV, respectively.

This reduces the size of ramdisk image for atari by over 15KB.

Thanks tsutsui and christos for their useful comments.
@
text
@d1 1
a1 1
#	$NetBSD$
d18 2
@


1.39
log
@Don't depend on HAVE_GCC being always defined.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.38 2011/06/20 07:44:00 mrg Exp $
d4 4
d10 1
a10 3
PROG=	newfs
SRCS=	dkcksum.c newfs.c mkfs.c ffs_bswap.c ffs_appleufs.c partutil.c
SRCS+=	pathadj.c quota2_subr.c
a12 15
DISKLABEL=${NETBSDSRCDIR}/sbin/disklabel
FSCK=${NETBSDSRCDIR}/sbin/fsck
MOUNT=${NETBSDSRCDIR}/sbin/mount
CPPFLAGS+=-DMFS -I${.CURDIR} -I${DISKLABEL} -I${FSCK} -I${MOUNT}
CPPFLAGS+=-DGARBAGE

DPADD+= ${LIBUTIL}
LDADD+= -lutil

LDADD+=-lprop
DPADD+=${LIBPROP}

.PATH:	${DISKLABEL} ${NETBSDSRCDIR}/sys/ufs/ffs ${NETBSDSRCDIR}/sys/ufs/ufs
.PATH:  ${FSCK} ${MOUNT}

d16 1
a16 1
COPTS.ffs_appleufs.c+=	-Wno-pointer-sign
@


1.39.18.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.40 2017/02/08 16:11:40 rin Exp $
a3 4
# when making a change to this file, please check if the change is
# also needed for src/distrib/utils/x_newfs.
# such stuff should be into Makefile.common.

d6 3
a8 1
SRCS=	ffs_bswap.c ffs_appleufs.c
d11 15
d29 1
a29 1
.include "Makefile.common"
@


1.39.14.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.40 2017/02/08 16:11:40 rin Exp $
a3 4
# when making a change to this file, please check if the change is
# also needed for src/distrib/utils/x_newfs.
# such stuff should be into Makefile.common.

d6 3
a8 1
SRCS=	ffs_bswap.c ffs_appleufs.c
d11 15
d29 1
a29 1
.include "Makefile.common"
@


1.38
log
@remove most of the remaining HAVE_GCC tests that are always true in
the modern world.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.37 2011/03/06 17:08:16 bouyer Exp $
d29 2
a31 4

.if defined(HAVE_GCC) || defined(HAVE_PCC)
COPTS.ffs_appleufs.c+=	-Wno-pointer-sign
.endif
@


1.38.2.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.38 2011/06/20 07:44:00 mrg Exp $
d29 3
d33 1
a33 2

.include <bsd.prog.mk>
@


1.37
log
@merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.

See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.
@
text
@d1 1
a1 1
#	$NetBSD$
d31 1
a31 1
.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
@


1.37.2.1
log
@Catchup with rmind-uvmplock merge.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.38 2011/06/20 07:44:00 mrg Exp $
d31 1
a31 1
.if defined(HAVE_GCC) || defined(HAVE_PCC)
@


1.36
log
@Add -G, which turns consistency check errors in warnings.  The
current testing purpose is to create a file system with
block size > MAXPHYS.

(the check doesn't make that much sense anyway in these days of
mobile file systems, since we're interested in MAXPHYS where we
attempt to mount the file system, not where we happen to create it)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.35 2009/12/20 15:21:13 dsl Exp $
d8 1
a8 1
SRCS+=	pathadj.c
d23 2
a24 1
.PATH:	${DISKLABEL} ${NETBSDSRCDIR}/sys/ufs/ffs ${FSCK} ${MOUNT}
@


1.36.2.1
log
@Snapshot of work in progress on a modernised disk quota system:
- new quotactl syscall (versionned for backward compat), which takes
  as parameter a path to a mount point, and a prop_dictionary
  (in plistref format) describing commands and arguments.
  For each command, status and data are returned as a prop_dictionary.
  quota commands features will be added to take advantage of this,
  exporting quota data or getting quota commands as plists.

- new on disk-format storage (all 64bit wide), integrated to metadata for
  ffs (and playing nicely with wapbl).
  Quotas are enabled on a ffs filesystem via superblock flags.
  tunefs(8) can enable or disable quotas.
  On a quota-enabled filesystem, fsck_ffs(8) will track per-uid/gid
  block and inode usages, and will check and update quotas in Pass 6.
  quota usage and limits are stored in unliked files (one for users,
  one for groups)l fsck_ffs(8) will create the files if needed, or
  free them if needed. This means that after enabling or disabling
  quotas on a filesystem; a fsck_ffs(8) run is required.
  quotacheck(8) is not needed any more, on a unclean shutdown
  fsck or journal replay will take care of fixing quotas.
  newfs(8) can create a ready-to-mount quota-enabled filesystem
  (superblock flags are set and quota inodes are created).
  Other new features or semantic changes:
  - default quota datas, applied to users or groups which don't already
    have a quota entry
  - per-user/group grace time (instead of a filesystem global one)
  - 0 really means "nothing allowed at all", not "no limit".
    If you want "no limit", set the limit to UQUAD_MAX (tools will
    understand "unlimited" and "-")

  A quota file is structured as follow:
  it starts with a header, containing a few per-filesystem values,
  and the default quota limits.
  Quota entries are linked together as a simple list, each entry has a
  pointer (as an offset withing the file) to the next.
  The header has a pointer to a list of free quota entries, and
  a hash table of in-use entries. The size of the hash table depends
  on the filesystem block size (header+hash table should fit in the
  first block). The file is not sparse and is a multiple of
  filesystem block size (when the free quota entry list is empty a new
  filesystem block is allocated). quota entries to not cross
  filesystem block boundaries.

  In memory, the kernel keeps a cache of recently used quota entries
  as a reference to the block number, and offset withing the block.
  The quota entry itself is keept in the buf cache.

fsck_ffs(8), tunefs(8) and newfs(8) supports are completed (with
related atf tests :)
The kernel can update disk usage and report it via quotactl(2).

Todo: enforce quotas limits (limits are not checked by kernel yet)
      update repquota, edquota and rpc.rquotad to the new world
      implement compat_50_quotactl ioctl.
      update quotactl(2) man page

fsck_ffs required fixes so that allocating new blocks or inodes will
properly update the superblock and cg sumaries. This was not an issue up
to now because superblock and cg sumaries check happened last, but now
allocations or frees can happen in pass 6.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.36 2010/08/09 17:20:57 pooka Exp $
d8 1
a8 1
SRCS+=	pathadj.c quota2_subr.c
d23 1
a23 2
.PATH:	${DISKLABEL} ${NETBSDSRCDIR}/sys/ufs/ffs ${NETBSDSRCDIR}/sys/ufs/ufs
.PATH:  ${FSCK} ${MOUNT}
@


1.35
log
@Push the mount path for mount_mfs through realpath().
This matches what other fs do.
Fixes PR/20362
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.34 2009/06/06 11:09:16 haad Exp $
d15 1
@


1.34
log
@Remove debuging CFLAGS.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.33 2009/06/05 21:52:31 haad Exp $
d8 1
d13 2
a14 1
CPPFLAGS+=-DMFS -I${.CURDIR} -I${DISKLABEL} -I${FSCK}
d22 1
a22 1
.PATH:	${DISKLABEL} ${NETBSDSRCDIR}/sys/ufs/ffs ${FSCK}
@


1.33
log
@Add support for DIOCGDISKINFO to disk like device drivers. Change
partutil.c::getdiskinfo to use it to get disk geometry info.
Use DIOCGWEDGEINFO ioctl to get information about partition size, if disk
driver doesn't support it use old DIOCGDINFO. This patch adds support for
wedge like devices(lvm logical volumes, ZFS zvol partitions) to newfs and
other tools.

No objections on tech-userlevel@@.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.32 2008/08/29 00:02:23 gmcgarry Exp $
a13 2
CFLAGS+= -g -O0

@


1.32
log
@Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.31 2006/08/26 22:03:47 christos Exp $
d13 3
d18 4
@


1.31
log
@- Deal with wedges and the new disk geometry structures, instead of using
  struct disklabel.

Functionality lost:
  1. struct disklabel used to be updated to contain bsize, fsize, cpg.
     This information was used to locate the alternative superblock in
     the filesystem if the primary superblock was corrupted. We need
     to find a new place to store this information if we need this
     functionality.
  2. On vax SMD drives that contained bad sector lists, the newfs program
     knew how to get the offset and skip to the correct location in order
     to place the label.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.30 2006/05/11 23:16:29 mrg Exp $
d22 1
a22 1
.if ${HAVE_GCC} == 4
@


1.31.18.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD$
d22 1
a22 1
.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
@


1.31.22.1
log
@Sync with wrstuden-revivesa-base-2.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.31 2006/08/26 22:03:47 christos Exp $
d22 1
a22 1
.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
@


1.30
log
@sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.29 2005/06/27 01:00:06 christos Exp $
d7 1
a7 1
SRCS=	dkcksum.c newfs.c mkfs.c ffs_bswap.c ffs_appleufs.c
d11 2
a12 1
CPPFLAGS+=-DMFS -I${.CURDIR} -I${DISKLABEL}
d15 1
a15 1
.PATH:	${DISKLABEL} ${NETBSDSRCDIR}/sys/ufs/ffs 
@


1.29
log
@Move WARNS=3 to the Makefile.inc, and add a little const to the remaining
programs that did not compile before.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.28 2003/11/01 17:43:03 dsl Exp $
d20 4
@


1.28
log
@Use fstat(2) to get the partition size (falling back to the label on old
kernels) so that newfs works on vinum (and similar).
Kill the -V hack for vinum.
Don't bother faking up a label for -F and mfs, nothing is needed from it.
Ignore label if special doesn't match DISKPART(sb.st_rdev);
Simplifly logic for default block/frag sizes.
Update man page to match.
WARNS=3.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.27 2003/10/26 16:30:25 mycroft Exp $
a9 2
WARNS=	3

@


1.27
log
@Remove alpha optimization hack.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.26 2003/03/22 19:09:39 jdolecek Exp $
d10 1
a10 1
WARNS=	2
@


1.26
log
@no need for -I${MOUNT} & .PATH: ${MOUNT} now neither
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.25 2003/03/22 15:34:44 tron Exp $
a21 7

.if (${MACHINE_ARCH} == "alpha")
#
# XXX	gcc 2.95.3 with -O2 (the default) generates a non-functional newfs
#
CFLAGS+=	-O1
.endif
@


1.25
log
@Remove "getmntopts.c" from list of source files. getmntopts(3) is in
"libutil" now.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.24 2002/09/28 20:11:07 dbj Exp $
a11 1
MOUNT=	${NETBSDSRCDIR}/sbin/mount
d13 1
a13 1
CPPFLAGS+=-DMFS -I${.CURDIR} -I${MOUNT} -I${DISKLABEL}
d16 1
a16 1
.PATH:	${MOUNT} ${DISKLABEL} ${NETBSDSRCDIR}/sys/ufs/ffs 
@


1.24
log
@Add support for the Apple UFS variation on ffs
This is the bulk of PR #17345

The general approach is to use a run time deteriminable value
for DIRBLKSIZ.  Additional allowances are included for using
MAXSYMLINKLEN with FS_42INODEFMT and a shift in the cylinder group
cluster summary count array.  Support is added for managing
the Apple UFS volume label.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.23 2002/08/19 10:16:59 lukem Exp $
d7 1
a7 1
SRCS=	dkcksum.c getmntopts.c newfs.c mkfs.c ffs_bswap.c ffs_appleufs.c
@


1.23
log
@Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22 2002/01/08 20:54:49 thorpej Exp $
d7 1
a7 1
SRCS=	dkcksum.c getmntopts.c newfs.c mkfs.c ffs_bswap.c
@


1.22
log
@Use MACHINE_ARCH, not MACHINE.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.21 2002/01/06 23:09:47 lukem Exp $
d4 2
d12 2
a13 2
MOUNT=	${.CURDIR}/../mount
DISKLABEL=${.CURDIR}/../disklabel
d17 1
a17 1
.PATH:	${MOUNT} ${DISKLABEL} ${.CURDIR}/../../sys/ufs/ffs 
@


1.21
log
@add ugly hack for alpha to crank the optimisation level down to -O1,
because the default -O2 with gcc 2.95.3 builds a non functional newfs
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 2002/01/04 11:30:33 lukem Exp $
d22 1
a22 1
.if (${MACHINE} == "alpha")
@


1.20
log
@remove duplicate MAN= entry
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.19 2002/01/04 10:47:47 lukem Exp $
d21 7
@


1.19
log
@move mount_mfs(8) into separate man page
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 2001/07/29 09:59:12 lukem Exp $
d6 1
a6 1
MAN=	newfs.8
a17 1
MAN=	newfs.8 mount_mfs.8
@


1.18
log
@enable WARNS=2
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 1999/01/15 13:32:06 bouyer Exp $
d18 2
a19 1
MLINKS=	newfs.8 mount_mfs.8 newfs.8 mfs.8
@


1.17
log
@#include machine/bswap.h and remove -lutil.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 1998/03/18 17:10:15 bouyer Exp $
d7 2
@


1.16
log
@Allow creation of non-native byteorder FFS (via the '-B' option).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 1997/10/10 19:51:49 christos Exp $
d11 2
a13 3

DPADD=	${LIBUTIL}
LDADD=	-lutil
@


1.15
log
@CFLAGS->CPPFLAGS
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 1997/09/15 12:45:54 lukem Exp $
d5 1
a5 1
SRCS=	dkcksum.c getmntopts.c newfs.c mkfs.c
d11 1
a11 1
.PATH:	${MOUNT} ${DISKLABEL}
@


1.14
log
@define WARNS?=1 for all of sbin/*
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 1997/06/30 22:20:30 christos Exp $
d10 1
a10 1
CFLAGS+=-DMFS -I${.CURDIR} -I${MOUNT} -I${DISKLABEL}
@


1.13
log
@Fix compiler warnings.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 1997/05/08 21:11:29 gwr Exp $
a3 1
WARNS=	1
@


1.12
log
@Back out the .PATH.c changes.  The .depend problem (and others)
will be fixed using the new .NOPATH make feature instead.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 1997/05/06 20:45:22 gwr Exp $
d4 1
d10 3
a12 2
CFLAGS+=-DMFS -I${MOUNT}
.PATH:	${MOUNT} ${.CURDIR}/../disklabel
@


1.11
log
@Use .PATH.c: ...
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 1996/05/16 07:13:01 thorpej Exp $
d10 1
a10 1
.PATH.c: ${MOUNT} ${.CURDIR}/../disklabel
@


1.10
log
@Use getmaxpartitions() from libutil, not a homegrown version.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 1995/03/18 14:58:37 cgd Exp $
d10 1
a10 1
.PATH:	${MOUNT} ${.CURDIR}/../disklabel
@


1.9
log
@convert to new RCS Id conventions; reduce my headache
@
text
@d1 1
a1 1
#	$NetBSD$
d11 3
@


1.8
log
@specify man pages the new way.
@
text
@d1 2
a2 2
#	from: @@(#)Makefile	8.2 (Berkeley) 3/27/94
#	$Id: Makefile,v 1.7 1994/06/08 19:30:24 mycroft Exp $
@


1.7
log
@Update from 4.4-Lite, with local changes.
@
text
@d2 1
a2 1
#	$Id: $
d6 1
a6 1
MAN8=	newfs.0
@


1.6
log
@added -D${MACHINE} for amiga's becuase of differing sizeof (struct disklabel)
@
text
@d1 2
a2 2
#	from: @@(#)Makefile	7.13 (Berkeley) 2/26/91
#	$Id: Makefile,v 1.5 1993/08/01 05:27:35 mycroft Exp $
d5 1
a5 2
CFLAGS+=-DMFS
SRCS=	dkcksum.c newfs.c mkfs.c
d7 5
d13 1
a13 6
MLINKS=	newfs.8 mount_mfs.8
.PATH:	${.CURDIR}/../disklabel

.if (${MACHINE} == "amiga")
CFLAGS+=-D${MACHINE}
.endif
@


1.5
log
@Add RCS identifiers.
@
text
@d2 1
a2 1
#	$Id: $
d11 4
@


1.4
log
@incorporate changes from 0-9-base to 0-9-ALPHA
@
text
@d2 1
a2 1
#	$Id$
@


1.3
log
@changed "Id" to "Header" for rcsids
@
text
@d1 2
a2 3
#	@@(#)Makefile	7.13 (Berkeley) 2/26/91
#
#	$Header: Makefile,v 1.2 93/03/22 08:11:34 cgd Exp $
d9 1
a9 1
MLINKS=	newfs.8 mfs.8
@


1.3.2.1
log
@change all refs to "mfs" to be to "mount_mfs" as is appropriate
@
text
@d1 1
a1 1
#	from: @@(#)Makefile	7.13 (Berkeley) 2/26/91
d3 1
a3 1
#	$Id: /b/source/CVS/src/sbin/newfs/Makefile,v 1.3 1993/03/23 00:29:15 cgd Exp $
d10 1
a10 1
MLINKS=	newfs.8 mount_mfs.8
@


1.2
log
@added rcs ids to all files
@
text
@d3 1
a3 1
#	$Id: Makefile,v 1.2 93/03/21 23:12:48 cgd Exp $
@


1.1
log
@Initial revision
@
text
@d2 2
@


1.1.1.1
log
@initial import of 386bsd-0.1 sources
@
text
@@


1.1.1.2
log
@Import 4.4-Lite version.
@
text
@d1 1
a1 1
#	@@(#)Makefile	8.2 (Berkeley) 3/27/94
d4 2
a5 1
SRCS=	dkcksum.c getmntopts.c newfs.c mkfs.c
a6 5

MOUNT=	${.CURDIR}/../mount
CFLAGS+=-DMFS -I${MOUNT}
.PATH:	${MOUNT} ${.CURDIR}/../disklabel

d8 2
a9 1
MLINKS=	newfs.8 mount_mfs.8 newfs.8 mfs.8
@
