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 005D245F26; Tue, 24 Dec 2024 04:06:36 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5B50D402E5; Tue, 24 Dec 2024 04:06:19 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 5510540263 for ; Tue, 24 Dec 2024 04:06:14 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1213) id 5D4DD206ADD8; Mon, 23 Dec 2024 19:06:13 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 5D4DD206ADD8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1735009573; bh=cMX/ew5rFifYlmNl7202Bn8JQSGFS2by9JlWTjPh/RM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XRE2nwmgbFMoTATUbyixj6SGfZwWbWeVZOE76KIEUi3XdDcGsPHbDPBnY3jiPvlGg WgGQ3nmZmifKnirCqWpdsWz3yQP8QFyd7A5+qi2kA4sbn9oXs/sjLmLfnTB5Wm8lLI 0U947tIny/u7hgJ1ztWStqH1QBu5IUOii6pUwaRg= From: Andre Muezerie To: Parav Pandit , Xueming Li Cc: dev@dpdk.org, Andre Muezerie Subject: [PATCH 3/5] drivers/bus: use portable macro for weak linking Date: Mon, 23 Dec 2024 19:05:50 -0800 Message-Id: <1735009552-31906-4-git-send-email-andremue@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1735009552-31906-1-git-send-email-andremue@linux.microsoft.com> References: <1735009552-31906-1-git-send-email-andremue@linux.microsoft.com> 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 MSVC uses pragmas to indicate weak linking, so the old __rte_weak attribute needs to made into a macro so that the same syntax can be used for MSVC and other compilers like gcc. This patch replaces __rte_weak with macro RTE_WEAK. Signed-off-by: Andre Muezerie --- drivers/bus/auxiliary/auxiliary_common.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/bus/auxiliary/auxiliary_common.c b/drivers/bus/auxiliary/auxiliary_common.c index e6cbc4d356..147009ddab 100644 --- a/drivers/bus/auxiliary/auxiliary_common.c +++ b/drivers/bus/auxiliary/auxiliary_common.c @@ -41,8 +41,8 @@ auxiliary_devargs_lookup(const char *name) * * Stub for OS not supporting auxiliary bus. */ -__rte_weak bool -auxiliary_dev_exists(const char *name) +bool +RTE_WEAK(auxiliary_dev_exists)(const char *name) { RTE_SET_USED(name); return false; @@ -53,8 +53,8 @@ auxiliary_dev_exists(const char *name) * * Stub for OS not supporting auxiliary bus. */ -__rte_weak int -auxiliary_scan(void) +int +RTE_WEAK(auxiliary_scan)(void) { return 0; } -- 2.47.0.vfs.0.3