Module Name: src Committed By: christos Date: Sun Oct 18 19:56:42 UTC 2020
Modified Files: src/sys/modules/ffs: Makefile src/sys/modules/i915drmkms: Makefile src/sys/modules/ipl: Makefile src/sys/modules/npf: Makefile src/sys/modules/pf: Makefile src/sys/modules/slcompress: Makefile src/sys/modules/udf: Makefile src/sys/modules/v7fs: Makefile Log Message: Provide a global no-packed-address for both gcc and clang To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/sys/modules/ffs/Makefile cvs rdiff -u -r1.15 -r1.16 src/sys/modules/i915drmkms/Makefile cvs rdiff -u -r1.5 -r1.6 src/sys/modules/ipl/Makefile cvs rdiff -u -r1.27 -r1.28 src/sys/modules/npf/Makefile cvs rdiff -u -r1.14 -r1.15 src/sys/modules/pf/Makefile cvs rdiff -u -r1.3 -r1.4 src/sys/modules/slcompress/Makefile cvs rdiff -u -r1.5 -r1.6 src/sys/modules/udf/Makefile cvs rdiff -u -r1.2 -r1.3 src/sys/modules/v7fs/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/modules/ffs/Makefile diff -u src/sys/modules/ffs/Makefile:1.17 src/sys/modules/ffs/Makefile:1.18 --- src/sys/modules/ffs/Makefile:1.17 Sun Oct 18 11:02:12 2020 +++ src/sys/modules/ffs/Makefile Sun Oct 18 15:56:41 2020 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.17 2020/10/18 15:02:12 christos Exp $ +# $NetBSD: Makefile,v 1.18 2020/10/18 19:56:41 christos Exp $ .include "../Makefile.inc" @@ -9,7 +9,7 @@ CPPFLAGS+= -DUFS_DIRHASH -DFFS_EI - CPPFLAGS+= -DUFS_EXTATTR -DUFS_ACL CWARNFLAGS.clang= -Wno-conversion -CWARNFLAGS.ffs_appleufs.c+= ${GCC_NO_ADDR_OF_PACKED_MEMBER} +COPTS.ffs_appleufs.c+= ${NO_ADDR_OF_PACKED_MEMBER} SRCS+= ffs_alloc.c ffs_balloc.c ffs_inode.c ffs_subr.c ffs_tables.c \ Index: src/sys/modules/i915drmkms/Makefile diff -u src/sys/modules/i915drmkms/Makefile:1.15 src/sys/modules/i915drmkms/Makefile:1.16 --- src/sys/modules/i915drmkms/Makefile:1.15 Fri Feb 14 04:35:52 2020 +++ src/sys/modules/i915drmkms/Makefile Sun Oct 18 15:56:41 2020 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2020/02/14 09:35:52 riastradh Exp $ +# $NetBSD: Makefile,v 1.16 2020/10/18 19:56:41 christos Exp $ .include "../Makefile.inc" .include "../drmkms/Makefile.inc" @@ -120,5 +120,6 @@ COPTS.intel_display.c+= -Wno-error=impli COPTS.intel_ddi.c+= -Wno-error=implicit-fallthrough COPTS.intel_sdvo.c+= -Wno-error=implicit-fallthrough .endif +COPTS.i915_guc_submission.c += ${NO_ADDR_OF_PACKED_MEMBER} .include <bsd.kmodule.mk> Index: src/sys/modules/ipl/Makefile diff -u src/sys/modules/ipl/Makefile:1.5 src/sys/modules/ipl/Makefile:1.6 --- src/sys/modules/ipl/Makefile:1.5 Sun Oct 18 11:02:12 2020 +++ src/sys/modules/ipl/Makefile Sun Oct 18 15:56:42 2020 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2020/10/18 15:02:12 christos Exp $ +# $NetBSD: Makefile,v 1.6 2020/10/18 19:56:42 christos Exp $ # .include "../Makefile.inc" @@ -57,12 +57,12 @@ SRCS+= radix_ipf.c WARNS= 3 CWARNFLAGS.clang+= -Wno-self-assign -CWARNFLAGS.fil.c+= ${GCC_NO_ADDR_OF_PACKED_MEMBER} -CWARNFLAGS.ip_fil_netbsd.c+= ${GCC_NO_ADDR_OF_PACKED_MEMBER} -CWARNFLAGS.ip_htable.c+= ${GCC_NO_ADDR_OF_PACKED_MEMBER} -CWARNFLAGS.ip_nat.c+= ${GCC_NO_ADDR_OF_PACKED_MEMBER} -CWARNFLAGS.ip_nat6.c+= ${GCC_NO_ADDR_OF_PACKED_MEMBER} -CWARNFLAGS.ip_proxy.c+= ${GCC_NO_ADDR_OF_PACKED_MEMBER} -CWARNFLAGS.ip_state.c+= ${GCC_NO_ADDR_OF_PACKED_MEMBER} +COPTS.fil.c+= ${NO_ADDR_OF_PACKED_MEMBER} +COPTS.ip_fil_netbsd.c+= ${NO_ADDR_OF_PACKED_MEMBER} +COPTS.ip_htable.c+= ${NO_ADDR_OF_PACKED_MEMBER} +COPTS.ip_nat.c+= ${NO_ADDR_OF_PACKED_MEMBER} +COPTS.ip_nat6.c+= ${NO_ADDR_OF_PACKED_MEMBER} +COPTS.ip_proxy.c+= ${NO_ADDR_OF_PACKED_MEMBER} +COPTS.ip_state.c+= ${NO_ADDR_OF_PACKED_MEMBER} .include <bsd.kmodule.mk> Index: src/sys/modules/npf/Makefile diff -u src/sys/modules/npf/Makefile:1.27 src/sys/modules/npf/Makefile:1.28 --- src/sys/modules/npf/Makefile:1.27 Sun Oct 18 11:02:12 2020 +++ src/sys/modules/npf/Makefile Sun Oct 18 15:56:42 2020 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.27 2020/10/18 15:02:12 christos Exp $ +# $NetBSD: Makefile,v 1.28 2020/10/18 19:56:42 christos Exp $ # # Public Domain. # @@ -21,7 +21,7 @@ SRCS+= nvlist.c nvpair.c nv_kern_netbsd CPPFLAGS+= -DINET6 CPPFLAGS+= -I${S}/external/bsd/libnv/dist -CWARNFLAGS.npf_inet.c+= ${GCC_NO_ADDR_OF_PACKED_MEMBER} +COPTS.npf_inet.c+= ${NO_ADDR_OF_PACKED_MEMBER} .include <bsd.kmodule.mk> Index: src/sys/modules/pf/Makefile diff -u src/sys/modules/pf/Makefile:1.14 src/sys/modules/pf/Makefile:1.15 --- src/sys/modules/pf/Makefile:1.14 Sun Oct 18 11:02:12 2020 +++ src/sys/modules/pf/Makefile Sun Oct 18 15:56:42 2020 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2020/10/18 15:02:12 christos Exp $ +# $NetBSD: Makefile,v 1.15 2020/10/18 19:56:42 christos Exp $ .include "../Makefile.inc" @@ -25,8 +25,8 @@ WARNS= 3 .if defined(HAVE_GCC) && ${HAVE_GCC} >= 7 && ${ACTIVE_CC} == "gcc" COPTS.pf.c+= -Wno-error=implicit-fallthrough .endif -CWARNFLAGS.pf.c+= ${GCC_NO_ADDR_OF_PACKED_MEMBER} -CWARNFLAGS.pf_norm.c+= ${GCC_NO_ADDR_OF_PACKED_MEMBER} -CWARNFLAGS.pf_table.c+= ${GCC_NO_ADDR_OF_PACKED_MEMBER} +COPTS.pf.c+= ${NO_ADDR_OF_PACKED_MEMBER} +COPTS.pf_norm.c+= ${NO_ADDR_OF_PACKED_MEMBER} +COPTS.pf_table.c+= ${NO_ADDR_OF_PACKED_MEMBER} .include <bsd.kmodule.mk> Index: src/sys/modules/slcompress/Makefile diff -u src/sys/modules/slcompress/Makefile:1.3 src/sys/modules/slcompress/Makefile:1.4 --- src/sys/modules/slcompress/Makefile:1.3 Sun Oct 18 11:02:12 2020 +++ src/sys/modules/slcompress/Makefile Sun Oct 18 15:56:42 2020 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2020/10/18 15:02:12 christos Exp $ +# $NetBSD: Makefile,v 1.4 2020/10/18 19:56:42 christos Exp $ .include "../Makefile.inc" @@ -9,7 +9,7 @@ SRCS= slcompress.c CPPFLAGS+= -DINET -CWARNFLAGS.slcompress.c+= ${GCC_NO_ADDR_OF_PACKED_MEMBER} +COPTS.slcompress.c+= ${NO_ADDR_OF_PACKED_MEMBER} WARNS= 3 Index: src/sys/modules/udf/Makefile diff -u src/sys/modules/udf/Makefile:1.5 src/sys/modules/udf/Makefile:1.6 --- src/sys/modules/udf/Makefile:1.5 Sun Sep 6 03:20:30 2020 +++ src/sys/modules/udf/Makefile Sun Oct 18 15:56:42 2020 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2020/09/06 07:20:30 mrg Exp $ +# $NetBSD: Makefile,v 1.6 2020/10/18 19:56:42 christos Exp $ .include "../Makefile.inc" @@ -13,6 +13,7 @@ WARNS= 3 CWARNFLAGS.clang= -Wno-self-assign -CWARNFLAGS.udf_allocation.c+= ${GCC_NO_ADDR_OF_PACKED_MEMBER} +COPTS.udf_allocation.c+= ${NO_ADDR_OF_PACKED_MEMBER} +COPTS.udf_subr.c+= ${NO_ADDR_OF_PACKED_MEMBER} .include <bsd.kmodule.mk> Index: src/sys/modules/v7fs/Makefile diff -u src/sys/modules/v7fs/Makefile:1.2 src/sys/modules/v7fs/Makefile:1.3 --- src/sys/modules/v7fs/Makefile:1.2 Sat Feb 16 23:06:00 2019 +++ src/sys/modules/v7fs/Makefile Sun Oct 18 15:56:42 2020 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2019/02/17 04:06:00 rin Exp $ +# $NetBSD: Makefile,v 1.3 2020/10/18 19:56:42 christos Exp $ .include "../Makefile.inc" @@ -22,6 +22,8 @@ SRCS+= v7fs_extern.c SRCS+= v7fs_vnops.c SRCS+= v7fs_vfsops.c +COPTS.v7fs_superblock.c += ${NO_ADDR_OF_PACKED_MEMBER} + WARNS= 3 .include <bsd.kmodule.mk>