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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D57D3C64EC4 for ; Wed, 8 Mar 2023 10:45:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229914AbjCHKpN (ORCPT ); Wed, 8 Mar 2023 05:45:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229991AbjCHKpI (ORCPT ); Wed, 8 Mar 2023 05:45:08 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B266B06C7 for ; Wed, 8 Mar 2023 02:45:03 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4BC5A61750 for ; Wed, 8 Mar 2023 10:45:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A642C433D2; Wed, 8 Mar 2023 10:45:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678272302; bh=iSWueHLUrs/NaHPLqnCJKn35uwGRs6PonZvH/yLtCok=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eM1hx0OT8/GNZBEa1BxUyuST6f+85rQQnLacuGaSg9rybe2eO61TtRGog7yF4vEGC v6+9NIG/HwQ/xIjGUJxBfmoQnl7p7Td5pC8KMaz/NEFQpMmfaWtWE6kKmEuSlxK+HS XHozLR6yRReIYEe+EdsizeqmX1F2b1WpCmiVduLES9MlNrWff3RXGOgXvn4pEVHmGk PjAhTXMboB6u19dNdjy/Kn+fhVVXmXjQGWrTsvV8TThdvYO8bDjz9lWtCiMYvQwBOc wapr25OhzaysSsuMqb5ZsqK1KwQmxmLZPApjRED5nTz8M873JXShNQzBcclxmhPamA 1LNZDAo6R/jNQ== Date: Wed, 8 Mar 2023 11:44:57 +0100 From: Simon Horman To: Bjorn Helgaas Cc: Eric Biederman , Dave Hansen , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H . Peter Anvin" , Baoquan He , x86@kernel.org, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, Bjorn Helgaas Subject: Re: [PATCH v2 1/2] x86/kexec: Remove unnecessary arch_kexec_kernel_image_load() Message-ID: References: <20230307224416.907040-1-helgaas@kernel.org> <20230307224416.907040-2-helgaas@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230307224416.907040-2-helgaas@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 07, 2023 at 04:44:15PM -0600, Bjorn Helgaas wrote: > From: Bjorn Helgaas > > The x86 implementation of arch_kexec_kernel_image_load() is functionally > identical to the generic arch_kexec_kernel_image_load(): > > arch_kexec_kernel_image_load # x86 > if (!image->fops || !image->fops->load) > return ERR_PTR(-ENOEXEC); > return image->fops->load(image, image->kernel_buf, ...) > > arch_kexec_kernel_image_load # generic > kexec_image_load_default > if (!image->fops || !image->fops->load) > return ERR_PTR(-ENOEXEC); > return image->fops->load(image, image->kernel_buf, ...) > > Remove the x86-specific version and use the generic > arch_kexec_kernel_image_load(). No functional change intended. > > Signed-off-by: Bjorn Helgaas Reviewed-by: Simon Horman