* [PATCH] arch: drop ALIGN_STR
@ 2017-03-22 11:44 Jan Beulich
2017-03-22 12:26 ` Andrew Cooper
2017-03-22 12:30 ` Julien Grall
0 siblings, 2 replies; 3+ messages in thread
From: Jan Beulich @ 2017-03-22 11:44 UTC (permalink / raw)
To: xen-devel; +Cc: Andrew Cooper, Julien Grall, Stefano Stabellini
[-- Attachment #1: Type: text/plain, Size: 1269 bytes --]
... as being unused and having been unusable: It was clearly intended
for use in asm(), yet was placed inside __ASSEMBLY__ conditionals.
Also drop __ALIGN{,_STR} - there's no need to have a second flavor of
these constructs with no difference in behavior.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
--- a/xen/include/asm-arm/config.h
+++ b/xen/include/asm-arm/config.h
@@ -52,11 +52,8 @@
#define CONFIG_AEABI
/* Linkage for ARM */
-#define __ALIGN .align 2
-#define __ALIGN_STR ".align 2"
#ifdef __ASSEMBLY__
-#define ALIGN __ALIGN
-#define ALIGN_STR __ALIGN_STR
+#define ALIGN .align 2
#define ENTRY(name) \
.globl name; \
ALIGN; \
--- a/xen/include/asm-x86/config.h
+++ b/xen/include/asm-x86/config.h
@@ -50,11 +50,8 @@
#define OPT_CONSOLE_STR "vga"
/* Linkage for x86 */
-#define __ALIGN .align 16,0x90
-#define __ALIGN_STR ".align 16,0x90"
#ifdef __ASSEMBLY__
-#define ALIGN __ALIGN
-#define ALIGN_STR __ALIGN_STR
+#define ALIGN .align 16,0x90
#define ENTRY(name) \
.globl name; \
ALIGN; \
[-- Attachment #2: drop-ALIGN_STR.patch --]
[-- Type: text/plain, Size: 1287 bytes --]
arch: drop ALIGN_STR
... as being unused and having been unusable: It was clearly intended
for use in asm(), yet was placed inside __ASSEMBLY__ conditionals.
Also drop __ALIGN{,_STR} - there's no need to have a second flavor of
these constructs with no difference in behavior.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
--- a/xen/include/asm-arm/config.h
+++ b/xen/include/asm-arm/config.h
@@ -52,11 +52,8 @@
#define CONFIG_AEABI
/* Linkage for ARM */
-#define __ALIGN .align 2
-#define __ALIGN_STR ".align 2"
#ifdef __ASSEMBLY__
-#define ALIGN __ALIGN
-#define ALIGN_STR __ALIGN_STR
+#define ALIGN .align 2
#define ENTRY(name) \
.globl name; \
ALIGN; \
--- a/xen/include/asm-x86/config.h
+++ b/xen/include/asm-x86/config.h
@@ -50,11 +50,8 @@
#define OPT_CONSOLE_STR "vga"
/* Linkage for x86 */
-#define __ALIGN .align 16,0x90
-#define __ALIGN_STR ".align 16,0x90"
#ifdef __ASSEMBLY__
-#define ALIGN __ALIGN
-#define ALIGN_STR __ALIGN_STR
+#define ALIGN .align 16,0x90
#define ENTRY(name) \
.globl name; \
ALIGN; \
[-- Attachment #3: Type: text/plain, Size: 127 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] arch: drop ALIGN_STR
2017-03-22 11:44 [PATCH] arch: drop ALIGN_STR Jan Beulich
@ 2017-03-22 12:26 ` Andrew Cooper
2017-03-22 12:30 ` Julien Grall
1 sibling, 0 replies; 3+ messages in thread
From: Andrew Cooper @ 2017-03-22 12:26 UTC (permalink / raw)
To: Jan Beulich, xen-devel; +Cc: Julien Grall, Stefano Stabellini
On 22/03/17 11:44, Jan Beulich wrote:
> ... as being unused and having been unusable: It was clearly intended
> for use in asm(), yet was placed inside __ASSEMBLY__ conditionals.
>
> Also drop __ALIGN{,_STR} - there's no need to have a second flavor of
> these constructs with no difference in behavior.
>
> Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] arch: drop ALIGN_STR
2017-03-22 11:44 [PATCH] arch: drop ALIGN_STR Jan Beulich
2017-03-22 12:26 ` Andrew Cooper
@ 2017-03-22 12:30 ` Julien Grall
1 sibling, 0 replies; 3+ messages in thread
From: Julien Grall @ 2017-03-22 12:30 UTC (permalink / raw)
To: Jan Beulich, xen-devel; +Cc: Andrew Cooper, Stefano Stabellini
Hi Jan,
On 22/03/17 11:44, Jan Beulich wrote:
> ... as being unused and having been unusable: It was clearly intended
> for use in asm(), yet was placed inside __ASSEMBLY__ conditionals.
>
> Also drop __ALIGN{,_STR} - there's no need to have a second flavor of
> these constructs with no difference in behavior.
>
> Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Julien Grall <julien.grall@arm.com>
Cheers,
--
Julien Grall
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-03-22 12:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-22 11:44 [PATCH] arch: drop ALIGN_STR Jan Beulich
2017-03-22 12:26 ` Andrew Cooper
2017-03-22 12:30 ` Julien Grall
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.