From patchwork Wed Dec 18 07:02:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 851670 Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp768803wrq; Tue, 17 Dec 2024 23:04:14 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXEm8BH2Cb3+naQ9ecnY0o6OWcOZS2mqy+T0jiCJpYkO872zH5600U/OsqdUZ0vtlEjTqzZ4A==@linaro.org X-Google-Smtp-Source: AGHT+IF7tyRekQFKcsFgq0abBaLkvCK00eGAoZNkzdUADxWVVmJU77CFD8UPIT5HpEJ/Pt0WncvH X-Received: by 2002:a17:907:25c5:b0:aa6:aa8e:c89c with SMTP id a640c23a62f3a-aabf48d51c3mr111406366b.39.1734505454366; Tue, 17 Dec 2024 23:04:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734505454; cv=none; d=google.com; s=arc-20240605; b=TaAi9pqrBEKp55n2UbTOXVkfxeiIPRww1wbdOt3MGa21Z3gCpb39GsmLAWfSN/pMa9 ikTLOBqFZw5NVqZs+l35Qaxb2aLfoCNGfUfyoOI4rgGq40A4vn/jL1Ho+pALwaIMsS5y gSwSqUDmkMCezxPXqF6DO3hYWbllKyJ5XSbEsJsgztirSnPl1NmdRSFpW5eyjVSeuQuS GyKAeAlHbcwxseCBIP47dH9BpVB2109jmWyJnKinWfH0ALNz9wiNFq/HdqdN+TZc5YGo cW66PXGQ5YxJk2BjxOgPMlC2FnO4wbykAkNknqGfgcQ0V+C4ne+vqAYkXGEHmK8htc/r sTTg== 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=VHjfhKSufUxe6H0UxS/zV+U31aw3+THDEM8QQrvPjqk=; fh=4/hSQE5fA7NzGEMLXVaHOE2854SmMLJ1iT1qC5+XCaw=; b=GHhiysIhRHzHDU3j5vgNlWwui+J6p2QaKNhN3bdfoi5G3Q5xnkFvUgg06a5gzZYX2w 0NV+jCaBlNou7146TDJhvraFwf6w11aZduKd0YHFMBejsa/cSMUOode2qkZGZ0QynOoI QTCvdDWv/LwiKnAYL7yFqXl2jkDJH9NQEC9clYJPMJsbj4SDrxGHNcDav93t2qX/SMxY lowgOia4qG4+0rDiGmh5ynLFiXRcBKsjPz1Hfg+t+aJxhJPCouq0mnEfkIF/5Q+avkmp AhrqHtUJrxCXuqbGECfpD//RV/LJ8bPk3K2kKYQGyl0pKc0YEN+40vDewaVItRE6Gk6i hDKw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lvVyOe2w; 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-aabc6a539bdsi334416566b.892.2024.12.17.23.04.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Dec 2024 23:04:14 -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=lvVyOe2w; 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 4FF438021A; Wed, 18 Dec 2024 08:03:32 +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="lvVyOe2w"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F1CE38021A; Wed, 18 Dec 2024 08:03:30 +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-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) (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 F257D80243 for ; Wed, 18 Dec 2024 08:03:28 +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-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-435f8f29f8aso43998275e9.2 for ; Tue, 17 Dec 2024 23:03:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734505408; x=1735110208; 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=VHjfhKSufUxe6H0UxS/zV+U31aw3+THDEM8QQrvPjqk=; b=lvVyOe2w0L/z2lG9FSQ9dcjebFuoPPFaLCfMWcphLAtFMfmYMnZwp5k+eNxlG4T56R eGRiVYntn66xEWmKqKZT+b4/hFakiPuhhX6O0kiX0cTizlkE1+WoIF1V9fi+gmaVOhUz ccB8BCaxUbrHj/Zt6zOV4tVnOiybdMj3KfNOXxQ7cgyH4C+ubY3CjTqyeXWhA+Eutt1X sYUCwJhv9f+29azziW5haMJC4xJWrGGeXus457f41qQpZoIyEzjFOLAi/D5WaARZF70A mhF7/qdfnXEF69c6SKLtXzoA7v7Fu18cbBtYE/2wuWCvCtXgtpH/ZugN8Xw9PYelnV56 jqeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734505408; x=1735110208; 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=VHjfhKSufUxe6H0UxS/zV+U31aw3+THDEM8QQrvPjqk=; b=tQwBEQN6grY58GDjaFyBQ9yIRASfGvCWGn44lL1qfs52BWaMR27OuCL+gB7UTGArhL Kmr3cFYZhO3W9DNUtdbQNIGE+tO7BMYfOZ/OPgjUtSRXwOy1OAMBTHSWpo6udZAbx/iH 5I2m86XnYoTm4QuVz9uxUPBnvLjD44IFOvOYLBT5TTmERIMIC9aaI8EStgWFJpvTMlnl pz3y3jAeDWM9GmPEKKOcEm8ZkX/O3ZZxOSwT0KqsYMRTqmtnJeLC0tBlcuhUt2+Sc/w4 b71tttfxOgPLMX/vkaDTEDcCK7tQJeNCqsQyQT8HHjVLAEge9QdCfRRaYSLbmXVgltQT PXZA== X-Forwarded-Encrypted: i=1; AJvYcCUyo9SgEmRcpr2f6Q52cymsSNI901/bCsjAHQWwEZMpvzxibO2R8qzjLF1qEXBFqtyyHTHnvU4=@lists.denx.de X-Gm-Message-State: AOJu0YyBU8Yxrua0Q0BOYdpC7MutTLIINbFq7FLq+JHDj6GqS46cusFY dZKg7u3cOT/epRIEQPTcQq1Y5tgJOvtulqW/4QRzT73Ct9c7/oYeYNpQRJIZKXY= X-Gm-Gg: ASbGncsd3n0FSjHN4Xy3f5/IoUVDHHkbF6hQreyx2jSY9bX4iL/V5gw1XAUmTZ8YhlN UtRTFT5XG13sParM/ubx5JhRqxIXoxFA3cI546zwyyVNcAvM06N2Ne1kKdPHwQ1B8rmB1tu1bba G6w6FE1ZvKRHe1+dpzolw0H8r6bkq8/CGJHwO3ZKs3/B8WUdjJb4BIZ0BCkPdUFpFgxhVQ354qd 7NAicEWo1VoNjPmcjyKbLos1RwL+X/AL4PCHDLh5iBu+paDw6ZkGf+hNkPJNm+hkv0mO3NYKBW/ JN+ciMhi+uWnBD6WphQNUKxH7ZKPgGgc0w== X-Received: by 2002:a5d:6c63:0:b0:385:d7f9:f166 with SMTP id ffacd0b85a97d-388e4d424a7mr1428060f8f.17.1734505408269; Tue, 17 Dec 2024 23:03:28 -0800 (PST) Received: from localhost.localdomain (ppp176092181030.access.hol.gr. [176.92.181.30]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-388c8060592sm12971612f8f.98.2024.12.17.23.03.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Dec 2024 23:03:27 -0800 (PST) From: Ilias Apalodimas To: xypron.glpk@gmx.de, trini@konsulko.com Cc: Ilias Apalodimas , Sam Protsenko , =?utf-8?q?Marek_Beh=C3=BAn?= , Marek Vasut , Simon Glass , Sughosh Ganu , Mattijs Korpershoek , Michael Walle , Peter Korsgaard , Roman Stratiienko , Laurent Pinchart , Matthias Schiffer , Dario Binacchi , AKASHI Takahiro , Nam Cao , Janne Grunau , Prasad Kummari , Caleb Connolly , u-boot@lists.denx.de Subject: [PATCH v2 8/8] lmb: Rename _lmb_alloc_addr() to lmb_alloc_addr_flags() Date: Wed, 18 Dec 2024 09:02:37 +0200 Message-ID: <20241218070251.686383-9-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241218070251.686383-1-ilias.apalodimas@linaro.org> References: <20241218070251.686383-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. Reviewed-by: Sam Protsenko Tested-by: Sam Protsenko 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 a0e666a1f7c3..d9d7435a431e 100644 --- a/include/lmb.h +++ b/include/lmb.h @@ -125,7 +125,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) {