From patchwork Thu Nov 2 06:44:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 740431 Delivered-To: patch@linaro.org Received: by 2002:a5d:538f:0:b0:32d:baff:b0ca with SMTP id d15csp672586wrv; Wed, 1 Nov 2023 23:47:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG8J99EuaGd9NgUpKEBqIofP4AdAO1ul1dXz1OQ+EFqkTSjwbI4uGWBUwPW/FKStZDfGHNq X-Received: by 2002:a05:6000:1882:b0:32f:7f78:e29c with SMTP id a2-20020a056000188200b0032f7f78e29cmr11021758wri.38.1698907671101; Wed, 01 Nov 2023 23:47:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698907671; cv=none; d=google.com; s=arc-20160816; b=EPhUC8k3RMMuH49dwCfi69ladUmWAgpCN/Qdi8RnOd8AmzNZvLgsjfxEBCP3uMQK2w x1NDh2nhr3iK9tPRQ3D8BoxgXExdSTfOZxjUZAiyWBUIpklwuO3ZBsVM9Onqlq1Rns+7 3YkRiYOMTtAkL9u3CUUBCIk4Vr8XHRZ0dAR1KYdPa5s9k11c/wTra5owbNDzEKNgB0dz /+XPNduHFcl/MjWjwqmEHaWQFk1dxPJGi6wYaP99/CKkxVzit1bu8SN6Y3Ukrs9LzhJ2 eJL5sy0KJF7xWkjyWUegj3kTV5aT6kSrj31QUxZNvycWnKD1QqEAXvZvcOR+qKbIagIl 9Hlg== 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=YJblxL503HrvYGakGMsGmRKvit2ltsCs9InMyBUP3XE=; fh=I7E+BwgHMByijVVN/pPHsLSpz7oP4y4e73noHEekrEE=; b=fIeG92BtVDc/f9PkhF3GL6eB7dS49Mttar8stVAC6Rahz0ZW1AVFVqrJhGeWieFRgi qVA831Ds6HRzqNlEOI62Oa+WHaZj7jhSdRl9SYSHhgxEz5doxFRiQkxF/cbxyPSF3XEL XAW36i8oFu12Uc/1cptxYmHT9KLd1jE/Seo/mhiEb+w881Et113aelUxyV2DSwLtFL/6 BwnuXNkVnqtLA2WArkwdo7ebS+LMiJ6pFOawGr3mQ9dInSFgGM94LDW5bqKVPh2EP4jH dhrOsZIaRuLnlZ5MJgPrM0AvtNEqkUdmOs5c0ETDJ37JirA51/Mgc0h+DIZvNLh/Ch3l yJwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="m99/jeRv"; 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 n15-20020a056000170f00b0032dba75e2dasi1072988wrc.436.2023.11.01.23.47.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 23:47:51 -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="m99/jeRv"; 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 98F9B87253; Thu, 2 Nov 2023 07:46:40 +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="m99/jeRv"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CD84786E88; Thu, 2 Nov 2023 07:46:39 +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,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) (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 CE95D87703 for ; Thu, 2 Nov 2023 07:46:34 +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=masahisa.kojima@linaro.org Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1cc5fa0e4d5so5276095ad.0 for ; Wed, 01 Nov 2023 23:46:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698907592; x=1699512392; 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=YJblxL503HrvYGakGMsGmRKvit2ltsCs9InMyBUP3XE=; b=m99/jeRvdAKBEp4IS/lTWcWeNxfYZD3zXU5egclx1h2ELttw579bLLc+VvDnT3G57F l6qeIZdhkTKt05lCWPTy/PJYUktA4pdfDPmLaBoergs+UFNLnB1JwQOH7O3UnxYt8Vhx eNAWJLhfR3oZZkAYC+obYI+OMdtSiVQPCGxaG1UKIdRkwkRsraxUoNqVFwUumeumz7OL DpLGn7soV5ZgG5cTSWNSntvUYOsr31Jah2A4B8HbDP1WMsA0ya+NL1W1sMWZIp/iCgi4 8+G50sVb1A+Vcei4tYosYFdlc+TScuEUdO+bKYBfgqffr54AEuiKiitahEGGHuWKHMEF L8dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698907592; x=1699512392; 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=YJblxL503HrvYGakGMsGmRKvit2ltsCs9InMyBUP3XE=; b=obtMNAiFNVs1/yKPV7hokPQHYUsGnW8/J1uUZeKzwo+t+b5lLUsluSq3ECO26LVyu+ 2qRU5yN/XzfeNB7X3CAjrA1py7F6uQd42dYR3nRxuNy+6oOJp/bDMWWRuEBpRReGBzg/ LH4TqKNCvoxTIlfUxjkgsGjK/GtWq+Qk1hueikCvSzSFf1xYuApidbgWzkGC79snmTfg CEUVzsikbNBRqHrWRp6dYSqmL0tjXWyRrLV1ajtwFgwUYBYfpbD/EbRX/gtjUL57Votw 3E6rnwELF+1HiATT4LrZ1w0vxOKu8aQjZlthrAJZP0jbMRvhC3t9jfxv5gUKpM+zaF4I xmbg== X-Gm-Message-State: AOJu0Yx5BjwGQVTAvRKTGiHQ7Et0eAyavpydvwJP2xuHpGDFLRzgxC6j WgS4I344dUX8ByPxiPquJhxxmfuvBMqT/t+yq5U= X-Received: by 2002:a17:903:2346:b0:1cc:449b:41e2 with SMTP id c6-20020a170903234600b001cc449b41e2mr15777009plh.23.1698907592572; Wed, 01 Nov 2023 23:46:32 -0700 (PDT) Received: from localhost ([164.70.16.189]) by smtp.gmail.com with ESMTPSA id z18-20020a170902ee1200b001cc2bc10510sm2328349plb.128.2023.11.01.23.46.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 23:46:31 -0700 (PDT) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Takahiro Akashi , Michal Simek , Masahisa Kojima Subject: [PATCH v9 5/9] efi_loader: add missing const classifier for event service Date: Thu, 2 Nov 2023 15:44:55 +0900 Message-Id: <20231102064459.3466953-6-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231102064459.3466953-1-masahisa.kojima@linaro.org> References: <20231102064459.3466953-1-masahisa.kojima@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 const classifier is missing in EventGroup parameter of CreateEventEx(). Fix it to remove the compiler warning. NotifyContext parameter of CreateEventEx() is also defined with const in UEFI specification, but NotifyContext parameter of CreateEvent() is defined without const. Since current implementation calls the common efi_create_event() function from both CreateEventEx() and CreateEvent() services, NotifyContext parameter leaves as is. Signed-off-by: Masahisa Kojima Reviewed-by: Ilias Apalodimas --- include/efi_api.h | 2 +- include/efi_loader.h | 2 +- lib/efi_loader/efi_boottime.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/efi_api.h b/include/efi_api.h index 8f5ef5f680..c2d6964467 100644 --- a/include/efi_api.h +++ b/include/efi_api.h @@ -192,7 +192,7 @@ struct efi_boot_services { struct efi_event *event, void *context), void *notify_context, - efi_guid_t *event_group, + const efi_guid_t *event_group, struct efi_event **event); }; diff --git a/include/efi_loader.h b/include/efi_loader.h index e24410505f..e164e6067d 100644 --- a/include/efi_loader.h +++ b/include/efi_loader.h @@ -685,7 +685,7 @@ efi_status_t efi_create_event(uint32_t type, efi_uintn_t notify_tpl, void (EFIAPI *notify_function) ( struct efi_event *event, void *context), - void *notify_context, efi_guid_t *group, + void *notify_context, const efi_guid_t *group, struct efi_event **event); /* Call this to set a timer */ efi_status_t efi_set_timer(struct efi_event *event, enum efi_timer_delay type, diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index 0b7579cb5a..f9b10a9763 100644 --- a/lib/efi_loader/efi_boottime.c +++ b/lib/efi_loader/efi_boottime.c @@ -712,7 +712,7 @@ efi_status_t efi_create_event(uint32_t type, efi_uintn_t notify_tpl, void (EFIAPI *notify_function) ( struct efi_event *event, void *context), - void *notify_context, efi_guid_t *group, + void *notify_context, const efi_guid_t *group, struct efi_event **event) { struct efi_event *evt; @@ -790,7 +790,7 @@ efi_status_t EFIAPI efi_create_event_ex(uint32_t type, efi_uintn_t notify_tpl, struct efi_event *event, void *context), void *notify_context, - efi_guid_t *event_group, + const efi_guid_t *event_group, struct efi_event **event) { efi_status_t ret;