From patchwork Thu Aug 1 10:25:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 816035 Delivered-To: patch@linaro.org Received: by 2002:a5d:4acf:0:b0:367:895a:4699 with SMTP id y15csp1115826wrs; Thu, 1 Aug 2024 03:25:55 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUnMj8wHHjbGK63A0pc4GDF3OFDWgoOc5nZpXkpNsxMzehqpq8tnyhsBds4gwXKTuhGq/1bxVUDmzCZujXZSqi8 X-Google-Smtp-Source: AGHT+IHE2qlAqY464aIqrKcWk/3SLSPMnR4A57Z1W/X1S8OnbXqnnhTZFuKE4w4SekLJdMhwz/G3 X-Received: by 2002:a05:620a:2901:b0:79f:c81:3051 with SMTP id af79cd13be357-7a30c63782bmr226631585a.2.1722507954862; Thu, 01 Aug 2024 03:25:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1722507954; cv=none; d=google.com; s=arc-20160816; b=k2kRtqyea2piL7Kg/PvvG5zEjtVgD8bdOTE3ypCQTLsAqiEScQ6WTZl3fGx+DbZSf/ 2gCSokt0cSnmnw4OZSYNYeJ8ZAXD9XDKceQx419a9QJ/Q7WFnRb1396YqEsAxh6Hsopn 6Kv38kxOKjloGdQnID0vrDr/4i/EXZWoKksdIEP0xDg9+ircZDntKNIZxS7C4qwW35IZ uGbd2KkrF58RMRvxjMksKK090sGfbFBgP3xTDTUGLcPSUJJ5rfYfybS+q7hKZZl8qmUI dRgnLfscSqA33r4ZO0H+o4vjGNW290WJ7vNdkYp03660MIZZfz2ePw2lTA1abUZdE8m4 mOQg== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=LGj9xUPuFQKz+iRXpwtcPvUOjN63NyRT7V4lFqRZMPE=; fh=OutqRYhCZZLT11Yx/aK+qrvFrm9SSH7eOU/lzCEXLGQ=; b=lUZAOnXeKjHnoPzZiqSjd6mkghBkNW5fpmCFqskhFa1sEmru7E6TDb5HmltqKSR83y sJIocoE4ICcDacdUJUQntlMw1mr12h7I78E76y+svtqoTDq0SgcZamo97fKwKHVKuJu9 vwJ+/lc8NnyrIpDW+rk8OIlDhBfY8jZVCzO2SuchEpfMuqBkFZRvuFuGjXcyrEp+pg3c SQUjiDcV4IrmeZ/DseCZlI8eYEbQnq+W33bUa40DVRVChUGOQIZnxwkSp+eMmhUaQvXX VYvwXhVj07qpWEqxhMjFcZJTcbZdWkqKd36UFB7CK4rjy2BQjRRZ2qBsHQv7xrFfhgo2 oW+Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="lnDH/I+M"; 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-7a1d74622e9si1759621485a.441.2024.08.01.03.25.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 01 Aug 2024 03:25:54 -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="lnDH/I+M"; 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 1sZSzt-00011g-KX; Thu, 01 Aug 2024 06:25:25 -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 1sZSzr-00010O-UO for qemu-devel@nongnu.org; Thu, 01 Aug 2024 06:25:23 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sZSzp-0007qW-9L for qemu-devel@nongnu.org; Thu, 01 Aug 2024 06:25:23 -0400 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-4281d812d3eso46990405e9.3 for ; Thu, 01 Aug 2024 03:25:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1722507918; x=1723112718; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=LGj9xUPuFQKz+iRXpwtcPvUOjN63NyRT7V4lFqRZMPE=; b=lnDH/I+MBS2wiQxqQYWNhuO82uZqCvsZcMH0gFWTWVXhbhspNWv4pkjhStk+5QzeCf 1sHcjSJx2UxCsspYQNfSKKDIAgAdTA3lDLMDqmNoFrlyku43M4xTZXyXEuzCiBPVF3W6 CUlzqHXci4yBK6Q7uEWn545SyCbN+Q1IpMoIvM2K1ZSy6r7ZYqpwsgAibDkrQzS6cZg0 Vmf6SJMEDHtuGvyhqa9hpP/VNkep31KQbcw2Af+1/22M0SOOKhtt28wWhTDWkb8JBz0C EKAvhYrvyfDkskWoFhXztXq7Vu9H1B+I47jCuL167Nan7qleLn1KxPXpa+Nf9RA36dTm bytA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722507918; x=1723112718; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=LGj9xUPuFQKz+iRXpwtcPvUOjN63NyRT7V4lFqRZMPE=; b=IsQw3PFosRAy6/aG+OmTfKJp7CO4lafEgQ2RpukcM6PnkDZYcrdCVYTT9849WULj0I 6PTHQpXGsCT9d6Dm8zu19CffOCBnMAez+PIC71H7CxZmGtxdEU5m6dpytWfddUZ+ClGv Khq8CzkwfhuliB3QWTXSFmaWuI7eNcvBjsA7G2ToDyv6v0r7Wgq5KcnGimfWBGoZ+Aa7 DszN2Tt3als4mpW5DKasBSJjFygwCCrfkVxB8xVTKkpqSPUhp+ukSE7ZJZ5OXk8j1a5M d9RiBrqDDGb9937NT+aEjeOb/If+IgBuhQ8ix8OiwGBcgR9s4uK+4deI0LfDOoypf/KF l1FQ== X-Gm-Message-State: AOJu0YxIHIWmo3t3x67WAvXHiBdkAIK8eZ55HbvjD/+93ChcUJ4o1D7h kaiuObr31iziemtXcRkYGOds7CbqZb6pKmGIPx4OAHxSL6kMPwAbVlpKZuQ4YC2ho4/N74OzL05 v X-Received: by 2002:a05:600c:46c9:b0:426:593c:9359 with SMTP id 5b1f17b1804b1-428b8a2a666mr20757835e9.32.1722507917829; Thu, 01 Aug 2024 03:25:17 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4282bb223f6sm52381275e9.45.2024.08.01.03.25.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Aug 2024 03:25:17 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, Markus Armbruster Subject: [PATCH] include: Fix typo in name of MAKE_IDENTFIER macro Date: Thu, 1 Aug 2024 11:25:16 +0100 Message-Id: <20240801102516.3843780-1-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x32b.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 In commit bb71846325e23 we added some macro magic to avoid variable-shadowing when using some of our more complicated macros. One of the internal components of this is a macro named MAKE_IDENTFIER. Fix the typo in its name: it should be MAKE_IDENTIFIER. Commit created with sed -i -e 's/MAKE_IDENTFIER/MAKE_IDENTIFIER/g' include/qemu/*.h include/qapi/qmp/qobject.h Signed-off-by: Peter Maydell Reviewed-by: Markus Armbruster Reviewed-by: Philippe Mathieu-Daudé --- include/qapi/qmp/qobject.h | 2 +- include/qemu/atomic.h | 2 +- include/qemu/compiler.h | 2 +- include/qemu/osdep.h | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/qapi/qmp/qobject.h b/include/qapi/qmp/qobject.h index 89b97d88bca..256d782688c 100644 --- a/include/qapi/qmp/qobject.h +++ b/include/qapi/qmp/qobject.h @@ -54,7 +54,7 @@ struct QObject { typeof(obj) _obj = (obj); \ _obj ? container_of(&_obj->base, QObject, base) : NULL; \ }) -#define QOBJECT(obj) QOBJECT_INTERNAL((obj), MAKE_IDENTFIER(_obj)) +#define QOBJECT(obj) QOBJECT_INTERNAL((obj), MAKE_IDENTIFIER(_obj)) /* Required for qobject_to() */ #define QTYPE_CAST_TO_QNull QTYPE_QNULL diff --git a/include/qemu/atomic.h b/include/qemu/atomic.h index dc4118ddd9e..7a3f2e6576b 100644 --- a/include/qemu/atomic.h +++ b/include/qemu/atomic.h @@ -128,7 +128,7 @@ _val; \ }) #define qatomic_rcu_read(ptr) \ - qatomic_rcu_read_internal((ptr), MAKE_IDENTFIER(_val)) + qatomic_rcu_read_internal((ptr), MAKE_IDENTIFIER(_val)) #define qatomic_rcu_set(ptr, i) do { \ qemu_build_assert(sizeof(*ptr) <= ATOMIC_REG_SIZE); \ diff --git a/include/qemu/compiler.h b/include/qemu/compiler.h index 554c5ce7df7..c06954ccb41 100644 --- a/include/qemu/compiler.h +++ b/include/qemu/compiler.h @@ -38,7 +38,7 @@ #endif /* Expands into an identifier stemN, where N is another number each time */ -#define MAKE_IDENTFIER(stem) glue(stem, __COUNTER__) +#define MAKE_IDENTIFIER(stem) glue(stem, __COUNTER__) #ifndef likely #define likely(x) __builtin_expect(!!(x), 1) diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h index 720ed21a7e4..38a127a699e 100644 --- a/include/qemu/osdep.h +++ b/include/qemu/osdep.h @@ -399,7 +399,7 @@ void QEMU_ERROR("code path is reachable") }) #undef MIN #define MIN(a, b) \ - MIN_INTERNAL((a), (b), MAKE_IDENTFIER(_a), MAKE_IDENTFIER(_b)) + MIN_INTERNAL((a), (b), MAKE_IDENTIFIER(_a), MAKE_IDENTIFIER(_b)) #define MAX_INTERNAL(a, b, _a, _b) \ ({ \ @@ -408,7 +408,7 @@ void QEMU_ERROR("code path is reachable") }) #undef MAX #define MAX(a, b) \ - MAX_INTERNAL((a), (b), MAKE_IDENTFIER(_a), MAKE_IDENTFIER(_b)) + MAX_INTERNAL((a), (b), MAKE_IDENTIFIER(_a), MAKE_IDENTIFIER(_b)) #ifdef __COVERITY__ # define MIN_CONST(a, b) ((a) < (b) ? (a) : (b)) @@ -440,7 +440,7 @@ void QEMU_ERROR("code path is reachable") _a == 0 ? _b : (_b == 0 || _b > _a) ? _a : _b; \ }) #define MIN_NON_ZERO(a, b) \ - MIN_NON_ZERO_INTERNAL((a), (b), MAKE_IDENTFIER(_a), MAKE_IDENTFIER(_b)) + MIN_NON_ZERO_INTERNAL((a), (b), MAKE_IDENTIFIER(_a), MAKE_IDENTIFIER(_b)) /* * Round number down to multiple. Safe when m is not a power of 2 (see