From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5EF9B460EC; Wed, 22 Jan 2025 18:10:34 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EE7C7402D5; Wed, 22 Jan 2025 18:10:33 +0100 (CET) Received: from dkmailrelay1.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 733AE4060B for ; Wed, 22 Jan 2025 18:10:32 +0100 (CET) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesys.local [192.168.4.10]) by dkmailrelay1.smartsharesystems.com (Postfix) with ESMTP id 34D362056C; Wed, 22 Jan 2025 18:10:32 +0100 (CET) Content-class: urn:content-classes:message Subject: RE: [PATCH v3] eal: fix macros for MSVC: noinline, alwaysinline, hot MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Wed, 22 Jan 2025 18:10:30 +0100 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35E9F9DA@smartserver.smartshare.dk> X-MimeOLE: Produced By Microsoft Exchange V6.5 In-Reply-To: <1737563065-18741-1-git-send-email-andremue@linux.microsoft.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH v3] eal: fix macros for MSVC: noinline, alwaysinline, hot Thread-Index: Adts6iDuheakuVLGRDq4fbxzMAEGEQABlxGw References: <1732723879-23806-1-git-send-email-andremue@linux.microsoft.com> <1737563065-18741-1-git-send-email-andremue@linux.microsoft.com> From: =?iso-8859-1?Q?Morten_Br=F8rup?= To: "Andre Muezerie" Cc: , X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > From: Andre Muezerie [mailto:andremue@linux.microsoft.com] > Sent: Wednesday, 22 January 2025 17.24 >=20 > MSVC supports forcing code to be inlined or forcing code to not be > inlined, like other compilers. It does not support the "hot" hint > though. >=20 > This patch fixes existing macros __rte_noinline and > __rte_always_inline so that they also do what is expected from them > when used with MSVC. __rte_hot is updated to become a noop when > MSCS is used. >=20 > Signed-off-by: Andre Muezerie > --- Acked-by: Morten Br=F8rup