From patchwork Tue Nov 13 05:49:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Levin X-Patchwork-Id: 996791 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="bA0STtJL"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="RTkKaC1V"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="OU7LH29g"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42vGv90K3wz9sBZ for ; Tue, 13 Nov 2018 16:50:45 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=8ZypHkdNZ76pfTt3yGWVemhR+GyAq5aGkDLZrK2inzA=; b=bA0STtJLL4vlS4x71masyUlilM Uy17nE80+Gyy/g3/rFca+WHootlHVptBRSwpORnA9K4sxDt6+URiikh2pp0ScdNVsEq6ULRX2IyP9 ZCuWGnKmO0YC7Jv6UptAIiSMzJp7l6CEyxMJE4Vj1HYgYC4sXZ8+48WGzuojcNfnbMVYX+WljOKL4 YsrknrRYRdnX9wI/gPf/pE8TAm+UhnYXcQCRGYiWc2lmrAcli4F/+X0BO8Qw+fbq0IzMrEz4ZSo6V EjsyAzbBCT+4tv5jqbZ8b+brnINMxawEBmOvR8OewjEMH++9sXZ2IXPoXi0C6NaYJOCYRJFctKlpX 35Wc6PDw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMRas-0004aM-MR; Tue, 13 Nov 2018 05:50:34 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMRar-0004a0-Oo for linux-um@bombadil.infradead.org; Tue, 13 Nov 2018 05:50:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=fkLFWEd1E8Sqdi190VyENruch3d9jVQPJhTs3SV/E8c=; b=RTkKaC1V/dc6A+lJdMpzwtXhc HmZzq8P7bYYmXyVTGddGYmf+cDOSfTcNsU4OgC63ZR5LMMyZDGqzOitUtEsSiwEpHiC1IF/knuOZ+ uvg7LiGgJMQojWPXDq48dbHLBeyXb9ha+1uj8KzyHW6ENF3pobqKxtifds52L9UXEn0llIBmbCfDT zwUEi9tbd29OJAaUIJTRwph6DqLzzLOq/fswA82nQUohdfbjsc1O21DdRYHSn4r4gGRw4mN6uF8nR +0UCRnQWzvKX4e2kDCIN6r5UVbA8b4Fh85EcUjXRQkV1XA37sLudYRRYZqWtHvj8GADHmbmjltLIT g9BovDBIA==; Received: from mail.kernel.org ([198.145.29.99]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMRao-0004un-Lz for linux-um@lists.infradead.org; Tue, 13 Nov 2018 05:50:32 +0000 Received: from sasha-vm.mshome.net (unknown [64.114.255.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1BD182251A; Tue, 13 Nov 2018 05:50:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542088227; bh=C9aVLNU462j8eTdtQUHD6X5OOfhZMbCEKLvpenRm8fU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OU7LH29gHIdypIP4qS4BpKtyhyClgSQN55/R3Y2n9dSjdNOk6LO5SVnqgg5f6TUoi 9Q7xE+PvC3H9+cMcE8H9ydyrwEUtIEuq2P3lQ6W5GeayGvUPWnOnoW+FnexE/wdsVJ YN9guFTuwgdjc+bvcHcWbNsuEORWUwJsfrIDVqaM= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 20/44] um: Give start_idle_thread() a return code Date: Tue, 13 Nov 2018 00:49:26 -0500 Message-Id: <20181113054950.77898-20-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181113054950.77898-1-sashal@kernel.org> References: <20181113054950.77898-1-sashal@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181113_055030_842208_CBDBA3B3 X-CRM114-Status: GOOD ( 11.35 ) X-Spam-Score: -5.7 (-----) X-Spam-Report: SpamAssassin version 3.4.1 on casper.infradead.org summary: Content analysis details: (-5.7 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [198.145.29.99 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.6 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-um@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sasha Levin , Richard Weinberger , linux-um@lists.infradead.org MIME-Version: 1.0 Sender: "linux-um" Errors-To: linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Richard Weinberger [ Upstream commit 7ff1e34bbdc15acab823b1ee4240e94623d50ee8 ] Fixes: arch/um/os-Linux/skas/process.c:613:1: warning: control reaches end of non-void function [-Wreturn-type] longjmp() never returns but gcc still warns that the end of the function can be reached. Add a return code and debug aid to detect this impossible case. Signed-off-by: Richard Weinberger Signed-off-by: Sasha Levin --- arch/um/os-Linux/skas/process.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/um/os-Linux/skas/process.c b/arch/um/os-Linux/skas/process.c index c94c3bd70ccd..df4a985716eb 100644 --- a/arch/um/os-Linux/skas/process.c +++ b/arch/um/os-Linux/skas/process.c @@ -610,6 +610,11 @@ int start_idle_thread(void *stack, jmp_buf *switch_buf) fatal_sigsegv(); } longjmp(*switch_buf, 1); + + /* unreachable */ + printk(UM_KERN_ERR "impossible long jump!"); + fatal_sigsegv(); + return 0; } void initial_thread_cb_skas(void (*proc)(void *), void *arg)