From patchwork Fri Sep 5 13:18:11 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 236 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757078323; bh=Zm+v8tRBxVhQzQf0hYueZw3LfHIUHxf5DeYeUclkbkw=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=E8jNaiDgOovQqFrYB+3hFao9ivzk9YhQsN2ogHBaC/I9VyQTSw1fDwyJL6oJHyg1J dQPTOur6rtHbIAZXtBaKehxs7NxvkStexjURLFkarj9ew9EXrETKtY96DTfuPdAV/G D/O5kNsiBWOTbZwNl4ddyT00qZ+X03p6aEqMWqiHK4KjCGJPF/gtJMsp+yeGRcIJnk ZGHBF94QC0MJTF/uRu0DpBKXn5BMOwpVPEbfn+FS9xB2KDzkfsD7zr4/RLpadNpyV8 tqPwvyiAUVoalvNVYe5exJhpR1Mr11f16CJCwg6VukU2XMIqNU37u3X0JLl8G2ACBt ORtd3osFraKBA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 3DE896799B for ; Fri, 5 Sep 2025 07:18:43 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id lOoEjyzf8Xsn for ; Fri, 5 Sep 2025 07:18:43 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757078323; bh=Zm+v8tRBxVhQzQf0hYueZw3LfHIUHxf5DeYeUclkbkw=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=E8jNaiDgOovQqFrYB+3hFao9ivzk9YhQsN2ogHBaC/I9VyQTSw1fDwyJL6oJHyg1J dQPTOur6rtHbIAZXtBaKehxs7NxvkStexjURLFkarj9ew9EXrETKtY96DTfuPdAV/G D/O5kNsiBWOTbZwNl4ddyT00qZ+X03p6aEqMWqiHK4KjCGJPF/gtJMsp+yeGRcIJnk ZGHBF94QC0MJTF/uRu0DpBKXn5BMOwpVPEbfn+FS9xB2KDzkfsD7zr4/RLpadNpyV8 tqPwvyiAUVoalvNVYe5exJhpR1Mr11f16CJCwg6VukU2XMIqNU37u3X0JLl8G2ACBt ORtd3osFraKBA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 29F2D6790F for ; Fri, 5 Sep 2025 07:18:43 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757078321; bh=3UWd2YBWqBKRqiiKzEXuBuqInHPESfP7jMLpVeGiSfc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NTapw/rkQyi5apqgpjblPS56aUY04AtqRTBNmwvLHL14AJ0xiBUH+SKVISOhDqJEh yMvI+aR4VSk7C7tc89EQqRNKDdYbobufQiW5EriwkUlkErXkM5OwLT6dANW3xPw6Ar UcfM1JfBqZpscaYqjhEMl54BkZ8wwBEw6DDY5Njdws/1tMHz4TsXHCqromuPcvOtj9 FUMIeX3du4Th5Yt7Cqcgx5v93aVREhrDHYgb3xXHoUVhmv6mweeMtoPH8y7M7GrOL3 T0uIOz0L/nRtRZPCOTbRRSvL9tmRT8J2VdRzA0NbYi04DtoNYWgw+QRkjryUh+6LoN hQzJRK7aHemgA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 938646790F; Fri, 5 Sep 2025 07:18:41 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id 6cGU2qStBZiA; Fri, 5 Sep 2025 07:18:41 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757078317; bh=Z6C9dXb9Q9l7siKXoKRr/b36nVvtpzKN+xOlSug2IN0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wObVDCUkQh1sDsUW2so55yKIfPMK2gttxO0ePgaVOqUUARL7hZD90mEcfya7XG+DD tZtqWKWVB3fNH/XaYrPntK0Mzqun1coqVrJ8roUqG31lP7KKqFq5EeqiQmbS2UMQBf JhdgUyLLaQ3zMxKOXwrF3c/dZ7oXv+IuZ/kKwVw3L+U6tZA9Gym+d6HsGjGP8xNVtX 1zlk7Tcn8K7BM5MW4UlPEMUqjr5WfPVY1FRdBmp6Gp/Hvar8+DASlVgV8Ym6oVhwdj vNVfVMW3rH8nh5FHnZKImrZvkuWdh7NURuVAl7j3DB7k9PVhuVqQZmU17GQWojwOjp J7qAbHuGcnZhw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id EE1E36799D; Fri, 5 Sep 2025 07:18:36 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Fri, 5 Sep 2025 07:18:11 -0600 Message-ID: <20250905131816.3344908-5-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250905131816.3344908-1-sjg@u-boot.org> References: <20250905131816.3344908-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: AH6EGB3ZRCO5GR3MIATOALB4E5WLPLRM X-Message-ID-Hash: AH6EGB3ZRCO5GR3MIATOALB4E5WLPLRM X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt , Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 4/5] api: Rename api_init() to legacy_api_init() List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass Complete the rename of this API so that it is clear it is considered deprecated. Signed-off-by: Simon Glass --- include/legacy_api.h | 6 ++++-- legacy_api/api.c | 2 +- legacy_api/api_private.h | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/include/legacy_api.h b/include/legacy_api.h index 85bd80b2e33..6ada4000715 100644 --- a/include/legacy_api.h +++ b/include/legacy_api.h @@ -8,13 +8,15 @@ #define __LEGACY_API_H /** - * api_init() - Initialize API for external applications + * legacy_api_init() - Initialize legacy API for external applications * * Initialize API for external (standalone) applications running on top of * U-Boot. It is called during the generic post-relocation init sequence. * + * Note that this is deprecated. + * * Return: 0 if OK */ -int api_init(void); +int legacy_api_init(void); #endif diff --git a/legacy_api/api.c b/legacy_api/api.c index 458eaf0c5a4..a3d3a8eccae 100644 --- a/legacy_api/api.c +++ b/legacy_api/api.c @@ -638,7 +638,7 @@ int syscall(int call, int *retval, ...) return 1; } -int api_init(void) +int legacy_api_init(void) { struct api_signature *sig; diff --git a/legacy_api/api_private.h b/legacy_api/api_private.h index bb23821c2c0..1871ba4f431 100644 --- a/legacy_api/api_private.h +++ b/legacy_api/api_private.h @@ -8,7 +8,7 @@ #ifndef _API_PRIVATE_H_ #define _API_PRIVATE_H_ -int api_init(void); +int legacy_api_init(void); void platform_set_mr(struct sys_info *, unsigned long, unsigned long, int); int platform_sys_info(struct sys_info *);