lkml.org 
[lkml]   [2003]   [Dec]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: 2.6.0-test11-wli-2
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:59    [W:0.069 / U:16.276 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site