From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id E3B322194EB7B for ; Tue, 9 Jul 2019 19:31:36 -0700 (PDT) Date: Tue, 9 Jul 2019 21:31:23 -0500 From: Josh Poimboeuf Subject: Re: [PATCH v7 08/18] objtool: add kunit_try_catch_throw to the noreturn list Message-ID: <20190710023123.ifnt5osimvzoe5hf@treble> References: <20190709063023.251446-1-brendanhiggins@google.com> <20190709063023.251446-9-brendanhiggins@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190709063023.251446-9-brendanhiggins@google.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" To: Brendan Higgins Cc: pmladek@suse.com, linux-doc@vger.kernel.org, peterz@infradead.org, amir73il@gmail.com, dri-devel@lists.freedesktop.org, Alexander.Levin@microsoft.com, yamada.masahiro@socionext.com, mpe@ellerman.id.au, linux-kselftest@vger.kernel.org, shuah@kernel.org, robh@kernel.org, kbuild test robot , linux-nvdimm@lists.01.org, frowand.list@gmail.com, knut.omang@oracle.com, kieran.bingham@ideasonboard.com, wfg@linux.intel.com, joel@jms.id.au, rientjes@google.com, jdike@addtoit.com, dan.carpenter@oracle.com, devicetree@vger.kernel.org, linux-kbuild@vger.kernel.org, Tim.Bird@sony.com, linux-um@lists.infradead.org, rostedt@goodmis.org, julia.lawall@lip6.fr, kunit-dev@googlegroups.com, tytso@mit.edu, richard@nod.at, sboyd@kernel.org, gregkh@linuxfoundation.org, rdunlap@infradead.org, linux-kernel@vger.kernel.org, mcgrof@kernel.org, daniel@ffwll.ch, keescook@google.com, linux-fsdevel@vger.kernel.org, khilman@baylibre.com List-ID: On Mon, Jul 08, 2019 at 11:30:13PM -0700, Brendan Higgins wrote: > 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 > Link: https://www.spinics.net/lists/linux-kbuild/msg21708.html > Cc: Josh Poimboeuf > Cc: Peter Zijlstra > --- > tools/objtool/check.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tools/objtool/check.c b/tools/objtool/check.c > index 172f991957269..98db5fe85c797 100644 > --- a/tools/objtool/check.c > +++ b/tools/objtool/check.c > @@ -134,6 +134,7 @@ static int __dead_end_function(struct objtool_file *file, struct symbol *func, > "usercopy_abort", > "machine_real_restart", > "rewind_stack_do_exit", > + "kunit_try_catch_throw", > }; > > if (func->bind == STB_WEAK) > -- > 2.22.0.410.gd8fdbe21b5-goog > Acked-by: Josh Poimboeuf -- Josh _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm 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=-8.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 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 452D8C73C63 for ; Wed, 10 Jul 2019 02:31:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1F79720651 for ; Wed, 10 Jul 2019 02:31:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726951AbfGJCbg (ORCPT ); Tue, 9 Jul 2019 22:31:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55040 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725832AbfGJCbg (ORCPT ); Tue, 9 Jul 2019 22:31:36 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4796E5AFE9; Wed, 10 Jul 2019 02:31:34 +0000 (UTC) Received: from treble (ovpn-112-43.rdu2.redhat.com [10.10.112.43]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A90BE5F9D8; Wed, 10 Jul 2019 02:31:25 +0000 (UTC) Date: Tue, 9 Jul 2019 21:31:23 -0500 From: Josh Poimboeuf To: Brendan Higgins Cc: frowand.list@gmail.com, gregkh@linuxfoundation.org, keescook@google.com, kieran.bingham@ideasonboard.com, mcgrof@kernel.org, peterz@infradead.org, robh@kernel.org, sboyd@kernel.org, shuah@kernel.org, tytso@mit.edu, yamada.masahiro@socionext.com, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, kunit-dev@googlegroups.com, linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-nvdimm@lists.01.org, linux-um@lists.infradead.org, Alexander.Levin@microsoft.com, Tim.Bird@sony.com, amir73il@gmail.com, dan.carpenter@oracle.com, daniel@ffwll.ch, jdike@addtoit.com, joel@jms.id.au, julia.lawall@lip6.fr, khilman@baylibre.com, knut.omang@oracle.com, logang@deltatee.com, mpe@ellerman.id.au, pmladek@suse.com, rdunlap@infradead.org, richard@nod.at, rientjes@google.com, rostedt@goodmis.org, wfg@linux.intel.com, kbuild test robot Subject: Re: [PATCH v7 08/18] objtool: add kunit_try_catch_throw to the noreturn list Message-ID: <20190710023123.ifnt5osimvzoe5hf@treble> References: <20190709063023.251446-1-brendanhiggins@google.com> <20190709063023.251446-9-brendanhiggins@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190709063023.251446-9-brendanhiggins@google.com> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Wed, 10 Jul 2019 02:31:35 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 08, 2019 at 11:30:13PM -0700, Brendan Higgins wrote: > 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 > Link: https://www.spinics.net/lists/linux-kbuild/msg21708.html > Cc: Josh Poimboeuf > Cc: Peter Zijlstra > --- > tools/objtool/check.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tools/objtool/check.c b/tools/objtool/check.c > index 172f991957269..98db5fe85c797 100644 > --- a/tools/objtool/check.c > +++ b/tools/objtool/check.c > @@ -134,6 +134,7 @@ static int __dead_end_function(struct objtool_file *file, struct symbol *func, > "usercopy_abort", > "machine_real_restart", > "rewind_stack_do_exit", > + "kunit_try_catch_throw", > }; > > if (func->bind == STB_WEAK) > -- > 2.22.0.410.gd8fdbe21b5-goog > Acked-by: Josh Poimboeuf -- Josh From mboxrd@z Thu Jan 1 00:00:00 1970 From: Josh Poimboeuf Subject: Re: [PATCH v7 08/18] objtool: add kunit_try_catch_throw to the noreturn list Date: Tue, 9 Jul 2019 21:31:23 -0500 Message-ID: <20190710023123.ifnt5osimvzoe5hf@treble> References: <20190709063023.251446-1-brendanhiggins@google.com> <20190709063023.251446-9-brendanhiggins@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Content-Disposition: inline In-Reply-To: <20190709063023.251446-9-brendanhiggins@google.com> Sender: linux-kernel-owner@vger.kernel.org To: Brendan Higgins Cc: frowand.list@gmail.com, gregkh@linuxfoundation.org, keescook@google.com, kieran.bingham@ideasonboard.com, mcgrof@kernel.org, peterz@infradead.org, robh@kernel.org, sboyd@kernel.org, shuah@kernel.org, tytso@mit.edu, yamada.masahiro@socionext.com, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, kunit-dev@googlegroups.com, linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-nvdimm@lists.01.org, linux-um@lists.infradead.org, Alexander.Levin@microsoft.com, Tim.Bird@sony.com, amir73il@gmail.com, dan.carpenter@oracle.com, daniel@ffwll.ch, jdike@addtoit.com, joel@jms.id.au, julia.lawall@lip6.fr, khilman@baylibre.com, knut.omang@oracle.com, logang@deltatee.com, mpe@ellerman. List-Id: devicetree@vger.kernel.org On Mon, Jul 08, 2019 at 11:30:13PM -0700, Brendan Higgins wrote: > 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 > Link: https://www.spinics.net/lists/linux-kbuild/msg21708.html > Cc: Josh Poimboeuf > Cc: Peter Zijlstra > --- > tools/objtool/check.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tools/objtool/check.c b/tools/objtool/check.c > index 172f991957269..98db5fe85c797 100644 > --- a/tools/objtool/check.c > +++ b/tools/objtool/check.c > @@ -134,6 +134,7 @@ static int __dead_end_function(struct objtool_file *file, struct symbol *func, > "usercopy_abort", > "machine_real_restart", > "rewind_stack_do_exit", > + "kunit_try_catch_throw", > }; > > if (func->bind == STB_WEAK) > -- > 2.22.0.410.gd8fdbe21b5-goog > Acked-by: Josh Poimboeuf -- Josh From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com ([209.132.183.28]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hl2OO-0001xR-U9 for linux-um@lists.infradead.org; Wed, 10 Jul 2019 02:31:38 +0000 Date: Tue, 9 Jul 2019 21:31:23 -0500 From: Josh Poimboeuf Subject: Re: [PATCH v7 08/18] objtool: add kunit_try_catch_throw to the noreturn list Message-ID: <20190710023123.ifnt5osimvzoe5hf@treble> References: <20190709063023.251446-1-brendanhiggins@google.com> <20190709063023.251446-9-brendanhiggins@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190709063023.251446-9-brendanhiggins@google.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-um" Errors-To: linux-um-bounces+geert=linux-m68k.org@lists.infradead.org To: Brendan Higgins Cc: pmladek@suse.com, linux-doc@vger.kernel.org, peterz@infradead.org, amir73il@gmail.com, dri-devel@lists.freedesktop.org, Alexander.Levin@microsoft.com, yamada.masahiro@socionext.com, mpe@ellerman.id.au, linux-kselftest@vger.kernel.org, shuah@kernel.org, robh@kernel.org, kbuild test robot , linux-nvdimm@lists.01.org, frowand.list@gmail.com, knut.omang@oracle.com, kieran.bingham@ideasonboard.com, wfg@linux.intel.com, joel@jms.id.au, rientjes@google.com, jdike@addtoit.com, dan.carpenter@oracle.com, devicetree@vger.kernel.org, linux-kbuild@vger.kernel.org, Tim.Bird@sony.com, linux-um@lists.infradead.org, rostedt@goodmis.org, julia.lawall@lip6.fr, kunit-dev@googlegroups.com, tytso@mit.edu, richard@nod.at, sboyd@kernel.org, gregkh@linuxfoundation.org, rdunlap@infradead.org, linux-kernel@vger.kernel.org, mcgrof@kernel.org, daniel@ffwll.ch, keescook@google.com, linux-fsdevel@vger.kernel.org, logang@deltatee.com, khilman@baylibre.com On Mon, Jul 08, 2019 at 11:30:13PM -0700, Brendan Higgins wrote: > 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 > Link: https://www.spinics.net/lists/linux-kbuild/msg21708.html > Cc: Josh Poimboeuf > Cc: Peter Zijlstra > --- > tools/objtool/check.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tools/objtool/check.c b/tools/objtool/check.c > index 172f991957269..98db5fe85c797 100644 > --- a/tools/objtool/check.c > +++ b/tools/objtool/check.c > @@ -134,6 +134,7 @@ static int __dead_end_function(struct objtool_file *file, struct symbol *func, > "usercopy_abort", > "machine_real_restart", > "rewind_stack_do_exit", > + "kunit_try_catch_throw", > }; > > if (func->bind == STB_WEAK) > -- > 2.22.0.410.gd8fdbe21b5-goog > Acked-by: Josh Poimboeuf -- Josh _______________________________________________ linux-um mailing list linux-um@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-um