public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.4.7-ac8 compilation error
@ 2001-08-06 21:07 Gregoire Favre
  2001-08-06 21:17 ` eddantes
  0 siblings, 1 reply; 3+ messages in thread
From: Gregoire Favre @ 2001-08-06 21:07 UTC (permalink / raw)
  To: linux-kernel

Hello,

I got the following error while trying 2.4.7-ac8:

make[1]: Leaving directory `/usr/src/linux-2.4.7-ac8/arch/i386/lib'
ld -m elf_i386 -T /usr/src/linux-2.4.7-ac8/arch/i386/vmlinux.lds -e stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o init/version.o \
	--start-group \
	arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o \
	 drivers/parport/driver.o drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/media/media.o drivers/char/agp/agp.o drivers/char/drm/drm.o drivers/ide/idedriver.o drivers/scsi/scsidrv.o drivers/cdrom/driver.o drivers/pci/driver.o drivers/video/video.o drivers/usb/usbdrv.o drivers/net/irda/irda.o \
	net/network.o \
	/usr/src/linux-2.4.7-ac8/arch/i386/lib/lib.a /usr/src/linux-2.4.7-ac8/lib/lib.a /usr/src/linux-2.4.7-ac8/arch/i386/lib/lib.a \
	--end-group \
	-o vmlinux
mm/mm.o: In function `init_shmem_fs':
mm/mm.o(.text.init+0xec4): undefined reference to `shmem_set_size'
make: *** [vmlinux] Error 1

	Greg
________________________________________________________________
http://ulima.unil.ch/greg ICQ:16624071 mailto:greg@ulima.unil.ch

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

* Re: 2.4.7-ac8 compilation error
  2001-08-06 21:07 2.4.7-ac8 compilation error Gregoire Favre
@ 2001-08-06 21:17 ` eddantes
  2001-08-06 23:14   ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: eddantes @ 2001-08-06 21:17 UTC (permalink / raw)
  To: Gregoire Favre; +Cc: linux-kernel


Hi everyone

Yep, same error. What's funny is that all the stuff in mm/shmem.c is 
related to the TMPFS (as far as I understood), and seems to be included and 
compiled even if you don't select TMPFS...

I tried to hack a bit around, but to be honest I've got no clue. :)

Have fun
Ed


At 23:07 06/08/2001 +0200, Gregoire Favre wrote:
>Hello,
>
>I got the following error while trying 2.4.7-ac8:
>
>make[1]: Leaving directory `/usr/src/linux-2.4.7-ac8/arch/i386/lib'
>ld -m elf_i386 -T /usr/src/linux-2.4.7-ac8/arch/i386/vmlinux.lds -e stext 
>arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o 
>init/version.o \
>         --start-group \
>         arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o 
> mm/mm.o fs/fs.o ipc/ipc.o \
>         drivers/parport/driver.o drivers/char/char.o 
> drivers/block/block.o drivers/misc/misc.o drivers/net/net.o 
> drivers/media/media.o drivers/char/agp/agp.o drivers/char/drm/drm.o 
> drivers/ide/idedriver.o drivers/scsi/scsidrv.o drivers/cdrom/driver.o 
> drivers/pci/driver.o drivers/video/video.o drivers/usb/usbdrv.o 
> drivers/net/irda/irda.o \
>         net/network.o \
>         /usr/src/linux-2.4.7-ac8/arch/i386/lib/lib.a 
> /usr/src/linux-2.4.7-ac8/lib/lib.a 
> /usr/src/linux-2.4.7-ac8/arch/i386/lib/lib.a \
>         --end-group \
>         -o vmlinux
>mm/mm.o: In function `init_shmem_fs':
>mm/mm.o(.text.init+0xec4): undefined reference to `shmem_set_size'
>make: *** [vmlinux] Error 1
>
>         Greg
>________________________________________________________________
>http://ulima.unil.ch/greg ICQ:16624071 mailto:greg@ulima.unil.ch


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

* Re: 2.4.7-ac8 compilation error
  2001-08-06 21:17 ` eddantes
@ 2001-08-06 23:14   ` Andrew Morton
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew Morton @ 2001-08-06 23:14 UTC (permalink / raw)
  To: eddantes; +Cc: Gregoire Favre, linux-kernel

--- linux-2.4.7-ac8/mm/shmem.c	Mon Aug  6 12:05:28 2001
+++ ac/mm/shmem.c	Mon Aug  6 16:02:39 2001
@@ -739,6 +739,30 @@ struct inode *shmem_get_inode(struct sup
 	return inode;
 }
 
+static int shmem_set_size(struct shmem_sb_info *sbinfo,
+			  unsigned long max_blocks, unsigned long max_inodes)
+{
+	int error;
+	unsigned long blocks, inodes;
+
+	spin_lock(&sbinfo->stat_lock);
+	blocks = sbinfo->max_blocks - sbinfo->free_blocks;
+	inodes = sbinfo->max_inodes - sbinfo->free_inodes;
+	error = -EINVAL;
+	if (max_blocks < blocks)
+		goto out;
+	if (max_inodes < inodes)
+		goto out;
+	error = 0;
+	sbinfo->max_blocks  = max_blocks;
+	sbinfo->free_blocks = max_blocks - blocks;
+	sbinfo->max_inodes  = max_inodes;
+	sbinfo->free_inodes = max_inodes - inodes;
+out:
+	spin_unlock(&sbinfo->stat_lock);
+	return error;
+}
+
 #ifdef CONFIG_TMPFS
 
 static struct inode_operations shmem_symlink_inode_operations;
@@ -1242,30 +1266,6 @@ static int shmem_parse_options(char *opt
 			return 1;
 	}
 	return 0;
-}
-
-static int shmem_set_size(struct shmem_sb_info *sbinfo,
-			  unsigned long max_blocks, unsigned long max_inodes)
-{
-	int error;
-	unsigned long blocks, inodes;
-
-	spin_lock(&sbinfo->stat_lock);
-	blocks = sbinfo->max_blocks - sbinfo->free_blocks;
-	inodes = sbinfo->max_inodes - sbinfo->free_inodes;
-	error = -EINVAL;
-	if (max_blocks < blocks)
-		goto out;
-	if (max_inodes < inodes)
-		goto out;
-	error = 0;
-	sbinfo->max_blocks  = max_blocks;
-	sbinfo->free_blocks = max_blocks - blocks;
-	sbinfo->max_inodes  = max_inodes;
-	sbinfo->free_inodes = max_inodes - inodes;
-out:
-	spin_unlock(&sbinfo->stat_lock);
-	return error;
 }
 
 static int shmem_remount_fs (struct super_block *sb, int *flags, char *data)

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

end of thread, other threads:[~2001-08-06 23:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-06 21:07 2.4.7-ac8 compilation error Gregoire Favre
2001-08-06 21:17 ` eddantes
2001-08-06 23:14   ` Andrew Morton

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