From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.skyhub.de ([2a01:4f8:120:8448::d00d]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VrDGy-0001Th-SU for kexec@lists.infradead.org; Thu, 12 Dec 2013 20:54:18 +0000 Date: Thu, 12 Dec 2013 21:53:46 +0100 From: Borislav Petkov Subject: Re: [PATCH v5 08/14] efi: export efi runtime memory mapping to sysfs Message-ID: <20131212205346.GA30162@pd.tnic> References: <1386582147-9802-1-git-send-email-dyoung@redhat.com> <1386582147-9802-9-git-send-email-dyoung@redhat.com> <20131211185520.GG23793@pd.tnic> <20131212023617.GF3751@dhcp-16-126.nay.redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20131212023617.GF3751@dhcp-16-126.nay.redhat.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=twosheds.infradead.org@lists.infradead.org To: Dave Young Cc: mjg59@srcf.ucam.org, linux-efi@vger.kernel.org, toshi.kani@hp.com, matt@console-pimps.org, greg@kroah.com, x86@kernel.org, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, James.Bottomley@HansenPartnership.com, horms@verge.net.au, ebiederm@xmission.com, hpa@zytor.com, vgoyal@redhat.com On Thu, Dec 12, 2013 at 10:36:17AM +0800, Dave Young wrote: > Sorry that I forgot to explain this in changelog, should ask you before. > > I did try moving it to efisubsys_init but it need add extern declaration So what? Add it. > for efi_runtime_map_init. Since link order will ensure it being called after > efisubsys_init I think it's fine with this static function. This is actually exactly the reason why it shouldn't be another subsys_initcall() if it can be helped. People would need to go have a look at drivers/firmware/efi/Makefile to realize that the link order is ok. And, this is prone to future breakage if people go and move code around and thereby change the link order. Please call efi_runtime_map_init from efisubsys_init. -- Regards/Gruss, Boris. Sent from a fat crate under my desk. Formatting is fine. -- _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec