From patchwork Sat Mar 8 22:58:58 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 871617 Delivered-To: patch@linaro.org Received: by 2002:a5d:64ce:0:b0:38f:210b:807b with SMTP id f14csp347303wri; Sat, 8 Mar 2025 15:05:15 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVMfFGqUGjRDUlYk/fZvh3yLZnqMTvI523qwHn9gX594n3D3qCHHk/lhimAZGwvVZwmTXyeMQ==@linaro.org X-Google-Smtp-Source: AGHT+IEv0tHaSeNwsy1ukU3Qi/Sx0Hp4CchTx9G0I7amSDzy8M0sIC8OCpLJqkgXFJCTS1HS5gkk X-Received: by 2002:a05:620a:2619:b0:7c3:cde7:a685 with SMTP id af79cd13be357-7c4e1689a87mr1436222185a.13.1741475115263; Sat, 08 Mar 2025 15:05:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1741475115; cv=none; d=google.com; s=arc-20240605; b=VE08SZdIbkPjeNeRB07nF8CmqBhxbVSpgNY3lAZgZDAqF4/NyGz+EpHOgqn9xDEEsg s59j0vjE4CxQ6ZLK2r6YzIGOh7JnZcyJPYiqPVDXkAALXpVIDp9hH/PRsvU162PNkPGk vvmV6LAB7TyHpXNwldi5q8bNXMXn/AFugzXniKp6iFVTLGgzv+tCKGn+Pc1fTwBFzz3o sZDe57WjbgCySx3499yIh2bb7xxh+6z0oaH0fCj0qNLjytA9dILOthHlNjnbagGFhNyz jEs009Zb8Oy/CZ1ocAnZFGApNxqY33f6brdmdbr/fKigcVEHAnAT6TwkEiy9xpBthu03 TZUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=SM3YyEYj7om0b8jrExKW6zZqdC5bOOIBOd/A+S3re7Q=; fh=kQadAhxV42GJ3cd2VUw1RyURv/zJQGvmUdF7iLEVTtc=; b=ioUtdmZt8NRJnuf57utLgqbphcgfdpX2CeeIhTvi8p0ESbboyKc6XVih2rTH5GfXRO 54PsHhW7j7yF9jGc1il+zSXCv+IGJI6atg7BiYNW3WQUecJPqq0Qh9qtz2Tp78pyZA5x Nwa1uRSTyHkGUeOU83478LW+qYqDjhktTGWgj1ZfL7xxbR2EFkk2ISElQuv98ddgUczy sSx5EyKyNmXzbvWjzBTCsJGH7p5o8WWRa9FP/BkF5DeuwpIhXf4WmLH6lAmMOW0Z1lsg BRMKhguwhKaSky5UpwIyzqZiJcmYnyTjBXC8kcQXngG9DrrVK5AM+UlVkPoo8Oz15jpW ogJA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Yl5FVggx; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7c3e533c580si614971885a.107.2025.03.08.15.05.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 08 Mar 2025 15:05:15 -0800 (PST) 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=Yl5FVggx; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tr39g-0005yR-Cq; Sat, 08 Mar 2025 18:00:28 -0500 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 1tr38Z-0004cp-QL for qemu-devel@nongnu.org; Sat, 08 Mar 2025 17:59:20 -0500 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tr38Y-0005Ni-24 for qemu-devel@nongnu.org; Sat, 08 Mar 2025 17:59:19 -0500 Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-2234e4b079cso53775525ad.1 for ; Sat, 08 Mar 2025 14:59:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741474757; x=1742079557; 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=SM3YyEYj7om0b8jrExKW6zZqdC5bOOIBOd/A+S3re7Q=; b=Yl5FVggx56xhOEKI3VTKFitQpbQWcLTcNT7OWtINwINbA0cbyw7B8g0aXfFzlhvJ4I XFLpmwF5lCQ7kOifDfZAj2A6A2CmjNDEebrLbCTJuAHskbGmAmBKWijb/PpwAUnEC38f LViMl+JL4XeGhNb9BpDW06iR+VNXGhkORB5Pye8BOrwRgrTqr0qs7+ZQg3xNWjx/nvSG UY/tgtMd00DBMCsKHoZwctXzC8rvB7tNt7Abtv/8MQ61EYPrx2zr+QmGYzev5k5MhAiS 37U7xlz/4BFE2U2Z0sZcwTnUQzBMpBx2zjz2/ZrprcvJaVhTzezT+06MtQp0aY5q/Mvs s7Ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741474757; x=1742079557; 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=SM3YyEYj7om0b8jrExKW6zZqdC5bOOIBOd/A+S3re7Q=; b=FqIPHKDs0qCAoHjMWPyrw29M3U60+VcSdUsLNx8ZwkoHBmbWHZ81uHLAdI555utMEX qvEZJmHmm8umyu10XjbkWExedHd4yMlzZ4rQSC/T72SW0IoqpL1cIZ4cWziyb7VboVdS LpUTkeMr+kAR7DVhg5FFT7M2qzxJn0I/gbGqxRqvDtOk0P/G7Am+Lksw/QIMMo+3/iKh Ze4eFuan84r6klba9L9jjk8jFh9Pr03R2gDNwn+dHguJb1ibrbiFrh0BS/TVnxAzi4NU rO1WKisfOiRO9FE+zcpuUcRNhca0QRgUdylm8LfDGd+n0Snt8ryGDlpQY+vO09HI2JI+ LrkQ== X-Gm-Message-State: AOJu0Yz2daI/3oRF8i3/ZCINcar00I7dnwXmd8hTlKCMimAq9x6LD8yV 0vatznvMdkbkZJn4KAOUUsR3JEznyWbqycCRfV9YHAuyufg1vvmS1pES1zeSQs/jZ1MGPVvRXoS G X-Gm-Gg: ASbGncu7/hCnbjE8XoR8vIN41cvMDbBN1R/2pQkXjh5WJYvfKNWUx1j8NwGeZaNqmz4 x8d3tCCWiODwHRslR3SrIsmZjKqUHn4uLWy1L6C1oUfJIU4+j4EJfmb1TqR8tY75HoUSMjzQwzJ KcDUDCkxhGVI7P9fEeGnxP9c8Ju7OhbMK6FZf59gtqCEBFiUG0POdDkWO21yJyyZFQKRCDybeg+ 7he5fem1s3bCrM9NYdpVuG4yGB85scXk/56YlqxDkIRxa+Vae12hnhfZQurNi0KZKUV2h9txl8S sL7K3Mfr917iKTbqC5Yukv8V2zZW6IjL+no6fwl+QEx8t5qZ/vPxRtxhkX1xzTTf6wfxr8F0YMf 6 X-Received: by 2002:a17:902:d488:b0:224:e0f:4b5 with SMTP id d9443c01a7336-224288866a4mr113585755ad.7.1741474756842; Sat, 08 Mar 2025 14:59:16 -0800 (PST) Received: from stoup.. (174-21-74-48.tukw.qwest.net. [174.21.74.48]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22410a908a0sm51831175ad.162.2025.03.08.14.59.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Mar 2025 14:59:16 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 19/23] qemu/atomic: Rename atomic128-cas.h headers using .h.inc suffix Date: Sat, 8 Mar 2025 14:58:58 -0800 Message-ID: <20250308225902.1208237-21-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250308225902.1208237-1-richard.henderson@linaro.org> References: <20250308225902.1208237-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::632; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x632.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=ham 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 From: Philippe Mathieu-Daudé Since commit 139c1837db ("meson: rename included C source files to .c.inc"), QEMU standard procedure for included C files is to use *.c.inc. Besides, since commit 6a0057aa22 ("docs/devel: make a statement about includes") this is documented in the Coding Style: If you do use template header files they should be named with the ``.c.inc`` or ``.h.inc`` suffix to make it clear they are being included for expansion. Therefore rename 'atomic128-cas.h' as 'atomic128-cas.h.inc'. Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Message-ID: <20241212141018.59428-2-philmd@linaro.org> --- host/include/aarch64/host/atomic128-cas.h | 2 +- include/qemu/atomic128.h | 2 +- .../generic/host/{atomic128-cas.h => atomic128-cas.h.inc} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename host/include/generic/host/{atomic128-cas.h => atomic128-cas.h.inc} (100%) diff --git a/host/include/aarch64/host/atomic128-cas.h b/host/include/aarch64/host/atomic128-cas.h index 58630107bc..991da4ef54 100644 --- a/host/include/aarch64/host/atomic128-cas.h +++ b/host/include/aarch64/host/atomic128-cas.h @@ -13,7 +13,7 @@ /* Through gcc 10, aarch64 has no support for 128-bit atomics. */ #if defined(CONFIG_ATOMIC128) || defined(CONFIG_CMPXCHG128) -#include "host/include/generic/host/atomic128-cas.h" +#include "host/include/generic/host/atomic128-cas.h.inc" #else static inline Int128 atomic16_cmpxchg(Int128 *ptr, Int128 cmp, Int128 new) { diff --git a/include/qemu/atomic128.h b/include/qemu/atomic128.h index 88af6d4ea3..03c27022f0 100644 --- a/include/qemu/atomic128.h +++ b/include/qemu/atomic128.h @@ -58,7 +58,7 @@ * Therefore, special case each platform. */ -#include "host/atomic128-cas.h" +#include "host/atomic128-cas.h.inc" #include "host/atomic128-ldst.h" #endif /* QEMU_ATOMIC128_H */ diff --git a/host/include/generic/host/atomic128-cas.h b/host/include/generic/host/atomic128-cas.h.inc similarity index 100% rename from host/include/generic/host/atomic128-cas.h rename to host/include/generic/host/atomic128-cas.h.inc