From: Dan Aloni <da-x@gmx.net>
To: Shaya Potter <spotter@cs.columbia.edu>
Cc: "Randy.Dunlap" <rddunlap@osdl.org>, linux-kernel@vger.kernel.org
Subject: Re: using memset in a module
Date: Fri, 27 Sep 2002 18:20:33 +0300 [thread overview]
Message-ID: <20020927152033.GA4710@callisto.yi.org> (raw)
In-Reply-To: <1033081345.3371.35.camel@zaphod>
On Thu, Sep 26, 2002 at 07:02:26PM -0400, Shaya Potter wrote:
> On Thu, 2002-09-26 at 18:51, Randy.Dunlap wrote:
> > On 26 Sep 2002, Shaya Potter wrote:
> >
> > | I have a problem using memset in a module.
> > |
[snio]
> > What gcc options are you using?
> > You need -O2 at least.
> > ^ upper-case letter O
>
>
> yes, using it.
>
> gcc -Wall -DMODULE -DMODVERSIONS -D__KERNEL__ -DLINUX -DEXPORT_SYMTAB
> -I/usr/src/linux/include/ -I`pwd`/../migration
> -I`pwd`/..//virtualization -O2 -fomit-frame-pointer -pipe
> -fno-strength-reduce -malign-loops=2 -malign-jumps=2 -malign-functions=2
> -o fs1.o -c virtualizers/fs1.c
Try adding -nostdinc. Prehaps memset is picked up as 'extern' somehow.
If that doesn't work, compile with -E instead of -c and grep the
preprocessing output for memset, that may give a clue.
--
Dan Aloni
da-x@gmx.net
next prev parent reply other threads:[~2002-09-27 15:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-26 22:49 using memset in a module Shaya Potter
2002-09-26 22:49 ` David S. Miller
2002-09-26 22:58 ` Shaya Potter
2002-09-26 22:51 ` Randy.Dunlap
2002-09-26 23:02 ` Shaya Potter
2002-09-27 15:20 ` Dan Aloni [this message]
2002-09-27 16:59 ` Shaya Potter
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=20020927152033.GA4710@callisto.yi.org \
--to=da-x@gmx.net \
--cc=linux-kernel@vger.kernel.org \
--cc=rddunlap@osdl.org \
--cc=spotter@cs.columbia.edu \
/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