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=ham 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 606F3C43603 for ; Tue, 10 Dec 2019 22:45:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3331720836 for ; Tue, 10 Dec 2019 22:45:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576017918; bh=4n1+cgSPG+Q3PdJV3wULbmnWpvMoFwWjuPiLf5+Y50s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=ip4nipl3IVFEinjTaEV526ZKnmg703yjz4dEvtt5ejt96vzHZTIpQOCAQRG75/Bhm w3SXaP1NVEoGdlklXDwGMBu0+qgC0k0PvmcMB6JMn6Qqeudf5+prgSHGm+TcRaQvEh 57CymJIRhOoVESEuiL+8iA/FeZYDEM07PY7NP7iQ= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727834AbfLJWpR (ORCPT ); Tue, 10 Dec 2019 17:45:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:50534 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727202AbfLJWaq (ORCPT ); Tue, 10 Dec 2019 17:30:46 -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 0923C20836; Tue, 10 Dec 2019 22:30:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576017045; bh=4n1+cgSPG+Q3PdJV3wULbmnWpvMoFwWjuPiLf5+Y50s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=etsJmZ5qMebPb5AHIo6Wc38njdz32zF1kROsYr/gQ4zoOAtT1GQr0ZArhJQVfa1qf ic4M9MM0YkOiS1o3DOym7EoDnnjy/ArKA5/p1lvD/yHqRL7wtGUWnlfVc++IX1lzTB ObU82tAq+IRYLnaNuNj+Wa/2Y1M5M84YRxkc701E= 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.9 08/91] objtool: add kunit_try_catch_throw to the noreturn list Date: Tue, 10 Dec 2019 17:29:12 -0500 Message-Id: <20191210223035.14270-8-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191210223035.14270-1-sashal@kernel.org> References: <20191210223035.14270-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 09782ff427d0d..64d48f2d85ccb 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