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 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 780C7C7EE25 for ; Mon, 5 Jun 2023 17:58:25 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q6ESK-0006LX-Bd; Mon, 05 Jun 2023 13:57:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q6ESI-0006Gz-R6 for qemu-devel@nongnu.org; Mon, 05 Jun 2023 13:57:22 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q6ESG-0001aj-P8 for qemu-devel@nongnu.org; Mon, 05 Jun 2023 13:57:22 -0400 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-3f6e68cc738so44827255e9.1 for ; Mon, 05 Jun 2023 10:57:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685987839; x=1688579839; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+uFa3AhXkk8vWcOVshy7TkiBL8878/+j67TcSdApmPA=; b=G7YWQfY48+wYPu4fP4w5XSiJFFSJI3LyXRijb5EMpp0Wi4zIhP9nqCMyLgY9OpczDn 5LyC4OLmgFhameqZ/mn6cht1bduJTRtAotHwWvXgcMRSeVaJXpYp0BUmPOZs/ZurajFI d6Nd2HSpqmRmqEtnJjVKNESLvoVhQrGDf340PJCfc/2HVceDPPY1dEgAD39okyWbmNlZ GPVTnb5tS299pZl+9LzfSA3/UnM/VS507ET3oD+ZUwkszVnO+iaGZ0GqnqEH/wgg0HAl G3ZTUvqgQm4sFP7gD5mP1DmM8EsWKi7YCnPpQXA0jZKGza/y+FLmNRJuxmWZh2Op2y0y 3JZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685987839; x=1688579839; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+uFa3AhXkk8vWcOVshy7TkiBL8878/+j67TcSdApmPA=; b=L//eRsJZCpIusCNGOJ6sVJF7SXdI0ZYQzamfv1FMBLNBsH3Bk1ZyZmCnLafJwAipSj B2ERiN9/VvnZxc6q9DUppKnAn1qEKoBnvw2XkruiepuAb3OnJA6F0SaAD+4TUswjyD6m h/1BbqS2Rubr+X4HS6ILGDC5SssdnSYzaUkx0jgnA/WCETGiIqZbmsrFVaE+p5VlYePI 1KMK2dY93zBsKUyhuPs1ahFAKc+t0iv+tAtRs/bjJ//n5+oMfwxs0lKb/56eIConaIXK IkQtHkGP2HXkpdmHcYLepBW05b7LFRLpFZWvsPQiPp+cEBlKYP1F6oY1Idx/B35leGcO lsFg== X-Gm-Message-State: AC+VfDySy6fq2pRaBbF/HrOncQZcQgKRx417VSyR5kCD//VWefuh8Gnn kfbzsiQ2oQNtisf4F02C2y5wiv4ystQtZp84SJg= X-Google-Smtp-Source: ACHHUZ7fWpFiK7CuC7BPc4K79b1ow59sog4mI+aIgvTOWcyA/eQIIzGlgghy4fvLC5EuMz5WVzktQQ== X-Received: by 2002:a7b:c4d5:0:b0:3f5:1728:bde9 with SMTP id g21-20020a7bc4d5000000b003f51728bde9mr7960wmk.2.1685987838888; Mon, 05 Jun 2023 10:57:18 -0700 (PDT) Received: from localhost.localdomain ([176.187.217.157]) by smtp.gmail.com with ESMTPSA id n18-20020a5d4c52000000b0030ae901bc54sm10257905wrt.62.2023.06.05.10.57.17 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 05 Jun 2023 10:57:18 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , qemu-arm@nongnu.org, qemu-block@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Juan Quintela Subject: [PATCH v2 5/5] bulk: Replace __attribute__((noreturn)) -> G_NORETURN Date: Mon, 5 Jun 2023 19:56:47 +0200 Message-Id: <20230605175647.88395-6-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230605175647.88395-1-philmd@linaro.org> References: <20230605175647.88395-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=philmd@linaro.org; helo=mail-wm1-x333.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Under MSYS2, G_NORETURN is expanded to '[[noreturn]]'. Simpler to use the same definition everywhere, unifying the code style. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Juan Quintela --- include/sysemu/os-win32.h | 2 +- tests/migration/stress.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/sysemu/os-win32.h b/include/sysemu/os-win32.h index f8e300d302..fb076a6eb9 100644 --- a/include/sysemu/os-win32.h +++ b/include/sysemu/os-win32.h @@ -67,7 +67,7 @@ extern "C" { * which gets linked automatically. */ int __mingw_setjmp(jmp_buf); -void __attribute__((noreturn)) __mingw_longjmp(jmp_buf, int); +G_NORETURN void __mingw_longjmp(jmp_buf, int); #define setjmp(env) __mingw_setjmp(env) #define longjmp(env, val) __mingw_longjmp(env, val) #elif defined(_WIN64) diff --git a/tests/migration/stress.c b/tests/migration/stress.c index 88acf8dc25..54a95c07f1 100644 --- a/tests/migration/stress.c +++ b/tests/migration/stress.c @@ -36,7 +36,7 @@ static int gettid(void) } #endif -static __attribute__((noreturn)) void exit_failure(void) +static G_NORETURN void exit_failure(void) { if (getpid() == 1) { sync(); -- 2.38.1