From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6D2DF606A31C for ; Sun, 29 Nov 2026 20:51:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=networkplumber-org.20260707.gappssmtp.com header.i=@networkplumber-org.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=pKV+Yor+ Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A97C840A6F; Sun, 29 Nov 2026 21:50:23 +0100 (CET) Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) by mails.dpdk.org (Postfix) with ESMTPS id C5A754064C for ; Sun, 29 Nov 2026 21:50:19 +0100 (CET) Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-8b2382bf051so4974358b3a.3 for ; Sun, 29 Nov 2026 12:50:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20260707.gappssmtp.com; s=20260707; t=1795985418; x=1796590218; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=GQsBAfUnN8KUmoEI05J4VpsniEp4yorzOTMMB5iERVc=; b=pKV+Yor+/FXsky8S0OME0MVX7Nge/hn3/nVcs6vZ/T321WWnNQvjVVPBaogViMNu0k 3zA7Q080H61UoSOk04QnM8XqvI9GgUtJQJCrno00921C6+moPJR2yFXeh8/VYzHcHN/5 SJjcCo2bRtg7LWXUlx4/ymBbq1SuXibQUpvjcnw4l0c3bxidoufZPbiLAJcTEit3cfk5 ev3ZzyvE/4P1Iud5RaNPn3COpyPeSXFqEG4cmyWy4DN9gx/R2sVl6Cx7Ce54BIF/rwfA KwEr8wHXOvfJaZny+ic6budprQkKGg1oUmSEMqO9q8sEvEU97YB86rUoaXbIAeZZF45L VTSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795985418; x=1796590218; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=GQsBAfUnN8KUmoEI05J4VpsniEp4yorzOTMMB5iERVc=; b=AhAXhltTV1OHGUq5WJ7zoVmGL/5ryVI56OUbuDle/oLkCxpad3gSI0glDSMeOGw56j tooB4Z8HeV2sK2zpu07KqykEX+N4TsjhMV/+8pdV48mu4y56UDZ1UBpFpimB9zBfu85Y 76CThloaslJPjT+3/BnxvDm1hFL9syhTfoXqWvaCcvWhlsu1/J7qw9WhzKVkhsoJGevI LNpr2xqcvXMeE8/xQljTLBJNZeMtfT49voyq3eQ82nNZdqYivrtc2P+RaFT1QH5wOGe3 BfhK0fAIFbAOgAy68itaN0AWZ4WrPDcWCHMmU0lVQYqBXxh1H+5bHgKlFxFI3HwN5lFp h+3g== X-Gm-Message-State: APuU4Z+GOXroSgdU+tPipwqa7S5CzHc3YXdzSDfbRhhCrampboYJGRfu +QYlSeiqaMQq5rFDOKTCzK4UbF9hqeQzDq8x9ijn6RGW6y4ZGmrOcQGV8KwKToPQZDvqfehg7Fx iH2WY X-Gm-Gg: AZFdTZdf3n5O+vr6eps56PDh1uZN0P8/t+0TvdwjqWW7d6UU6+2deWyfrkDeatTcXdo Qqobe6NhpzNN4lVXQ4QGYPoD8o02TC7IEjvFjbTA+TMjLgUib+w6xvXJFns4BdVBjL948Qn8PxH iNZ1i2E8X2uF6cwpKAsY4ZmM3W+Visk9w1u2KdmzSGfKacT+ldpIysFxG/C0KratdMMxHdZwrgR 2uQ2xbomRvBSr2ubjHb+J6nVt5w9HX4f8OxsvLgMtJ6G/IERVaRNLWXpFFuZM8SOo9OvQ+zQ+Dz gYSMvxL+s9Dc2Po+ZZL1kXD3/uKnR0+uHru2n2lv8cBdf2FhUYmXdbkQ+tpdj5518OpsqU3bMc6 44rBhaYYL9D8uAK7/CKrnXpNKBDZXY0hDy1UDnJx8vGiTveDL2uE/HxqfozyZSmK7nG823v7/1m zApG05A1dKAoscdjzBKaOsZV0EADcobx/rLb9t81+0+aw9ug/PQrQd6dnfiDYL5nwMhnsamMjSE ks+EhMoEfVj7HNtcNSIynvVjlJUVR7Hg6b4wjrKix6fo+0mwu3gE5cLgwIQt7Trf1ZGZIboMXut O188qWUpEXkZRmjeeDMGG/Lwu2jMn3TdCAkqEfO7mrCdJkoCpMT45RIo/nd+Lz5lqJfs X-Received: by 2002:a17:90b:2683:b0:3b5:348b:9322 with SMTP id 98e67ed59e1d1-3b5348b9341mr9599198a91.30.1795985418209; Sun, 29 Nov 2026 12:50:18 -0800 (PST) Received: from phoenix.lan (204-195-112-43.wavecable.com. [204.195.112.43]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b50234fb25sm10383968a91.2.2026.11.29.12.50.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 12:50:17 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Elena Agostini Subject: [PATCH 07/45] gpudev: do not export unused internal functions Date: Sun, 29 Nov 2026 12:48:52 -0800 Message-ID: <20261129205006.1440292-8-stephen@networkplumber.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261129205006.1440292-1-stephen@networkplumber.org> References: <20261129205006.1440292-1-stephen@networkplumber.org> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 rte_gpu_attach() and rte_gpu_notify() are not called by any driver. The cuda driver only uses rte_gpu_allocate(), rte_gpu_complete_new(), rte_gpu_release() and rte_gpu_get_by_name(), which keep their export. Signed-off-by: Stephen Hemminger --- lib/gpudev/gpudev.c | 2 -- lib/gpudev/gpudev_driver.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/lib/gpudev/gpudev.c b/lib/gpudev/gpudev.c index 93a30464f0..11e8728211 100644 --- a/lib/gpudev/gpudev.c +++ b/lib/gpudev/gpudev.c @@ -245,7 +245,6 @@ rte_gpu_allocate(const char *name) return dev; } -RTE_EXPORT_INTERNAL_SYMBOL(rte_gpu_attach) struct rte_gpu * rte_gpu_attach(const char *name) { @@ -506,7 +505,6 @@ gpu_free_callbacks(struct rte_gpu *dev) rte_rwlock_write_unlock(&gpu_callback_lock); } -RTE_EXPORT_INTERNAL_SYMBOL(rte_gpu_notify) void rte_gpu_notify(struct rte_gpu *dev, enum rte_gpu_event event) { diff --git a/lib/gpudev/gpudev_driver.h b/lib/gpudev/gpudev_driver.h index b7621f6e5a..3f06bf89f0 100644 --- a/lib/gpudev/gpudev_driver.h +++ b/lib/gpudev/gpudev_driver.h @@ -95,7 +95,6 @@ __rte_internal struct rte_gpu *rte_gpu_allocate(const char *name); /* First step of initialization in secondary process. */ -__rte_internal struct rte_gpu *rte_gpu_attach(const char *name); /* Last step of initialization. */ @@ -107,7 +106,6 @@ __rte_internal int rte_gpu_release(struct rte_gpu *dev); /* Call registered callbacks. No multi-process event. */ -__rte_internal void rte_gpu_notify(struct rte_gpu *dev, enum rte_gpu_event); #ifdef __cplusplus -- 2.53.0