From patchwork Fri Nov 10 04:25:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 742841 Delivered-To: patch@linaro.org Received: by 2002:a5d:67cf:0:b0:32d:baff:b0ca with SMTP id n15csp12615wrw; Thu, 9 Nov 2023 20:28:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IFdO3WB4eKRTffrjxjRe8rSdPfJy36N21UurFBsCk3qmWU6xkjcEWWqntbhUwOvXmKZ+GfA X-Received: by 2002:a50:f616:0:b0:53e:ba3d:acb9 with SMTP id c22-20020a50f616000000b0053eba3dacb9mr6169544edn.24.1699590535153; Thu, 09 Nov 2023 20:28:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699590535; cv=none; d=google.com; s=arc-20160816; b=VaglvOZBmi41qR9dvcuzbxOXuXBI0YX1qih5VHn+esSkdFVly9BP0lzMw2CSIImHix kowMVK9ycehDjwpnUK6zclEAi+t8K9f8JKH3OyeRq2pLNcFJYBgn3pwknADHuivBAOmG geB+hQBcqTDb/38iMs2qaMvCWR03kj9vpF2xgczLD3rvYKy1Vy2PPp2YqX3ffDpjo/gV 5f9TPjbmvqsmiwabc25N93PHA1SML4D5XYxY2cssVgA4jO3vGl49jMvbneb9kcndfdZH Z/S/riWMq2ze6GL1PtTpyVT86XpVXhlSpO776IO3JBzUlQ63CqORGshCUdHlrGdEw8Il pIhg== 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=sV81chZ5wL4r8NFjYntg6jGzYMyzACB1EeebBkM72uttIcJ/QBJk0+thkUCf3HXO07 dVWOybhz+MujeCvtfj4ZORcXApzVubvvJCfadP4X00X+OO9S2RoRpXVSh5MHAh4RV+Dl TAs01QZQZpCbGVv3jHT8hZJyW6c8+sd3q2IiPq7GufSxJU2eTeEnXbHwyKlEWrFY9+ad Sut9b/61p8w3TpNMJfPRgoEv+JAofPOVj8OI5Xv7mENhm6j8ev8iJ1DEWPqpB/MeYQqK xfnPBPoZmIgem/LFWbh3gjc1IhRgae7QWH4cJ16oBqhu9uZYskvtCXif3Xxj7lB0Rcxr UBQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b+x2dr11; 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 z19-20020a056402275300b005454ac60f4dsi1786755edd.12.2023.11.09.20.28.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Nov 2023 20:28:55 -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=b+x2dr11; 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 E216A877A9; Fri, 10 Nov 2023 05:27:54 +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="b+x2dr11"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CB3818778A; Fri, 10 Nov 2023 05:27: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-ua1-x931.google.com (mail-ua1-x931.google.com [IPv6:2607:f8b0:4864:20::931]) (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 AF2DF8779C for ; Fri, 10 Nov 2023 05:27:26 +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-ua1-x931.google.com with SMTP id a1e0cc1a2514c-7b6cd2afaf2so746787241.0 for ; Thu, 09 Nov 2023 20:27:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699590444; x=1700195244; 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=b+x2dr11TugiLYG35myef0TfumlWq9wFREl2Hp41zFTCn8v4/bmrzhQHX4bWk4SJO6 5VzsgpwMvkXh5KYSNfTFoPMwSaTG7m6v6Blb3AU5JnAe7d2ivtq9imXuzoYlNi7Ycga/ GqNi6buaBrK+aHcZ7wTJvQzgf4n+b/IwxDuxVH+ne9DP/uc8BbjPdAyM62wFMxcfi/wX aIM/YFE670VJQQ6i1G/1JwJn3AEO5n3ckwB2IEI3hd84emoKHSd8y4WvXKY4P1O9YveI bHcIPr8S189175DsmwOSuVuI1mI5KIIyH66lZgjJZmbMD4/vWZp2NRAusG1IgRiz8sU/ U3qQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699590444; x=1700195244; 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=MKycuG0fea9N2qBTQGcgiYmqDicIicqaadpfIsSMLDkhVmr5kto2a+n7tSd7oeUQpx BXw+yNko+mTVcUBW74CIGmb8jgMeTD4FgA/z/UYBtJDnK3Qu24MIbWIIzPg4ly8H3Hpz X8UjcYEx3Wnjg22nVG1xHCZaKBWA0TuYbPFMSkMBCc+92iJFmNTpjzfsfKAdeL5VMyBC n5BLhl3pnzMaPiLOn22M75rSFLr58sQD8FgzX/MJ29ntAhevDQpb6yHCAnFgCxyiHkuo BNir5+fl6B8CRIVTdzovCCWGE/9U421nMIsGjleOfYp8bd0VCe7YE3e/QgCF5VSK66Am VKGg== X-Gm-Message-State: AOJu0Yyr/e6QJe2jH7hdB3yKWXwyPMPCPnNjRQrhki9BmAaJaLlMaK/K xhuFt/1n46GuvbxGnV7Z55FxQRC1zh5h35Nf7zU= X-Received: by 2002:a67:c281:0:b0:45f:66ab:f757 with SMTP id k1-20020a67c281000000b0045f66abf757mr6793482vsj.6.1699590444422; Thu, 09 Nov 2023 20:27:24 -0800 (PST) Received: from localhost ([164.70.16.189]) by smtp.gmail.com with ESMTPSA id k3-20020a170902c40300b001c727d3ea6bsm4378116plk.74.2023.11.09.20.27.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Nov 2023 20:27:23 -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: [PATCH v12 5/9] efi_loader: add missing const classifier for event service Date: Fri, 10 Nov 2023 13:25:38 +0900 Message-Id: <20231110042542.3797301-6-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231110042542.3797301-1-masahisa.kojima@linaro.org> References: <20231110042542.3797301-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;