From: Florian Fainelli <f.fainelli@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: "open list:MIPS" <linux-mips@linux-mips.org>,
Alan Kao <alankao@andestech.com>,
"open list:SUPERH" <linux-sh@vger.kernel.org>,
Will Deacon <will.deacon@arm.com>,
Paul Mackerras <paulus@samba.org>,
"open list:GENERIC INCLUDE/ASM HEADER FILES"
<linux-arch@vger.kernel.org>,
"James E.J. Bottomley" <jejb@parisc-linux.org>,
Geert Uytterhoeven <geert@linux-m68k.org>,
Catalin Marinas <catalin.marinas@arm.com>,
Matt Turner <mattst88@gmail.com>,
"moderated list:H8/300 ARCHITECTURE"
<uclinux-h8-devel@lists.sourceforge.jp>,
Marc Zyngier <marc.zyngier@arm.com>,
"open list:USER-MODE LINUX UML" <linux-um@lists.infradead.org>,
Thomas Gleixner <tglx@linutronix.de>,
Richard Henderson <rth@twiddle.net>,
Matt Redfearn <matt.redfearn@mips.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Ralf Baechle <ralf@linux-mips.org>,
Richard Kuo <rkuo@codeaurora.org>,
Paul Burton <paul.burton@mips.com>,
Andrew Morton <akpm@linux-foundation.org>,
"open list:IA64 Itanium PLATFORM" <linux-ia64@vger.kernel.org>,
James Hogan <jhogan@kernel.org>,
Palmer Dabbelt <palmer@sifive.com>,
Max Filippov <jcmvbkbc@gmail.com>,
Deepa Dinamani <deepa.kernel@gmail.com>,
Vincent Chen <deanbo422@gmail.com>,
"open list:S390" <linux-s390@vger.kernel.org>,
"open list:C6X ARCHITECTURE" <linux-c6x-dev@linux-c6x.org>,
Yoshinori Sato <ysato@users.sourceforge.jp>,
"open list:QUALCOMM HEXAGON ARCHITECTURE"
<linux-hexagon@vger.kernel.org>, Helge Deller <deller@gmx.de>,
Jan Henrik Weinstock <jan.weinstock@ice.rwth-aachen.de>,
Andrey Ryabinin <aryabinin@virtuozzo.com>,
"open list:TENSILICA XTENSA PORT xtensa"
<linux-xtensa@linux-xtensa.org>, Jessica Yu <jeyu@kernel.org>,
Philippe Ombredanne <pombredanne@nexb.com>,
Aurelien Jacquiot <jacquiot.aurelien@gmail.com>,
"open list:M68K ARCHITECTURE" <linux-m68k@lists.linux-m68k.org>,
Stafford Horne <shorne@gmail.com>,
linux-arm-kernel@lists.infradead.org,
Chris Zankel <chris@zankel.net>, Tony Luck <tony.luck@intel.com>,
"open list:OPENRISC ARCHITECTURE" <openrisc@lists.librecores.org>,
Martin Schwidefsky <schwidefsky@de.ibm.com>,
Kate Stewart <kstewart@linuxfoundation.org>,
Heiko Carstens <heiko.carstens@de.ibm.com>,
Alexei Starovoitov <ast@kernel.org>,
Frank Rowand <frowand.list@gmail.com>,
Florian Fainelli <f.fainelli@gmail.com>,
Daniel Borkmann <daniel@iogearbox.net>,
"open list:SYNOPSYS ARC ARCHITECTURE"
<linux-snps-arc@lists.infradead.org>,
Fenghua Yu <fenghua.yu@intel.com>,
arnd@arndb.de, Andrey Konovalov <andreyknvl@google.com>,
Jeff Dike <jdike@addtoit.com>,
Masahiro Yamada <yamada.masahiro@socionext.com>,
Borislav Petkov <bp@alien8.de>, Greentime Hu <green.hu@gmail.com>,
Guan Xuetao <gxt@pku.edu.cn>,
"open list:PARISC ARCHITECTURE" <linux-parisc@vger.kernel.org>,
Ard Biesheuvel <ard.biesheuvel@linaro.org>,
Christoffer Dall <christoffer.dall@arm.com>,
"open list:ALPHA PORT" <linux-alpha@vger.kernel.org>,
Olof Johansson <olof@lixom.net>, Ley Foon Tan <lftan@altera.com>,
"David S. Miller" <davem@davemloft.net>,
Rich Felker <dalias@libc.org>,
Hendrik Brueckner <brueckner@linux.vnet.ibm.com>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
"H. Peter Anvin" <hpa@zytor.com>,
"open list:SPARC + UltraSPARC sparc/sparc64"
<sparclinux@vger.kernel.org>,
"open list:RISC-V ARCHITECTURE" <linux-riscv@lists.infradead.org>,
Greg Ungerer <gerg@linux-m68k.org>,
Jonas Bonn <jonas@southpole.se>,
Richard Weinberger <richard@nod.at>,
"maintainer:X86 ARCHITECTURE 32-BIT AND 64-BIT" <x86@kernel.org>,
Russell King <linux@armlinux.org.uk>,
Ingo Molnar <mingo@redhat.com>, Mark Salter <msalter@redhat.com>,
"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE"
<devicetree@vger.kernel.org>, Albert Ou <aou@eecs.berkeley.edu>,
Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>,
Rob Herring <robh+dt@kernel.org>,
"moderated list:NIOS2 ARCHITECTURE"
<nios2-dev@lists.rocketboards.org>,
Michal Simek <monstr@monstr.eu>,
Vineet Gupta <vgupta@synopsys.com>,
Stephen Boyd <sboyd@codeaurora.org>,
Ivan Kokshaysky <ink@jurassic.park.msu.ru>,
"open list:LINUX FOR POWERPC 32-BIT AND 64-BIT"
<linuxppc-dev@lists.ozlabs.org>
Subject: [PATCH 0/2] arm64: Cut rebuild time when changing CONFIG_BLK_DEV_INITRD
Date: Tue, 23 Oct 2018 16:40:41 -0700 [thread overview]
Message-ID: <20181023234044.1138-1-f.fainelli@gmail.com> (raw)
Hi all,
While investigating why ARM64 required a ton of objects to be rebuilt
when toggling CONFIG_DEV_BLK_INITRD, it became clear that this was
because we define __early_init_dt_declare_initrd() differently and we do
that in arch/arm64/include/asm/memory.h which gets included by a fair
amount of other header files, and translation units as well.
This patch series proposes adding an empty initrd.h to satisfy the need
for drivers/of/fdt.c to unconditionally include that file, and moves the
custom __early_init_dt_declare_initrd() definition away from
asm/memory.h
This cuts the number of objects rebuilds from 1920 down to 26, so a
factor 73 approximately.
Apologies for the long CC list, please let me know how you would go
about merging that and if another approach would be preferable, e.g:
introducing a CONFIG_ARCH_INITRD_BELOW_START_OK Kconfig option or
something like that.
Florian Fainelli (2):
arch: Add asm-generic/initrd.h and make use of it for most
architectures
arm64: Create asm/initrd.h
arch/alpha/include/asm/Kbuild | 1 +
arch/arc/include/asm/Kbuild | 1 +
arch/arm/include/asm/Kbuild | 1 +
arch/arm64/include/asm/initrd.h | 13 +++++++++++++
arch/arm64/include/asm/memory.h | 8 --------
arch/c6x/include/asm/Kbuild | 1 +
arch/h8300/include/asm/Kbuild | 1 +
arch/hexagon/include/asm/Kbuild | 1 +
arch/ia64/include/asm/Kbuild | 1 +
arch/m68k/include/asm/Kbuild | 1 +
arch/microblaze/include/asm/Kbuild | 1 +
arch/mips/include/asm/Kbuild | 1 +
arch/nds32/include/asm/Kbuild | 1 +
arch/nios2/include/asm/Kbuild | 1 +
arch/openrisc/include/asm/Kbuild | 1 +
arch/parisc/include/asm/Kbuild | 1 +
arch/powerpc/include/asm/Kbuild | 1 +
arch/riscv/include/asm/Kbuild | 1 +
arch/s390/include/asm/Kbuild | 1 +
arch/sh/include/asm/Kbuild | 1 +
arch/sparc/include/asm/Kbuild | 1 +
arch/um/include/asm/Kbuild | 1 +
arch/unicore32/include/asm/Kbuild | 1 +
arch/x86/include/asm/Kbuild | 1 +
arch/xtensa/include/asm/Kbuild | 1 +
drivers/of/fdt.c | 1 +
include/asm-generic/initrd.h | 1 +
27 files changed, 38 insertions(+), 8 deletions(-)
create mode 100644 arch/arm64/include/asm/initrd.h
create mode 100644 include/asm-generic/initrd.h
--
2.17.1
next reply other threads:[~2018-10-24 10:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-23 23:40 Florian Fainelli [this message]
2018-10-23 23:40 ` [PATCH 1/2] arch: Add asm-generic/initrd.h and make use of it for most architectures Florian Fainelli
2018-10-23 23:40 ` [PATCH 2/2] arm64: Create asm/initrd.h Florian Fainelli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181023234044.1138-1-f.fainelli@gmail.com \
--to=f.fainelli@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=alankao@andestech.com \
--cc=andreyknvl@google.com \
--cc=aou@eecs.berkeley.edu \
--cc=ard.biesheuvel@linaro.org \
--cc=arnd@arndb.de \
--cc=aryabinin@virtuozzo.com \
--cc=ast@kernel.org \
--cc=bp@alien8.de \
--cc=brueckner@linux.vnet.ibm.com \
--cc=catalin.marinas@arm.com \
--cc=chris@zankel.net \
--cc=christoffer.dall@arm.com \
--cc=dalias@libc.org \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=deanbo422@gmail.com \
--cc=deepa.kernel@gmail.com \
--cc=deller@gmx.de \
--cc=devicetree@vger.kernel.org \
--cc=fenghua.yu@intel.com \
--cc=frowand.list@gmail.com \
--cc=geert@linux-m68k.org \
--cc=gerg@linux-m68k.org \
--cc=green.hu@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=gxt@pku.edu.cn \
--cc=heiko.carstens@de.ibm.com \
--cc=hpa@zytor.com \
--cc=ink@jurassic.park.msu.ru \
--cc=jacquiot.aurelien@gmail.com \
--cc=jan.weinstock@ice.rwth-aachen.de \
--cc=jcmvbkbc@gmail.com \
--cc=jdike@addtoit.com \
--cc=jejb@parisc-linux.org \
--cc=jeyu@kernel.org \
--cc=jhogan@kernel.org \
--cc=jonas@southpole.se \
--cc=kstewart@linuxfoundation.org \
--cc=lftan@altera.com \
--cc=linux-alpha@vger.kernel.org \
--cc=linux-arch@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-c6x-dev@linux-c6x.org \
--cc=linux-hexagon@vger.kernel.org \
--cc=linux-ia64@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-m68k@lists.linux-m68k.org \
--cc=linux-mips@linux-mips.org \
--cc=linux-parisc@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=linux-s390@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=linux-snps-arc@lists.infradead.org \
--cc=linux-um@lists.infradead.org \
--cc=linux-xtensa@linux-xtensa.org \
--cc=linux@armlinux.org.uk \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=marc.zyngier@arm.com \
--cc=matt.redfearn@mips.com \
--cc=mattst88@gmail.com \
--cc=mingo@redhat.com \
--cc=monstr@monstr.eu \
--cc=msalter@redhat.com \
--cc=nios2-dev@lists.rocketboards.org \
--cc=olof@lixom.net \
--cc=openrisc@lists.librecores.org \
--cc=palmer@sifive.com \
--cc=paul.burton@mips.com \
--cc=paulus@samba.org \
--cc=pombredanne@nexb.com \
--cc=ralf@linux-mips.org \
--cc=richard@nod.at \
--cc=rkuo@codeaurora.org \
--cc=robh+dt@kernel.org \
--cc=rth@twiddle.net \
--cc=sboyd@codeaurora.org \
--cc=schwidefsky@de.ibm.com \
--cc=shorne@gmail.com \
--cc=sparclinux@vger.kernel.org \
--cc=stefan.kristiansson@saunalahti.fi \
--cc=tglx@linutronix.de \
--cc=thomas.petazzoni@bootlin.com \
--cc=tony.luck@intel.com \
--cc=uclinux-h8-devel@lists.sourceforge.jp \
--cc=vgupta@synopsys.com \
--cc=will.deacon@arm.com \
--cc=x86@kernel.org \
--cc=yamada.masahiro@socionext.com \
--cc=ysato@users.sourceforge.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).