From patchwork Fri Oct 22 11:24:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 516120 Delivered-To: patch@linaro.org Received: by 2002:ac0:bf50:0:0:0:0:0 with SMTP id o16csp960640imj; Fri, 22 Oct 2021 04:23:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw90cX3070jQ5YQiSa8nwM4LnufAH54M7j+1UFqhKq+7H7F9ZG33ZNU/ArLMI5D0r+Feq68 X-Received: by 2002:a17:906:8cd:: with SMTP id o13mr14831981eje.341.1634901819335; Fri, 22 Oct 2021 04:23:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634901819; cv=none; d=google.com; s=arc-20160816; b=aV1zF/olANLnLbzgz4uIO8CuFNM6XSMHydYr4NmUrzqOt2cpxeWSmAEFgfK6V1mkwJ kt9UTRLrP4ZORgz/uRQ/lFXSAnbh939ByMjDafiGDBOhpPnfBfQqMGZMWqCiIDIFUn4s 8aS445WAFFN1cZ3kEGeCcx6FClnOMhOYraAGhy9RC6y8I5DJ+3oVx6BsMXCaDJLZpcNv CmG9oApfITAfQ3oJLZJJbe3Ryor8xezUWyX7AU7uhzblTbKv/iBslEp7WQg4QpwMkHhl UwHWccX5uuQVfmrbPttTA4hydq25QtsgJsJoqKcZLUrQUdmeBHq2hOz6Nz7J8Po0bADF QvHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=Cbsvs9xJRTx33nWylnkHzE03FizAEGP3GMowaxni738=; b=IGHg7Y1V4xpsN+I/eEkjFusumz81Uy1ZE41LDAmhucMaGpOH5o/SpvuSkBuGl1SyMF 3TxyaGMUYZbTDDA8t8qhK4rLxPzTAXlUaWx2geCjxydkIUjKwAAXylMRPPAkK8ielxdD luCXPTcrGlZz/bo/BLjD16D0308D2v1QGtGX+V9/dODUvs3di7TqB9KFVta+4QQUViD5 WoDwV1L4Ie+5nest+8Odi+/Dglgm3IYiz8q8reDZwvUe+GrM6KxRZZRPGbkk/nq6kIyX cyvRR8BD1SrxGxmZOxNQueGRikgqGvmIxuElA0jAf+NGZLY1b8U4/7hsZfxCEOi9ifym quqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NmE+S60w; 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 Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id dp16si18789517ejc.686.2021.10.22.04.23.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Oct 2021 04:23:39 -0700 (PDT) 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=NmE+S60w; 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 Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 711E283508; Fri, 22 Oct 2021 13:23:38 +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="NmE+S60w"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F31E0833AE; Fri, 22 Oct 2021 13:23:25 +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,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) (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 8E9A283499 for ; Fri, 22 Oct 2021 13:23:22 +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=masahisa.kojima@linaro.org Received: by mail-pj1-x102b.google.com with SMTP id o4-20020a17090a3d4400b001a1c8344c3fso3341038pjf.3 for ; Fri, 22 Oct 2021 04:23:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Cbsvs9xJRTx33nWylnkHzE03FizAEGP3GMowaxni738=; b=NmE+S60wGGCI9InGCOI2NDdR9Jf2vBcZYK01o27Uq8/Q2I4UWJgg1aNiphc6k3+b6S 9VmjRAoPkJyx+fIaQn6FCpIZV0t/oCOAvR9y3kTxRI92AGVHUsU3iHTgDu6pQG0U/Yo6 aBwhrVQH7k3RRn6t3d6xs3gtnBSGB4UYGSOJVnN+9SJFOkxZc/W9NIjw316uc9sBd6+Z lZbJxlV7YSdPYMdNlctohfwRIS9DSOESuWBDAqmlgDhJTUZpktvI+9DuwK2b8FV7qSDw 8PFzgxpYeGT1AWhkwSVj/ZpE77y1/1d2k6WbBsTe8zwYBI/XwxYUN7g0UaA8ViJNwsZ5 Q18Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Cbsvs9xJRTx33nWylnkHzE03FizAEGP3GMowaxni738=; b=4ofOdh6ctocAVrLVshE3++ZbvwTBfJnZoVndTLAAHkZb5MdsQJNcp5pJYihJvo2i5x UXCXGvHDxqqdR3W9Yie1giDu06Q4srqSsT86PFyLRWdTdVzADAv0+EcmGVDYoxJ5mVLG G4mRYU6xhadfU+Eu0bpU2ikoLbpwsabN40GO07KkkKAfcP8J7ev3YkkxzZVYPITiv/GN thTn6GMU9V3g6WtkN/6B0Xt+a7ZdrD+eOGwEk5/NoKxkUlFU1/JlG8PFeuEyWMvkFybB ChWzA43DLfFaJ61DJjhRWuS5nI41ZfJWzNMCvRg8/FvtUqUHluyrTrttdQKM/Yt96v4t mzZg== X-Gm-Message-State: AOAM532qXb6k2hq3kIWKBAWjgoqaovVzNKaKz6czc6ZhKkRV485vBk7p 7DL0Viq7EPTT2gkguMLWyUJrHYqVGIUo2g== X-Received: by 2002:a17:90a:ba09:: with SMTP id s9mr14012827pjr.42.1634901800914; Fri, 22 Oct 2021 04:23:20 -0700 (PDT) Received: from localhost.localdomain ([2400:2411:502:a100:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id m4sm1701908pjl.11.2021.10.22.04.23.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Oct 2021 04:23:20 -0700 (PDT) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Masahisa Kojima , Alexander Graf Subject: [PATCH 1/2] efi_loader: add missing const qualifier Date: Fri, 22 Oct 2021 20:24:24 +0900 Message-Id: <20211022112426.25009-2-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211022112426.25009-1-masahisa.kojima@linaro.org> References: <20211022112426.25009-1-masahisa.kojima@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean This commit fixes the following compilation warning of boottime->install_configuration_table() function. --- lib/efi_selftest/efi_selftest_tcg2.c:475:46: warning: passing argument 1 of ‘boottime->install_configuration_table’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] ret = boottime->install_configuration_table(&smbios_guid, dmi); --- Signed-off-by: Masahisa Kojima --- include/efi_api.h | 2 +- lib/efi_loader/efi_boottime.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) -- 2.17.1 Reviewed-by: Heinrich Schuchardt Reviewed-by: Ilias Apalodimas diff --git a/include/efi_api.h b/include/efi_api.h index c8f959bb72..0accad08c8 100644 --- a/include/efi_api.h +++ b/include/efi_api.h @@ -120,7 +120,7 @@ struct efi_boot_services { struct efi_device_path **device_path, efi_handle_t *device); efi_status_t (EFIAPI *install_configuration_table)( - efi_guid_t *guid, void *table); + const efi_guid_t *guid, void *table); efi_status_t (EFIAPI *load_image)(bool boot_policiy, efi_handle_t parent_image, diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index bf5661e1ee..1823990d9b 100644 --- a/lib/efi_loader/efi_boottime.c +++ b/lib/efi_loader/efi_boottime.c @@ -1692,8 +1692,9 @@ out: * * Return: status code */ -static efi_status_t EFIAPI efi_install_configuration_table_ext(efi_guid_t *guid, - void *table) +static efi_status_t +EFIAPI efi_install_configuration_table_ext(const efi_guid_t *guid, + void *table) { EFI_ENTRY("%pUl, %p", guid, table); return EFI_EXIT(efi_install_configuration_table(guid, table));