From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757415AbXJ2ILG (ORCPT ); Mon, 29 Oct 2007 04:11:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753929AbXJ2IKg (ORCPT ); Mon, 29 Oct 2007 04:10:36 -0400 Received: from koto.vergenet.net ([210.128.90.7]:58373 "EHLO koto.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752383AbXJ2IKd (ORCPT ); Mon, 29 Oct 2007 04:10:33 -0400 Date: Mon, 29 Oct 2007 17:10:29 +0900 From: Simon Horman To: linux-kernel@vger.kernel.org, kexec@lists.infradead.org, linux-ia64@vger.kernel.org Cc: Eric Biederman , Tony Luck , Andrew Morton Subject: [PATCH] vmcore_find_descriptor_size should be in __init Message-ID: <20071029081027.GA30256@verge.net.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: mutt-ng/devel-r804 (Debian) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org vmcore_find_descriptor_size() is only called by reserve_elfcorehdr(), which is in __init, so it seems to me that vmcore_find_descriptor_size() should be there too. Signed-off-by: Simon Horman Index: linux-2.6/arch/ia64/kernel/efi.c =================================================================== --- linux-2.6.orig/arch/ia64/kernel/efi.c 2007-03-06 16:43:11.000000000 +0900 +++ linux-2.6/arch/ia64/kernel/efi.c 2007-03-06 16:43:25.000000000 +0900 @@ -1180,7 +1180,7 @@ #ifdef CONFIG_PROC_VMCORE /* locate the size find a the descriptor at a certain address */ -unsigned long +unsigned long __init vmcore_find_descriptor_size (unsigned long address) { void *efi_map_start, *efi_map_end, *p;