From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754434AbaCZNV0 (ORCPT ); Wed, 26 Mar 2014 09:21:26 -0400 Received: from nat28.tlf.novell.com ([130.57.49.28]:48618 "EHLO nat28.tlf.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750956AbaCZNVY convert rfc822-to-8bit (ORCPT ); Wed, 26 Mar 2014 09:21:24 -0400 Message-Id: <5332E25F020000780000255A@nat28.tlf.novell.com> X-Mailer: Novell GroupWise Internet Agent 14.0.0 Date: Wed, 26 Mar 2014 13:21:19 +0000 From: "Jan Beulich" To: "Daniel Kiper" Cc: , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v3 2/5] efi: Export arch_tables variable References: <1395781076-12000-1-git-send-email-daniel.kiper@oracle.com> <1395781076-12000-3-git-send-email-daniel.kiper@oracle.com> In-Reply-To: <1395781076-12000-3-git-send-email-daniel.kiper@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8BIT Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>> On 25.03.14 at 21:57, wrote: > Export arch_tables variable. Xen init function calls efi_config_init() > which takes it as an argument. > > Additionally, put __initdata in place suggested by include/linux/init.h. Which isn't necessarily the most appropriate place. > --- a/arch/x86/platform/efi/efi.c > +++ b/arch/x86/platform/efi/efi.c > @@ -70,7 +70,7 @@ static efi_system_table_t efi_systab __initdata; > > unsigned long x86_efi_facility; > > -static __initdata efi_config_table_type_t arch_tables[] = { > +efi_config_table_type_t arch_tables[] __initdata = { efi_config_table_type_t __initdata arch_tables[] = { would be what I'd recommend. > --- a/include/linux/efi.h > +++ b/include/linux/efi.h > @@ -583,6 +583,8 @@ extern struct efi { > struct efi_memory_map *memmap; > } efi; > > +extern efi_config_table_type_t arch_tables[] __initdata; And section placement annotations are bogus on declarations. Jan