From: Steven Cole <elenstev@mesatop.com>
To: Karsten Hopp <Karsten.Hopp@redhat.de>
Cc: linux-kernel@vger.kernel.org, alan@lxorguk.ukuu.org.uk
Subject: Re: Linux 2.4.0-ac9
Date: Sat, 13 Jan 2001 20:47:34 -0700 [thread overview]
Message-ID: <01011320473400.00928@localhost.localdomain> (raw)
In-Reply-To: <01011318404000.18233@localhost.localdomain> <20010114040550.A13315@bochum.redhat.de>
In-Reply-To: <20010114040550.A13315@bochum.redhat.de>
On Saturday 13 January 2001 20:05, Karsten Hopp wrote:
> You need to enable CONFIG_SWAPFS.
> Those functions are enclosed by #ifdef CONFIG_SWAPFS and #endif, but
> the references to them aren't.
>
> Karsten
>
> On Sat, Jan 13, 2001 at 06:40:40PM -0700, Steven Cole wrote:
> > I got the following error while building 2.4.0-ac9:
> >
> > shmem.c:971: `shmem_readlink' undeclared here (not in a function)
> > shmem.c:971: initializer element is not constant
> > shmem.c:971: (near initialization for
> > `shmem_symlink_inode_operations.readlink')
> > shmem.c:972: `shmem_follow_link' undeclared here (not in a function)
> > shmem.c:972: initializer element is not constant
> > shmem.c:972: (near initialization for
> > `shmem_symlink_inode_operations.follow_link')
> > shmem.c:973: initializer element is not constant
> > shmem.c:973: (near initialization for `shmem_symlink_inode_operations')
> > shmem.c:973: initializer element is not constant
> > shmem.c:973: (near initialization for `shmem_symlink_inode_operations')
> > make[2]: *** [shmem.o] Error 1
> >
Yes, enabling CONFIG_SWAPFS works just fine:
[scole@localhost scole]$ uname -a
Linux localhost.localdomain 2.4.0-ac9 #2 Sat Jan 13 20:23:00 MST 2001 i686
unknown
Here is a little patch which also fixes the symptoms of the build problem, and
makes a kernel 1510 bytes smaller (without CONFIG_SWAPFS). Someone more
knowlegable than I will have to verify its correctness.
This patch is against 2.4.0-ac9.
--- linux/mm/shmem.c.orig Sat Jan 13 20:23:36 2001
+++ linux/mm/shmem.c Sat Jan 13 20:27:32 2001
@@ -968,8 +968,10 @@
static struct inode_operations shmem_symlink_inode_operations = {
truncate: shmem_truncate,
+#ifdef CONFIG_SWAPFS
readlink: shmem_readlink,
follow_link: shmem_follow_link,
+#endif
};
static struct file_operations shmem_dir_operations = {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2001-01-14 3:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-14 1:40 Linux 2.4.0-ac9 Steven Cole
2001-01-14 2:33 ` Linux 2.4.0-ac9 (shmem.c errors) Mark Orr
2001-01-14 3:05 ` Linux 2.4.0-ac9 Karsten Hopp
2001-01-14 3:47 ` Steven Cole [this message]
2001-01-14 9:56 ` Christoph Rohland
-- strict thread matches above, loose matches on Subject: below --
2001-01-15 1:12 Bill Crawford
2001-01-15 1:47 ` Jens Axboe
2001-01-13 23:24 Alan Cox
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=01011320473400.00928@localhost.localdomain \
--to=elenstev@mesatop.com \
--cc=Karsten.Hopp@redhat.de \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
/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