memory: fix label syntax
To be able to compile Xen with gotocc, the label statement has to be followed by a semicolon.
--- xen/common/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
xen/common/memory.c +1 -1
@@ -387,7 +387,7 @@ int guest_remove_page(struct domain *d, unsigned long gmfn)put_page (page);put_page (page); - out_put_gfn:__maybe_unused + out_put_gfn:__maybe_unused ;put_gfn (d, gmfn);/*
Signature · 14 lines
2.7.4 Amazon Development Center Germany GmbH Berlin - Dresden - Aachen main office: Krausenstr. 38, 10117 Berlin Geschaeftsfuehrer: Dr. Ralf Herbrich, Christian Schlaeger Ust-ID: DE289237879 Eingetragen am Amtsgericht Charlottenburg HRB 149173 B _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 3 lines
Quoted 1 line
Quoted 1 line · On 31.07.18 at 09:18, <[email protected]> wrote:
To be able to compile Xen with gotocc, the label statement has to be followed by a semicolon.
Assuming that gotocc aims to be gcc compatible, this looks like a shortcoming there. As the workaround is simple enough, I'm fine with the change, but the description should then say so. Or otherwise it should as well clarify the situation.
Furthermore - please follow patch submission rules: Patches get sent _To_ the list, with _all_ maintainers _Cc_-ed.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Sorry for putting you in the To field, I'll use Cc in the future.
I agree that the commit message is a little short, and I will iterate on that. Furthermore, I agree that gcc compatibility would allow to parse this statement. However, the given sequence is not unique, and the gcc documentation states that the semicolon is mandatory.
https://gcc.gnu.org/onlinedocs/gcc/Label-Attributes.html
I'll add more details to the commit message.
Best,
Norbert
Quoted 9 lines · Jan Beulich
Quoted 3 lines
Quoted 1 line
Quoted 1 line · On 31.07.18 at 09:18, <[email protected]> wrote:
To be able to compile Xen with gotocc, the label statement has to be followed by a semicolon.
Assuming that gotocc aims to be gcc compatible, this looks like a shortcoming there. As the workaround is simple enough, I'm fine with the change, but the description should then say so. Or otherwise it should as well clarify the situation.
Quoted 7 lines
Furthermore - please follow patch submission rules: Patches get sent _To_ the list, with _all_ maintainers _Cc_-ed.
Jan
Amazon Development Center Germany GmbH
Berlin - Dresden - Aachen
main office: Krausenstr. 38, 10117 Berlin
Geschaeftsfuehrer: Dr. Ralf Herbrich, Christian Schlaeger
Ust-ID: DE289237879
Eingetragen am Amtsgericht Charlottenburg HRB 149173 B
_______________________________________________
Xen-devel mailing list [email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 9 lines
Quoted 1 line
Quoted 1 line · On 31.07.18 at 10:32, <[email protected]> wrote:
Sorry for putting you in the To field, I'll use Cc in the future.
I agree that the commit message is a little short, and I will iterate on that. Furthermore, I agree that gcc compatibility would allow to parse this statement. However, the given sequence is not unique, and the gcc documentation states that the semicolon is mandatory.
Ah, indeed, modern documentation says so, while older didn't.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
PATCH v2 1/1 memory: fix label syntax
When compiling this file with gcc, the compiler happily accepts the sequence of a label followed by an attribute. However, this sequence does not follow the gcc documentation. Hence, other compilers might stumble upon this statement.
To be able to compile Xen with goto-cc (the compiler of the CPROVER tool suite), the missing semicolon is added in this commit.
--- xen/common/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
xen/common/memory.c +1 -1
@@ -387,7 +387,7 @@ int guest_remove_page(struct domain *d, unsigned long gmfn)put_page (page);put_page (page); - out_put_gfn:__maybe_unused + out_put_gfn:__maybe_unused ;put_gfn (d, gmfn);/*
Signature · 14 lines
2.7.4 Amazon Development Center Germany GmbH Berlin - Dresden - Aachen main office: Krausenstr. 38, 10117 Berlin Geschaeftsfuehrer: Dr. Ralf Herbrich, Christian Schlaeger Ust-ID: DE289237879 Eingetragen am Amtsgericht Charlottenburg HRB 149173 B _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Jan Beulich
Reviewed-byQuoted 11 lines
Quoted 1 line
Quoted 1 line · On 31.07.18 at 10:56, <[email protected]> wrote:
When compiling this file with gcc, the compiler happily accepts the sequence of a label followed by an attribute. However, this sequence does not follow the gcc documentation. Hence, other compilers might stumble upon this statement.
To be able to compile Xen with goto-cc (the compiler of the CPROVER tool suite), the missing semicolon is added in this commit.
Reported-by Elizabeth Polgreen <[email protected]>Signed-off-by Norbert Manthey <[email protected]>
Btw - you still didn't Cc all relevant maintainers, but I'm sure no one of them would object to a change like this.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 9 lines · Jan Beulich
Quoted 9 lines
Quoted 1 line
Quoted 1 line · On 31.07.18 at 10:56, <[email protected]> wrote:
When compiling this file with gcc, the compiler happily accepts the sequence of a label followed by an attribute. However, this sequence does not follow the gcc documentation. Hence, other compilers might stumble upon this statement.
To be able to compile Xen with goto-cc (the compiler of the CPROVER tool suite), the missing semicolon is added in this commit.
Quoted 7 lines
Quoted 2 lines
Reported-by Elizabeth Polgreen <[email protected]>Signed-off-by Norbert Manthey <[email protected]>Reviewed-by Jan Beulich <[email protected]>Btw - you still didn't Cc all relevant maintainers, but I'm sure no one of them would object to a change like this.
Strangely this patch never showed up in my inbox or xen-devel archive.
Norbert, I wonder if there is something wrong with your email setting?
Wei.
Quoted 8 lines
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 14 lines
Quoted 1 line
Quoted 1 line · On 31.07.18 at 11:24, <[email protected]> wrote:
Quoted 12 lines · Jan Beulich
Quoted 11 lines
Quoted 1 line
Quoted 1 line · On 31.07.18 at 10:56, <[email protected]> wrote:
When compiling this file with gcc, the compiler happily accepts the sequence of a label followed by an attribute. However, this sequence does not follow the gcc documentation. Hence, other compilers might stumble upon this statement.
To be able to compile Xen with goto-cc (the compiler of the CPROVER tool suite), the missing semicolon is added in this commit.
Reported-by Elizabeth Polgreen <[email protected]>Signed-off-by Norbert Manthey <[email protected]>
Quoted 8 lines
Quoted 4 lines
Reviewed-by Jan Beulich <[email protected]>Btw - you still didn't Cc all relevant maintainers, but I'm sure no one of them would object to a change like this.
Strangely this patch never showed up in my inbox or xen-devel archive.
Norbert, I wonder if there is something wrong with your email setting?
Perhaps it's still in moderation?
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 16 lines · Jan Beulich
Quoted 16 lines
Quoted 1 line
Quoted 1 line · On 31.07.18 at 11:24, <[email protected]> wrote:
Quoted 14 lines · Jan Beulich
Quoted 11 lines
Quoted 1 line
Quoted 1 line · On 31.07.18 at 10:56, <[email protected]> wrote:
When compiling this file with gcc, the compiler happily accepts the sequence of a label followed by an attribute. However, this sequence does not follow the gcc documentation. Hence, other compilers might stumble upon this statement.
To be able to compile Xen with goto-cc (the compiler of the CPROVER tool suite), the missing semicolon is added in this commit.
Reported-by Elizabeth Polgreen <[email protected]>Signed-off-by Norbert Manthey <[email protected]>Reviewed-by Jan Beulich <[email protected]>
Quoted 9 lines
Quoted 6 lines
Quoted 2 lines
Btw - you still didn't Cc all relevant maintainers, but I'm sure no one of them would object to a change like this.
Strangely this patch never showed up in my inbox or xen-devel archive.
Norbert, I wonder if there is something wrong with your email setting?
Perhaps it's still in moderation?
It appears so. Andy just let it through. Sorry for the noise.
Wei.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel