dazuko-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Dazuko-devel] DazukoFS 3.0.0-rc1 doesn't build


From: John Ogness
Subject: Re: [Dazuko-devel] DazukoFS 3.0.0-rc1 doesn't build
Date: Tue, 07 Oct 2008 08:50:05 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (berkeley-unix)

On 2008-10-06, address@hidden wrote:
> building dazukofs 3.0.0-rc1 with Linux 2.6.25.17 ends up with:
>
>   CC [M]  /x/tv/kernel-2.6/dazukofs-3.0.0-rc1/event.o
> /x/tv/kernel-2.6/dazukofs-3.0.0-rc1/event.c:33: warning: function 
> declaration isn't a prototype
> /x/tv/kernel-2.6/dazukofs-3.0.0-rc1/event.c:33: error: field 'get_current' 
> declared as a function
> /x/tv/kernel-2.6/dazukofs-3.0.0-rc1/event.c: In function 
> 'dazukofs_claim_event':
> /x/tv/kernel-2.6/dazukofs-3.0.0-rc1/event.c:654: error: invalid lvalue in 
> assignment
> make[1]: *** [/x/tv/kernel-2.6/dazukofs-3.0.0-rc1/event.o] Error 1
> make: *** [_module_/x/tv/kernel-2.6/dazukofs-3.0.0-rc1] Error 2
>
> What's happening here?

The problem seems to be that I am using the name "current" for a
member of the dazukofs_proc struct. The patch below should fix it.

John Ogness


--- a/event.c   24 Sep 2008 18:11:11 -0000      1.22
+++ b/event.c   6 Oct 2008 19:37:33 -0000
@@ -30,7 +30,7 @@
 
 struct dazukofs_proc {
        struct list_head list;
-       struct task_struct *current;
+       struct task_struct *curr;
 };
 
 struct dazukofs_event {
@@ -418,7 +418,7 @@
        down(&proc_mutex);
        list_for_each(pos, &proc_list.list) {
                proc = list_entry(pos, struct dazukofs_proc, list);
-               if (proc->current == current) {
+               if (proc->curr == current) {
                        found = 1;
                        list_del(pos);
                        break;
@@ -651,7 +651,7 @@
                goto error_out2;
        }
 
-       proc.current = current;
+       proc.curr = current;
        dazukofs_add_proc(&proc);
        ec->file = dentry_open(dget(evt->dentry), mntget(evt->mnt), O_RDONLY);
        if (IS_ERR(ec->file)) {


-- 
Dazuko Maintainer




reply via email to

[Prev in Thread] Current Thread [Next in Thread]