From nobody Tue Apr 19 16:13:19 2022 X-Original-To: dev-commits-src-main@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 4C80811E60C9; Tue, 19 Apr 2022 16:13:22 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KjTPF6ZPtz3QBN; Tue, 19 Apr 2022 16:13:21 +0000 (UTC) (envelope-from jhb@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650384802; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=u+eG/NJ3h3f2unv4YqWsPemPgjO6EexoookXQ3fW2/w=; b=Ub1/lCFhf5CG/Hk1B5MAnc+EFP/hfsCad64z06OazntmRKEbGCvJHkIQerOTK0Yl3TlWn8 s6sts6vnzKNuy7lkOZim386eoC2wJGfOhjGYtbC+sbBTCjjbmRAo7hWQUN51CSzhebKV24 L7XlZMx9qVBKNdTx9aqcZlZRJ8r1zPnqJv6FgGgSzJ97UgrhR4IOmgS0y/Z2vfzh94PuS+ 20mUxtfM2QdK1LXU0YHco/6QpLzk0XHlQUclxj2b+41Sg4zo9WqqdAkG4jQzShSJl2FjcK rgqyk3JRna+LB8oJtSJTceh+wqkBdAQd0kxLWVkhGD3/zLfByDlOCMWUSfwoNQ== Received: from [10.0.1.4] (ralph.baldwin.cx [66.234.199.215]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id 187FFADE1; Tue, 19 Apr 2022 16:13:20 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Message-ID: Date: Tue, 19 Apr 2022 09:13:19 -0700 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: git: 8b83d7e0ee54 - main - Make -Wunused-but-set-variable a fatal error for clang 13+ for kernel builds. Content-Language: en-US To: Mateusz Guzik , Stefan Esser Cc: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org References: <202204182311.23INBqfC025671@gitrepo.freebsd.org> <960b9be3-c3b5-bd48-8038-97511f2f7909@FreeBSD.org> From: John Baldwin In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650384802; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=u+eG/NJ3h3f2unv4YqWsPemPgjO6EexoookXQ3fW2/w=; b=P/vbRBWn53knbzoLXZihxQ1lqre3NUv8qE9yXSJlxCIU4dRoGZQ80vrGqm6iSRU4soibYD wUSzgpkblX5h/6kApVISwIYZo1vIWAxxDxGlHKLLUGgPsCReK/UGj2H49XSM40h07GuXfg E7mpbzkk0p50NzmZehG7Xg4wFY0hSTElwHnVVGEHpFpQ42dMHNl/b2oj3qPu2VbwGuGqAz YC/gw1yjFEa/ma6zrELtEuuh1Fs1MybVQKmcBfrZza7dyCfK+69g8+PFPRT0/dMTLMlvfC kr15EXB3cErqHVoQzx3KGkwVabQAFpRS4gP4mcgcSjSQS0Iuvxxz3Mdp2r7a9w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650384802; a=rsa-sha256; cv=none; b=BNP9aURxSbVxZpV78JvCUPcNMyv7Z69+avlcUhDJdpSeaLCiX1tL6uEcGqjf5b+Fh+B0xn t6K/gRTgTsO8xXt+omB/b8vvBm2Ph13dcIdQ9BB5T5YsXSUSZ88mu7JYoRw2XN9yYnovX/ G8Gr5OYwz/dj8wCru2bJJuzekHWBw3wrqQrdAKYbUumur8xDcynvm2ZVE2wptaKDKRgVlM nlHtlEdZWYA9Jud9qMDtKYFVlzwItLRBrOy2J4M5fpC5KnvgNQ648u+qvwqSEEr02yvNz7 JJB5y2yaZIHNFRpDsq6vw1Kgpl9KOOPvLqVtMauy5vQCc7Yht5X6l4jw2eYMyw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N On 4/19/22 5:47 AM, Mateusz Guzik wrote: > As of 19447fc4888379e539dfca7e4c62362d6c279357 the amd64 kernel + > modules build without with a config with these options removed: > diff --git a/sys/amd64/conf/GENERIC b/sys/amd64/conf/GENERIC > index 53c6043a0146..98b4be69dc94 100644 > --- a/sys/amd64/conf/GENERIC > +++ b/sys/amd64/conf/GENERIC > @@ -69,43 +69,14 @@ options COMPAT_FREEBSD11 # Compatible > with FreeBSD11 > options COMPAT_FREEBSD12 # Compatible with FreeBSD12 > options COMPAT_FREEBSD13 # Compatible with FreeBSD13 > options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI > -options KTRACE # ktrace(1) support > -options STACK # stack(9) support > options SYSVSHM # SYSV-style shared memory > options SYSVMSG # SYSV-style message queues > options SYSVSEM # SYSV-style semaphores > options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time > extensions > options PRINTF_BUFR_SIZE=128 # Prevent printf output being > interspersed. > options KBD_INSTALL_CDEV # install a CDEV entry in /dev > -options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4) > -options AUDIT # Security event auditing > -options CAPABILITY_MODE # Capsicum capability mode > -options CAPABILITIES # Capsicum capabilities > -options MAC # TrustedBSD MAC Framework > -options KDTRACE_FRAME # Ensure frames are compiled in > -options KDTRACE_HOOKS # Kernel DTrace hooks > -options DDB_CTF # Kernel ELF linker loads CTF data > options INCLUDE_CONFIG_FILE # Include this file in kernel > -options RACCT # Resource accounting framework > -options RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default > -options RCTL # Resource limits > - > -# Debugging support. Always need this: > -options KDB # Enable kernel debugger support. > -options KDB_TRACE # Print a stack trace for a panic. > -# For full debugger support use (turn off in stable branch): > -options BUF_TRACKING # Track buffer history > -options DDB # Support DDB. > -options FULL_BUF_TRACKING # Track more buffer history > -options GDB # Support remote GDB. > -options DEADLKRES # Enable the deadlock resolver > -options INVARIANTS # Enable calls of extra sanity checking > -options INVARIANT_SUPPORT # Extra sanity checks of > internal structures, required by INVARIANTS > -options QUEUE_MACRO_DEBUG_TRASH # Trash queue(2) internal > pointers on invalidation > -options WITNESS # Enable checks to detect > deadlocks and cycles > -options WITNESS_SKIPSPIN # Don't run witness on > spinlocks for speed > -options MALLOC_DEBUG_MAXZONES=8 # Separate malloc(9) zones > -options VERBOSE_SYSINIT=0 # Support > debug.verbose_sysinit, off by default Do we want another kind of kernel config in universe to catch these cases? GENERIC-NODEBUG catches some of these and MINIMAL doesn't remove any of these. -- John Baldwin