From: Aneesh V <aneesh@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 1/6] arm: adapt asm/linkage.h from Linux
Date: Thu, 8 Mar 2012 22:50:17 +0530 [thread overview]
Message-ID: <1331227222-12419-2-git-send-email-aneesh@ti.com> (raw)
In-Reply-To: <1331227222-12419-1-git-send-email-aneesh@ti.com>
This will add ARM specific over-rides for the defines
from linux/linkage.h
Signed-off-by: Aneesh V <aneesh@ti.com>
---
Not adding the defines for __ALIGN and __ALIGN_STR
because it's not clear why alignment is set to 0
(single byte alignment).
Creates a checkpatch error that can not be avoided
Changes in v4:
- Use STT_FUNC in the definition of ENDPROC in
include/linux/linkage.h that is more portable
than the '*function' versions. Now, remove the
definition of ENDPROC from the arm linkage.h
Changes in v3:
- None
Changes in v2:
- Newly added
---
arch/arm/include/asm/linkage.h | 7 +++++++
include/linux/linkage.h | 7 ++++++-
2 files changed, 13 insertions(+), 1 deletions(-)
create mode 100644 arch/arm/include/asm/linkage.h
diff --git a/arch/arm/include/asm/linkage.h b/arch/arm/include/asm/linkage.h
new file mode 100644
index 0000000..dbe4b4e
--- /dev/null
+++ b/arch/arm/include/asm/linkage.h
@@ -0,0 +1,7 @@
+#ifndef __ASM_LINKAGE_H
+#define __ASM_LINKAGE_H
+
+#define __ALIGN .align 0
+#define __ALIGN_STR ".align 0"
+
+#endif
diff --git a/include/linux/linkage.h b/include/linux/linkage.h
index ed4cf6c..7b749bb 100644
--- a/include/linux/linkage.h
+++ b/include/linux/linkage.h
@@ -44,8 +44,13 @@
#define SYMBOL_NAME_LABEL(X) X:
#endif
+#ifndef __ALIGN
#define __ALIGN .align 4
+#endif
+
+#ifndef __ALIGN_STR
#define __ALIGN_STR ".align 4"
+#endif
#ifdef __ASSEMBLY__
@@ -67,7 +72,7 @@
#ifndef ENDPROC
#define ENDPROC(name) \
- .type name, @function; \
+ .type name STT_FUNC; \
END(name)
#endif
--
1.7.1
next prev parent reply other threads:[~2012-03-08 17:20 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-08 17:20 [U-Boot] [PATCH v4 0/6] Enable Thumb build for ARM platforms Aneesh V
2012-03-08 17:20 ` Aneesh V [this message]
2012-03-11 2:01 ` [U-Boot] [PATCH v4 1/6] arm: adapt asm/linkage.h from Linux Mike Frysinger
2012-03-12 8:11 ` Aneesh V
2012-03-08 17:20 ` [U-Boot] [PATCH v4 2/6] armv7: add appropriate headers for assembly functions Aneesh V
2012-03-11 2:02 ` Mike Frysinger
2012-03-08 17:20 ` [U-Boot] [PATCH v4 3/6] ARM: enable Thumb build Aneesh V
2012-03-11 2:02 ` Mike Frysinger
2012-03-12 8:20 ` Aneesh V
2012-03-08 17:20 ` [U-Boot] [PATCH v4 4/6] armv7: Use -march=armv7-a and thereby enable Thumb-2 Aneesh V
2012-05-23 15:01 ` Thierry Reding
2012-05-23 15:20 ` Stephen Warren
2012-05-24 6:46 ` Thierry Reding
2012-07-06 23:02 ` Marek Vasut
2012-07-06 23:32 ` Tetsuyuki Kobayashi
2012-07-06 23:43 ` Aneesh V
2012-07-07 7:59 ` Marek Vasut
2012-07-07 10:08 ` Albert ARIBAUD
2012-03-08 17:20 ` [U-Boot] [PATCH v4 5/6] omap4+: Avoid using __attribute__ ((__packed__)) Aneesh V
2012-03-08 17:20 ` [U-Boot] [PATCH v4 6/6] OMAP4: enable Thumb build Aneesh V
2012-03-15 13:25 ` [U-Boot] [PATCH v4 0/6] Enable Thumb build for ARM platforms Aneesh V
2012-03-15 16:29 ` Tom Rini
2012-04-03 22:48 ` Allen Martin
2012-04-03 22:59 ` Måns Rullgård
2012-03-15 20:23 ` Tom Rini
2012-03-15 20:46 ` Wolfgang Denk
2012-03-15 20:54 ` Tom Rini
2012-03-15 21:01 ` Wolfgang Denk
2012-03-15 21:12 ` Tom Rini
2012-03-15 22:21 ` Tom Rini
2012-03-16 7:16 ` Wolfgang Denk
2012-03-16 7:48 ` Sricharan R
2012-03-16 14:36 ` Tom Rini
2012-03-17 7:10 ` R, Sricharan
2012-03-16 15:27 ` [U-Boot] [PATCH 1/2] tools, config.mk: Add gcc-version.sh, cc-version test from Linux Tom Rini
2012-03-16 15:27 ` [U-Boot] [PATCH 2/2] Makefile: Add a 'checkthumb' rule Tom Rini
2012-03-16 16:07 ` Mike Frysinger
2012-03-16 17:09 ` Tom Rini
2012-03-16 16:34 ` [U-Boot] [PATCH v2] " Tom Rini
2012-03-16 19:40 ` Mike Frysinger
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=1331227222-12419-2-git-send-email-aneesh@ti.com \
--to=aneesh@ti.com \
--cc=u-boot@lists.denx.de \
/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