Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Packet CD and UDF writing
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
faithfull
n00b
n00b


Joined: 06 Jun 2002
Posts: 67

PostPosted: Mon Dec 02, 2002 11:08 pm    Post subject: Packet CD and UDF writing Reply with quote

Hello, in these days I'm in need to write some UDF CD-RWs so I decided to apply the packet patch from [url=http://w1.894.telia.com/~u89404340/)]Peter Osterlund[/url] and apply to the gentoo sources (2.4.19-gentoo-r10).
All hunks succeded except one in file ll_rw.c that was an easy fix.
So I proceeded to the kernel compilation and ... pktcdvd.c is broken!!!
The error message says:
    In file included from pktcdvd.c:115:
    /home/codutti/.gnome-desktop/linux-2.4.19-gentoo-r10-udf/include/linux/pktcdvd.h:29:2: warning: #warning Enabling write caching, use at your own risk
    pktcdvd.c: In function `kcdrwd':
    pktcdvd.c:1185: structure has no member named `nice'
    pktcdvd.c: In function `pkt_init_queue':
    pktcdvd.c:2106: warning: initialization makes integer from pointer without a cast
    pktcdvd.c:2106: warning: initialization from incompatible pointer type
    pktcdvd.c:2106: warning: initialization from incompatible pointer type

Im not a C guru but the only error I see is at line 1185 all the others are warnings. So I decided to give a look to this error and this is what I found at this line (all context):
Code:
static int kcdrwd(void *foobar)
{
        struct pktcdvd_device *pd = foobar;
        request_queue_t *q, *my_queue;
 
        /*
         * exit_files, mm (move to lazy-tlb, so context switches are come
         * extremely cheap) etc
         */
        daemonize();
 
        current->policy = SCHED_OTHER;
        current->nice = -20;
        sprintf(current->comm, pd->name);
The line 1185 says current->nice = -20; and I don't figure why is wrong. :?
Anyone has tried to integrate the packet patch into the gentoo-sources and encountered this problem?
Any help is greatly apreciated.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum