Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3016948ybl; Sun, 8 Dec 2019 05:36:28 -0800 (PST) X-Google-Smtp-Source: APXvYqxA0uFBL0HV3q4vBlPNY4AoNtQyIgR7BMUBT/jY3rrW1Te2i7DENee9n2iEA8ydPv9Gptmy X-Received: by 2002:a9d:7447:: with SMTP id p7mr17383115otk.189.1575812188212; Sun, 08 Dec 2019 05:36:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575812188; cv=none; d=google.com; s=arc-20160816; b=rYZbaH4adfM2GA979vMlBqrn65GXH/ppZD9kwJRQAS/NDHR3PKhwN4xNgqODKk7Y98 twVKLBvmP9NR5TAVJ/KEDCxCfi0cpl2ihKbdCD292c32wvfkdzb6tm4vb1jP9GWke7YV mincQsHB0ASzudhDStsMjeTGUTzzdvT30qbay7mMqqHdb2vkq+G+tLxy3/7e8+OdsaUo JI02JCPjUEJBeelX3DLl+cGWyUR0onWUQmKBuPoOGL/RZBsgFqoyjaxLtJNw2/C5iCp0 TkDvg4fkFDm6is/JmMZo9itHNaXL5alVRtbiwAT5uxqTV/14jPzax1ssJit/E6kQfnAY zqfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=jkooMn5GnhmmbkbGXBfuy/C/rBbiBq6daNdumlvqfnE=; b=pqJdTKZjqtPjcD428qmoNeN1a5o0vDbr/gzxQucHRznaCObd1v2kZg6iP8A/DhWIbn wotPLH6btWp1Y70tkQ0V42c/cztvKznfzXGO9p9LlDNzcZUJvgE4Sv2Sp5KlQevMUsmY +oy7yKcmx664mzT8IDhcWx50P9Zz4xpE3KL0eQQPRkLJ3ZobEUd6smVXEe6rFpHkBdiD dp7trY7f7CxAn/k2vKFJIGIETl1/LFGxvsbNMs4Vp8HJbX+nRWi7Yr1c4WwKA2Z0Pf1U r8cKfu7fQ/NDsO1zDjFcPi7tRC8jYOMvgX0P4oCJfPInXM1SOZj/l5EZ6VGc5SrxgWn/ bqOw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c131si10064581oig.170.2019.12.08.05.35.38; Sun, 08 Dec 2019 05:36:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726596AbfLHNdx (ORCPT + 99 others); Sun, 8 Dec 2019 08:33:53 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:36614 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726406AbfLHNdx (ORCPT ); Sun, 8 Dec 2019 08:33:53 -0500 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1idwgp-0007gN-Gj; Sun, 08 Dec 2019 14:33:35 +0100 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 933761C287F; Sun, 8 Dec 2019 14:33:33 +0100 (CET) Date: Sun, 08 Dec 2019 13:33:33 -0000 From: "tip-bot2 for Arvind Sankar" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: efi/urgent] efi: Fix efi_loaded_image_t::unload type Cc: Arvind Sankar , Ard Biesheuvel , Andy Shevchenko , Bhupesh Sharma , Linus Torvalds , Masayoshi Mizuma , Peter Zijlstra , Thomas Gleixner , linux-efi@vger.kernel.org, Ingo Molnar , x86 , LKML In-Reply-To: <20191206165542.31469-6-ardb@kernel.org> References: <20191206165542.31469-6-ardb@kernel.org> MIME-Version: 1.0 Message-ID: <157581201350.21853.6212874556450430437.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the efi/urgent branch of tip: Commit-ID: 9fa76ca7b8bdcdf51fc8c7b7b7a7bfc4eccceb58 Gitweb: https://git.kernel.org/tip/9fa76ca7b8bdcdf51fc8c7b7b7a7bfc4eccceb58 Author: Arvind Sankar AuthorDate: Fri, 06 Dec 2019 16:55:41 Committer: Ingo Molnar CommitterDate: Sun, 08 Dec 2019 12:42:19 +01:00 efi: Fix efi_loaded_image_t::unload type The ::unload field is a function pointer, so it should be u32 for 32-bit, u64 for 64-bit. Add a prototype for it in the native efi_loaded_image_t type. Also change type of parent_handle and device_handle from void * to efi_handle_t for documentation purposes. The unload method is not used, so no functional change. Signed-off-by: Arvind Sankar Signed-off-by: Ard Biesheuvel Cc: Andy Shevchenko Cc: Bhupesh Sharma Cc: Linus Torvalds Cc: Masayoshi Mizuma Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: linux-efi@vger.kernel.org Link: https://lkml.kernel.org/r/20191206165542.31469-6-ardb@kernel.org Signed-off-by: Ingo Molnar --- include/linux/efi.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/linux/efi.h b/include/linux/efi.h index 99dfea5..aa54586 100644 --- a/include/linux/efi.h +++ b/include/linux/efi.h @@ -824,7 +824,7 @@ typedef struct { __aligned_u64 image_size; unsigned int image_code_type; unsigned int image_data_type; - unsigned long unload; + u32 unload; } efi_loaded_image_32_t; typedef struct { @@ -840,14 +840,14 @@ typedef struct { __aligned_u64 image_size; unsigned int image_code_type; unsigned int image_data_type; - unsigned long unload; + u64 unload; } efi_loaded_image_64_t; typedef struct { u32 revision; - void *parent_handle; + efi_handle_t parent_handle; efi_system_table_t *system_table; - void *device_handle; + efi_handle_t device_handle; void *file_path; void *reserved; u32 load_options_size; @@ -856,7 +856,7 @@ typedef struct { __aligned_u64 image_size; unsigned int image_code_type; unsigned int image_data_type; - unsigned long unload; + efi_status_t (*unload)(efi_handle_t image_handle); } efi_loaded_image_t;