public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <ak@linux.intel.com>
To: akpm@linux-foundation.org
Cc: x86@kernel.org, linux-kernel@vger.kernel.org,
	Andi Kleen <ak@linux.intel.com>,
	mingo@kernel.org
Subject: [PATCH 07/14] asmlinkage, mutex: Mark __visible
Date: Sat,  8 Feb 2014 08:52:03 +0100	[thread overview]
Message-ID: <1391845930-28580-7-git-send-email-ak@linux.intel.com> (raw)
In-Reply-To: <1391845930-28580-1-git-send-email-ak@linux.intel.com>

Various kernel/mutex.c functions can be called from
inline assembler, so they should be all global and
__visible

Cc: mingo@kernel.org
Signed-off-by: Andi Kleen <ak@linux.intel.com>
---
 kernel/locking/mutex.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/kernel/locking/mutex.c b/kernel/locking/mutex.c
index 4dd6e4c..adbc0d0 100644
--- a/kernel/locking/mutex.c
+++ b/kernel/locking/mutex.c
@@ -67,8 +67,7 @@ EXPORT_SYMBOL(__mutex_init);
  * We also put the fastpath first in the kernel image, to make sure the
  * branch is predicted by the CPU as default-untaken.
  */
-static __used noinline void __sched
-__mutex_lock_slowpath(atomic_t *lock_count);
+__visible void __sched __mutex_lock_slowpath(atomic_t *lock_count);
 
 /**
  * mutex_lock - acquire the mutex
@@ -225,7 +224,8 @@ static inline int mutex_can_spin_on_owner(struct mutex *lock)
 }
 #endif
 
-static __used noinline void __sched __mutex_unlock_slowpath(atomic_t *lock_count);
+__visible __used noinline
+void __sched __mutex_unlock_slowpath(atomic_t *lock_count);
 
 /**
  * mutex_unlock - release the mutex
@@ -746,7 +746,7 @@ __mutex_unlock_common_slowpath(atomic_t *lock_count, int nested)
 /*
  * Release the lock, slowpath:
  */
-static __used noinline void
+__visible void
 __mutex_unlock_slowpath(atomic_t *lock_count)
 {
 	__mutex_unlock_common_slowpath(lock_count, 1);
@@ -803,7 +803,7 @@ int __sched mutex_lock_killable(struct mutex *lock)
 }
 EXPORT_SYMBOL(mutex_lock_killable);
 
-static __used noinline void __sched
+__visible void __sched
 __mutex_lock_slowpath(atomic_t *lock_count)
 {
 	struct mutex *lock = container_of(lock_count, struct mutex, count);
-- 
1.8.5.2


  parent reply	other threads:[~2014-02-08  7:52 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-08  7:51 [PATCH 01/14] asmlinkage, kvm: Make kvm_rebooting visible Andi Kleen
2014-02-08  7:51 ` [PATCH 02/14] asmlinkage: Make __iowrite32_copy visible Andi Kleen
2014-02-14  3:57   ` [tip:x86/asmlinkage] " tip-bot for Andi Kleen
2014-02-08  7:51 ` [PATCH 03/14] asmlinkage: Make jiffies visible Andi Kleen
2014-02-14  3:58   ` [tip:x86/asmlinkage] " tip-bot for Andi Kleen
2014-02-08  7:52 ` [PATCH 04/14] asmlinkage, pnp: Make variables used from assembler code visible Andi Kleen
2014-02-14  3:58   ` [tip:x86/asmlinkage] " tip-bot for Andi Kleen
2014-02-08  7:52 ` [PATCH 05/14] asmlinkage: Make lockdep_sys_exit asmlinkage Andi Kleen
2014-02-14  3:58   ` [tip:x86/asmlinkage] " tip-bot for Andi Kleen
2014-02-08  7:52 ` [PATCH 06/14] asmlinkage: Make trace_hardirq visible Andi Kleen
2014-02-10 11:24   ` Peter Zijlstra
2014-02-14  3:58   ` [tip:x86/asmlinkage] " tip-bot for Andi Kleen
2014-02-08  7:52 ` Andi Kleen [this message]
2014-02-14  3:58   ` [tip:x86/asmlinkage] asmlinkage, mutex: Mark __visible tip-bot for Andi Kleen
2014-02-08  7:52 ` [PATCH 08/14] asmlinkage: Make main_extable_sort_needed visible Andi Kleen
2014-02-14  3:59   ` [tip:x86/asmlinkage] " tip-bot for Andi Kleen
2014-02-08  7:52 ` [PATCH 09/14] asmlinkage: Mark rwsem functions that can be called from assembler asmlinkage Andi Kleen
2014-02-14  3:59   ` [tip:x86/asmlinkage] " tip-bot for Andi Kleen
2014-02-08  7:52 ` [PATCH 10/14] asmlinkage Make __stack_chk_failed and memcmp visible Andi Kleen
2014-02-14  3:59   ` [tip:x86/asmlinkage] " tip-bot for Andi Kleen
2014-02-08  7:52 ` [PATCH 11/14] asmlinkage, x86: Fix 32bit memcpy for LTO Andi Kleen
2014-02-14  3:59   ` [tip:x86/asmlinkage] " tip-bot for Andi Kleen
2014-02-08  7:52 ` [PATCH 12/14] asmlinkage: Make trace_hardirqs_on/off_caller visible Andi Kleen
2014-02-14  3:59   ` [tip:x86/asmlinkage] asmlinkage: Make trace_hardirqs_on/ off_caller visible tip-bot for Andi Kleen
2014-02-08  7:52 ` [PATCH 13/14] initconst: Fix initconst mistake in dcdbas Andi Kleen
2014-02-14  4:00   ` [tip:x86/asmlinkage] " tip-bot for Andi Kleen
2014-02-08  7:52 ` [PATCH 14/14] initconst, x86: Fix initconst mistake in ts5500 code Andi Kleen
2014-02-14  4:00   ` [tip:x86/asmlinkage] " tip-bot for Andi Kleen
2014-02-08  8:13 ` [PATCH 01/14] asmlinkage, kvm: Make kvm_rebooting visible Paolo Bonzini
2014-02-10 23:46 ` Andrew Morton
2014-02-14  3:57 ` [tip:x86/asmlinkage] " tip-bot for Andi Kleen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1391845930-28580-7-git-send-email-ak@linux.intel.com \
    --to=ak@linux.intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox