lkml.org 
[lkml]   [2012]   [Aug]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 45/74] lto: Mark rwsem functions that can be called from assembler asmlinkage
    Date
    From: Andi Kleen <ak@linux.intel.com>

    Signed-off-by: Andi Kleen <ak@linux.intel.com>
    ---
    lib/rwsem.c | 4 ++++
    1 files changed, 4 insertions(+), 0 deletions(-)

    diff --git a/lib/rwsem.c b/lib/rwsem.c
    index 8337e1b..4a33b58 100644
    --- a/lib/rwsem.c
    +++ b/lib/rwsem.c
    @@ -222,6 +222,7 @@ rwsem_down_failed_common(struct rw_semaphore *sem,
    /*
    * wait for the read lock to be granted
    */
    +__visible
    struct rw_semaphore __sched *rwsem_down_read_failed(struct rw_semaphore *sem)
    {
    return rwsem_down_failed_common(sem, RWSEM_WAITING_FOR_READ,
    @@ -231,6 +232,7 @@ struct rw_semaphore __sched *rwsem_down_read_failed(struct rw_semaphore *sem)
    /*
    * wait for the write lock to be granted
    */
    +__visible
    struct rw_semaphore __sched *rwsem_down_write_failed(struct rw_semaphore *sem)
    {
    return rwsem_down_failed_common(sem, RWSEM_WAITING_FOR_WRITE,
    @@ -241,6 +243,7 @@ struct rw_semaphore __sched *rwsem_down_write_failed(struct rw_semaphore *sem)
    * handle waking up a waiter on the semaphore
    * - up_read/up_write has decremented the active part of count if we come here
    */
    +__visible
    struct rw_semaphore *rwsem_wake(struct rw_semaphore *sem)
    {
    unsigned long flags;
    @@ -261,6 +264,7 @@ struct rw_semaphore *rwsem_wake(struct rw_semaphore *sem)
    * - caller incremented waiting part of count and discovered it still negative
    * - just wake up any readers at the front of the queue
    */
    +__visible
    struct rw_semaphore *rwsem_downgrade_wake(struct rw_semaphore *sem)
    {
    unsigned long flags;
    --
    1.7.7.6


    \
     
     \ /
      Last update: 2012-08-19 06:01    [W:0.024 / U:0.324 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site