From patchwork Sat Oct 26 07:57:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 838770 Delivered-To: patch@linaro.org Received: by 2002:adf:e287:0:b0:37d:45d0:187 with SMTP id v7csp675717wri; Sat, 26 Oct 2024 00:58:02 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUnBlEcenvhyzlRuhtdrHCCC6M9/wNYKhVAaevqm9FNvwCsjmjEMYKRl4QHWeL7x1VQ5T/90g==@linaro.org X-Google-Smtp-Source: AGHT+IGswzi8qFbxVIWu3K+2zGvyCfsAlzGAezbbKe48PCofH2gbKdPrjmEdYXTVLB3vYC7NcM0q X-Received: by 2002:a05:651c:221e:b0:2fb:3df8:6a8c with SMTP id 38308e7fff4ca-2fcbdfc705emr13506331fa.23.1729929482662; Sat, 26 Oct 2024 00:58:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1729929482; cv=none; d=google.com; s=arc-20240605; b=eqCfFOFOGdkitpF/dqZtj+DWe9m3Xq1kUzhwlGtXb9Cff3A/3i/tdlfCUmHkOTD1ET iDY18N9T82E96rCNDQ4nf3m/jLzgNxteb2/xRVdyPl2/qvmjdGaXpQZpTd3Y8FflAfYJ iQNACS2er4dLOz6fXoQsg9FtlHvoFtQqGmWIeFV4t7MjF6sK6MCrVCqoISjaGrgXAiHd XTHpNVGX57h0wJ+MFX0iJUyiiKQYkwT5bJc2PteIShCg51fwd0AUYSnIwy8uL/1bZqPa MGgY7uBwsgFWtPP0nRrGpHW67+OiHyq3XnzFx1XlBB/pBQwqK8LCRiNyQqIznzn//A3J wGTA== 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=+XARH5HSpG7w/stzXhdcMBKtYiFLu0MlOS9eE4iLoro=; fh=sfsdvrZMuLqBH3q30VVR15G/qZ26DGZHF1AQJIj6B/Y=; b=Gmez6/qUg6R0tmkUD3ZGOj1mYxa7hx35SJ8Oe1pY8EpCOZDx3aOMldW1Zc5YfZxBCn 2K1UR9aATPr9Qdn49dzuA5QELdA0pPI3Il16Qv1iFZoRe2RB0yyOhdL9IjeGW9VJ4BsV btcJf+mpaWWJL0Pu9fXApHDAJ/pzPyQqc9JaFCkr9v0hAARFhbf9Av0Q5jRihKOupoFG l/zRKnI4LC/7ROHG8rwJUsI+J5SXF927Wlc5tt9w9/N8KnXaj3oQr6m75DcE/ptNy499 WDvagAle9EGU78Ud7tyjS30rwxpHj8VE/yxRKdfQ+C+fAPA/dTEOTH7Rk90FynS/3viz qtpA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UiXbF0Ds; 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-2fcb451d753si8291841fa.133.2024.10.26.00.58.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Oct 2024 00:58:02 -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=UiXbF0Ds; 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 68B2488DF1; Sat, 26 Oct 2024 09:58:01 +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="UiXbF0Ds"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 991B988DF1; Sat, 26 Oct 2024 09:57:59 +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-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) (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 B1EFC88D13 for ; Sat, 26 Oct 2024 09:57:50 +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-x533.google.com with SMTP id 4fb4d7f45d1cf-5c957d8bce2so1391798a12.2 for ; Sat, 26 Oct 2024 00:57:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729929470; x=1730534270; 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=+XARH5HSpG7w/stzXhdcMBKtYiFLu0MlOS9eE4iLoro=; b=UiXbF0Ds4yWFO2gbGtLS4LgiKZIS9X4W52tXTciqlgCIkX1sJafK60fDvDWrMEYGI8 G6Wk3m3eGjK6ccVBkOncc31T9WUaup86HcmfOaD0789rJKn8OueqBwBm2u7RIxrXKVx7 CV4Xnjc4eO/9qJq6IodiDN5ePSfNLkFsKPqU38zG8hMB/dele36yNwhJiEPAcB1Ejb7e cvLZs646Q3rB4aD/Gq4v5hlnl5jTMERj/W9bcyvn1Y6j1Mnvw0uX3QEINp6ex5hJTnuJ 3ccZjMwmhlRMPKeF1YH2Cfs0ze4HGkfrh4MwSa8Yb/+bCpNE/3E1TctsRmPcHO6y2maB FRyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729929470; x=1730534270; 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=+XARH5HSpG7w/stzXhdcMBKtYiFLu0MlOS9eE4iLoro=; b=GEkA7sGpWj8F5c8k/zEZKNE1cfDPxsYGEhIesGWRHHt4SyDLzqnQTMWInMcMsAY3hF VCPAFFcCXpe6jEfbt43s1z40ioYD4O0VqdVp7bFkWvCBo7UTnY3eJOJO+iZ49bShDNkl DpLtyadtzEHDQn3HnVF3yU49aR5Mn0y5JjExS7aRK8ff5hkjE5bjtVwfwg5WWAIiNy2u kjt1GaDvFmEjmvGXbb8LbpJlN6yNnyN2puq9D7FQPOczcFIGr4l1mgotVk4yZjqz7o0T Ek61wOSS130VBAg1iMYT1wfE+O/cSNoR9gZnOuxh1XdZeLJiKafYGLzDThHB20oIEShI ZYkA== X-Forwarded-Encrypted: i=1; AJvYcCWRSvAgL2GK0WDtmSXr19ZU0hU6ypaRroU837ju+ej2MofV/7unJfS+Krmh8Pb9oftYAaU1+Yw=@lists.denx.de X-Gm-Message-State: AOJu0YwVUnIVUHr4TJQ6QRbH+pgQmugapT/CvdPNkwkZeHnDbJ0Tn8qY ibOAWzYD6m6IN4tg2o/G7lRgzl2k7UbQQz34GQYwD2CrgfqZ3ZUSNeREHeOBW5c= X-Received: by 2002:a05:6402:1e93:b0:5c9:40f5:1518 with SMTP id 4fb4d7f45d1cf-5cbbfafd4d9mr1718682a12.35.1729929470032; Sat, 26 Oct 2024 00:57:50 -0700 (PDT) Received: from hades.. (ppp176092143132.access.hol.gr. [176.92.143.132]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9b31bc028asm151475066b.177.2024.10.26.00.57.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Oct 2024 00:57:48 -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 functions in smbiosdump Date: Sat, 26 Oct 2024 10:57:41 +0300 Message-ID: <20241026075745.117832-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 Mark functions that are only used locally as static and quiesce W=1 warnings Signed-off-by: Ilias Apalodimas Reviewed-by: Heinrich Schuchardt --- lib/efi_loader/smbiosdump.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/efi_loader/smbiosdump.c b/lib/efi_loader/smbiosdump.c index 2f0b91a353d1..d7f2ba30a954 100644 --- a/lib/efi_loader/smbiosdump.c +++ b/lib/efi_loader/smbiosdump.c @@ -289,7 +289,7 @@ static void *get_config_table(const efi_guid_t *guid) * @len: length of buffer * Return: checksum */ -u8 checksum(void *buf, int len) +static u8 checksum(void *buf, int len) { u8 ret = 0; @@ -304,7 +304,7 @@ u8 checksum(void *buf, int len) * * Return: status code */ -efi_status_t do_check(void) +static efi_status_t do_check(void) { struct smbios3_entry *smbios3_anchor; void *table, *table_end; @@ -401,7 +401,7 @@ efi_status_t do_check(void) * @buf: buffer to write * @size: size of the buffer */ -efi_status_t save_file(u16 *filename, void *buf, efi_uintn_t size) +static efi_status_t save_file(u16 *filename, void *buf, efi_uintn_t size) { efi_uintn_t ret; struct efi_simple_file_system_protocol *file_system;