CVS commit: src/distrib/sets/lists/gpufw
Module Name:src Committed By: maya Date: Tue Dec 14 12:13:39 UTC 2021 Modified Files: src/distrib/sets/lists/gpufw: mi Log Message: don't conditionalize the installation of nouveau directories To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/distrib/sets/lists/gpufw/mi Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/distrib/sets/lists/gpufw
Module Name:src Committed By: maya Date: Tue Dec 14 12:13:39 UTC 2021 Modified Files: src/distrib/sets/lists/gpufw: mi Log Message: don't conditionalize the installation of nouveau directories To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/distrib/sets/lists/gpufw/mi Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/distrib/sets/lists/gpufw/mi diff -u src/distrib/sets/lists/gpufw/mi:1.5 src/distrib/sets/lists/gpufw/mi:1.6 --- src/distrib/sets/lists/gpufw/mi:1.5 Mon Dec 13 23:59:35 2021 +++ src/distrib/sets/lists/gpufw/mi Tue Dec 14 12:13:38 2021 @@ -1,4 +1,4 @@ -# $NetBSD: mi,v 1.5 2021/12/13 23:59:35 maya Exp $ +# $NetBSD: mi,v 1.6 2021/12/14 12:13:38 maya Exp $ # # Note: don't delete entries from here - mark them as "obsolete" instead. # @@ -365,7 +365,7 @@ ./libdata/firmware/amdgpu/verde_rlc.bin base-gpufw amdgpufirmware ./libdata/firmware/amdgpu/verde_smc.bin base-gpufw amdgpufirmware ./libdata/firmware/nouveau/nvidia/LICENCE.nvidia base-gpufw nouveaufirmware -./libdata/firmware/nouveau/nvidia/gk20abase-gpufw nouveaufirmware +./libdata/firmware/nouveau/nvidia/gk20abase-gpufw ./libdata/firmware/nouveau/nvidia/gk20a/fecs_data.bin base-gpufw nouveaufirmware ./libdata/firmware/nouveau/nvidia/gk20a/fecs_inst.bin base-gpufw nouveaufirmware ./libdata/firmware/nouveau/nvidia/gk20a/gpccs_data.bin base-gpufw nouveaufirmware @@ -374,12 +374,12 @@ ./libdata/firmware/nouveau/nvidia/gk20a/sw_ctx.bin base-gpufw nouveaufirmware ./libdata/firmware/nouveau/nvidia/gk20a/sw_method_init.bin base-gpufw nouveaufirmware ./libdata/firmware/nouveau/nvidia/gk20a/sw_nonctx.bin base-gpufw nouveaufirmware -./libdata/firmware/nouveau/nvidia/gm200base-gpufw nouveaufirmware -./libdata/firmware/nouveau/nvidia/gm200/acr base-gpufw nouveaufirmware +./libdata/firmware/nouveau/nvidia/gm200base-gpufw +./libdata/firmware/nouveau/nvidia/gm200/acr base-gpufw ./libdata/firmware/nouveau/nvidia/gm200/acr/bl.bin base-gpufw nouveaufirmware ./libdata/firmware/nouveau/nvidia/gm200/acr/ucode_load.bin base-gpufw nouveaufirmware ./libdata/firmware/nouveau/nvidia/gm200/acr/ucode_unload.bin base-gpufw nouveaufirmware -./libdata/firmware/nouveau/nvidia/gm200/gr base-gpufw nouveaufirmware +./libdata/firmware/nouveau/nvidia/gm200/gr base-gpufw ./libdata/firmware/nouveau/nvidia/gm200/gr/fecs_bl.bin base-gpufw nouveaufirmware ./libdata/firmware/nouveau/nvidia/gm200/gr/fecs_data.bin base-gpufw nouveaufirmware ./libdata/firmware/nouveau/nvidia/gm200/gr/fecs_inst.bin base-gpufw nouveaufirmware @@ -392,12 +392,12 @@ ./libdata/firmware/nouveau/nvidia/gm200/gr/sw_ctx.bin base-gpufw nouveaufirmware ./libdata/firmware/nouveau/nvidia/gm200/gr/sw_method_init.bin base-gpufw nouveaufirmware ./libdata/firmware/nouveau/nvidia/gm200/gr/sw_nonctx.bin base-gpufw nouveaufirmware -./libdata/firmware/nouveau/nvidia/gm204base-gpufw nouveaufirmware -./libdata/firmware/nouveau/nvidia/gm204/acr base-gpufw nouveaufirmware +./libdata/firmware/nouveau/nvidia/gm204base-gpufw +./libdata/firmware/nouveau/nvidia/gm204/acr base-gpufw ./libdata/firmware/nouveau/nvidia/gm204/acr/bl.bin base-gpufw nouveaufirmware ./libdata/firmware/nouveau/nvidia/gm204/acr/ucode_load.bin base-gpufw nouveaufirmware ./libdata/firmware/nouveau/nvidia/gm204/acr/ucode_unload.bin base-gpufw nouveaufirmware -./libdata/firmware/nouveau/nvidia/gm204/gr base-gpufw nouveaufirmware +./libdata/firmware/nouveau/nvidia/gm204/gr base-gpufw ./libdata/firmware/nouveau/nvidia/gm204/gr/fecs_bl.bin base-gpufw nouveaufirmware ./libdata/firmware/nouveau/nvidia/gm204/gr/fecs_data.bin base-gpufw nouveaufirmware ./libdata/firmware/nouveau/nvidia/gm204/gr/fecs_inst.bin base-gpufw nouveaufirmware @@ -410,15 +410,16 @@ ./libdata/firmware/nouveau/nvidia/gm204/gr/sw_ctx.bin base-gpufw nouveaufirmware ./libdata/firmware/nouveau/nvidia/gm204/gr/sw_method_init.bin base-gpufw nouveaufirmware ./libdata/firmware/nouveau/nvidia/gm204/gr/sw_nonctx.bin base-gpufw nouveaufirmware -./libdata/firmware/nouveau/nvidia/gm206/acr base-gpufw nouveaufirmware +./libdata/firmware/nouveau/nvidia/gm206base-gpufw +./libdata/firmware/nouveau/nvidia/gm206/acr base-gpufw ./libdata/firmware/nouveau/nvidia/gm206/acr/bl.bin base-gpufw nouveaufirmware ./libdata/firmware/nouveau/nvidia/gm206/acr/ucode_load.bin base-gpufw nouveaufirmware ./libdata/firmware/nouveau/nvidia/gm206/acr/ucode_unload.bin base-gpufw nouveaufirmware -./libdata/firmware/nouveau/nvidia/gm206/fecs_data.bin base-gpufw nouveaufirmware -./libdata/firmware/nouveau/nvidia/gm206/fecs_inst.bin base-gpufw nouveaufirmware -./libdata/firmware/nouveau/nvidia/gm206/gpccs_data.bin base-gpufw nouveaufirmware -./libdata/firmware/nouveau/nvidia/gm206/gpccs_inst.bin base-gpufw nouveaufirmware -./libdata/firmware/nouveau/nvidia/gm206/gr base-gpufw nouveaufirmware
CVS commit: src/sys/ufs/ffs
Module Name:src Committed By: chs Date: Tue Dec 14 11:06:12 UTC 2021 Modified Files: src/sys/ufs/ffs: ffs_vnops.c Log Message: ffs: support extattrs (and thus ACLs) on fifos. To generate a diff of this commit: cvs rdiff -u -r1.137 -r1.138 src/sys/ufs/ffs/ffs_vnops.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/ufs/ffs
Module Name:src Committed By: chs Date: Tue Dec 14 11:06:12 UTC 2021 Modified Files: src/sys/ufs/ffs: ffs_vnops.c Log Message: ffs: support extattrs (and thus ACLs) on fifos. To generate a diff of this commit: cvs rdiff -u -r1.137 -r1.138 src/sys/ufs/ffs/ffs_vnops.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/ufs/ffs/ffs_vnops.c diff -u src/sys/ufs/ffs/ffs_vnops.c:1.137 src/sys/ufs/ffs/ffs_vnops.c:1.138 --- src/sys/ufs/ffs/ffs_vnops.c:1.137 Sun Jul 18 23:57:15 2021 +++ src/sys/ufs/ffs/ffs_vnops.c Tue Dec 14 11:06:12 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: ffs_vnops.c,v 1.137 2021/07/18 23:57:15 dholland Exp $ */ +/* $NetBSD: ffs_vnops.c,v 1.138 2021/12/14 11:06:12 chs Exp $ */ /*- * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc. @@ -61,7 +61,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ffs_vnops.c,v 1.137 2021/07/18 23:57:15 dholland Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ffs_vnops.c,v 1.138 2021/12/14 11:06:12 chs Exp $"); #if defined(_KERNEL_OPT) #include "opt_ffs.h" @@ -212,9 +212,11 @@ const struct vnodeopv_entry_desc ffs_fif { _reclaim_desc, ffs_reclaim }, /* reclaim */ { _lock_desc, genfs_lock }, /* lock */ { _unlock_desc, genfs_unlock }, /* unlock */ + { _bmap_desc, ufs_bmap }, /* bmap */ { _strategy_desc, ffsext_strategy }, /* strategy */ { _print_desc, ufs_print }, /* print */ { _islocked_desc, genfs_islocked }, /* islocked */ + { _pathconf_desc, ufs_pathconf }, /* pathconf */ { _bwrite_desc, vn_bwrite }, /* bwrite */ { _openextattr_desc, ffs_openextattr }, /* openextattr */ { _closeextattr_desc, ffs_closeextattr }, /* closeextattr */
CVS import: src/external/nvidia-firmware/nouveau/dist
Module Name:src Committed By: maya Date: Tue Dec 14 08:36:51 UTC 2021 Update of /cvsroot/src/external/nvidia-firmware/nouveau/dist In directory ivanova.netbsd.org:/tmp/cvs-serv4483 Log Message: Import nvidia firmware from linux-firmware repository at commit: commit 2984e265cac6ef19a0de4fb21396fb87f45273d9 Merge: 6f5aada 359ab77 Author: Josh Boyer Date: Fri Sep 3 11:11:05 2021 -0400 Merge tag 'iwlwifi-fw-2021-09-02' of git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/linux-firmware into main Revert accidentally released untested binaries Signed-off-by: Josh Boyer Only LICENCE.nvidia file, which I've omitted by accident. Status: Vendor Tag: LINUX-FIRMWARE Release Tags: linux-firmware-2021-09-03-2984e265 N src/external/nvidia-firmware/nouveau/dist/LICENCE.nvidia No conflicts created by this import
CVS import: src/external/nvidia-firmware/nouveau/dist
Module Name:src Committed By: maya Date: Tue Dec 14 08:36:51 UTC 2021 Update of /cvsroot/src/external/nvidia-firmware/nouveau/dist In directory ivanova.netbsd.org:/tmp/cvs-serv4483 Log Message: Import nvidia firmware from linux-firmware repository at commit: commit 2984e265cac6ef19a0de4fb21396fb87f45273d9 Merge: 6f5aada 359ab77 Author: Josh Boyer Date: Fri Sep 3 11:11:05 2021 -0400 Merge tag 'iwlwifi-fw-2021-09-02' of git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/linux-firmware into main Revert accidentally released untested binaries Signed-off-by: Josh Boyer Only LICENCE.nvidia file, which I've omitted by accident. Status: Vendor Tag: LINUX-FIRMWARE Release Tags: linux-firmware-2021-09-03-2984e265 N src/external/nvidia-firmware/nouveau/dist/LICENCE.nvidia No conflicts created by this import
CVS commit: src/sys/ufs/ffs
Module Name:src Committed By: chs Date: Tue Dec 14 11:06:50 UTC 2021 Modified Files: src/sys/ufs/ffs: ffs_extattr.c Log Message: ffs: fix the creation of device nodes on file systems with ACLs enabled. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/ufs/ffs/ffs_extattr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/ufs/ffs/ffs_extattr.c diff -u src/sys/ufs/ffs/ffs_extattr.c:1.7 src/sys/ufs/ffs/ffs_extattr.c:1.8 --- src/sys/ufs/ffs/ffs_extattr.c:1.7 Sat Sep 5 16:30:13 2020 +++ src/sys/ufs/ffs/ffs_extattr.c Tue Dec 14 11:06:50 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: ffs_extattr.c,v 1.7 2020/09/05 16:30:13 riastradh Exp $ */ +/* $NetBSD: ffs_extattr.c,v 1.8 2021/12/14 11:06:50 chs Exp $ */ /*- * SPDX-License-Identifier: (BSD-2-Clause-FreeBSD AND BSD-3-Clause) @@ -66,7 +66,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ffs_extattr.c,v 1.7 2020/09/05 16:30:13 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ffs_extattr.c,v 1.8 2021/12/14 11:06:50 chs Exp $"); #if defined(_KERNEL_OPT) #include "opt_ffs.h" @@ -587,8 +587,10 @@ ffs_openextattr(void *v) if (fs->fs_magic == FS_UFS1_MAGIC) return (EOPNOTSUPP); +#ifdef __FreeBSD__ if (ap->a_vp->v_type == VCHR || ap->a_vp->v_type == VBLK) return (EOPNOTSUPP); +#endif return (ffs_open_ea(ap->a_vp, ap->a_cred)); } @@ -612,8 +614,10 @@ ffs_closeextattr(void *v) if (fs->fs_magic == FS_UFS1_MAGIC) return (EOPNOTSUPP); +#ifdef __FreeBSD__ if (ap->a_vp->v_type == VCHR || ap->a_vp->v_type == VBLK) return (EOPNOTSUPP); +#endif if (ap->a_commit && (ap->a_vp->v_mount->mnt_flag & MNT_RDONLY)) return (EROFS); @@ -649,8 +653,10 @@ ffs_getextattr(void *v) unsigned easize; int error, ealen; +#ifdef __FreeBSD__ if (ap->a_vp->v_type == VCHR || ap->a_vp->v_type == VBLK) return (EOPNOTSUPP); +#endif error = extattr_check_cred(ap->a_vp, ap->a_attrnamespace, ap->a_cred, VREAD); @@ -892,8 +898,10 @@ ffs_deleteextattr(void *v) u_char *eae; void *tmp; +#ifdef __FreeBSD__ if (ap->a_vp->v_type == VCHR || ap->a_vp->v_type == VBLK) return (EOPNOTSUPP); +#endif if (strlen(ap->a_name) == 0) return (EINVAL);
CVS commit: src/sys/ufs/ffs
Module Name:src Committed By: chs Date: Tue Dec 14 11:06:50 UTC 2021 Modified Files: src/sys/ufs/ffs: ffs_extattr.c Log Message: ffs: fix the creation of device nodes on file systems with ACLs enabled. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/ufs/ffs/ffs_extattr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-9] src/sys/dev
Module Name:src Committed By: martin Date: Tue Dec 14 19:05:11 UTC 2021 Modified Files: src/sys/dev [netbsd-9]: cgd.c Log Message: Pull up following revision(s) (requested by riastradh in ticket #1393): sys/dev/cgd.c: revision 1.141 cgd(4): Wait for worker threads to complete before destroying mutex. Fixes PR kern/56546 (probably!). To generate a diff of this commit: cvs rdiff -u -r1.116.10.3 -r1.116.10.4 src/sys/dev/cgd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-9] src/sys/dev
Module Name:src Committed By: martin Date: Tue Dec 14 19:05:11 UTC 2021 Modified Files: src/sys/dev [netbsd-9]: cgd.c Log Message: Pull up following revision(s) (requested by riastradh in ticket #1393): sys/dev/cgd.c: revision 1.141 cgd(4): Wait for worker threads to complete before destroying mutex. Fixes PR kern/56546 (probably!). To generate a diff of this commit: cvs rdiff -u -r1.116.10.3 -r1.116.10.4 src/sys/dev/cgd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/cgd.c diff -u src/sys/dev/cgd.c:1.116.10.3 src/sys/dev/cgd.c:1.116.10.4 --- src/sys/dev/cgd.c:1.116.10.3 Mon Apr 6 14:57:42 2020 +++ src/sys/dev/cgd.c Tue Dec 14 19:05:11 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: cgd.c,v 1.116.10.3 2020/04/06 14:57:42 martin Exp $ */ +/* $NetBSD: cgd.c,v 1.116.10.4 2021/12/14 19:05:11 martin Exp $ */ /*- * Copyright (c) 2002 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: cgd.c,v 1.116.10.3 2020/04/06 14:57:42 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: cgd.c,v 1.116.10.4 2021/12/14 19:05:11 martin Exp $"); #include #include @@ -516,14 +516,20 @@ cgd_create_worker(void) static void cgd_destroy_worker(struct cgd_worker *cw) { + + /* + * Wait for all worker threads to complete before destroying + * the rest of the cgd_worker. + */ + if (cw->cw_wq) + workqueue_destroy(cw->cw_wq); + mutex_destroy(>cw_lock); if (cw->cw_cpool) { pool_destroy(cw->cw_cpool); kmem_free(cw->cw_cpool, sizeof(struct pool)); } - if (cw->cw_wq) - workqueue_destroy(cw->cw_wq); kmem_free(cw, sizeof(struct cgd_worker)); }
CVS commit: [netbsd-9] src/doc
Module Name:src Committed By: martin Date: Tue Dec 14 19:06:08 UTC 2021 Modified Files: src/doc [netbsd-9]: CHANGES-9.3 Log Message: Ticket #1393 To generate a diff of this commit: cvs rdiff -u -r1.1.2.57 -r1.1.2.58 src/doc/CHANGES-9.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/CHANGES-9.3 diff -u src/doc/CHANGES-9.3:1.1.2.57 src/doc/CHANGES-9.3:1.1.2.58 --- src/doc/CHANGES-9.3:1.1.2.57 Wed Dec 8 15:51:53 2021 +++ src/doc/CHANGES-9.3 Tue Dec 14 19:06:08 2021 @@ -1,4 +1,4 @@ -29~# $NetBSD: CHANGES-9.3,v 1.1.2.57 2021/12/08 15:51:53 martin Exp $ +29~# $NetBSD: CHANGES-9.3,v 1.1.2.58 2021/12/14 19:06:08 martin Exp $ A complete list of changes from the NetBSD 9.2 release to the NetBSD 9.3 release: @@ -1106,3 +1106,9 @@ sys/dev/ipmi.c 1.6-1.9 ipmi(4): various stability improvements and fix for PR 56539. [hauke, ticket #1392] +sys/dev/cgd.c 1.141 + + cgd(4): PR 56546: wait for worker threads to complete before + destroying mutex. + [riastradh, ticket #1393] +
CVS commit: [netbsd-9] src/doc
Module Name:src Committed By: martin Date: Tue Dec 14 19:06:08 UTC 2021 Modified Files: src/doc [netbsd-9]: CHANGES-9.3 Log Message: Ticket #1393 To generate a diff of this commit: cvs rdiff -u -r1.1.2.57 -r1.1.2.58 src/doc/CHANGES-9.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/tests/usr.bin/xlint/lint1
Module Name:src Committed By: rillig Date: Tue Dec 14 18:26:39 UTC 2021 Modified Files: src/tests/usr.bin/xlint/lint1: msg_102.c msg_102.exp Log Message: tests/lint: demonstrate missing support for anonymous members To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/xlint/lint1/msg_102.c \ src/tests/usr.bin/xlint/lint1/msg_102.exp Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/tests/usr.bin/xlint/lint1/msg_102.c diff -u src/tests/usr.bin/xlint/lint1/msg_102.c:1.2 src/tests/usr.bin/xlint/lint1/msg_102.c:1.3 --- src/tests/usr.bin/xlint/lint1/msg_102.c:1.2 Sun Feb 21 09:07:58 2021 +++ src/tests/usr.bin/xlint/lint1/msg_102.c Tue Dec 14 18:26:39 2021 @@ -1,7 +1,29 @@ -/* $NetBSD: msg_102.c,v 1.2 2021/02/21 09:07:58 rillig Exp $ */ +/* $NetBSD: msg_102.c,v 1.3 2021/12/14 18:26:39 rillig Exp $ */ # 3 "msg_102.c" // Test for message: illegal member use: %s [102] -TODO: "Add example code that triggers the above message." /* expect: 249 */ -TODO: "Add example code that almost triggers the above message." +// Anonymous members are defined in C11 6.7.2.1p2. + +struct bit_fields_and_bits { + union { + struct { + unsigned bit_0:1; + unsigned bit_1:1; + }; + unsigned bits; + }; +}; + +static inline _Bool +eq(const struct bit_fields_and_bits *a, const struct bit_fields_and_bits *b) +{ + /* + * TODO: Once this is fixed, enable lint in + * external/mit/xorg/lib/dri.old/Makefile again. + */ + /* TODO: Add support for C11 anonymous struct and union members. */ + /* expect+2: error: illegal member use: bits [102] */ + /* expect+1: error: illegal member use: bits [102] */ + return a->bits == b->bits; +} Index: src/tests/usr.bin/xlint/lint1/msg_102.exp diff -u src/tests/usr.bin/xlint/lint1/msg_102.exp:1.2 src/tests/usr.bin/xlint/lint1/msg_102.exp:1.3 --- src/tests/usr.bin/xlint/lint1/msg_102.exp:1.2 Sun Mar 21 20:44:59 2021 +++ src/tests/usr.bin/xlint/lint1/msg_102.exp Tue Dec 14 18:26:39 2021 @@ -1 +1,2 @@ -msg_102.c(6): error: syntax error ':' [249] +msg_102.c(28): error: illegal member use: bits [102] +msg_102.c(28): error: illegal member use: bits [102]
CVS commit: src/tests/usr.bin/xlint/lint1
Module Name:src Committed By: rillig Date: Tue Dec 14 18:26:39 UTC 2021 Modified Files: src/tests/usr.bin/xlint/lint1: msg_102.c msg_102.exp Log Message: tests/lint: demonstrate missing support for anonymous members To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/xlint/lint1/msg_102.c \ src/tests/usr.bin/xlint/lint1/msg_102.exp Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/xlint/xlint
Module Name:src Committed By: christos Date: Tue Dec 14 16:55:45 UTC 2021 Modified Files: src/usr.bin/xlint/xlint: lint.1 Log Message: provide an expanded description for -W To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.49 src/usr.bin/xlint/xlint/lint.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/xlint/xlint
Module Name:src Committed By: christos Date: Tue Dec 14 16:55:45 UTC 2021 Modified Files: src/usr.bin/xlint/xlint: lint.1 Log Message: provide an expanded description for -W To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.49 src/usr.bin/xlint/xlint/lint.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/usr.bin/xlint/xlint/lint.1 diff -u src/usr.bin/xlint/xlint/lint.1:1.48 src/usr.bin/xlint/xlint/lint.1:1.49 --- src/usr.bin/xlint/xlint/lint.1:1.48 Tue Dec 14 11:22:30 2021 +++ src/usr.bin/xlint/xlint/lint.1 Tue Dec 14 11:55:45 2021 @@ -1,4 +1,4 @@ -.\" $NetBSD: lint.1,v 1.48 2021/12/14 16:22:30 christos Exp $ +.\" $NetBSD: lint.1,v 1.49 2021/12/14 16:55:45 christos Exp $ .\" .\" Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved. .\" Copyright (c) 1994, 1995 Jochen Pohl @@ -396,6 +396,9 @@ run the C preprocessor and first and second pass. .It Fl v Suppress complaints about unused arguments in functions. +.It Fl W Ar cppwarnarg +Pass the warning directive to +.Xr cpp 1 . .It Fl w Treat warnings as errors. .It Fl X Ar id Ns Op ,id ...
CVS commit: src/external/ibm-public/postfix
Module Name:src Committed By: christos Date: Tue Dec 14 16:13:37 UTC 2021 Modified Files: src/external/ibm-public/postfix: Makefile.inc Log Message: -Wno-comment for everyone (including lint) To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/external/ibm-public/postfix/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/ibm-public/postfix
Module Name:src Committed By: christos Date: Tue Dec 14 16:13:37 UTC 2021 Modified Files: src/external/ibm-public/postfix: Makefile.inc Log Message: -Wno-comment for everyone (including lint) To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/external/ibm-public/postfix/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/ibm-public/postfix/Makefile.inc diff -u src/external/ibm-public/postfix/Makefile.inc:1.28 src/external/ibm-public/postfix/Makefile.inc:1.29 --- src/external/ibm-public/postfix/Makefile.inc:1.28 Sat Aug 14 12:17:57 2021 +++ src/external/ibm-public/postfix/Makefile.inc Tue Dec 14 11:13:37 2021 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.28 2021/08/14 16:17:57 christos Exp $ +# $NetBSD: Makefile.inc,v 1.29 2021/12/14 16:13:37 christos Exp $ .include @@ -18,7 +18,7 @@ CPPFLAGS+= -DNETBSD7 -DUSE_SASL_AUTH -DN -I${PFIX_DISTDIR}/src/master -I${PFIX_DISTDIR}/src/util \ -I${PFIX_DISTDIR}/src/tls -I${PFIX_DISTDIR}/src/milter \ -I${PFIX_DISTDIR}/src/xsasl \ - ${${ACTIVE_CC} == "clang":?-Wno-comment:} + -Wno-comment CPPFLAGS+= -DUSE_SASL_AUTH CPPFLAGS+= -DDEF_SERVER_SASL_TYPE=\"dovecot\"
CVS commit: src/tests/lib/librt
Module Name:src Committed By: wiz Date: Tue Dec 14 16:25:11 UTC 2021 Modified Files: src/tests/lib/librt: t_sem.c Log Message: Add expected-fail test for kern/56549 consecutive sem_open() calls do not return the same address To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/tests/lib/librt/t_sem.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/tests/lib/librt
Module Name:src Committed By: wiz Date: Tue Dec 14 16:25:11 UTC 2021 Modified Files: src/tests/lib/librt: t_sem.c Log Message: Add expected-fail test for kern/56549 consecutive sem_open() calls do not return the same address To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/tests/lib/librt/t_sem.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/tests/lib/librt/t_sem.c diff -u src/tests/lib/librt/t_sem.c:1.5 src/tests/lib/librt/t_sem.c:1.6 --- src/tests/lib/librt/t_sem.c:1.5 Thu May 14 08:34:19 2020 +++ src/tests/lib/librt/t_sem.c Tue Dec 14 16:25:11 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: t_sem.c,v 1.5 2020/05/14 08:34:19 msaitoh Exp $ */ +/* $NetBSD: t_sem.c,v 1.6 2021/12/14 16:25:11 wiz Exp $ */ /* * Copyright (c) 2008, 2010, 2019 The NetBSD Foundation, Inc. @@ -58,7 +58,7 @@ #include __COPYRIGHT("@(#) Copyright (c) 2008, 2010, 2019\ The NetBSD Foundation, inc. All rights reserved."); -__RCSID("$NetBSD: t_sem.c,v 1.5 2020/05/14 08:34:19 msaitoh Exp $"); +__RCSID("$NetBSD: t_sem.c,v 1.6 2021/12/14 16:25:11 wiz Exp $"); #include #include @@ -313,6 +313,32 @@ ATF_TC_CLEANUP(invalid_ops, tc) (void)sem_unlink("/sem_c"); } +ATF_TC_WITH_CLEANUP(sem_open_address); +ATF_TC_HEAD(sem_open_address, tc) +{ + atf_tc_set_md_var(tc, "descr", "Validate that multiple sem_open calls " + "return the same address"); +} +ATF_TC_BODY(sem_open_address, tc) +{ + sem_t *sem, *sem2, *sem3; + atf_tc_expect_fail("kern/56549: consecutive sem_open() do not return the same address"); + sem = sem_open("/sem_d", O_CREAT | O_EXCL, 0777, 0); + ATF_REQUIRE(sem != SEM_FAILED); + sem2 = sem_open("/sem_d", O_CREAT | O_EXCL, 0777, 0); + ATF_REQUIRE(sem2 == SEM_FAILED && errno == EEXIST); + sem3 = sem_open("/sem_d", 0); + ATF_REQUIRE(sem3 != SEM_FAILED); + ATF_REQUIRE(sem == sem3); + ATF_REQUIRE_EQ(sem_close(sem3), 0); + ATF_REQUIRE_EQ(sem_close(sem), 0); + ATF_REQUIRE_EQ(sem_unlink("/sem_d"), 0); +} +ATF_TC_CLEANUP(sem_open_address, tc) +{ + (void)sem_unlink("/sem_d"); +} + ATF_TP_ADD_TCS(tp) { @@ -320,6 +346,7 @@ ATF_TP_ADD_TCS(tp) ATF_TP_ADD_TC(tp, child); ATF_TP_ADD_TC(tp, pshared); ATF_TP_ADD_TC(tp, invalid_ops); + ATF_TP_ADD_TC(tp, sem_open_address); return atf_no_error(); }
CVS commit: src/external/ibm-public/postfix
Module Name:src Committed By: christos Date: Tue Dec 14 16:27:20 UTC 2021 Modified Files: src/external/ibm-public/postfix: Makefile.inc Log Message: Disable lint and explain why. To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.30 src/external/ibm-public/postfix/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/ibm-public/postfix/Makefile.inc diff -u src/external/ibm-public/postfix/Makefile.inc:1.29 src/external/ibm-public/postfix/Makefile.inc:1.30 --- src/external/ibm-public/postfix/Makefile.inc:1.29 Tue Dec 14 11:13:37 2021 +++ src/external/ibm-public/postfix/Makefile.inc Tue Dec 14 11:27:20 2021 @@ -1,4 +1,12 @@ -# $NetBSD: Makefile.inc,v 1.29 2021/12/14 16:13:37 christos Exp $ +# $NetBSD: Makefile.inc,v 1.30 2021/12/14 16:27:20 christos Exp $ + +# For now, don't lint: +# 1. postfix uses 'struct { const char *name; int value } foo[] = +#{ "n1", v1, "n2, v2", 0 };' and this is broken (should be fixed in lint) +# 2. uses macros with extra ; (macros should be fixed) +# 3. lint2 is broken (should be fixed in lint2) +# 4. use use MKLINT:=no since this might have been included too late. +MKLINT:=no .include
CVS commit: src/external/ibm-public/postfix
Module Name:src Committed By: christos Date: Tue Dec 14 16:27:20 UTC 2021 Modified Files: src/external/ibm-public/postfix: Makefile.inc Log Message: Disable lint and explain why. To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.30 src/external/ibm-public/postfix/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/mail
Module Name:src Committed By: christos Date: Tue Dec 14 15:13:42 UTC 2021 Modified Files: src/usr.bin/mail: cmdtab.c Log Message: PR/56548: RVP: mail(1) segfaults if thread commands are used in ~/.mailrc To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/usr.bin/mail/cmdtab.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/mail
Module Name:src Committed By: christos Date: Tue Dec 14 15:13:42 UTC 2021 Modified Files: src/usr.bin/mail: cmdtab.c Log Message: PR/56548: RVP: mail(1) segfaults if thread commands are used in ~/.mailrc To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/usr.bin/mail/cmdtab.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/usr.bin/mail/cmdtab.c diff -u src/usr.bin/mail/cmdtab.c:1.21 src/usr.bin/mail/cmdtab.c:1.22 --- src/usr.bin/mail/cmdtab.c:1.21 Fri Apr 10 09:08:24 2009 +++ src/usr.bin/mail/cmdtab.c Tue Dec 14 10:13:41 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: cmdtab.c,v 1.21 2009/04/10 13:08:24 christos Exp $ */ +/* $NetBSD: cmdtab.c,v 1.22 2021/12/14 15:13:41 christos Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)cmdtab.c 8.2 (Berkeley) 4/20/95"; #else -__RCSID("$NetBSD: cmdtab.c,v 1.21 2009/04/10 13:08:24 christos Exp $"); +__RCSID("$NetBSD: cmdtab.c,v 1.22 2021/12/14 15:13:41 christos Exp $"); #endif #endif /* not lint */ @@ -152,32 +152,32 @@ const struct cmd cmdtab[] = { /* R */ { "Detach", Detach, S, CMP(F) STRLIST, 0, 0 }, #endif #ifdef THREAD_SUPPORT - { "flatten", flattencmd, 0, CMP(n) T|NDMLIST, 0, MMNDEL }, - { "reverse", reversecmd, 0, CMP(n) T|STRLIST, 0, 0 }, - { "sort", sortcmd, 0, CMP(T) T|STRLIST, 0, 0 }, - { "thread", threadcmd, 0, CMP(T) T|STRLIST, 0, 0 }, - { "unthread", unthreadcmd, 0, CMP(n) T|STRLIST, 0, 0 }, - - { "down", downcmd, 0, CMP(n) T|MSGLIST, 0, MMNDEL }, - { "tset", tsetcmd, 0, CMP(n) T|MSGLIST, 0, MMNDEL }, - { "up", upcmd, 0, CMP(n) T|STRLIST, 0, 0 }, - - { "expose", exposecmd, 0, CMP(n) T|STRLIST, 0, 0 }, - { "hide", hidecmd, 0, CMP(n) T|STRLIST, 0, 0 }, - { "showthreads",exposecmd, 0, CMP(n) T|STRLIST, 0, 0 }, - { "hidethreads",hidecmd, 0, CMP(n) T|STRLIST, 0, 0 }, + { "flatten", flattencmd, 0, CMP(n) I|T|NDMLIST, 0, MMNDEL }, + { "reverse", reversecmd, 0, CMP(n) I|T|STRLIST, 0, 0 }, + { "sort", sortcmd, 0, CMP(T) I|T|STRLIST, 0, 0 }, + { "thread", threadcmd, 0, CMP(T) I|T|STRLIST, 0, 0 }, + { "unthread", unthreadcmd, 0, CMP(n) I|T|STRLIST, 0, 0 }, + + { "down", downcmd, 0, CMP(n) I|T|MSGLIST, 0, MMNDEL }, + { "tset", tsetcmd, 0, CMP(n) I|T|MSGLIST, 0, MMNDEL }, + { "up", upcmd, 0, CMP(n) I|T|STRLIST, 0, 0 }, + + { "expose", exposecmd, 0, CMP(n) I|T|STRLIST, 0, 0 }, + { "hide", hidecmd, 0, CMP(n) I|T|STRLIST, 0, 0 }, + { "showthreads",exposecmd, 0, CMP(n) I|T|STRLIST, 0, 0 }, + { "hidethreads",hidecmd, 0, CMP(n) I|T|STRLIST, 0, 0 }, #ifdef THREAD_DEBUG - { "debug_links",thread_showcmd, S, CMP(n) T|MSGLIST, 0, MMNDEL }, + { "debug_links",thread_showcmd, S, CMP(n) I|T|MSGLIST, 0, MMNDEL }, #endif -/* R */ { "tag", tagcmd, 0, CMP(n) T|MSGLIST, 0, MMNDEL }, -/* R */ { "untag", untagcmd, 0, CMP(n) T|MSGLIST, 0, MMNDEL }, -/* R */ { "invtags", invtagscmd, 0, CMP(n) T|MSGLIST, 0, MMNDEL }, - { "tagbelow", tagbelowcmd, 0, CMP(n) T|MSGLIST, 0, MMNDEL }, +/* R */ { "tag", tagcmd, 0, CMP(n) I|T|MSGLIST, 0, MMNDEL }, +/* R */ { "untag", untagcmd, 0, CMP(n) I|T|MSGLIST, 0, MMNDEL }, +/* R */ { "invtags", invtagscmd, 0, CMP(n) I|T|MSGLIST, 0, MMNDEL }, + { "tagbelow", tagbelowcmd, 0, CMP(n) I|T|MSGLIST, 0, MMNDEL }, - { "hidetags", hidetagscmd, 0, CMP(n) T|STRLIST, 0, 0 }, - { "showtags", showtagscmd, 0, CMP(n) T|STRLIST, 0, 0 }, + { "hidetags", hidetagscmd, 0, CMP(n) I|T|STRLIST, 0, 0 }, + { "showtags", showtagscmd, 0, CMP(n) I|T|STRLIST, 0, 0 }, - { "deldups", deldupscmd, 0, CMP(n) T|STRLIST, 0, 0 }, + { "deldups", deldupscmd, 0, CMP(n) I|T|STRLIST, 0, 0 }, #endif /* THREAD_SUPPORT */ { 0, 0, 0, CMP0 0, 0, 0 } };
CVS commit: xsrc/external/mit
Module Name:xsrc Committed By: christos Date: Tue Dec 14 14:43:43 UTC 2021 Modified Files: xsrc/external/mit/MesaLib.old/dist/src/amd/addrlib/inc: addrinterface.h addrtypes.h xsrc/external/mit/MesaLib.old/dist/src/amd/common: ac_gpu_info.h ac_surface.h xsrc/external/mit/MesaLib.old/dist/src/util: u_atomic.h xsrc/external/mit/libdrm/dist/amdgpu: amdgpu.h Log Message: lint fixes: 1. avoid typedef re-definitions (perhaps introduce c11 mode for lint) 2. add __lint__ wherever __GNUC__ is defined. To generate a diff of this commit: cvs rdiff -u -r1.1.1.1 -r1.2 \ xsrc/external/mit/MesaLib.old/dist/src/amd/addrlib/inc/addrinterface.h \ xsrc/external/mit/MesaLib.old/dist/src/amd/addrlib/inc/addrtypes.h cvs rdiff -u -r1.1.1.1 -r1.2 \ xsrc/external/mit/MesaLib.old/dist/src/amd/common/ac_gpu_info.h \ xsrc/external/mit/MesaLib.old/dist/src/amd/common/ac_surface.h cvs rdiff -u -r1.1.1.1 -r1.2 \ xsrc/external/mit/MesaLib.old/dist/src/util/u_atomic.h cvs rdiff -u -r1.1.1.11 -r1.2 xsrc/external/mit/libdrm/dist/amdgpu/amdgpu.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: xsrc/external/mit/MesaLib.old/dist/src/amd/addrlib/inc/addrinterface.h diff -u xsrc/external/mit/MesaLib.old/dist/src/amd/addrlib/inc/addrinterface.h:1.1.1.1 xsrc/external/mit/MesaLib.old/dist/src/amd/addrlib/inc/addrinterface.h:1.2 --- xsrc/external/mit/MesaLib.old/dist/src/amd/addrlib/inc/addrinterface.h:1.1.1.1 Sun Jul 11 16:36:22 2021 +++ xsrc/external/mit/MesaLib.old/dist/src/amd/addrlib/inc/addrinterface.h Tue Dec 14 09:43:42 2021 @@ -45,7 +45,10 @@ extern "C" #define ADDRLIB_VERSION ((ADDRLIB_VERSION_MAJOR << 16) | ADDRLIB_VERSION_MINOR) /// Virtually all interface functions need ADDR_HANDLE as first parameter +#ifndef ADDR_HANDLE_TYPEDEF +#define ADDR_HANDLE_TYPEDEF typedef VOID* ADDR_HANDLE; +#endif /// Client handle used in callbacks typedef VOID* ADDR_CLIENT_HANDLE; Index: xsrc/external/mit/MesaLib.old/dist/src/amd/addrlib/inc/addrtypes.h diff -u xsrc/external/mit/MesaLib.old/dist/src/amd/addrlib/inc/addrtypes.h:1.1.1.1 xsrc/external/mit/MesaLib.old/dist/src/amd/addrlib/inc/addrtypes.h:1.2 --- xsrc/external/mit/MesaLib.old/dist/src/amd/addrlib/inc/addrtypes.h:1.1.1.1 Sun Jul 11 16:36:22 2021 +++ xsrc/external/mit/MesaLib.old/dist/src/amd/addrlib/inc/addrtypes.h Tue Dec 14 09:43:42 2021 @@ -67,7 +67,7 @@ typedef intINT; */ #ifndef ADDR_CDECL -#if defined(__GNUC__) +#if defined(__GNUC__) || defined(__lint__) #define ADDR_CDECL __attribute__((cdecl)) #else #define ADDR_CDECL __cdecl @@ -75,7 +75,7 @@ typedef intINT; #endif #ifndef ADDR_STDCALL -#if defined(__GNUC__) +#if defined(__GNUC__) || defined(__lint__) #if defined(__amd64__) || defined(__x86_64__) #define ADDR_STDCALL #else @@ -89,13 +89,13 @@ typedef intINT; #ifndef ADDR_FASTCALL #if defined(BRAHMA_ARM) #define ADDR_FASTCALL -#elif defined(__GNUC__) +#elif defined(__GNUC__) || defined(__lint__) #if defined(__i386__) #define ADDR_FASTCALL __attribute__((regparm(0))) #else #define ADDR_FASTCALL #endif -#else +#elif #define ADDR_FASTCALL __fastcall #endif #endif @@ -112,7 +112,7 @@ typedef intINT; #define GC_FASTCALL ADDR_FASTCALL #endif -#if defined(__GNUC__) +#if defined(__GNUC__) || defined(__lint__) #define ADDR_INLINE static inline // inline needs to be static to link #else // win32, win64, other platforms @@ -656,7 +656,7 @@ typedef enum _AddrTileType // // 64-bit integer types depend on the compiler // -#if defined( __GNUC__ ) || defined( __WATCOMC__ ) +#if defined( __GNUC__ ) || defined( __WATCOMC__ ) || defined(__lint__) #define INT_64 long long #define UINT_64 unsigned long long @@ -689,7 +689,7 @@ typedef enum _AddrTileType // ADDR64X is used to print addresses in hex form on both Windows and Linux // -#if defined( __GNUC__ ) || defined( __WATCOMC__ ) +#if defined( __GNUC__ ) || defined( __WATCOMC__ ) || defined(__lint__) #define ADDR64X "llx" #define ADDR64D "lld" Index: xsrc/external/mit/MesaLib.old/dist/src/amd/common/ac_gpu_info.h diff -u xsrc/external/mit/MesaLib.old/dist/src/amd/common/ac_gpu_info.h:1.1.1.1 xsrc/external/mit/MesaLib.old/dist/src/amd/common/ac_gpu_info.h:1.2 --- xsrc/external/mit/MesaLib.old/dist/src/amd/common/ac_gpu_info.h:1.1.1.1 Sun Jul 11 16:36:22 2021 +++ xsrc/external/mit/MesaLib.old/dist/src/amd/common/ac_gpu_info.h Tue Dec 14 09:43:43 2021 @@ -36,7 +36,10 @@ extern "C" { #endif /* Prior to C11 the following may trigger a typedef redeclaration warning */ +#ifndef AMDGPU_DEVICE_TYPEDEF
CVS commit: xsrc/external/mit
Module Name:xsrc Committed By: christos Date: Tue Dec 14 14:43:43 UTC 2021 Modified Files: xsrc/external/mit/MesaLib.old/dist/src/amd/addrlib/inc: addrinterface.h addrtypes.h xsrc/external/mit/MesaLib.old/dist/src/amd/common: ac_gpu_info.h ac_surface.h xsrc/external/mit/MesaLib.old/dist/src/util: u_atomic.h xsrc/external/mit/libdrm/dist/amdgpu: amdgpu.h Log Message: lint fixes: 1. avoid typedef re-definitions (perhaps introduce c11 mode for lint) 2. add __lint__ wherever __GNUC__ is defined. To generate a diff of this commit: cvs rdiff -u -r1.1.1.1 -r1.2 \ xsrc/external/mit/MesaLib.old/dist/src/amd/addrlib/inc/addrinterface.h \ xsrc/external/mit/MesaLib.old/dist/src/amd/addrlib/inc/addrtypes.h cvs rdiff -u -r1.1.1.1 -r1.2 \ xsrc/external/mit/MesaLib.old/dist/src/amd/common/ac_gpu_info.h \ xsrc/external/mit/MesaLib.old/dist/src/amd/common/ac_surface.h cvs rdiff -u -r1.1.1.1 -r1.2 \ xsrc/external/mit/MesaLib.old/dist/src/util/u_atomic.h cvs rdiff -u -r1.1.1.11 -r1.2 xsrc/external/mit/libdrm/dist/amdgpu/amdgpu.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/xlint/xlint
Module Name:src Committed By: christos Date: Tue Dec 14 16:22:30 UTC 2021 Modified Files: src/usr.bin/xlint/xlint: lint.1 xlint.c Log Message: Also accept -W to pass to cpp To generate a diff of this commit: cvs rdiff -u -r1.47 -r1.48 src/usr.bin/xlint/xlint/lint.1 cvs rdiff -u -r1.86 -r1.87 src/usr.bin/xlint/xlint/xlint.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/xlint/xlint
Module Name:src Committed By: christos Date: Tue Dec 14 16:22:30 UTC 2021 Modified Files: src/usr.bin/xlint/xlint: lint.1 xlint.c Log Message: Also accept -W to pass to cpp To generate a diff of this commit: cvs rdiff -u -r1.47 -r1.48 src/usr.bin/xlint/xlint/lint.1 cvs rdiff -u -r1.86 -r1.87 src/usr.bin/xlint/xlint/xlint.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/usr.bin/xlint/xlint/lint.1 diff -u src/usr.bin/xlint/xlint/lint.1:1.47 src/usr.bin/xlint/xlint/lint.1:1.48 --- src/usr.bin/xlint/xlint/lint.1:1.47 Sun Aug 8 12:53:53 2021 +++ src/usr.bin/xlint/xlint/lint.1 Tue Dec 14 11:22:30 2021 @@ -1,4 +1,4 @@ -.\" $NetBSD: lint.1,v 1.47 2021/08/08 16:53:53 wiz Exp $ +.\" $NetBSD: lint.1,v 1.48 2021/12/14 16:22:30 christos Exp $ .\" .\" Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved. .\" Copyright (c) 1994, 1995 Jochen Pohl @@ -30,7 +30,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd August 8, 2021 +.Dd December 14, 2021 .Dt LINT 1 .Os .Sh NAME @@ -50,6 +50,7 @@ .Op Fl l Ar library .Op Fl o Ar outputfile .Op Fl U Ar name +.Op Fl W Ar cppwarnarg .Op Fl X Ar id Ns Op ,id ... .Op Fl Z Ar cpparg .Ar @@ -64,6 +65,7 @@ .Op Fl MD .Op Fl R Ar old=new .Op Fl U Ar name +.Op Fl W Ar cppwarnarg .Op Fl X Ar id Ns Op ,id ... .Op Fl Z Ar cpparg .Ar Index: src/usr.bin/xlint/xlint/xlint.c diff -u src/usr.bin/xlint/xlint/xlint.c:1.86 src/usr.bin/xlint/xlint/xlint.c:1.87 --- src/usr.bin/xlint/xlint/xlint.c:1.86 Sat Nov 27 21:54:26 2021 +++ src/usr.bin/xlint/xlint/xlint.c Tue Dec 14 11:22:30 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: xlint.c,v 1.86 2021/11/28 02:54:26 christos Exp $ */ +/* $NetBSD: xlint.c,v 1.87 2021/12/14 16:22:30 christos Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved. @@ -38,7 +38,7 @@ #include #if defined(__RCSID) && !defined(lint) -__RCSID("$NetBSD: xlint.c,v 1.86 2021/11/28 02:54:26 christos Exp $"); +__RCSID("$NetBSD: xlint.c,v 1.87 2021/12/14 16:22:30 christos Exp $"); #endif #include @@ -386,7 +386,7 @@ main(int argc, char *argv[]) (void)signal(SIGQUIT, terminate); (void)signal(SIGTERM, terminate); while ((c = getopt(argc, argv, - "abcd:eghil:no:prstuvwxzA:B:C:D:FHI:L:M:PR:STU:VX:Z:")) != -1) { + "abcd:eghil:no:prstuvwxzA:B:C:D:FHI:L:M:PR:STU:VW:X:Z:")) != -1) { switch (c) { case 'a': @@ -510,6 +510,7 @@ main(int argc, char *argv[]) case 'I': case 'M': case 'U': + case 'W': list_add_ref(, xasprintf("-%c%s", c, optarg)); break;
CVS commit: src/share/mk
Module Name:src Committed By: christos Date: Tue Dec 14 16:22:07 UTC 2021 Modified Files: src/share/mk: bsd.dep.mk bsd.sys.mk sys.mk Log Message: Pass W with IDU for lint and deps. To generate a diff of this commit: cvs rdiff -u -r1.87 -r1.88 src/share/mk/bsd.dep.mk cvs rdiff -u -r1.308 -r1.309 src/share/mk/bsd.sys.mk cvs rdiff -u -r1.147 -r1.148 src/share/mk/sys.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/share/mk
Module Name:src Committed By: christos Date: Tue Dec 14 16:22:07 UTC 2021 Modified Files: src/share/mk: bsd.dep.mk bsd.sys.mk sys.mk Log Message: Pass W with IDU for lint and deps. To generate a diff of this commit: cvs rdiff -u -r1.87 -r1.88 src/share/mk/bsd.dep.mk cvs rdiff -u -r1.308 -r1.309 src/share/mk/bsd.sys.mk cvs rdiff -u -r1.147 -r1.148 src/share/mk/sys.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.dep.mk diff -u src/share/mk/bsd.dep.mk:1.87 src/share/mk/bsd.dep.mk:1.88 --- src/share/mk/bsd.dep.mk:1.87 Wed Jul 1 03:38:29 2020 +++ src/share/mk/bsd.dep.mk Tue Dec 14 11:22:07 2021 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.dep.mk,v 1.87 2020/07/01 07:38:29 lukem Exp $ +# $NetBSD: bsd.dep.mk,v 1.88 2021/12/14 16:22:07 christos Exp $ # Basic targets realdepend: beforedepend .depend afterdepend @@ -61,7 +61,7 @@ _MKDEP_FILEFLAGS= .c.d: ${_MKTARGET_CREATE} ${MKDEP} -f ${.TARGET}.tmp ${_MKDEP_FILEFLAGS} -- ${MKDEPFLAGS} \ - ${CFLAGS:M-std=*} ${CFLAGS:C/-([IDU])[ ]*/-\1/Wg:M-[IDU]*} \ + ${CFLAGS:M-std=*} ${CFLAGS:C/-([IDUW])[ ]*/-\1/Wg:M-[IDUW]*} \ ${CPPFLAGS:N-Wp,-iremap,*} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} \ ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} && \ ${MV} ${.TARGET}.tmp ${.TARGET} @@ -69,7 +69,7 @@ _MKDEP_FILEFLAGS= .m.d: ${_MKTARGET_CREATE} ${MKDEP} -f ${.TARGET}.tmp ${_MKDEP_FILEFLAGS} -- ${MKDEPFLAGS} \ - ${OBJCFLAGS:C/-([IDU])[ ]*/-\1/Wg:M-[IDU]*} \ + ${OBJCFLAGS:C/-([IDUW])[ ]*/-\1/Wg:M-[IDUW]*} \ ${CPPFLAGS:N-Wp,-iremap,*} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} \ ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} && \ ${MV} ${.TARGET}.tmp ${.TARGET} @@ -77,7 +77,7 @@ _MKDEP_FILEFLAGS= .s.d .S.d: ${_MKTARGET_CREATE} ${MKDEP} -f ${.TARGET}.tmp ${_MKDEP_FILEFLAGS} -- ${MKDEPFLAGS} \ - ${AFLAGS:C/-([IDU])[ ]*/-\1/Wg:M-[IDU]*} \ + ${AFLAGS:C/-([IDUW])[ ]*/-\1/Wg:M-[IDUW]*} \ ${CPPFLAGS:N-Wp,-iremap,*} ${AFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} \ ${__acpp_flags} ${.IMPSRC} && \ ${MV} ${.TARGET}.tmp ${.TARGET} @@ -85,7 +85,7 @@ _MKDEP_FILEFLAGS= .C.d .cc.d .cpp.d .cxx.d: ${_MKTARGET_CREATE} ${MKDEPCXX} -f ${.TARGET}.tmp ${_MKDEP_FILEFLAGS} -- ${MKDEPFLAGS} \ - ${CXXFLAGS:M-std=*} ${CXXFLAGS:C/-([IDU])[ ]*/-\1/Wg:M-[IDU]*} \ + ${CXXFLAGS:M-std=*} ${CXXFLAGS:C/-([IDUW])[ ]*/-\1/Wg:M-[IDUW]*} \ ${CPPFLAGS:N-Wp,-iremap,*} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} \ ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} && \ ${MV} ${.TARGET}.tmp ${.TARGET} Index: src/share/mk/bsd.sys.mk diff -u src/share/mk/bsd.sys.mk:1.308 src/share/mk/bsd.sys.mk:1.309 --- src/share/mk/bsd.sys.mk:1.308 Mon Nov 1 06:05:19 2021 +++ src/share/mk/bsd.sys.mk Tue Dec 14 11:22:07 2021 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.sys.mk,v 1.308 2021/11/01 10:05:19 nia Exp $ +# $NetBSD: bsd.sys.mk,v 1.309 2021/12/14 16:22:07 christos Exp $ # # Build definitions used for NetBSD source tree builds. @@ -272,8 +272,8 @@ STRIP?= strip .c.ln: ${_MKTARGET_COMPILE} ${LINT} ${LINTFLAGS} ${LINTFLAGS.${.IMPSRC:T}} \ - ${CPPFLAGS:C/-([IDU])[ ]*/-\1/Wg:M-[IDU]*} \ - ${CPPFLAGS.${.IMPSRC:T}:C/-([IDU])[ ]*/-\1/Wg:M-[IDU]*} \ + ${CPPFLAGS:C/-([IDUW])[ ]*/-\1/Wg:M-[IDUW]*} \ + ${CPPFLAGS.${.IMPSRC:T}:C/-([IDUW])[ ]*/-\1/Wg:M-[IDUW]*} \ -i ${.IMPSRC} # C++ Index: src/share/mk/sys.mk diff -u src/share/mk/sys.mk:1.147 src/share/mk/sys.mk:1.148 --- src/share/mk/sys.mk:1.147 Sat Nov 27 19:21:12 2021 +++ src/share/mk/sys.mk Tue Dec 14 11:22:07 2021 @@ -1,4 +1,4 @@ -# $NetBSD: sys.mk,v 1.147 2021/11/28 00:21:12 rillig Exp $ +# $NetBSD: sys.mk,v 1.148 2021/12/14 16:22:07 christos Exp $ # @(#)sys.mk 8.2 (Berkeley) 3/21/94 # # This file contains the basic rules for make(1) and is read first @@ -139,7 +139,7 @@ YACC.y?= ${YACC} ${YFLAGS} rm -f ${.PREFIX}.o .c.ln: ${LINT} ${LINTFLAGS} \ - ${CPPFLAGS:C/-([IDU]) */-\1/Wg:M-[IDU]*} \ + ${CPPFLAGS:C/-([IDUW]) */-\1/Wg:M-[IDUW]*} \ -i ${.IMPSRC} # C++
CVS commit: src/usr.bin/mail
Module Name:src Committed By: christos Date: Tue Dec 14 21:12:03 UTC 2021 Modified Files: src/usr.bin/mail: thread.c Log Message: Avoid NULL deref if there is no current thread. From RVP. Prints "No applicable message" To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/usr.bin/mail/thread.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/usr.bin/mail/thread.c diff -u src/usr.bin/mail/thread.c:1.11 src/usr.bin/mail/thread.c:1.12 --- src/usr.bin/mail/thread.c:1.11 Fri Sep 10 17:52:18 2021 +++ src/usr.bin/mail/thread.c Tue Dec 14 16:12:03 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: thread.c,v 1.11 2021/09/10 21:52:18 rillig Exp $ */ +/* $NetBSD: thread.c,v 1.12 2021/12/14 21:12:03 christos Exp $ */ /*- * Copyright (c) 2006 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ #include #ifndef __lint__ -__RCSID("$NetBSD: thread.c,v 1.11 2021/09/10 21:52:18 rillig Exp $"); +__RCSID("$NetBSD: thread.c,v 1.12 2021/12/14 21:12:03 christos Exp $"); #endif /* not __lint__ */ #include @@ -595,6 +595,9 @@ first_visible_message(struct message *mp if (mp == NULL) mp = current_thread.t_head; + if (mp == NULL) + return NULL; + oldmp = mp; if ((S_IS_RESTRICT(state) && is_tagged(mp)) || mp->m_flag & MDELETED) mp = next_message(mp);
CVS commit: src/usr.bin/mail
Module Name:src Committed By: christos Date: Tue Dec 14 21:12:03 UTC 2021 Modified Files: src/usr.bin/mail: thread.c Log Message: Avoid NULL deref if there is no current thread. From RVP. Prints "No applicable message" To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/usr.bin/mail/thread.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/nvidia-firmware/nouveau/gm200/gr
Module Name:src Committed By: maya Date: Tue Dec 14 22:47:07 UTC 2021 Modified Files: src/external/nvidia-firmware/nouveau/gm200/gr: Makefile Log Message: Don't install a symlink for when there's already a file. Caused some cryptic issues in the builds far further along. Pointed out by paulg, thanks. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 \ src/external/nvidia-firmware/nouveau/gm200/gr/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/nvidia-firmware/nouveau/gm200/gr/Makefile diff -u src/external/nvidia-firmware/nouveau/gm200/gr/Makefile:1.1 src/external/nvidia-firmware/nouveau/gm200/gr/Makefile:1.2 --- src/external/nvidia-firmware/nouveau/gm200/gr/Makefile:1.1 Mon Dec 13 23:59:36 2021 +++ src/external/nvidia-firmware/nouveau/gm200/gr/Makefile Tue Dec 14 22:47:07 2021 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2021/12/13 23:59:36 maya Exp $ +# $NetBSD: Makefile,v 1.2 2021/12/14 22:47:07 maya Exp $ NOMAN= # defined @@ -77,11 +77,5 @@ SYMLINKS+= ${FIRMWAREDIR}/nouveau/nvidia SYMLINKS+= ${FIRMWAREDIR}/nouveau/nvidia/gp102/gr/fecs_bl.bin \ ${FIRMWAREDIR}/nouveau/nvidia/gp106/gr/fecs_bl.bin -SYMLINKS+= ${FIRMWAREDIR}/nouveau/nvidia/gp102/gr/fecs_bl.bin \ - ${FIRMWAREDIR}/nouveau/nvidia/gp107/gr/fecs_bl.bin - -SYMLINKS+= ${FIRMWAREDIR}/nouveau/nvidia/gp102/gr/fecs_bl.bin \ - ${FIRMWAREDIR}/nouveau/nvidia/gp108/gr/fecs_bl.bin - .include .include
CVS commit: src/external/nvidia-firmware/nouveau/gm200/gr
Module Name:src Committed By: maya Date: Tue Dec 14 22:47:07 UTC 2021 Modified Files: src/external/nvidia-firmware/nouveau/gm200/gr: Makefile Log Message: Don't install a symlink for when there's already a file. Caused some cryptic issues in the builds far further along. Pointed out by paulg, thanks. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 \ src/external/nvidia-firmware/nouveau/gm200/gr/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/xlint/lint1
Module Name:src Committed By: christos Date: Tue Dec 14 20:13:13 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y lex.c Log Message: Improve restrict handling. To generate a diff of this commit: cvs rdiff -u -r1.372 -r1.373 src/usr.bin/xlint/lint1/cgram.y cvs rdiff -u -r1.88 -r1.89 src/usr.bin/xlint/lint1/lex.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/xlint/lint1
Module Name:src Committed By: christos Date: Tue Dec 14 20:13:13 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: cgram.y lex.c Log Message: Improve restrict handling. To generate a diff of this commit: cvs rdiff -u -r1.372 -r1.373 src/usr.bin/xlint/lint1/cgram.y cvs rdiff -u -r1.88 -r1.89 src/usr.bin/xlint/lint1/lex.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/usr.bin/xlint/lint1/cgram.y diff -u src/usr.bin/xlint/lint1/cgram.y:1.372 src/usr.bin/xlint/lint1/cgram.y:1.373 --- src/usr.bin/xlint/lint1/cgram.y:1.372 Sun Nov 28 04:59:59 2021 +++ src/usr.bin/xlint/lint1/cgram.y Tue Dec 14 15:13:13 2021 @@ -1,5 +1,5 @@ %{ -/* $NetBSD: cgram.y,v 1.372 2021/11/28 09:59:59 rillig Exp $ */ +/* $NetBSD: cgram.y,v 1.373 2021/12/14 20:13:13 christos Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved. @@ -35,7 +35,7 @@ #include #if defined(__RCSID) && !defined(lint) -__RCSID("$NetBSD: cgram.y,v 1.372 2021/11/28 09:59:59 rillig Exp $"); +__RCSID("$NetBSD: cgram.y,v 1.373 2021/12/14 20:13:13 christos Exp $"); #endif #include @@ -1357,7 +1357,7 @@ array_size_opt: } | array_size { $$.has_dim = true; - $$.dim = to_int_constant($1, false); + $$.dim = $1 == NULL ? 0 : to_int_constant($1, false); } ; @@ -1370,6 +1370,12 @@ array_size: c11ism(343); $$ = $3; } + | T_QUAL { + /* C11, 6.7.6.2 */ + if ($1 != RESTRICT) + yyerror("Bad attribute"); + $$ = NULL; + } | constant_expr ; Index: src/usr.bin/xlint/lint1/lex.c diff -u src/usr.bin/xlint/lint1/lex.c:1.88 src/usr.bin/xlint/lint1/lex.c:1.89 --- src/usr.bin/xlint/lint1/lex.c:1.88 Sat Nov 27 15:13:48 2021 +++ src/usr.bin/xlint/lint1/lex.c Tue Dec 14 15:13:13 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: lex.c,v 1.88 2021/11/27 20:13:48 christos Exp $ */ +/* $NetBSD: lex.c,v 1.89 2021/12/14 20:13:13 christos Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved. @@ -38,7 +38,7 @@ #include #if defined(__RCSID) && !defined(lint) -__RCSID("$NetBSD: lex.c,v 1.88 2021/11/27 20:13:48 christos Exp $"); +__RCSID("$NetBSD: lex.c,v 1.89 2021/12/14 20:13:13 christos Exp $"); #endif #include @@ -205,7 +205,7 @@ static struct kwtab { kwdef_token( "__real__", T_REAL, 0,0,1,0,1), kwdef_sclass( "register", REG, 0,0,0,0,1), kwdef_gcc_attr( "regparm", T_AT_REGPARM), - kwdef_tqual( "restrict", RESTRICT, 0,1,0,0,5), + kwdef_tqual( "restrict", RESTRICT, 0,1,0,0,7), kwdef_keyword( "return", T_RETURN), kwdef_gcc_attr( "returns_nonnull",T_AT_RETURNS_NONNULL), kwdef_gcc_attr( "returns_twice",T_AT_RETURNS_TWICE),
CVS commit: src/sys/sys
Module Name:src Committed By: christos Date: Tue Dec 14 20:12:48 UTC 2021 Modified Files: src/sys/sys: cdefs.h Log Message: don't gut restrict for lint. To generate a diff of this commit: cvs rdiff -u -r1.157 -r1.158 src/sys/sys/cdefs.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/sys
Module Name:src Committed By: christos Date: Tue Dec 14 20:12:48 UTC 2021 Modified Files: src/sys/sys: cdefs.h Log Message: don't gut restrict for lint. To generate a diff of this commit: cvs rdiff -u -r1.157 -r1.158 src/sys/sys/cdefs.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/sys/cdefs.h diff -u src/sys/sys/cdefs.h:1.157 src/sys/sys/cdefs.h:1.158 --- src/sys/sys/cdefs.h:1.157 Fri Apr 23 01:56:43 2021 +++ src/sys/sys/cdefs.h Tue Dec 14 15:12:48 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: cdefs.h,v 1.157 2021/04/23 05:56:43 skrll Exp $ */ +/* $NetBSD: cdefs.h,v 1.158 2021/12/14 20:12:48 christos Exp $ */ /* * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. @@ -469,11 +469,9 @@ * C99 defines the restrict type qualifier keyword, which was made available * in GCC 2.92. */ -#if defined(__lint__) -#define __restrict /* delete __restrict when not supported */ -#elif __STDC_VERSION__ >= 199901L +#if __STDC_VERSION__ >= 199901L #define __restrict restrict -#elif __GNUC_PREREQ__(2, 92) || defined(__lint__) +#elif __GNUC_PREREQ__(2, 92) #define __restrict __restrict__ #else #define __restrict /* delete __restrict when not supported */
CVS commit: src/external/gpl3/gcc/dist/include
Module Name:src Committed By: christos Date: Tue Dec 14 21:38:06 UTC 2021 Modified Files: src/external/gpl3/gcc/dist/include: ansidecl.h Log Message: avoid __extension__ redefinition To generate a diff of this commit: cvs rdiff -u -r1.1.1.10 -r1.2 src/external/gpl3/gcc/dist/include/ansidecl.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/include
Module Name:src Committed By: christos Date: Tue Dec 14 21:38:06 UTC 2021 Modified Files: src/external/gpl3/gcc/dist/include: ansidecl.h Log Message: avoid __extension__ redefinition To generate a diff of this commit: cvs rdiff -u -r1.1.1.10 -r1.2 src/external/gpl3/gcc/dist/include/ansidecl.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/include/ansidecl.h diff -u src/external/gpl3/gcc/dist/include/ansidecl.h:1.1.1.10 src/external/gpl3/gcc/dist/include/ansidecl.h:1.2 --- src/external/gpl3/gcc/dist/include/ansidecl.h:1.1.1.10 Sat Apr 10 18:09:20 2021 +++ src/external/gpl3/gcc/dist/include/ansidecl.h Tue Dec 14 16:38:06 2021 @@ -329,7 +329,7 @@ So instead we use the macro below and te /* We use __extension__ in some places to suppress -pedantic warnings about GCC extensions. This feature didn't work properly before gcc 2.8. */ -#if GCC_VERSION < 2008 +#if GCC_VERSION < 2008 && !defined(__extension__) #define __extension__ #endif
CVS commit: src/external
Module Name:src Committed By: christos Date: Tue Dec 14 21:38:24 UTC 2021 Modified Files: src/external/gpl2/gettext/include: alloca.h src/external/gpl2/grep/dist/lib: hard-locale.c src/external/gpl3/gdb/dist/libiberty: cp-demangle.c Log Message: deal with alloca for lint. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/external/gpl2/gettext/include/alloca.h cvs rdiff -u -r1.2 -r1.3 src/external/gpl2/grep/dist/lib/hard-locale.c cvs rdiff -u -r1.1.1.9 -r1.2 \ src/external/gpl3/gdb/dist/libiberty/cp-demangle.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external
Module Name:src Committed By: christos Date: Tue Dec 14 21:38:24 UTC 2021 Modified Files: src/external/gpl2/gettext/include: alloca.h src/external/gpl2/grep/dist/lib: hard-locale.c src/external/gpl3/gdb/dist/libiberty: cp-demangle.c Log Message: deal with alloca for lint. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/external/gpl2/gettext/include/alloca.h cvs rdiff -u -r1.2 -r1.3 src/external/gpl2/grep/dist/lib/hard-locale.c cvs rdiff -u -r1.1.1.9 -r1.2 \ src/external/gpl3/gdb/dist/libiberty/cp-demangle.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl2/gettext/include/alloca.h diff -u src/external/gpl2/gettext/include/alloca.h:1.1 src/external/gpl2/gettext/include/alloca.h:1.2 --- src/external/gpl2/gettext/include/alloca.h:1.1 Tue Jan 12 17:58:03 2016 +++ src/external/gpl2/gettext/include/alloca.h Tue Dec 14 16:38:24 2021 @@ -36,7 +36,7 @@ request, the program just crashes. */ -#ifdef __GNUC__ +#if defined(__GNUC__) || defined(__lint__) # ifndef alloca # define alloca __builtin_alloca # endif Index: src/external/gpl2/grep/dist/lib/hard-locale.c diff -u src/external/gpl2/grep/dist/lib/hard-locale.c:1.2 src/external/gpl2/grep/dist/lib/hard-locale.c:1.3 --- src/external/gpl2/grep/dist/lib/hard-locale.c:1.2 Sun Jan 10 17:16:40 2016 +++ src/external/gpl2/grep/dist/lib/hard-locale.c Tue Dec 14 16:38:24 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: hard-locale.c,v 1.2 2016/01/10 22:16:40 christos Exp $ */ +/* $NetBSD: hard-locale.c,v 1.3 2021/12/14 21:38:24 christos Exp $ */ /* hard-locale.c -- Determine whether a locale is hard. Copyright 1997, 1998, 1999 Free Software Foundation, Inc. @@ -21,7 +21,7 @@ # include #endif -#ifndef __GNUC__ +#if !defined(__GNUC__) && !defined(__lint__) # ifdef HAVE_ALLOCA_H # include # else Index: src/external/gpl3/gdb/dist/libiberty/cp-demangle.c diff -u src/external/gpl3/gdb/dist/libiberty/cp-demangle.c:1.1.1.9 src/external/gpl3/gdb/dist/libiberty/cp-demangle.c:1.2 --- src/external/gpl3/gdb/dist/libiberty/cp-demangle.c:1.1.1.9 Mon Sep 14 21:44:14 2020 +++ src/external/gpl3/gdb/dist/libiberty/cp-demangle.c Tue Dec 14 16:38:24 2021 @@ -119,7 +119,7 @@ # include #else # ifndef alloca -# ifdef __GNUC__ +# if defined(__GNUC__) || defined(__lint__) # define alloca __builtin_alloca # else extern char *alloca ();
CVS commit: src/external/mit/xorg/lib/gallium.old
Module Name:src Committed By: christos Date: Tue Dec 14 21:37:06 UTC 2021 Modified Files: src/external/mit/xorg/lib/gallium.old: Makefile Log Message: Another instance of transparent struct/union To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/external/mit/xorg/lib/gallium.old/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/mit/xorg/lib/gallium.old
Module Name:src Committed By: christos Date: Tue Dec 14 21:37:06 UTC 2021 Modified Files: src/external/mit/xorg/lib/gallium.old: Makefile Log Message: Another instance of transparent struct/union To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/external/mit/xorg/lib/gallium.old/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/mit/xorg/lib/gallium.old/Makefile diff -u src/external/mit/xorg/lib/gallium.old/Makefile:1.2 src/external/mit/xorg/lib/gallium.old/Makefile:1.3 --- src/external/mit/xorg/lib/gallium.old/Makefile:1.2 Sun Jul 11 16:53:35 2021 +++ src/external/mit/xorg/lib/gallium.old/Makefile Tue Dec 14 16:37:06 2021 @@ -1,4 +1,7 @@ -# $NetBSD: Makefile,v 1.2 2021/07/11 20:53:35 mrg Exp $ +# $NetBSD: Makefile,v 1.3 2021/12/14 21:37:06 christos Exp $ + +# Transparent struct/union broken +NOLINT=yes # Link the gallium mega driver.
re: CVS commit: xsrc/external/mit
"Christos Zoulas" writes: > Module Name: xsrc > Committed By: christos > Date: Tue Dec 14 14:43:43 UTC 2021 > > Modified Files: > xsrc/external/mit/MesaLib.old/dist/src/amd/addrlib/inc: addrinterface.h > addrtypes.h > xsrc/external/mit/MesaLib.old/dist/src/amd/common: ac_gpu_info.h > ac_surface.h > xsrc/external/mit/MesaLib.old/dist/src/util: u_atomic.h > xsrc/external/mit/libdrm/dist/amdgpu: amdgpu.h > > Log Message: > lint fixes: > 1. avoid typedef re-definitions (perhaps introduce c11 mode for lint) > 2. add __lint__ wherever __GNUC__ is defined. do we really have to patch upstream code for lint? mesa is already really difficult to upgrade. please avoid this if you can.. .mrg.
CVS commit: src/external/gpl3/gdb/lib
Module Name:src Committed By: christos Date: Tue Dec 14 23:57:48 UTC 2021 Modified Files: src/external/gpl3/gdb/lib: Makefile.inc Log Message: Disable lint, some of the code is c++ and some we can't handle __extension__ in struct in libctf ctf-error.c To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/external/gpl3/gdb/lib/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gdb/lib/Makefile.inc diff -u src/external/gpl3/gdb/lib/Makefile.inc:1.1 src/external/gpl3/gdb/lib/Makefile.inc:1.2 --- src/external/gpl3/gdb/lib/Makefile.inc:1.1 Sun Sep 25 23:02:44 2011 +++ src/external/gpl3/gdb/lib/Makefile.inc Tue Dec 14 18:57:48 2021 @@ -1 +1,3 @@ +# C++ and some __extension__ stuff we don't handle +MKLINT:=no .include "../Makefile.inc"
CVS commit: src/external/gpl3/gdb/lib
Module Name:src Committed By: christos Date: Tue Dec 14 23:57:48 UTC 2021 Modified Files: src/external/gpl3/gdb/lib: Makefile.inc Log Message: Disable lint, some of the code is c++ and some we can't handle __extension__ in struct in libctf ctf-error.c To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/external/gpl3/gdb/lib/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/xlint/lint1
Module Name:src Committed By: rillig Date: Wed Dec 15 00:44:05 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: externs1.h tree.c Log Message: lint: unexport struct_or_union_member Strangely, lint2 didn't notice this unnecessary export. To generate a diff of this commit: cvs rdiff -u -r1.140 -r1.141 src/usr.bin/xlint/lint1/externs1.h cvs rdiff -u -r1.397 -r1.398 src/usr.bin/xlint/lint1/tree.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.bin/xlint/lint1
Module Name:src Committed By: rillig Date: Wed Dec 15 00:44:05 UTC 2021 Modified Files: src/usr.bin/xlint/lint1: externs1.h tree.c Log Message: lint: unexport struct_or_union_member Strangely, lint2 didn't notice this unnecessary export. To generate a diff of this commit: cvs rdiff -u -r1.140 -r1.141 src/usr.bin/xlint/lint1/externs1.h cvs rdiff -u -r1.397 -r1.398 src/usr.bin/xlint/lint1/tree.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/usr.bin/xlint/lint1/externs1.h diff -u src/usr.bin/xlint/lint1/externs1.h:1.140 src/usr.bin/xlint/lint1/externs1.h:1.141 --- src/usr.bin/xlint/lint1/externs1.h:1.140 Tue Nov 16 21:01:05 2021 +++ src/usr.bin/xlint/lint1/externs1.h Wed Dec 15 00:44:05 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: externs1.h,v 1.140 2021/11/16 21:01:05 rillig Exp $ */ +/* $NetBSD: externs1.h,v 1.141 2021/12/15 00:44:05 rillig Exp $ */ /* * Copyright (c) 1994, 1995 Jochen Pohl @@ -237,7 +237,6 @@ extern bool is_compiler_builtin(const ch extern tnode_t *build_constant(type_t *, val_t *); extern tnode_t *build_name(sym_t *, int); extern tnode_t *build_string(strg_t *); -extern sym_t *struct_or_union_member(tnode_t *, op_t, sym_t *); extern tnode_t *build_generic_selection(const tnode_t *, struct generic_association *); Index: src/usr.bin/xlint/lint1/tree.c diff -u src/usr.bin/xlint/lint1/tree.c:1.397 src/usr.bin/xlint/lint1/tree.c:1.398 --- src/usr.bin/xlint/lint1/tree.c:1.397 Mon Dec 6 23:26:28 2021 +++ src/usr.bin/xlint/lint1/tree.c Wed Dec 15 00:44:05 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: tree.c,v 1.397 2021/12/06 23:26:28 rillig Exp $ */ +/* $NetBSD: tree.c,v 1.398 2021/12/15 00:44:05 rillig Exp $ */ /* * Copyright (c) 1994, 1995 Jochen Pohl @@ -37,7 +37,7 @@ #include #if defined(__RCSID) && !defined(lint) -__RCSID("$NetBSD: tree.c,v 1.397 2021/12/06 23:26:28 rillig Exp $"); +__RCSID("$NetBSD: tree.c,v 1.398 2021/12/15 00:44:05 rillig Exp $"); #endif #include @@ -350,7 +350,7 @@ build_string(strg_t *strg) * Returns a symbol which has the same name as the msym argument and is a * member of the struct or union specified by the tn argument. */ -sym_t * +static sym_t * struct_or_union_member(tnode_t *tn, op_t op, sym_t *msym) { struct_or_union *str;
Re: CVS commit: xsrc/external/mit
I will try to avoid it in the future, and perhaps undo it. I think I can -D__GNUC__ on lint flags and add a -stdÁ1 mode. 3 of them are in the .old code should go away christos > On Dec 14, 2021, at 6:56 PM, matthew green wrote: > > "Christos Zoulas" writes: >> Module Name: xsrc >> Committed By:christos >> Date:Tue Dec 14 14:43:43 UTC 2021 >> >> Modified Files: >> xsrc/external/mit/MesaLib.old/dist/src/amd/addrlib/inc: addrinterface.h >> addrtypes.h >> xsrc/external/mit/MesaLib.old/dist/src/amd/common: ac_gpu_info.h >> ac_surface.h >> xsrc/external/mit/MesaLib.old/dist/src/util: u_atomic.h >> xsrc/external/mit/libdrm/dist/amdgpu: amdgpu.h >> >> Log Message: >> lint fixes: >> 1. avoid typedef re-definitions (perhaps introduce c11 mode for lint) >> 2. add __lint__ wherever __GNUC__ is defined. > > do we really have to patch upstream code for lint? > > mesa is already really difficult to upgrade. please avoid > this if you can.. > > > .mrg. signature.asc Description: Message signed with OpenPGP
CVS commit: src/sys/net
Module Name:src Committed By: knakahara Date: Wed Dec 15 07:47:22 UTC 2021 Modified Files: src/sys/net: pktqueue.c Log Message: Fix typo in comment. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/sys/net/pktqueue.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/net
Module Name:src Committed By: knakahara Date: Wed Dec 15 07:47:22 UTC 2021 Modified Files: src/sys/net: pktqueue.c Log Message: Fix typo in comment. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/sys/net/pktqueue.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/net/pktqueue.c diff -u src/sys/net/pktqueue.c:1.14 src/sys/net/pktqueue.c:1.15 --- src/sys/net/pktqueue.c:1.14 Mon Oct 11 05:13:11 2021 +++ src/sys/net/pktqueue.c Wed Dec 15 07:47:22 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: pktqueue.c,v 1.14 2021/10/11 05:13:11 knakahara Exp $ */ +/* $NetBSD: pktqueue.c,v 1.15 2021/12/15 07:47:22 knakahara Exp $ */ /*- * Copyright (c) 2014 The NetBSD Foundation, Inc. @@ -36,7 +36,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: pktqueue.c,v 1.14 2021/10/11 05:13:11 knakahara Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pktqueue.c,v 1.15 2021/12/15 07:47:22 knakahara Exp $"); #ifdef _KERNEL_OPT #include "opt_net_mpsafe.h" @@ -276,8 +276,8 @@ pktq_rps_hash_toeplitz(const struct mbuf } /* - * topelitz without curcpu. - * Generally, this has better performance than topelitz. + * toeplitz without curcpu. + * Generally, this has better performance than toeplitz. */ static uint32_t pktq_rps_hash_toeplitz_othercpus(const struct mbuf *m)