From patchwork Sun Dec 17 10:11:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Weil X-Patchwork-Id: 10117687 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D4050603FA for ; Sun, 17 Dec 2017 10:12:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AE4B728C88 for ; Sun, 17 Dec 2017 10:12:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A316D29197; Sun, 17 Dec 2017 10:12:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9361429181 for ; Sun, 17 Dec 2017 10:12:52 +0000 (UTC) Received: from localhost ([::1]:53729 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQVwA-00072g-7c for patchwork-qemu-devel@patchwork.kernel.org; Sun, 17 Dec 2017 05:12:50 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59850) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQVvX-0006gj-Pg for qemu-devel@nongnu.org; Sun, 17 Dec 2017 05:12:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eQVvU-0006d7-Hv for qemu-devel@nongnu.org; Sun, 17 Dec 2017 05:12:11 -0500 Received: from mail.weilnetz.de ([37.120.169.71]:60348 helo=v2201612906741603.powersrv.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eQVvU-0006cF-AI; Sun, 17 Dec 2017 05:12:08 -0500 Received: from localhost (localhost [127.0.0.1]) by v2201612906741603.powersrv.de (Postfix) with ESMTP id 1352DDA9173; Sun, 17 Dec 2017 11:12:06 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at v2201612906741603.powersrv.de Received: from v2201612906741603.powersrv.de ([127.0.0.1]) by localhost (v2201612906741603.powersrv.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mNenlFlWaaBO; Sun, 17 Dec 2017 11:12:04 +0100 (CET) Received: from qemu.weilnetz.de (qemu.weilnetz.de [188.68.58.204]) by v2201612906741603.powersrv.de (Postfix) with ESMTP id D67BCDA8FD6; Sun, 17 Dec 2017 11:12:04 +0100 (CET) Received: by qemu.weilnetz.de (Postfix, from userid 1000) id 4470F460015; Sun, 17 Dec 2017 11:12:04 +0100 (CET) From: Stefan Weil To: Richard Henderson , Alexander Graf Date: Sun, 17 Dec 2017 11:11:36 +0100 Message-Id: <20171217101136.20206-1-sw@weilnetz.de> X-Mailer: git-send-email 2.11.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 37.120.169.71 Subject: [Qemu-devel] [PATCH] s390x: Add missing QEMU_NORETURN attribute (CID 1383842) X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stefan Weil , qemu-s390x@nongnu.org, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP This should fix the Coverity warning: ** CID 1383842: Integer handling issues (DIVIDE_BY_ZERO) /target/s390x/int_helper.c: 84 in helper_divs64() Signed-off-by: Stefan Weil --- target/s390x/cpu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/s390x/cpu.h b/target/s390x/cpu.h index 1a8b6b9ae9..2a6e75d697 100644 --- a/target/s390x/cpu.h +++ b/target/s390x/cpu.h @@ -746,8 +746,8 @@ void s390_io_interrupt(uint16_t subchannel_id, uint16_t subchannel_nr, /* automatically detect the instruction length */ #define ILEN_AUTO 0xff #define RA_IGNORED 0 -void s390_program_interrupt(CPUS390XState *env, uint32_t code, int ilen, - uintptr_t ra); +void QEMU_NORETURN s390_program_interrupt(CPUS390XState *env, uint32_t code, + int ilen, uintptr_t ra); /* service interrupts are floating therefore we must not pass an cpustate */ void s390_sclp_extint(uint32_t parm);