linux-arch.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rob Herring <robherring2@gmail.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org,
	Russell King <linux@arm.linux.org.uk>,
	Rob Herring <robh@kernel.org>
Subject: [RFC PATCH 0/4] vmlinux.lds.h clean-ups
Date: Thu, 27 Mar 2014 14:41:53 -0500	[thread overview]
Message-ID: <1395949317-8738-1-git-send-email-robherring2@gmail.com> (raw)

From: Rob Herring <robh@kernel.org>

Several DeviceTree related sections have been added recently to enable
early DT initialization calls. I have the need to add yet another one
in order to do a DT based earlycon. Since each section follows the same
pattern, this seemed like a good opportunity for some clean-up. So
this series creates a common macro to define these sections. with this
adding any new OF table section is a 2 line change.

Each section ends with a zeroed struct of_device_id (except cpu_method).
Right now there is an end section and a dummy variable to create the end
marker. Really, we just need padding here, but I haven't come up with a
way for the linker script to get the struct size. 

The last patch extends the same concept to another common pattern for
section definitons. There's still others which could be easily converted
also, but I'm looking for feedback on this approach before proceeding
any further.

Rob

Rob Herring (4):
  irqchip: align irqchip OF match table section naming
  ARM: align cpu_method_of_table naming
  vmlinuz.lds: define OF table sections with macros
  vmlinux.lds: define conditional sections with macros

 arch/arm/kernel/devtree.c         |  11 +--
 drivers/irqchip/irqchip.c         |   6 +-
 include/asm-generic/vmlinux.lds.h | 142 +++++++++++---------------------------
 3 files changed, 52 insertions(+), 107 deletions(-)

-- 
1.8.3.2

             reply	other threads:[~2014-03-27 19:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-27 19:41 Rob Herring [this message]
2014-03-27 19:41 ` [RFC PATCH 1/4] irqchip: align irqchip OF match table section naming Rob Herring
2014-03-27 19:41   ` Rob Herring
2014-03-27 19:41 ` [RFC PATCH 2/4] ARM: align cpu_method_of_table naming Rob Herring
2014-03-27 19:41 ` [RFC PATCH 3/4] vmlinuz.lds: define OF table sections with macros Rob Herring
2014-03-27 19:41   ` Rob Herring
2014-03-27 19:41 ` [RFC PATCH 4/4] vmlinux.lds: define conditional " Rob Herring
2014-04-15 20:34 ` [RFC PATCH 0/4] vmlinux.lds.h clean-ups Rob Herring
2014-04-24 13:23   ` Arnd Bergmann

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=1395949317-8738-1-git-send-email-robherring2@gmail.com \
    --to=robherring2@gmail.com \
    --cc=arnd@arndb.de \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=robh@kernel.org \
    /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).