From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8B5DFC3F68F for ; Tue, 10 Dec 2019 22:03:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5E8A420838 for ; Tue, 10 Dec 2019 22:03:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576015396; bh=KyTVx21sbG85p0XwRDesop70533ODNvOXCR6/Zzl7Zo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=rK2qAgAWoyhi8IBqp7vFv3Wo/cK00xz76qcc7wEdmfXbMu0sldzq6pNTqX9t0IPMQ 1zLjJ2jb+bnjGIHBoW7PQYYBbKxy4Hi5mC8dNT5FfpH9bZfNm63UgWaPJLTuikZgbm Y6sRuYKnupqPb7rpShJtLmSYvFsHg3cEqLQqJJZo= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727437AbfLJWDP (ORCPT ); Tue, 10 Dec 2019 17:03:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:33126 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727325AbfLJWDM (ORCPT ); Tue, 10 Dec 2019 17:03:12 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (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 46ADC2077B; Tue, 10 Dec 2019 22:03:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576015392; bh=KyTVx21sbG85p0XwRDesop70533ODNvOXCR6/Zzl7Zo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FVIeMempV1ifeAq9JdWMwGXagRcla40BJiei64PpGSUu8ujFV28evwzn71/DGE7Lw tYybOBh+tFWHoogZ6yp1vp4pZjmVtgkpZP+bRFiEpwiG8lXQ9Pt78peNa3XN6ab+pH EItZjJl4nxGVzLWxk62d84QOaTcQnfpkZJeeCp6M= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Brendan Higgins , kbuild test robot , Josh Poimboeuf , Peter Zijlstra , Shuah Khan , Sasha Levin Subject: [PATCH AUTOSEL 4.14 008/130] objtool: add kunit_try_catch_throw to the noreturn list Date: Tue, 10 Dec 2019 17:00:59 -0500 Message-Id: <20191210220301.13262-8-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191210220301.13262-1-sashal@kernel.org> References: <20191210220301.13262-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Brendan Higgins [ Upstream commit 33adf80f5b52e3f7c55ad66ffcaaff93c6888aaa ] Fix the following warning seen on GCC 7.3: kunit/test-test.o: warning: objtool: kunit_test_unsuccessful_try() falls through to next function kunit_test_catch() kunit_try_catch_throw is a function added in the following patch in this series; it allows KUnit, a unit testing framework for the kernel, to bail out of a broken test. As a consequence, it is a new __noreturn function that objtool thinks is broken (as seen above). So fix this warning by adding kunit_try_catch_throw to objtool's noreturn list. Reported-by: kbuild test robot Signed-off-by: Brendan Higgins Acked-by: Josh Poimboeuf Link: https://www.spinics.net/lists/linux-kbuild/msg21708.html Cc: Peter Zijlstra Signed-off-by: Shuah Khan Signed-off-by: Sasha Levin --- tools/objtool/check.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/objtool/check.c b/tools/objtool/check.c index 5422543faff85..daf178bc46446 100644 --- a/tools/objtool/check.c +++ b/tools/objtool/check.c @@ -167,6 +167,7 @@ static int __dead_end_function(struct objtool_file *file, struct symbol *func, "fortify_panic", "machine_real_restart", "rewind_stack_do_exit", + "kunit_try_catch_throw", }; if (func->bind == STB_WEAK) -- 2.20.1