Re: [PATCH] NX: Fix noexec kernel parameter / x86_64

From: Ingo Molnar
Date: Sun Dec 05 2004 - 05:34:29 EST



* Zwane Mwaikambo <zwane@xxxxxxxxxxxxxxxx> wrote:

> > > + if (!memcmp(from, "noexec=", 7)) {
> > > + extern void nonx_setup(char *str);
> > > +
> > > + nonx_setup(from + 7);
> > > + }
> >
> > looks good, but please put the prototype into a header.
>
> I bet Andrew is going to say the same thing... It just seems odd
> putting a prototype in a header for a function with one call site and
> gets freed after boot. Since i'll have to rediff, i'm also going to
> change the nonx_setup parameter type to const char * as suggested by
> someone in a private email.

too many times did stuff break in the past due to some function changing
some attribute later on but the prototype being misdefined in another
place and the compiler having no chance to detect it.

Ingo
-
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/