From nobody Mon Feb 9 16:50:36 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1633950171; cv=none; d=zohomail.com; s=zohoarc; b=WVCOUYkD0SxxGt8BbeC3+e610GOnb82mozQEVk2VsBSrfYEMLsNCRkR+DrtL4R5UY/L7pyRundRq+u+7rxluUyqtvT+uPTgrD8J96lp9JhbUbvdan569CYb+rQnElkZi5IwXOH97mEKlDU2R9Kf3YRQxWKvod2Nh8lHytZk9Djc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1633950171; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=kLoMDo5AAjI7fd1RBrr3KLzQIEMuA17rIRI8I0Upu/w=; b=dqexPNq66rgufydTL+Qcv8/pRyYORXtfLLBaPExc7FqxZt06EM2D9Q7FN1ctLuNoMXrlkBsKU1Z823Jl1XMELBQI4n6b7wAxns8ol6E+NwswvWMQx55kcQSdXmrEupeeVCgQdbeK415hViC6Ywz+JI8j291T4yegEZa0NnqSLuQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1633950170863253.83741957168615; Mon, 11 Oct 2021 04:02:50 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-56-gWBpgpALMKug61OVduVT7A-1; Mon, 11 Oct 2021 07:02:48 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 07B7A10A8E01; Mon, 11 Oct 2021 11:02:43 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 93C3E1017E28; Mon, 11 Oct 2021 11:02:42 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id CCD4E4E590; Mon, 11 Oct 2021 11:02:41 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 19BB2em5012788 for ; Mon, 11 Oct 2021 07:02:40 -0400 Received: by smtp.corp.redhat.com (Postfix) id 1DA9D60C5F; Mon, 11 Oct 2021 11:02:40 +0000 (UTC) Received: from work.redhat.com (unknown [10.39.193.160]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5244460BF4; Mon, 11 Oct 2021 11:02:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1633950169; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=kLoMDo5AAjI7fd1RBrr3KLzQIEMuA17rIRI8I0Upu/w=; b=W9wxSNF9hHKZaDLkT6YmrtwR3rMOgO2uFo3KTMgzwrb3XhZU64BrCJFgapRxvFmo2hlW8e m/99SJrUvF3oNEJd/Oie6V/zjUlmMY/fA3uloEz0+/qN8XUkZFaW7ocMJDjuRpqLFvh45i yAHC3DFwzf2jxin7Ttc4mWMU+WIv5cM= X-MC-Unique: gWBpgpALMKug61OVduVT7A-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH 1/5] cpu_arm: No need to protect macro definitions Date: Mon, 11 Oct 2021 13:02:24 +0200 Message-Id: <20211011110228.46312-2-twiederh@redhat.com> In-Reply-To: <20211011110228.46312-1-twiederh@redhat.com> References: <20211011110228.46312-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Cc: Tim Wiederhake X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1633950172348100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Tim Wiederhake --- src/cpu/cpu_arm.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/cpu/cpu_arm.c b/src/cpu/cpu_arm.c index 09ade1d422..ac174891b7 100644 --- a/src/cpu/cpu_arm.c +++ b/src/cpu/cpu_arm.c @@ -39,12 +39,11 @@ #include "virxml.h" =20 #define VIR_FROM_THIS VIR_FROM_CPU -#if defined(__aarch64__) + /* Shift bit mask for parsing cpu flags */ -# define BIT_SHIFTS(n) (1UL << (n)) +#define BIT_SHIFTS(n) (1UL << (n)) /* The current max number of cpu flags on ARM is 32 */ -# define MAX_CPU_FLAGS 32 -#endif +#define MAX_CPU_FLAGS 32 =20 =20 VIR_LOG_INIT("cpu.cpu_arm"); --=20 2.31.1