From patchwork Wed Dec 11 10:54:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 849147 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:2c4:b0:385:e875:8a9e with SMTP id o4csp245193wry; Wed, 11 Dec 2024 02:56:30 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVb3Rsz2uRhr3j2AQTdO0v+ZC4/4D1nRhe/sBIEolzI6UiOSif5jGI4ZOV2gjoxszocllfuxg==@linaro.org X-Google-Smtp-Source: AGHT+IG1kd8KqryRYayvzlyLwYcSvefwB/at01OBk11zWXBR8rkynX6YE9WoPa7o2pVCpQpm/YeG X-Received: by 2002:a17:906:31d2:b0:aa6:7df0:b179 with SMTP id a640c23a62f3a-aa6b11b2e63mr218666666b.22.1733914589821; Wed, 11 Dec 2024 02:56:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1733914589; cv=none; d=google.com; s=arc-20240605; b=DDtltZFEPg6yt9uUSGCNDj8hv8OU0Pf5PU8veAxqi/VDRQ6YqDIB5nBfE5R74MS3Hx 7/n/stZcBD3zyl7xMfauvJnFk12mU5cGjw/JoyUAxxAg+An2zC5x9m1ygcKEe3dCq3cR k9SOi8JOQIQhcD7ZD0g0kExcuGkOmzd0zNBaLoAlalw+RQb4QAOm8OStzMIWhro+Wxd2 4f2sYzDBWNE0rIPiZdUsCa8+PtUR/ZrzqycSCckZxYMY2m+1pCUsXqqm90pU07aQxVTT 5Q+po+gt9WweHXjWrtB1SA1GH7sH4s2IMlXcM9x4DV9QNo/mr9fe6ulpjVaeyakokQLI X1YQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=1Pa4i6SSo0ziuImDLfRHe3DBSlYndj2von0Q32AANuI=; fh=fNJvnq8CRwjM8113ImGn/4yNvZ1pnvxrVyTqFjY3QQc=; b=RvyfUfct32kOsY9Rvyrx7CnaZQKlFN4NJdHTUDVl50ALFcxCgMPj2QiB7XGG6Xpl4Z y36w7d3O/61AJbdSxkN8TTTt3+bhIp8Uv9u6aqIMctSQGQEyp7bNXpdxu7fw/s8RwrWk 7bG5GLhn1hMSyXoUqyN7auXbDh/QLqGmjiyvpu8qREIIb0/BDQL3hhniFyJHjYNfz66E Q2GaVSTPP6KUBSZDfobk4k2knMvIuVsgdsRRzLXZbEoBsKeq1UXX2z7mX78yTrjE3DI4 a/OSKXcMyNbr9FihTJwKjNrLFM++EUen1NEx47mYoo5S9kg4qWjr4Ecl9EBG0TEsxtFa rIwg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ruovsQOQ; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id a640c23a62f3a-aa66fce860esi574793566b.267.2024.12.11.02.56.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Dec 2024 02:56:29 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ruovsQOQ; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 03300801FE; Wed, 11 Dec 2024 11:55:43 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="ruovsQOQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C881080241; Wed, 11 Dec 2024 11:55:41 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id CBBEE801BF for ; Wed, 11 Dec 2024 11:55:39 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ilias.apalodimas@linaro.org Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-aa67af4dc60so576662366b.2 for ; Wed, 11 Dec 2024 02:55:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733914539; x=1734519339; darn=lists.denx.de; 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; bh=1Pa4i6SSo0ziuImDLfRHe3DBSlYndj2von0Q32AANuI=; b=ruovsQOQiNJpumVdcdvmcW3SxlLGAbPQyKOLrtLuIij2RLco0+xV4iFUtAdQiGNCM6 4tvGPe6J3ymEmNAMAp2Tgj9BNtSbOKTEHNai22C7QWDl7NGcE4kObBJWXjKE9cH9YC1s X6ZuzBPeX9QFm+mRB4zya7aPMPbpBJ8o/F8HjC/DFxNF5iWM25EMUGSWlF2Q3ntYnY8D 41kZO0RQLRRE7wQVL5IehO/TUclBsQnqC7utTAwBjlVKDgq+Wfux/CIhfVZEpcxQO9kd ln2FuHhUB8xYcQpAJFjtKFFXUQt3y8Cx4s1OZdHrY8WNAVJG6q2KvKaSsSgb0bK0Ks75 9tVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733914539; x=1734519339; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1Pa4i6SSo0ziuImDLfRHe3DBSlYndj2von0Q32AANuI=; b=OyByVo8zxR8tNnkuaZJdR0kMN7IO/G4Wn9utdnEtHoxKVCdWLX9+k9mUE6F1HMPHOW eYGq20zK3gD1DR6wfrMYAMEi/ELNM50YnzqFuM8wOq+dx+ty/iZoXbDF3MngxFuw6No9 sQpJ4np5bvmHfwge12NmWStwLjkv1KtVBbk/kML6ECuQNm3Ibz4KajbHNmpAyOQ9Nhmw 4ZBh130BBi8vtTb9UotmcsW2kb1cI5urOfpBdNFG1lgpeQ+cCaO4JterrsgQx1/p2ltM iDXIyyRmgl0SJ7IW40/wHl+KjlgBTtayq0YL18vBTy/+lCNnSEnn9DFXdWYm+izwl67b lPPw== X-Forwarded-Encrypted: i=1; AJvYcCXBUHvudLT4kjFMYKLmNtsj5roWDQgwzpUZWJqrCfzCvQCY7x2bG27rkIPL7gNOxbcMpWxD4EE=@lists.denx.de X-Gm-Message-State: AOJu0YwnVXajgOy3zbkVLvLPmrZH3hSKoKFI9/EpzI0NcNJgWE4CDKan 9OOxpe0+MyN59t7VAUca6rd4WJq5oJZurAzHI39F1Ayf/HsLX9ZM5GurWymOoeE= X-Gm-Gg: ASbGncu4C+fANeW+BnToZGyJe2PHvCfBoUkqV9SNrwCTCFZnSWK2T1DX9H4oxR5PY3n 0bVI1If3+m8lK5y6ffnccCNvM08BYForE6hrEPrrqs/rQS5kvnKNJi64HeVPwm+a4/SThRhRDaQ StnGQjBKxUS56LtxDerktGFs3+JyVb3O9DC0o5frIJ80ahpNbRaKf79N0fKJdRPrxOAYHbx4kYr ShkHjl95lvxu3N6reNgpYFpObAUyW05L7PIKiwqnXw1o5X1X8rV5rVY3+IaJHPjdJ4Xrq3/a7u1 ZoJ7VTGnE1M/zG3Wl/YYfH5KbGVZLH0= X-Received: by 2002:a17:907:84c2:b0:aa6:824c:4ae5 with SMTP id a640c23a62f3a-aa6b1505cc2mr176234066b.56.1733914539129; Wed, 11 Dec 2024 02:55:39 -0800 (PST) Received: from localhost.localdomain (ppp176092181030.access.hol.gr. [176.92.181.30]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aa67e652b1dsm508006566b.172.2024.12.11.02.55.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Dec 2024 02:55:38 -0800 (PST) From: Ilias Apalodimas To: xypron.glpk@gmx.de, trini@konsulko.com Cc: Ilias Apalodimas , =?utf-8?q?Marek_Beh?= =?utf-8?q?=C3=BAn?= , Simon Glass , Sughosh Ganu , Marek Vasut , Mattijs Korpershoek , Peter Korsgaard , Roman Stratiienko , Laurent Pinchart , Matthias Schiffer , Dario Binacchi , Sean Anderson , Baruch Siach , Nam Cao , AKASHI Takahiro , Sam Protsenko , Janne Grunau , Caleb Connolly , u-boot@lists.denx.de Subject: [PATCH v1 8/8] lmb: Rename _lmb_alloc_addr() to lmb_alloc_addr_flags() Date: Wed, 11 Dec 2024 12:54:49 +0200 Message-ID: <20241211105504.453234-9-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241211105504.453234-1-ilias.apalodimas@linaro.org> References: <20241211105504.453234-1-ilias.apalodimas@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean lmb_alloc_addr_flags() is a wrapper for _lmb_alloc_addr() and it's the only function using it. Rename _lmb_alloc_addr() to lmb_alloc_addr_flags() and remove the wrapper. Signed-off-by: Ilias Apalodimas --- include/lmb.h | 2 +- lib/lmb.c | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/include/lmb.h b/include/lmb.h index d481972a6686..76fb82b197a9 100644 --- a/include/lmb.h +++ b/include/lmb.h @@ -123,7 +123,7 @@ phys_addr_t lmb_alloc_base(phys_size_t size, ulong align, phys_addr_t max_addr, * * Return: Base address on success, 0 on error. */ -phys_addr_t lmb_alloc_addr(phys_addr_t base, phys_size_t size, uint flags); +phys_addr_t lmb_alloc_addr(phys_addr_t base, phys_size_t size, u32 flags); /** * lmb_is_reserved_flags() - Test if address is in reserved region with flag diff --git a/lib/lmb.c b/lib/lmb.c index bdaaa634abd1..7ca44591e1d7 100644 --- a/lib/lmb.c +++ b/lib/lmb.c @@ -748,7 +748,7 @@ phys_addr_t lmb_alloc_base(phys_size_t size, ulong align, phys_addr_t max_addr, return alloc; } -static phys_addr_t _lmb_alloc_addr(phys_addr_t base, phys_size_t size, u32 flags) +phys_addr_t lmb_alloc_addr(phys_addr_t base, phys_size_t size, u32 flags) { long rgn; struct lmb_region *lmb_memory = lmb.available_mem.data; @@ -772,11 +772,6 @@ static phys_addr_t _lmb_alloc_addr(phys_addr_t base, phys_size_t size, u32 flags return 0; } -phys_addr_t lmb_alloc_addr(phys_addr_t base, phys_size_t size, uint flags) -{ - return _lmb_alloc_addr(base, size, flags); -} - /* Return number of bytes from a given address that are free */ phys_size_t lmb_get_free_size(phys_addr_t addr) {