lkml.org 
[lkml]   [2009]   [Aug]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH][RT] Fix build errors in rtmutex
    From
    Date
    Subject: Fix up "too few parameters to function" build errors in rtmutex
    From: Sven-Thorsten Dietrich <sdietrich@suse.de>

    Signed-off-by: Sven-Thorsten Dietrich <sdietrich@suse.de>
    Index: b/kernel/rtmutex.c
    ===================================================================
    --- a/kernel/rtmutex.c
    +++ b/kernel/rtmutex.c
    @@ -1513,7 +1513,8 @@ int rt_mutex_start_proxy_lock(struct rt_

    mark_rt_mutex_waiters(lock);

    - if (!rt_mutex_owner(lock) || try_to_steal_lock(lock, task)) {
    + if (!rt_mutex_owner(lock) ||
    + try_to_steal_lock(lock, task, STEAL_NORMAL)) {
    /* We got the lock for task. */
    debug_rt_mutex_lock(lock);
    rt_mutex_set_owner(lock, task, 0);
    @@ -1522,7 +1523,8 @@ int rt_mutex_start_proxy_lock(struct rt_
    return 1;
    }

    - ret = task_blocks_on_rt_mutex(lock, waiter, task, detect_deadlock);
    + ret = task_blocks_on_rt_mutex(lock, waiter, task, detect_deadlock,
    + flags);

    if (ret && !waiter->task) {
    /*
    Index: b/kernel/trace/ring_buffer.c
    ===================================================================
    --- a/kernel/trace/ring_buffer.c
    +++ b/kernel/trace/ring_buffer.c
    @@ -2522,7 +2522,7 @@ ring_buffer_peek(struct ring_buffer *buf
    if (event && event->type_len == RINGBUF_TYPE_PADDING)
    rb_advance_reader(cpu_buffer);
    if (dolock)
    - atomic_)spin_unlock(&cpu_buffer->reader_lock);
    + atomic_spin_unlock(&cpu_buffer->reader_lock);
    local_irq_restore(flags);

    if (event && event->type_len == RINGBUF_TYPE_PADDING) {



    \
     
     \ /
      Last update: 2009-08-13 06:43    [W:0.020 / U:59.896 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site