From nobody Thu Oct 30 15:26:08 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass header.i=teddy.astie@vates.tech; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=reject dis=none) header.from=vates.tech ARC-Seal: i=1; a=rsa-sha256; t=1761057954; cv=none; d=zohomail.com; s=zohoarc; b=Z4dyZa5rIio2MKIGw97IFBi60EZdIc8hoCAFNCVE+sVusIslEibk/pb1Ef3dr2E19tueyC1GIaGxbW/kV2whkdI7W7HhlRADgA8gkYylFuOfyUMFfciJ+mka3BK87dCYu4D7edfv5E9axdlX+tbXaTx/pCRMA60gpymslenob1E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1761057954; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=eAyBFhluLadZ+1q0M6eMqGhRq5AQrdpORdrbrl3BA70=; b=lazHwoAvd6fMsJKyA0e6wOwTujieo+mZdxpd4IEgtbkT6oAWZ2zabRhMLpHeKN1gMqmcc6tBEn4LQbzER/6Hy0dZKRZohpG6Y+s8oMpVA6IYr2+bRGQzMSV/1L2LZADtt668yZVmhHqzImA1StxCZJCKqXinsqnkAM4K8M+yPBw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=teddy.astie@vates.tech; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 17610579539421010.1106276358665; Tue, 21 Oct 2025 07:45:53 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1147378.1479692 (Exim 4.92) (envelope-from ) id 1vBDcM-00041p-KZ; Tue, 21 Oct 2025 14:45:42 +0000 Received: by outflank-mailman (output) from mailman id 1147378.1479692; Tue, 21 Oct 2025 14:45:42 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vBDcM-00041i-I0; Tue, 21 Oct 2025 14:45:42 +0000 Received: by outflank-mailman (input) for mailman id 1147378; Tue, 21 Oct 2025 14:45:41 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vBDcL-00041a-Sq for xen-devel@lists.xenproject.org; Tue, 21 Oct 2025 14:45:41 +0000 Received: from mail187-3.suw11.mandrillapp.com (mail187-3.suw11.mandrillapp.com [198.2.187.3]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 9ce1cff4-ae8c-11f0-9d15-b5c5bf9af7f9; Tue, 21 Oct 2025 16:45:40 +0200 (CEST) Received: from pmta09.mandrill.prod.suw01.rsglab.com (localhost [127.0.0.1]) by mail187-3.suw11.mandrillapp.com (Mailchimp) with ESMTP id 4crZpq2gWPzDRJ9QJ for ; Tue, 21 Oct 2025 14:45:39 +0000 (GMT) Received: from [37.26.189.201] by mandrillapp.com id 67efe091a7004ec5a13e520c0b6cb7ed; Tue, 21 Oct 2025 14:45:39 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 9ce1cff4-ae8c-11f0-9d15-b5c5bf9af7f9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandrillapp.com; s=mte1; t=1761057939; x=1761327939; bh=eAyBFhluLadZ+1q0M6eMqGhRq5AQrdpORdrbrl3BA70=; h=From:Subject:To:Cc:Message-Id:Feedback-ID:Date:MIME-Version: Content-Type:Content-Transfer-Encoding:CC:Date:Subject:From; b=iAj/JBI6MWhhbsZ/p6gz7laMLPeH/M7z1zPttgsjZQzR/GZU8TNMYeq2bcQfHcK5X z+H7OOAkTIHgSF8K+dELgi6PFwho5Vdy8OQyw5eKqFRYasZoCxEKGpIW0CWLJweKTe /EtqanBpOLCBgVPVK/b7NRRZL71SG6Cjmbw2zNwVDoHnh3qsNAz1N1OTRkdSD/jUgQ k7LBYGfsbVg1ISro6DDyM7Qn6Bdu995FmWmg3hB7SHzunXf/H/5j7WY9FKQI0Y9RmX inCYy2+ySNvXTuZQGZEV9ibSUool/4vwnWDSZS1iwApasfjBD7/DkSBu7MWMJaQN3a KPBooawhp+AzA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vates.tech; s=mte1; t=1761057939; x=1761318439; i=teddy.astie@vates.tech; bh=eAyBFhluLadZ+1q0M6eMqGhRq5AQrdpORdrbrl3BA70=; h=From:Subject:To:Cc:Message-Id:Feedback-ID:Date:MIME-Version: Content-Type:Content-Transfer-Encoding:CC:Date:Subject:From; b=ydq/PT9up5/Urs36y8RADcejoXwaFaOnwvmhSO3axqyhgsLN0k+0J3mQyAn8mtc0I avphO8zmfamUXj9Ir+QTY/nUIxNATq3S1jMr5T5gsM40dQCKkQ63wZ/lwYKIEMwz9y 8Vs3CR8sjAZ2MMgkD5xA7qWXnS5p1fGKL39CtKhgcKuhQsnDFpSTPPSZyN+PIwu1DY m1kMrHoiY7JIVEGHTFAKT+5EQlek4q0TPmPLVZX9jeJa5tDhr/li+Mj2b75qPoIEVn AJth38Q/pRtqG9F4Pb/Azc4GbP+f0VFTKesg7OI4I+XNtPmffXuiQPPwps5NIOqsi/ aGW+C4qb+nvEg== From: "Teddy Astie" Subject: =?utf-8?Q?[PATCH]=20vtd:=20Inline=20redundant=20nr=5Fioapic=5Fentries=20macro?= X-Mailer: git-send-email 2.51.0 X-Bm-Disclaimer: Yes X-Bm-Milter-Handled: 4ffbd6c1-ee69-4e1b-aabd-f977039bd3e2 X-Bm-Transport-Timestamp: 1761057937390 To: xen-devel@lists.xenproject.org Cc: "Teddy Astie" , "Jan Beulich" , "Andrew Cooper" , "=?utf-8?Q?Roger=20Pau=20Monn=C3=A9?=" Message-Id: X-Native-Encoded: 1 X-Report-Abuse: =?UTF-8?Q?Please=20forward=20a=20copy=20of=20this=20message,=20including=20all=20headers,=20to=20abuse@mandrill.com.=20You=20can=20also=20report=20abuse=20here:=20https://mandrillapp.com/contact/abuse=3Fid=3D30504962.67efe091a7004ec5a13e520c0b6cb7ed?= X-Mandrill-User: md_30504962 Feedback-ID: 30504962:30504962.20251021:md Date: Tue, 21 Oct 2025 14:45:39 +0000 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity teddy.astie@vates.tech) (identity @mandrillapp.com) X-ZM-MESSAGEID: 1761057957195154101 Content-Type: text/plain; charset="utf-8" This macro was there when ia64 was a thing, nowaday, this macro isn't meani= ngful anymore and is actually a slightly disguised nr_ioapic_entries array access. Signed-off-by: Teddy Astie Acked-by: Andrew Cooper --- xen/drivers/passthrough/vtd/intremap.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/xen/drivers/passthrough/vtd/intremap.c b/xen/drivers/passthrou= gh/vtd/intremap.c index 9272a25113..7726ee618a 100644 --- a/xen/drivers/passthrough/vtd/intremap.c +++ b/xen/drivers/passthrough/vtd/intremap.c @@ -31,7 +31,6 @@ =20 #include #include -#define nr_ioapic_entries(i) nr_ioapic_entries[i] =20 /* * source validation type (SVT) @@ -68,7 +67,7 @@ static int init_apic_pin_2_ir_idx(void) =20 nr_pins =3D 0; for ( i =3D 0; i < nr_ioapics; i++ ) - nr_pins +=3D nr_ioapic_entries(i); + nr_pins +=3D nr_ioapic_entries[i]; =20 _apic_pin_2_ir_idx =3D xmalloc_array(int, nr_pins); apic_pin_2_ir_idx =3D xmalloc_array(int *, nr_ioapics); @@ -86,7 +85,7 @@ static int init_apic_pin_2_ir_idx(void) for ( i =3D 0; i < nr_ioapics; i++ ) { apic_pin_2_ir_idx[i] =3D &_apic_pin_2_ir_idx[nr_pins]; - nr_pins +=3D nr_ioapic_entries(i); + nr_pins +=3D nr_ioapic_entries[i]; } =20 return 0; --=20 2.51.0 -- Teddy Astie | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech