From patchwork Sat Oct 26 07:43:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 838769 Delivered-To: patch@linaro.org Received: by 2002:adf:e287:0:b0:37d:45d0:187 with SMTP id v7csp672838wri; Sat, 26 Oct 2024 00:43:34 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXfzwVOy3OeJ+IajlZ4Fh2qSpP1e7nd5eAmMRkYB9xxgDemFq3gzcxCQRv8DXfPdNwVU9ZXxQ==@linaro.org X-Google-Smtp-Source: AGHT+IFkVI+IiMyvRXrjJPsaroPGqF8C0/53FwE2du6IIwWptXD25/VL46fg5JQ7u+ShFkMiRZ17 X-Received: by 2002:a05:651c:19a1:b0:2fb:5138:a615 with SMTP id 38308e7fff4ca-2fcbddfcba6mr7673381fa.0.1729928614474; Sat, 26 Oct 2024 00:43:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1729928614; cv=none; d=google.com; s=arc-20240605; b=QgDcBw5HP2rdKIhhAlvQK9/VIQ/srLC3+hUuKtZNjOPd6f1WhbOdMxuYnVDE+g7Jt4 uz/YJb7JOOAiGwl+vlzaCfcD8WJLnN0kLFTtAhE15G3hsMk52tWrwt7qRx50nq7xtUCe d4hWD6M203xZDqURqJfAELFB1AvldAONlWyOsn+Ul68rgQeDFFZKJp8bkK9b6Zv+Gwbe Uc8CSkuhbOViqTXr7DQ9c6dNa4bO3sMwjP6bSdVVmiXfGKTfBvWy2V4tlCWRfQSAhV/3 d8l5Z2XpjKCnuvIj3qgW5Lb8OApu3s2LHfVgdMv0BCqFVxTnDENVqMarjdJ9mf+7IELF 1O0A== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=M2mX5yHrySGNk/MyJQVqe6B8uryeYJ5+i6kQkedDtNg=; fh=LTNSihWVfFF9AOZ/m+9ykMgwXiApOKb1RbpRjZfAkCM=; b=CmdK3kn/6zJ5y1nDITZyZSZ+sjLQOn9gs0QTMsNBlH3w/h3Krrc3Fbt8MQ+UrlPYOY ybG7hSbQrb5voxnc1Ph9wBySdzFTuVKH2bT+UpUTJJH+uRoQSAyBAPyxlQpgnjHY6Ule nIM4+Lb+reZzDIUeh24yesKhCtqhFthi6Qr70/QoDdHXHzzErRc30y1sgjZ1upBV8iE7 RBxObhGsJQOktSYOp2zKcSMGEGmbtcG9dkCZCNn1s9YywnHuEkYwzeg9J1i/w5AqrgF3 qD2VwhtJ3DRlykXg2PXmbbckr/M/jfkLLmtq/RypR1AZDXrpzXPUBRJbOS9GJKGZs9yn 0PZw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Mrzc2pFG; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id 38308e7fff4ca-2fcb450a741si8580631fa.29.2024.10.26.00.43.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Oct 2024 00:43:34 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Mrzc2pFG; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 5B3B888DEE; Sat, 26 Oct 2024 09:43:33 +0200 (CEST) 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="Mrzc2pFG"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3AE9688DF1; Sat, 26 Oct 2024 09:43:32 +0200 (CEST) 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-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) (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 42F62889ED for ; Sat, 26 Oct 2024 09:43:25 +0200 (CEST) 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-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-5c97c7852e8so3833269a12.1 for ; Sat, 26 Oct 2024 00:43:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729928605; x=1730533405; darn=lists.denx.de; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=M2mX5yHrySGNk/MyJQVqe6B8uryeYJ5+i6kQkedDtNg=; b=Mrzc2pFGTC0FpjwOtJyp2e2lVHwyoipMUlXALOkhbP5L69qjJhgQWzC+PqOtuNaNuc 0xz9uMZxY/gx+yGxG3pH4YyYEyyYw+KVpmLT59nrdSNenYQdDwI/6BtNdKqi5jFtY22l dyNxL3DflKJpWv6THxvcr6fCI9PFWabS15RlwgkHMWNRPAeE0h7Dd1YPPC6VROXdLjwb ol7unouKxrHBQiuZgD0mRt5P1r0x4NQlyI6vf3FSXjiLS/ZQxc+JFVp/jTgdREdDCumd HP8s6kLaWhY8M9oD8buXzZeErZiCaZzE4Bhg0Oidsw8ISG5FCiWlY+EtANDO4dXmw/Y0 iCxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729928605; x=1730533405; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=M2mX5yHrySGNk/MyJQVqe6B8uryeYJ5+i6kQkedDtNg=; b=rPR98LlYnVgaMlN2MRwLem6cOqpimHzac/aPo8Wb0DNHyVBJMVMI4AZMeHY1rEBCLU 4ojkoP5ieD5gthDQm23+voZu1MTGC18kj3FSoRgQFj2ht8n9eeTk22KWhbx7HoA4TzU0 RSWmFTiQi405wQNZQO+JPU7ogh0GhpC6Jy4qlfrQ/CYOciS7r1dryeGHWPLxU9/uYmpj HhLBwrDZ+tzmp33SCgXlwxitK0F8NRGDmcvPKosIR8FWEfMkT/l6/AKYsROXwj+Z2Z3Z DTx67+ZsEPA+goDfMR5LBiz3h2jwqw0p4DJy/zntqclhmULojGzXSMK1z2wRrJsR9hWN EdsA== X-Forwarded-Encrypted: i=1; AJvYcCUPtAXT7ymRpQ5cVVwCSr24JnD78vLSBnDX6qlLe2zKsTs/x10KIYmIKCQM073FXipSajjmTD8=@lists.denx.de X-Gm-Message-State: AOJu0Yz9LKerWE5gaMZu2w8UrNNadlVPIYEfr5qvwPO9UJWDyRS/0v7Y SKcVoNVCOXEI1zvel0ZfGKZJh/9KrXNMMjl7T5dP3MeEb7UajpX4nDqplNz/zKg= X-Received: by 2002:a17:907:9726:b0:a9a:4a1f:c97d with SMTP id a640c23a62f3a-a9de5c9db6cmr145697966b.7.1729928604542; Sat, 26 Oct 2024 00:43:24 -0700 (PDT) Received: from hades.. (ppp176092143132.access.hol.gr. [176.92.143.132]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5cbb631a258sm1328128a12.78.2024.10.26.00.43.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Oct 2024 00:43:22 -0700 (PDT) From: Ilias Apalodimas To: xypron.glpk@gmx.de Cc: Ilias Apalodimas , Tom Rini , Simon Glass , u-boot@lists.denx.de Subject: [PATCH] efi_loader: Mark static function in dumpdtb Date: Sat, 26 Oct 2024 10:43:17 +0300 Message-ID: <20241026074319.110292-1-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.43.0 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 A few functions are only used locally but miss the 'static' keyword. Add it and quiesce W=1 build wanrings Signed-off-by: Ilias Apalodimas --- lib/efi_loader/dtbdump.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/efi_loader/dtbdump.c b/lib/efi_loader/dtbdump.c index 9f1d8fb82cb0..a3d59a2fd3be 100644 --- a/lib/efi_loader/dtbdump.c +++ b/lib/efi_loader/dtbdump.c @@ -225,7 +225,7 @@ static u32 f2h(fdt32_t val) * @systable: system table * Return: device tree or NULL */ -void *get_dtb(struct efi_system_table *systable) +static void *get_dtb(struct efi_system_table *systable) { void *dtb = NULL; efi_uintn_t i; @@ -246,7 +246,7 @@ void *get_dtb(struct efi_system_table *systable) * @pos: UTF-16 string * Return: pointer to first non-whitespace */ -u16 *skip_whitespace(u16 *pos) +static u16 *skip_whitespace(u16 *pos) { for (; *pos && *pos <= 0x20; ++pos) ; @@ -260,7 +260,7 @@ u16 *skip_whitespace(u16 *pos) * @keyword: keyword to be searched * Return: true fi @string starts with the keyword */ -bool starts_with(u16 *string, u16 *keyword) +static bool starts_with(u16 *string, u16 *keyword) { for (; *keyword; ++string, ++keyword) { if (*string != *keyword) @@ -272,7 +272,7 @@ bool starts_with(u16 *string, u16 *keyword) /** * do_help() - print help */ -void do_help(void) +static void do_help(void) { error(u"dump - print device-tree\r\n"); error(u"load - load device-tree from file\r\n"); @@ -332,7 +332,7 @@ open_file_system(struct efi_simple_file_system_protocol **file_system) * @filename: file name * Return: status code */ -efi_status_t do_load(u16 *filename) +static efi_status_t do_load(u16 *filename) { struct efi_dt_fixup_protocol *dt_fixup_prot; struct efi_simple_file_system_protocol *file_system; @@ -469,7 +469,7 @@ out: * @filename: file name * Return: status code */ -efi_status_t do_save(u16 *filename) +static efi_status_t do_save(u16 *filename) { struct efi_simple_file_system_protocol *file_system; efi_uintn_t dtb_size;