projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01232e9
)
[PARISC] Fix HPUX compat compile with current GCC
author
Matthew Wilcox
<matthew@wil.cx>
Tue, 19 Sep 2006 22:44:38 +0000
(16:44 -0600)
committer
Matthew Wilcox
<willy@parisc-linux.org>
Wed, 4 Oct 2006 12:50:37 +0000
(06:50 -0600)
GCC no longer allows a cast as lvalue; fix the same way fs/readdir.c was
Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
arch/parisc/hpux/fs.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/parisc/hpux/fs.c
b/arch/parisc/hpux/fs.c
index 6e79dbf3f6bdf7e205ccccc5e6e2674c9e8c6b54..2d58b92b57e368094635d1d4431bdcb782ed6d40 100644
(file)
--- a/
arch/parisc/hpux/fs.c
+++ b/
arch/parisc/hpux/fs.c
@@
-96,7
+96,7
@@
static int filldir(void * __buf, const char * name, int namlen, loff_t offset,
put_user(namlen, &dirent->d_namlen);
copy_to_user(dirent->d_name, name, namlen);
put_user(0, dirent->d_name + namlen);
-
((char *) dirent) +=
reclen;
+
dirent = (void __user *)dirent +
reclen;
buf->current_dir = dirent;
buf->count -= reclen;
return 0;