From patchwork Mon Nov 6 11:39:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 741375 Delivered-To: patch@linaro.org Received: by 2002:adf:fd90:0:b0:32d:baff:b0ca with SMTP id d16csp1036207wrr; Mon, 6 Nov 2023 03:42:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IGK3FdmZWKz3bmrCgOmCtiHrMRpLFbSrRut6BJfpwe6UCHUEJws+LsyMMr184bNkyuA9WaG X-Received: by 2002:aa7:c68f:0:b0:53d:b59c:8f91 with SMTP id n15-20020aa7c68f000000b0053db59c8f91mr23515957edq.27.1699270934688; Mon, 06 Nov 2023 03:42:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699270934; cv=none; d=google.com; s=arc-20160816; b=DM72/5IBtMrrKlcsQqg3KhzdYR72ZUA04bZxUMqlvfVTfuUbwzZwYkGJ8nBHFJVC+7 BJAtSTtyDZB6Wy31zLWg+C+WaHytOgJxb0NUa483D+7g3OpS3FCJAaQRRANRfahoU3HQ a9lCd+EEBX2IiK7WOL+BR13n9BUZGrQBXTqD7a+sWWd0c504JVEbQy2Dcj68ATPS7/4S L2laovmc36UqPxO0Nm4OsGKcJhb9BD0aY1DgjulL3Lv0VOOLF6uUzkhvA1oewZIzxdvP RhUK2tW9SFWNx+Az9f5aub907Qq9vcb9mrlOlHOeGVJnz1HYhRPvDlJPEVsR9DpWLGW5 QM/A== 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=AkOk14+cUkmTCLZdgvgP050yc2BoHQLrc88kjtUwoA0=; fh=I7E+BwgHMByijVVN/pPHsLSpz7oP4y4e73noHEekrEE=; b=QDHeJSp1cmRHRjCpKmPU00PBct5tdNNxsQ8VX26UNJPiMWzNItGAvbn31UQmHI4nBH WgNNBmfrRCGyup2VDyukminXkw02xCEV8PM0LnDjMEw8MLisSQqFfRNHpcLNnm7sWsYY GpsAsaBy4VYAPBaoP7uRcIgXRcNoNhxXmv7CO0Rz/JSAL3YDnvYK5WNo4yrpD6gof1j0 W2inLQZZvvwfE1TGXxMMlAshDmL5s2CbgdSriahGj8Tt+FT0HhwM78YQEBO0/ZtsPVTJ aIViTysb9OwvPSHha4566k9CE507QFErz7XHEfm4sfGArw5/C2Fy+pJCMc4gv3eY2QiJ m3Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=k00+xSLK; 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 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 p29-20020a50cd9d000000b0054365df4eb7si4190818edi.487.2023.11.06.03.42.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 03:42:14 -0800 (PST) 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=k00+xSLK; 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 Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 71A2087073; Mon, 6 Nov 2023 12:41:01 +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="k00+xSLK"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DDB1587030; Mon, 6 Nov 2023 12:41:00 +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-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) (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 3DD9687026 for ; Mon, 6 Nov 2023 12:40:48 +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-pf1-x42f.google.com with SMTP id d2e1a72fcca58-6b2018a11efso4514785b3a.0 for ; Mon, 06 Nov 2023 03:40:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699270846; x=1699875646; 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=AkOk14+cUkmTCLZdgvgP050yc2BoHQLrc88kjtUwoA0=; b=k00+xSLKQTnfMc64iB0eaK5BwIgE3sw/asvxdVlJ7kdq6nLedwE6cExcDp/qXwEQ0Y 6tS7eANlib/RSSxxDN7QZMCgXOwKV4gvP1VnOf7i236M+iKs438YiNRD4F0R3i68hZTd BSDdBj/nMF0llvnU4pLYuEz3M49bQPUk10Tuq8UDo9DuOMOi1FXe+FcQ3StZg9jquaE5 VIwad/8N+9ZMwb1y4mpJACO19VQaz++rrQipO9QUrv5NafIlVsDJjlNUfLSLsZjPAXDM dscE9cpb12583C01UXgUgTVo64qEY8OmcKRFvrWi2kTvEMR0y5yD8qLGAob0OOd1dn3n YNcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699270846; x=1699875646; 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=AkOk14+cUkmTCLZdgvgP050yc2BoHQLrc88kjtUwoA0=; b=g+Uy8dP3ZXueXSxJW2cyB+Mcxjl/MB4JZQbtZ96wB25DOPfVXAulWmtOyaXbzofKmc dL5vUdJeQvYGYIZGXJp+LJFo/yKsuXX654QfSKDBYwu2MPz3fZ2LJ3J31vjGHyHC0I3Q zTXDlUZ6JzWyh7D7nuwZmHFBL/xrLW1e14Y+lS4fSLooNMfdK/bRzxXWQn/r/cJCI9y5 IhvzAdVl/DGP2sL0xbrZdZ3QHDSD3LYY1JxtSQtiiQTBkwjnnYXlsc4jD6OYT3BzuiLT T9DAX0VGZDb4DMlaOiWqrzd1wP8jIjWlc/FOR+C9Y3cjsf5Sn/m2XudXKKDFUZFQdMgj A1UQ== X-Gm-Message-State: AOJu0YzVTbEciZR5mL4QOoGbmZ2I/p6gS0GpZv8Jq9duuojKEAd85BBk be4k9SrJ0h9WVyo48foFMPyxLmNLDypwM88v700= X-Received: by 2002:a05:6a20:7348:b0:17a:eddb:ac6a with SMTP id v8-20020a056a20734800b0017aeddbac6amr38052000pzc.6.1699270845877; Mon, 06 Nov 2023 03:40:45 -0800 (PST) Received: from localhost ([164.70.16.189]) by smtp.gmail.com with ESMTPSA id 6-20020a17090a018600b0028009de5c65sm5836999pjc.39.2023.11.06.03.40.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 03:40:45 -0800 (PST) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Takahiro Akashi , Michal Simek , Masahisa Kojima Subject: [RESEND PATCH v10 5/9] efi_loader: add missing const classifier for event service Date: Mon, 6 Nov 2023 20:39:16 +0900 Message-Id: <20231106113920.3631591-6-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231106113920.3631591-1-masahisa.kojima@linaro.org> References: <20231106113920.3631591-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;