From patchwork Thu Oct 3 23:41:56 2024 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: 1992539 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=zjwh96r/; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=patchwork.ozlabs.org) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XKSsH590qz1xt7 for ; Fri, 4 Oct 2024 09:42:41 +1000 (AEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1swVSn-0007IN-Su; Thu, 03 Oct 2024 19:42:29 -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 1swVSn-0007I8-BE for qemu-ppc@nongnu.org; Thu, 03 Oct 2024 19:42:29 -0400 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1swVSl-0003OA-Tt for qemu-ppc@nongnu.org; Thu, 03 Oct 2024 19:42:29 -0400 Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-37cd8972738so1137180f8f.3 for ; Thu, 03 Oct 2024 16:42:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1727998946; x=1728603746; darn=nongnu.org; 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=hjVB53iD7/yKN8TlGeZ4BX8eqm15vighx+LztRMtmDo=; b=zjwh96r/za/WtD691dZ0ovxjwhy5R7jlMdykmxrF4YCz3GSYylzec5dGJ3OUJCD7hA goruyYSsPSVnu/vMmLgWaz4mSYFCG0wdSoqsF440+cKhJb/L/qpO6dpObSAFnWVDkgwT LqIp4s7RB+Na8NakiqhyFbrnXvb2zO0gcOicPdlhXljFhG6FgjfwfXWBQixlPo6JbJuD K1C1lcbEwJ1vJK+kbBy9cnFta5xARUsdG7khN6wekDWP6XXLtPD70VEY18/ZMgNG5Trb p2jeBTXQbF/zIs/EHmyEKttBKagUpsZUmVfZIDpI2OPJ2/VNwCvT2jpAB4doetrHUkV6 XKdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727998946; x=1728603746; 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=hjVB53iD7/yKN8TlGeZ4BX8eqm15vighx+LztRMtmDo=; b=O4r/f/8aO/aVwoU7whIDyQ/ERinzOH3Ooh1OFCQoRu+Aa87yjIaMgx6n2R3LuLVLYI vNZpZiV5tfxcywanXyEGocDBJQxmyn56ZVyCfWrv31wPCd754gVp0xOj4n77DU5Bgp+R gIJhdUQzyQx22mdQgrWD3iSXlfFAmGKFRcSh7ofvLP+ypHG34Lcbb1e9YY6+w8M0Kq5w WpqqFtxfB78p5A1ta7GwEyniehuDeHoA1x8JEWrelj9tsPZ3fh7VVWgYc7BMJRb0avHS by/EMrl3WYCABuwKySjcLjweXvL5B9vhEX8lIfT1Db1vePy5/KUF1L7iYH4M3wPbt1Gs nETg== X-Gm-Message-State: AOJu0Yxc4IwkneBp0h1S7ryVqVWmxr/bwWlKv6UGtRK2zWHpWjiEX5ng gi02ZOLhj3hw00dM2xhyEHvvenGxWjVxsIaT5MoHdjjhel1clGDjkMc6BB923Rg= X-Google-Smtp-Source: AGHT+IGLwHCdkB/RhpUtcOQmM8s5Ft6eGONxZVMIWQGP+Ee0mmONGxrTyU4Gv+Xxv0liMtV1c0KvZg== X-Received: by 2002:adf:f603:0:b0:37c:d567:7c8c with SMTP id ffacd0b85a97d-37d0e7781c5mr398122f8f.30.1727998946200; Thu, 03 Oct 2024 16:42:26 -0700 (PDT) Received: from localhost.localdomain (45.red-88-29-191.dynamicip.rima-tde.net. [88.29.191.45]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42f86a0afc1sm1338845e9.1.2024.10.03.16.42.22 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 03 Oct 2024 16:42:25 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, Michael Rolnik , Halil Pasic , Christian Borntraeger , Mark Cave-Ayland , Frederic Konrad , Artyom Tarasenko , Matthew Rosato , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , David Hildenbrand , Peter Xu , Ilya Leoshkevich , Song Gao , Thomas Huth , Marcel Apfelbaum , Eduardo Habkost , qemu-s390x@nongnu.org, Laurent Vivier , Eric Farman , =?utf-8?q?Cl=C3=A9ment_Chigot?= , Paolo Bonzini , "Michael S. Tsirkin" , Thomas Huth , Bastian Koppelmann , Richard Henderson , Pierrick Bouvier Subject: [PATCH 01/16] qemu/bswap: Undefine CPU_CONVERT() once done Date: Fri, 4 Oct 2024 01:41:56 +0200 Message-ID: <20241003234211.53644-2-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241003234211.53644-1-philmd@linaro.org> References: <20241003234211.53644-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=philmd@linaro.org; helo=mail-wr1-x42b.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 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-ppc@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-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org Better undefined macros once we are done with them, like we do few lines later with DO_STN_LDN_P(). Signed-off-by: Philippe Mathieu-Daudé --- include/qemu/bswap.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/qemu/bswap.h b/include/qemu/bswap.h index ad22910a5d1..b915835bead 100644 --- a/include/qemu/bswap.h +++ b/include/qemu/bswap.h @@ -140,6 +140,8 @@ CPU_CONVERT(le, 16, uint16_t) CPU_CONVERT(le, 32, uint32_t) CPU_CONVERT(le, 64, uint64_t) +#undef CPU_CONVERT + /* * Same as cpu_to_le{16,32,64}, except that gcc will figure the result is * a compile-time constant if you pass in a constant. So this can be