From: Ingo Molnar <mingo@elte.hu>
To: Zwane Mwaikambo <zwane@arm.linux.org.uk>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@osdl.org>, Andi Kleen <ak@suse.de>
Subject: Re: [PATCH] NX: Fix noexec kernel parameter / x86_64
Date: Sun, 5 Dec 2004 11:33:17 +0100 [thread overview]
Message-ID: <20041205103317.GB26964@elte.hu> (raw)
In-Reply-To: <Pine.LNX.4.61.0412050007010.6378@montezuma.fsmlabs.com>
* Zwane Mwaikambo <zwane@arm.linux.org.uk> 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
next prev parent reply other threads:[~2004-12-05 10:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-05 5:58 [PATCH][1/2] NX: Fix noexec kernel parameter Zwane Mwaikambo
2004-12-05 6:57 ` [PATCH] NX: Fix noexec kernel parameter / x86_64 Zwane Mwaikambo
2004-12-05 6:59 ` Ingo Molnar
2004-12-05 7:08 ` Zwane Mwaikambo
2004-12-05 10:33 ` Ingo Molnar [this message]
2004-12-05 7:18 ` Zwane Mwaikambo
2004-12-05 7:24 ` [PATCH][1/2] NX: Fix noexec kernel parameter Zwane Mwaikambo
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=20041205103317.GB26964@elte.hu \
--to=mingo@elte.hu \
--cc=ak@suse.de \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=zwane@arm.linux.org.uk \
/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
all inboxes | Powered by JetHome®