Received: by 2002:ab2:7041:0:b0:1f4:bcc8:f211 with SMTP id x1csp96157lql; Fri, 12 Apr 2024 05:05:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXBtm78sUpRJxayE2W8UjYaIN4vXwMvpyX9CuIMYbE2lnXIDx/oz0G02HdIBmypNkQqrY6lAr7SD+UBZJCU9sD6fz+SGQhoyyoyyFIO+w== X-Google-Smtp-Source: AGHT+IGttKzlGKgiLX994Nr3Qtl//35+dRmjksRhmVQ/0DreLiBGlLFskuSGCNxTHbB8eoWq5smq X-Received: by 2002:a17:907:2ce6:b0:a52:a25:2077 with SMTP id hz6-20020a1709072ce600b00a520a252077mr4745994ejc.14.1712923559216; Fri, 12 Apr 2024 05:05:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712923559; cv=pass; d=google.com; s=arc-20160816; b=jqFyBsUyYowSoGkEC/extozh7xW3lTicO+x+aZDDsXw6qqG6IkSEh8YbuFraA/hNZ3 QUavH8EVWmAXlApbDaZp5hU4DODMYPPsw+lcWVv+vf7Mbt1aEZz5DJR0ydTgbg4z5g75 SOGj11cBGMNffo/rJsZ5RxMZkjo/kCP/xcGN4du99Q6nwC1CEbgGOpGbVmC4CN5B6w0I B31L1dBbLGTVDv4JnrfhmNBDsGAiPSuJvV1KYix5cnFBI0KGPpIi+vTwLAqQfx5YdnQ/ 40Kz8VEl0Jpjny4vw1t1XVrvre2ucqa92mxswBliw4oZM6tkXFn0kJtfWHtSL0kNhYge FG+Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=SBuRsIiZcNrRBF5WG3fb5yJwVUqcB4VIFj16EW9G3ks=; fh=mSZo/M7W3MQW1EsqMb6naUQgnMbNZr9pL4VA0eS9lqc=; b=YwsB2Qt/cscQ5m4a45deDAwMSTNnc0Jq/sYE+enKvN+uR6hV1caLR/uWCgVr/DDBBK bqT2/U+Vv3+wE9L/XQVYvU+NA9T8fyFexY5U6nrC6F4ER0N4hJaKnxfv5T3ZAk+sOJl5 wAY7UzjHfj4YI98o5xk8BO4lT3YmwxdYrwxcn+OOESwP+VF/fvdV8mVLi3wG9L63+1za XL7Gm3JXoL6dKo+skKSFn+S8ZtiGiqo3zNswlh/ihb6PUPrKi8hGx8xc9UW57+5ZT9qz zEvjnTy+SYbGLWiA9jbEXfiUhq/V0asDN43yb2OlsFoXt4PA2iM49z23uLZ0PENnYxFZ 3alw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=I0Hzsc3D; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-142623-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142623-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id dp18-20020a170906c15200b00a5193401ffdsi1687875ejc.697.2024.04.12.05.05.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 05:05:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142623-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=I0Hzsc3D; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-142623-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142623-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E24EF1F22A81 for ; Fri, 12 Apr 2024 12:05:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6B92B56440; Fri, 12 Apr 2024 12:05:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="I0Hzsc3D"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="j8bhR31+" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 659E154646; Fri, 12 Apr 2024 12:05:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712923551; cv=none; b=J4EfwvWGJ8U8HCihjkklkvyq7+JfJmSn6WUS7MS/ymE3ZAKX+i9dpSDW3FF2PJqgHZ1Tgx7JBnTbCx5FdFdhZgjW6W875eFC3jyG0EFo3GFSGFUecoIltSeyEdBzAZptLWOe64HaEh6w23RjvI7HbHr+ZgVQzIYALlSmKsbUXxE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712923551; c=relaxed/simple; bh=SBuRsIiZcNrRBF5WG3fb5yJwVUqcB4VIFj16EW9G3ks=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=m75EuPo5nlXBKEEHor/LaWuAiNG2F97Zm5vkMGl2HtA4czwWW6y2nbNyU7AGwj+I2QEaJSthVFqKixbfV+Liu4bmS4AfLdmT82DJDNUsGd3vThhWQTL0EMatUCUh9wHJDMSVY99Y0aFsbAz7myWEyxSfURpu+0naC+NsdLWgcIQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=I0Hzsc3D; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=j8bhR31+; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1712923548; 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: in-reply-to:in-reply-to:references:references; bh=SBuRsIiZcNrRBF5WG3fb5yJwVUqcB4VIFj16EW9G3ks=; b=I0Hzsc3DpjiEcrZlEzbX7CmWU4X+j8YlOjJRgIpX030Eer2ESlLTkukeTJBW89XroZx04V TMb88w0cmPc00kQEB8n7fBFtyR9SvREwITqFyARust0CgLTJTVQ56ik6p7+MVxg5QpkiuY PiAyOrKNXvwBwER2ugudRYsCFupjpbB4unmC3fkmlg2JlXt0nvxt7lT1suGSYbLET4WGer +E1wT0gaV2FZaUvgQINbu6KHw0FxUivqSJUqf/5099Lkn3wR3CGvWhLfMuIgIDFMhC+vsT 2lKW0gevM+G+S9zzKGgGTvvnCn3tTQbtI13HUqi7wxqFC5kyzJsApp5HhOd27Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1712923548; 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: in-reply-to:in-reply-to:references:references; bh=SBuRsIiZcNrRBF5WG3fb5yJwVUqcB4VIFj16EW9G3ks=; b=j8bhR31+UROX9BCH4AOHx8ts5vHT2n063r7glHTTv9XnNWez1+cgyLTpUyJ8Iin31Dv6ap YIKCCojqeNUpXFDQ== To: Nathan Chancellor , shuah@kernel.org Cc: oleg@redhat.com, anna-maria@linutronix.de, frederic@kernel.org, ndesaulniers@google.com, morbo@google.com, justinstitt@google.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, patches@lists.linux.dev, John Stultz , Nathan Chancellor Subject: Re: [PATCH] kselftest: Mark functions that unconditionally call exit() as __noreturn In-Reply-To: <20240411-mark-kselftest-exit-funcs-noreturn-v1-1-b027c948f586@kernel.org> References: <20240411-mark-kselftest-exit-funcs-noreturn-v1-1-b027c948f586@kernel.org> Date: Fri, 12 Apr 2024 14:05:47 +0200 Message-ID: <87sezqzsys.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Thu, Apr 11 2024 at 11:45, Nathan Chancellor wrote: > I have based this change on timers/urgent, as the commit that introduces > this particular warning is there and it is marked for stable, even > though this appears to be a generic kselftest issue. I think it makes > the most sense for this change to go via timers/urgent with Shuah's ack. > While __noreturn with a return type other than 'void' does not make much > sense semantically, there are many places that these functions are used > as the return value for other functions such as main(), so I did not > change the return type of these functions from 'int' to 'void' to > minimize the necessary changes for a backport (it is an existing issue > anyways). Hrmm. This really want's to be fixed once the change hits Linus tree as this: static inline __noreturn int ksft_exit_pass(void) looks seriously broken :)