From mboxrd@z Thu Jan 1 00:00:00 1970 From: Geert Uytterhoeven Subject: Re: [PATCH 09/12] platform/early: add an init section for early driver data Date: Mon, 14 May 2018 23:29:53 +0200 Message-ID: References: <20180511162028.20616-1-brgl@bgdev.pl> <20180511162028.20616-10-brgl@bgdev.pl> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: In-Reply-To: <20180511162028.20616-10-brgl@bgdev.pl> Sender: linux-kernel-owner@vger.kernel.org To: Bartosz Golaszewski Cc: Sekhar Nori , Kevin Hilman , David Lechner , Michael Turquette , Stephen Boyd , Arnd Bergmann , Greg Kroah-Hartman , Mark Rutland , Yoshinori Sato , Rich Felker , Andy Shevchenko , Marc Zyngier , "Rafael J . Wysocki" , Peter Rosin , Jiri Slaby , Thomas Gleixner , Daniel Lezcano , Magnus Damm , Johan Hovold , Rob Herring , Frank List-Id: devicetree@vger.kernel.org Hi Bartosz, On Fri, May 11, 2018 at 6:20 PM, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Provide a separate section in which pointers to early platform driver > structs will be stored. > > Signed-off-by: Bartosz Golaszewski Thanks for your patch! > --- a/include/asm-generic/vmlinux.lds.h > +++ b/include/asm-generic/vmlinux.lds.h > @@ -214,6 +214,16 @@ > #define CPU_METHOD_OF_TABLES() OF_TABLE(CONFIG_SMP, cpu_method) > #define CPUIDLE_METHOD_OF_TABLES() OF_TABLE(CONFIG_CPU_IDLE, cpuidle_method) > > +#ifdef CONFIG_EARLY_PLATFORM > +#define EARLY_PLATFORM_DRIVERS_TABLE() \ > + . = ALIGN(8); \ Should this use STRUCT_ALIGN() instead? > + VMLINUX_SYMBOL(__early_platform_drivers_table) = .; \ > + KEEP(*(__early_platform_drivers_table)) \ > + VMLINUX_SYMBOL(__early_platform_drivers_table_end) = .; > +#else > +#define EARLY_PLATFORM_DRIVERS_TABLE() > +#endif Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds