lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1395949317-8738-1-git-send-email-robherring2@gmail.com>
Date:	Thu, 27 Mar 2014 14:41:53 -0500
From:	Rob Herring <robherring2@...il.com>
To:	Arnd Bergmann <arnd@...db.de>
Cc:	linux-arch@...r.kernel.org, linux-kernel@...r.kernel.org,
	Russell King <linux@....linux.org.uk>,
	Rob Herring <robh@...nel.org>
Subject: [RFC PATCH 0/4] vmlinux.lds.h clean-ups

From: Rob Herring <robh@...nel.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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ