Re: [PATCH] Use NULL instead of integer 0 in security/selinux/

From: H. Peter Anvin
Date: Mon Jul 12 2004 - 11:39:15 EST


Florian Weimer wrote:
* H. Peter Anvin:


Followup to: <Pine.GSO.4.58.0407102126150.10242@xxxxxxxxxxxxxxxxxxxx>
By author: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
In newsgroup: linux.dev.kernel

- `return f();' in a function returning void (where f() returns void as well)


Considering this one a bug is daft in the extreme.

Why? Because "return f();" is the only kind of tailcall syntax C has,


Huh? If you remove the "return", it's still a valid tailcall syntax
(at least from GCC's perspective).

Yes, but as I said in the portion of the message you deleted, it means you have to use a different syntax with void functions as for all other functions.

That is daft in the extreme.

-hpa

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