mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: Linux 2.4.0-ac9
@ 2001-01-14  1:40 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
  0 siblings, 2 replies; 5+ messages in thread
From: Steven Cole @ 2001-01-14  1:40 UTC (permalink / raw)
  To: linux-kernel; +Cc: alan

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

It looks like changes were recently made to linux/mm/shmem.c.

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Linux 2.4.0-ac9 (shmem.c errors)
  2001-01-14  1:40 Linux 2.4.0-ac9 Steven Cole
@ 2001-01-14  2:33 ` Mark Orr
  2001-01-14  3:05 ` Linux 2.4.0-ac9 Karsten Hopp
  1 sibling, 0 replies; 5+ messages in thread
From: Mark Orr @ 2001-01-14  2:33 UTC (permalink / raw)
  To: Steven Cole; +Cc: alan, linux-kernel


On 14-Jan-2001 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
> 
> It looks like changes were recently made to linux/mm/shmem.c.

I'm getting the same errors here.  Christoph Rohland submitted
a series of shm patches to the list -- I tried --dry-run reapplying
them and at least a couple of them partially applied.  Looks like
it didnt all get integrated.

--
Mark Orr
markorr@intersurf.com

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Linux 2.4.0-ac9
  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 ` Karsten Hopp
  2001-01-14  3:47   ` Steven Cole
  1 sibling, 1 reply; 5+ messages in thread
From: Karsten Hopp @ 2001-01-14  3:05 UTC (permalink / raw)
  To: Steven Cole; +Cc: linux-kernel

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
> 
> It looks like changes were recently made to linux/mm/shmem.c.
> 

--
 Karsten Hopp        | Mail: karsten@redhat.de |
 Red Hat Deutschland |    Karsten.Hopp@sap.com | SAP-AG LinuxLab
 Hauptstaetterstr.58 | Tel: +49-711-96437-0    | Neurottstrasse 16
 D-70178 Stuttgart   | http://www.redhat.de    | 69190 Walldorf
-
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/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Linux 2.4.0-ac9
  2001-01-14  3:05 ` Linux 2.4.0-ac9 Karsten Hopp
@ 2001-01-14  3:47   ` Steven Cole
  2001-01-14  9:56     ` Christoph Rohland
  0 siblings, 1 reply; 5+ messages in thread
From: Steven Cole @ 2001-01-14  3:47 UTC (permalink / raw)
  To: Karsten Hopp; +Cc: linux-kernel, alan

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/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Linux 2.4.0-ac9
  2001-01-14  3:47   ` Steven Cole
@ 2001-01-14  9:56     ` Christoph Rohland
  0 siblings, 0 replies; 5+ messages in thread
From: Christoph Rohland @ 2001-01-14  9:56 UTC (permalink / raw)
  To: elenstev; +Cc: Karsten Hopp, linux-kernel, alan

Steven Cole <elenstev@mesatop.com> writes:

> 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.

Thanks, this is correct. I did not test the symlink fixes w/o
CONFIG_SWAPFS. My bad.

Greetings
                Christoph

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-01-14  9:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2001-01-14  9:56     ` Christoph Rohland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome