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: 13821660 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 3CA08CF34D6 for ; Thu, 3 Oct 2024 23:43:20 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1swVSq-0007JO-SF; Thu, 03 Oct 2024 19:42:32 -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 1swVSo-0007Io-Ew for qemu-devel@nongnu.org; Thu, 03 Oct 2024 19:42:30 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1swVSm-0003OE-9U for qemu-devel@nongnu.org; Thu, 03 Oct 2024 19:42:30 -0400 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-42cc43454d5so12151755e9.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=XWwYTvSexleyA6o1ukNBlBgi2i+cWxogdY1nUQo3lYz5Mskijvcoc868aIpEZO39EQ BmlWe4tPEv0PfmGY9bcFWjzZDTG1FXArBqIjiAhAgPRg31LtMij8jess7P+CMDw+PPiL Ax9vQNqAR4ZFnX69Ms6YbtlRsr+JI3+WZk4ZAemaQ74dnUHS2Pj/mlUXaMPS/aB1sqT8 3fhbLL19uHig90+ktdtTyuMMpM+Cc21De2XTqKBk11D8I0n/gL6QGtN+5GMJfW2WL84x AeGCa6j2pVSH/G7kI9L6n4K3HPvhrFycAcjIL+yf1pTqkiZutr51U3a16372uCWwiDp0 nJog== X-Gm-Message-State: AOJu0YxlmVXtIc/YJHntB85y7nzCjleBGXDB+PNIyYOp4dGTAe9Kr/bV cz/gIj/FeXWz+f3LqJP4KWTOuK70Ju8xx1tUS5pvClDwSoq5TZye/xiarsgy/bYKv8dVXMcdiDJ YxXE= 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::32f; envelope-from=philmd@linaro.org; helo=mail-wm1-x32f.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-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 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é Reviewed-by: Thomas Huth --- 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