From patchwork Mon Jun 5 17:56:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 689221 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d8a:0:0:0:0:0 with SMTP id b10csp2232563wru; Mon, 5 Jun 2023 10:58:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4jjqncgurjgHm9mk7J47CM7MpOHygoEmHgjGDRFCte+d14/P9tTuTU8ko+ipfIzu4uQQqX X-Received: by 2002:a67:f106:0:b0:436:4065:d8d5 with SMTP id n6-20020a67f106000000b004364065d8d5mr552315vsk.32.1685987905236; Mon, 05 Jun 2023 10:58:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685987905; cv=none; d=google.com; s=arc-20160816; b=ccSEwpcP5FJR6JEpP8TXG6rduLfoBnHhaZyGPnpsLg4dmIA6nJLZKLvLMD9dgRkaqi wnJacyD/p0FH56p0Wn2H4OVkx7TQSMis5MEGLq2b1b3HtPOiqQOe4p0iRppMdRk6S49N NeeNTw2Enasv2vHDsmvRxpeiZBcdO8gR7gYMd2O6iFPundb/HBcyP4mruDj2+2fiLOTp pVaFy5YtwecpwaBVpyXt2G6CpjfwcLh1HsrCVsZESRAbhPA8PrahnPHSw78Vuf+2W1d7 ztX89KM/0ZlxO5SNkq3k6uIjJYUP74IghCRtgMJjrwKDVwo7jzRkMxkXzkasEzz7lEBh Jb2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+uFa3AhXkk8vWcOVshy7TkiBL8878/+j67TcSdApmPA=; b=rwiGMVP4AXGdFblJv23yEG0OmDNqnIaoxofUxG/O1kYDPeBpx5N9v5CMEvbAQqSLI6 Mm3LqKgT1uQqAUYL1azosNqwRAccWYq2kORFgcpgf5+I3bSqH4ND9NVX7yPjlLddEIlB pNZqRqen/Iedt5+qqsRHLNIXZ6f7ZMqBkoWYsXwMfPePeGRwjC+xfji10gZnK7rCDRa6 kNgATpatIEfT32Gh+sVJpIBGiOjJax8AZyLFiBGhTXNFSvDLmowZia/YY5jved8RPCK4 2Ktg0ydlCGjj3BXrZI62Gd6vERPNVg+91vvYxRq16LV/1MO2hdFcDS2EVLDN06LdZfNR Jh4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G7YWQfY4; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id p9-20020a05622a048900b003ef559eec5esi5144717qtx.350.2023.06.05.10.58.25 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 Jun 2023 10:58:25 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G7YWQfY4; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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-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_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , qemu-arm@nongnu.org, qemu-block@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=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 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.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();