Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp329439lqt; Thu, 18 Apr 2024 17:22:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXqhYY4n4KlcaRY36O/Emzg+UQr3MET9nf7pi1B68xR/HnfvKX59Bxmvz9HorNc+pYOJ7tvcTHwh1d+RAqf2cfN1m+LDFUEPN+x1NSipA== X-Google-Smtp-Source: AGHT+IGtT9Zqn/fGVhjHx2ZkabNRS4w2rjyqNBHFOG0mvnh9qF4HTwQPMquNIS1T8AcdY4sbZ+e4 X-Received: by 2002:ae9:f80c:0:b0:78e:fe0d:5187 with SMTP id x12-20020ae9f80c000000b0078efe0d5187mr673284qkh.32.1713486157522; Thu, 18 Apr 2024 17:22:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713486157; cv=pass; d=google.com; s=arc-20160816; b=EPEfClkXxLkcs1ZFozg4T6OoEiPtdkT3jRvLW5529u0bDL4EQrwlli198TpDVUuAPp bD6sGfzXZ9q9S5KqwvOOfXP4m1g9C6FZk0bA+K0lpmBYBpIM5b53ooLEP4BHnLy1yHiB YBDQdCN5fF6qkBoy6UWsw/6fqF/MihSEZb36Kwd5hyNNuQuBD1ako7ArtGbfjTDAK5aL sdjOek4qjerTw8V12J6xzdNGuEHAagselQ6/usPJNu9XV5MYslmpnewYmLTorHZgu6M0 QYkkPv4ry3bigzrD7jXHba7IPtSWpDai7pPOcPxLD2Yb5+koSN8aIulTOdXlgTIRgnv6 LyRQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=FZzbj2inV6Q1UNsSow3B5tOKHEYGkRnClEJWf+WJMLk=; fh=3osHGxO/4ZEnXeViy74kId4vJHEfdcgggBah+A+pdGo=; b=yPqwl1kKPlNDuG3mr6QaBetpgjzhyxfbu84/qK5USKwihUSlWVz8AgTqYieJSoQUZJ QL9nt/ECl/L0S4/Cd06kOcqcTk+OijIEtjhKtqMruL5PPyUdBUeqPcUBetA0qt2VwHei mQdDYHjWbxMdOS7pUTtu7AFJt4ztnMfmvPlI5QHpOzj328z668L51jy2rWCt2YamJ2lG FuGkCUBHFaPEe1ufNpgQsVEUmTO4yPpmk0Vd7v0h8wRsR+DAeh6NQVOm24sDI1dX767M M4RMDInToq7Ur+iYDXrrUfljAx3k/Mjh6LJK/WE3v9SzAV3x4q64Zzr6wTOtJ3Vn9K1e qKRQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gj2pshnT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-150884-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150884-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id v12-20020a05620a0a8c00b0078d6b4b06e7si2728083qkg.64.2024.04.18.17.22.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 17:22:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150884-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gj2pshnT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-150884-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150884-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 43BCB1C2101A for ; Fri, 19 Apr 2024 00:22:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A9BC7385; Fri, 19 Apr 2024 00:22:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="gj2pshnT" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 CFB3D7F for ; Fri, 19 Apr 2024 00:22:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713486150; cv=none; b=ripxU6C3dzXO1os76UaYJMJpyhCRPRy9yv9bD+YOWdNH+BeXkcITZJiiISH/fXGtMgTIOBT+HBTYcF4FMtoqwSR/Nqaq7XBTx9aBTah+7IW0wwP5IrO8ybFwT4k2HCBUwVzISwLKeuN+YqAtBrEGajf2LFWF8Sv0AIuqVEEBHms= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713486150; c=relaxed/simple; bh=d3bTP7KKC9aZn1EnXjEovuY7nPSOZbnGxThq3FCimdk=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=pyFJ3/ZPPQbWCqm9LgYgbsu1RqoW2bvYF6r6YTG0wMco+Rf1fnLDFPZ3vK83tNoFnySuKmHWQ0bmbzzZKxKhKGU7rYw7DZuOu/HOSDiDCYnCl9rjKt3XxSpM0wIbTkMokOQdtoHkUJWGmGArGlIPuIhp0FZv5RensCjuUZXhBdE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gj2pshnT; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06F73C113CC; Fri, 19 Apr 2024 00:22:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713486150; bh=d3bTP7KKC9aZn1EnXjEovuY7nPSOZbnGxThq3FCimdk=; h=Date:From:To:Cc:Subject:Reply-To:From; b=gj2pshnT+qP2eCmnwAdg4gUaP2cuYyRadXdsNjVJmXdzPvkSS1WZzBe8U1ZEkP8eb 23YUmpEgyCjE5VwFYNPDTpfI4S+s/iAW1liHs5wKdGg67IP2TfFo2hbqCIyXC5vw7Z Y3A4Ums9Bnitb8xBIWYtv84qRpkB+NWSzO2Cyat8YASWbFM0Ond22nEKiGawiJ3eLL QAYVXpnXBiKvbKDtNEbBog1cctm6eYTMSLFQHY2FCOvYA0EY762PYxsNgp3RCWicgW iXqNE80JCNJu/SB+WdPtLP5AhhNHQPpclMgxyvnOzFHeP9skOjGtqDjj4JGErjn3PZ 85GZarQsMbkyA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id F39F6CE0444; Thu, 18 Apr 2024 17:22:26 -0700 (PDT) Date: Thu, 18 Apr 2024 17:22:26 -0700 From: "Paul E. McKenney" To: linux-kernel@vger.kernel.org Cc: Linus Torvalds , Daniel Sneddon , Thomas Gleixner , Josh Poimboeuf , Stephen Rothwell Subject: [BUG] objtool complains about missing __noreturn__ on x64_sys_call() and ia32_sys_call() Message-ID: <6dba9b32-db2c-4e6d-9500-7a08852f17a3@paulmck-laptop> Reply-To: paulmck@kernel.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello! Recent -next kernels, including next-20240418, get the following objtool build errors: vmlinux.o: warning: objtool: x64_sys_call+0x2804: __x64_sys_exit() is missing a __noreturn annotation vmlinux.o: warning: objtool: ia32_sys_call+0x29b6: __ia32_sys_exit_group() is missing a __noreturn annotation These functions appear to have been added to -next and mainline by commit 1e3ad78334a6 ("x86/syscall: Don't force use of indirect calls for system calls"). But the diagnostic does not make much sense because both functions always return unless the system call itself doesn't return. Adding annotate_unreachable() to the end of each function did not help, header comment notwithstanding. On the other hand, these objtool errors were from Ubuntu clang version 14.0.0-1ubuntu1.1 rather than GCC. I also freely confess that I don't understand the "};" at the end of both functions. Thoughts? Thanx, Paul