From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 810F1C433F5 for ; Fri, 22 Oct 2021 11:23:40 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EBFE960F4F for ; Fri, 22 Oct 2021 11:23:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org EBFE960F4F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de 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) 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-Google-Smtp-Source: ABdhPJxjVqSq/10qKPIKkgcpVN5NpOH/oUEbTSp+gwwo20kVt0dMSEdUxyGrbilevwGXdA21Z+/ekw== 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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(-) 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)); -- 2.17.1