Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5608007imu; Mon, 26 Nov 2018 02:56:50 -0800 (PST) X-Google-Smtp-Source: AFSGD/UBXjgcZHBQXJD3U95Otbsz6ql5ozwkUvrJPnhiuKFx4j2i1HwUdhQPycAO86c/XufHmoED X-Received: by 2002:a63:d047:: with SMTP id s7mr24160957pgi.311.1543229810229; Mon, 26 Nov 2018 02:56:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543229810; cv=none; d=google.com; s=arc-20160816; b=kQqW69jTl9phdWXDgQSS2A6/0REJG4nHVBU6B/LL47MPfHIzANSsshikwOJjUCTUfH 1ENNGKBCRrsyjtHooNTCViZZSQ4SKNrsL9x37izCC2P1B59gUk0B3S0bdNEZIAlXeXTv vChIhW2aZLnUUBD5ADvZQy5Ja0EqsAESa/IEIUS5npRPjzAp6dP9tcvYI7lr7UhHW+aJ 4Zdu6Tng9C8NiLttQRTNlqOc+S+NSypLo6wZLmuHibl+wBMvN79VeoJsvoVjYyoNi28K hbYySWXw2ofZmaEUmzJuO9Mx+2caxRh0nx3Jcb8ONHZhKcug5stJsujPjD4VUtx9wDsR Uq4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=QniciUHp+tiKrWtZVYjwjnz9LTKCe8i9sj/aLp3k09w=; b=fYbIKmPxgEuFCKK/NSiiLHYNusHolY9XYbuoKqISf9jydyJ01nrE1I9YU9xSM5jtAH eS+v+KLOWtN8IYrRjjhE7UWPM/Dw7OhpzyEMALmMeswYBatFctsMXlXZJyjUZetK90N+ iwwhgBb895awm7CQm9XxdVkyoFXuuJRINOvAN4mLPT/N8lQitoTzK553vQSqml7Bp2Fi Dyzw3aFyK5hdTF6O+3TAoyD1I2Z7gE/AtoTxTN+VPlIkKJd+TYppIxn/qogl2p8pAkKT 51OpFcIli5+auwXzzOxogbva/ggq8fXGKbznH2Zm31Fb8+l2ekFfTqQmHXHXuE4k8fbq VOmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vHnZ0RaJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 7si47830888pfb.226.2018.11.26.02.56.35; Mon, 26 Nov 2018 02:56:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vHnZ0RaJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727809AbeKZVsy (ORCPT + 99 others); Mon, 26 Nov 2018 16:48:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:57664 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726708AbeKZVsy (ORCPT ); Mon, 26 Nov 2018 16:48:54 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9172C2089F; Mon, 26 Nov 2018 10:55:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543229710; bh=LEab7+1sPpvy6+87Q+CpTxdOvcJR4O8MTaFal7SBY7M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vHnZ0RaJOyuYUDMU0WAnaknqc9yixAX5xYzC/fZtE1cts95i9USbAgURaqeyTkIZH Hqm8LZyPcqIw3mgZWu16WYESdhy2lx/H4/MQ6w33aysQBz/2ZluGbfwaSFiUAG1q2A wbgunKTkkJAeeBj7ZEILVRzGXDADCcD7H33ewkDs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Richard Weinberger , Sasha Levin Subject: [PATCH 4.4 41/70] um: Give start_idle_thread() a return code Date: Mon, 26 Nov 2018 11:50:56 +0100 Message-Id: <20181126105050.993338624@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181126105046.722096341@linuxfoundation.org> References: <20181126105046.722096341@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ [ 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 b856c66ebd3a..6dbf27ffafc8 100644 --- a/arch/um/os-Linux/skas/process.c +++ b/arch/um/os-Linux/skas/process.c @@ -585,6 +585,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) -- 2.17.1