Re: 2.6.0-test11-wli-2

From: William Lee Irwin III
Date: Thu Dec 11 2003 - 15:18:14 EST


On Wed Dec 10 2003, William Lee Irwin III wrote:
> > Successfully tested on a Thinkpad T21
> [....]

On Thu, Dec 11, 2003 at 09:12:13PM +0100, Heinz Diehl wrote:
> Compiling -wli-2 fails showing this:
>
> CC init/version.o
> LD init/built-in.o
> LD .tmp_vmlinux1
> fs/built-in.o(.text+0x29e6a): In function proc_task_readdir':
> : undefined reference to __cmpdi2'
> fs/built-in.o(.text+0x29e7d): In function proc_task_readdir':
> : undefined reference to __cmpdi2'
> make: *** [.tmp_vmlinux1] Error 1
> Greetings, Heinz.

Looks like I dropped this by misake (originally sent in by Hugang):


-- wli


diff -prauN wli-2.6.0-test11-32/fs/proc/base.c wli-2.6.0-test11-33/fs/proc/base.c
--- wli-2.6.0-test11-32/fs/proc/base.c 2003-12-04 08:15:58.000000000 -0800
+++ wli-2.6.0-test11-33/fs/proc/base.c 2003-12-05 01:48:55.000000000 -0800
@@ -1673,12 +1673,13 @@ static int proc_task_readdir(struct file
struct inode *inode = dentry->d_inode;
int retval = -ENOENT;
ino_t ino;
+ unsigned long pos = filp->f_pos; /* avoiding "long long" filp->f_pos */

if (!pid_alive(proc_task(inode)))
goto out;
retval = 0;

- switch (filp->f_pos) {
+ switch (pos) {
case 0:
ino = inode->i_ino;
if (filldir(dirent, ".", 1, filp->f_pos, ino, DT_DIR) < 0)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/