From nobody Tue Aug 10 09:15:26 2021 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 1F04D137BF52 for ; Tue, 10 Aug 2021 09:15:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GkS3L01Nrz3lqr for ; Tue, 10 Aug 2021 09:15:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D8D1B18BD4 for ; Tue, 10 Aug 2021 09:15:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 17A9FPxM096572 for ; Tue, 10 Aug 2021 09:15:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 17A9FP68096571 for bugs@FreeBSD.org; Tue, 10 Aug 2021 09:15:25 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 257732] Kernel does not compile if VIMAGE is disabled Date: Tue, 10 Aug 2021 09:15:26 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: 606u@dir.bg X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257732 Bug ID: 257732 Summary: Kernel does not compile if VIMAGE is disabled Product: Base System Version: 13.0-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: 606u@dir.bg Created attachment 227074 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D227074&action= =3Dedit Fix Disabling VIMAGE breaks kernel compilation with ../../../net/debugnet.c:778:1: error: expected identifier MTX_SYSINIT(debugnet_hwm_lock, &dn_hwm_lk, "Debugnet HWM lock", MTX_DEF); ^ ../../../sys/mutex.h:533:19: note: expanded from macro 'MTX_SYSINIT' mtx_sysinit, &name##_args); \ ^ ../../../net/debugnet.c:778:1: error: type specifier missing, defaults to '= int' [-Werror,-Wimplicit-int] ../../../sys/mutex.h:532:2: note: expanded from macro 'MTX_SYSINIT' SYSINIT(name##_mtx_sysinit, SI_SUB_LOCK, SI_ORDER_MIDDLE, \ ^ ../../../net/debugnet.c:778:1: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes] ../../../sys/mutex.h:532:9: note: expanded from macro 'MTX_SYSINIT' SYSINIT(name##_mtx_sysinit, SI_SUB_LOCK, SI_ORDER_MIDDLE, \ ^ ../../../net/debugnet.c:778:1: error: expected identifier ../../../sys/mutex.h:535:20: note: expanded from macro 'MTX_SYSINIT' _mtx_destroy, __DEVOLATILE(void *, &(mtx)->mtx_lock)) ^ ../../../sys/cdefs.h:632:33: note: expanded from macro '__DEVOLATILE' #define __DEVOLATILE(type, var) ((type)(__uintptr_t)(volatile void *)(var)) ^ ../../../net/debugnet.c:778:1: error: type specifier missing, defaults to '= int' [-Werror,-Wimplicit-int] ../../../sys/mutex.h:534:2: note: expanded from macro 'MTX_SYSINIT' SYSUNINIT(name##_mtx_sysuninit, SI_SUB_LOCK, SI_ORDER_MIDDLE, \ ^ ../../../net/debugnet.c:778:1: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes] ../../../sys/mutex.h:534:11: note: expanded from macro 'MTX_SYSINIT' SYSUNINIT(name##_mtx_sysuninit, SI_SUB_LOCK, SI_ORDER_MIDDLE, \ ^ ../../../net/debugnet.c:868:42: error: expected ')' SYSINIT(dn_evh_init, SI_SUB_EVENTHANDLER + 1, SI_ORDER_ANY, dn_evh_init, NU= LL); ^ ../../../net/debugnet.c:868:8: note: to match this '(' SYSINIT(dn_evh_init, SI_SUB_EVENTHANDLER + 1, SI_ORDER_ANY, dn_evh_init, NU= LL); ^ ../../../net/debugnet.c:868:1: error: type specifier missing, defaults to '= int' [-Werror,-Wimplicit-int] SYSINIT(dn_evh_init, SI_SUB_EVENTHANDLER + 1, SI_ORDER_ANY, dn_evh_init, NU= LL); ^ ../../../net/debugnet.c:868:9: error: a parameter list without types is only allowed in a function definition SYSINIT(dn_evh_init, SI_SUB_EVENTHANDLER + 1, SI_ORDER_ANY, dn_evh_init, NU= LL); ^ 9 errors generated. Steps to reproduce: use this kernel configuration file: include GENERIC ident FOO nooptions VIMAGE How to fix: add missing #include to /usr/src/sys/net/debugnet.c --=20 You are receiving this mail because: You are the assignee for the bug.=