All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 01/14] asmlinkage, kvm: Make kvm_rebooting visible
@ 2014-02-08  7:51 Andi Kleen
  2014-02-08  7:51 ` [PATCH 02/14] asmlinkage: Make __iowrite32_copy visible Andi Kleen
                   ` (15 more replies)
  0 siblings, 16 replies; 31+ messages in thread
From: Andi Kleen @ 2014-02-08  7:51 UTC (permalink / raw)
  To: akpm; +Cc: x86, linux-kernel, Andi Kleen, gleb, pbonzini, kvm

kvm_rebooting is referenced from assembler code, thus
needs to be visible.

Cc: gleb@redhat.com
Cc: pbonzini@redhat.com
Cc: kvm@vger.kernel.org
Signed-off-by: Andi Kleen <ak@linux.intel.com>
---
 virt/kvm/kvm_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 03a0381..b5ec7fb 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -102,7 +102,7 @@ static void kvm_release_pfn_dirty(pfn_t pfn);
 static void mark_page_dirty_in_slot(struct kvm *kvm,
 				    struct kvm_memory_slot *memslot, gfn_t gfn);
 
-bool kvm_rebooting;
+__visible bool kvm_rebooting;
 EXPORT_SYMBOL_GPL(kvm_rebooting);
 
 static bool largepages_enabled = true;
-- 
1.8.5.2


^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH 02/14] asmlinkage: Make __iowrite32_copy visible
  2014-02-08  7:51 [PATCH 01/14] asmlinkage, kvm: Make kvm_rebooting visible Andi Kleen
@ 2014-02-08  7:51 ` 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
                   ` (14 subsequent siblings)
  15 siblings, 1 reply; 31+ messages in thread
From: Andi Kleen @ 2014-02-08  7:51 UTC (permalink / raw)
  To: akpm; +Cc: x86, linux-kernel, Andi Kleen

This is a assembler function on x86, so it should be visible.

Cc: x86@kernel.org
Signed-off-by: Andi Kleen <ak@linux.intel.com>
---
 include/linux/io.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/io.h b/include/linux/io.h
index f4f42fa..8a18e75 100644
--- a/include/linux/io.h
+++ b/include/linux/io.h
@@ -24,7 +24,7 @@
 
 struct device;
 
-void __iowrite32_copy(void __iomem *to, const void *from, size_t count);
+__visible void __iowrite32_copy(void __iomem *to, const void *from, size_t count);
 void __iowrite64_copy(void __iomem *to, const void *from, size_t count);
 
 #ifdef CONFIG_MMU
-- 
1.8.5.2


^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH 03/14] asmlinkage: Make jiffies visible
  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-08  7:51 ` 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
                   ` (13 subsequent siblings)
  15 siblings, 1 reply; 31+ messages in thread
From: Andi Kleen @ 2014-02-08  7:51 UTC (permalink / raw)
  To: akpm; +Cc: x86, linux-kernel, Andi Kleen

Jiffies is referenced by the linker script, so it has to be visible.

Handled both the generic and the x86 version.

Cc: x86@kernel.org
Signed-off-by: Andi Kleen <ak@linux.intel.com>
---
 arch/x86/kernel/time.c | 2 +-
 kernel/timer.c         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/kernel/time.c b/arch/x86/kernel/time.c
index 24d3c91..6ec91c0 100644
--- a/arch/x86/kernel/time.c
+++ b/arch/x86/kernel/time.c
@@ -23,7 +23,7 @@
 #include <asm/time.h>
 
 #ifdef CONFIG_X86_64
-DEFINE_VVAR(volatile unsigned long, jiffies) = INITIAL_JIFFIES;
+__visible DEFINE_VVAR(volatile unsigned long, jiffies) = INITIAL_JIFFIES;
 #endif
 
 unsigned long profile_pc(struct pt_regs *regs)
diff --git a/kernel/timer.c b/kernel/timer.c
index accfd24..d78de04 100644
--- a/kernel/timer.c
+++ b/kernel/timer.c
@@ -52,7 +52,7 @@
 #define CREATE_TRACE_POINTS
 #include <trace/events/timer.h>
 
-u64 jiffies_64 __cacheline_aligned_in_smp = INITIAL_JIFFIES;
+__visible u64 jiffies_64 __cacheline_aligned_in_smp = INITIAL_JIFFIES;
 
 EXPORT_SYMBOL(jiffies_64);
 
-- 
1.8.5.2


^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH 04/14] asmlinkage, pnp: Make variables used from assembler code visible
  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-08  7:51 ` [PATCH 03/14] asmlinkage: Make jiffies visible Andi Kleen
@ 2014-02-08  7:52 ` 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
                   ` (12 subsequent siblings)
  15 siblings, 1 reply; 31+ messages in thread
From: Andi Kleen @ 2014-02-08  7:52 UTC (permalink / raw)
  To: akpm; +Cc: x86, linux-kernel, Andi Kleen, perex

Mark variables referenced from assembler files visible.

This fixes compile problems with LTO

Cc: perex@perex.cz
Signed-off-by: Andi Kleen <ak@linux.intel.com>
---
 drivers/pnp/pnpbios/bioscalls.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/drivers/pnp/pnpbios/bioscalls.c b/drivers/pnp/pnpbios/bioscalls.c
index 769d265..deb7f4b 100644
--- a/drivers/pnp/pnpbios/bioscalls.c
+++ b/drivers/pnp/pnpbios/bioscalls.c
@@ -21,7 +21,7 @@
 
 #include "pnpbios.h"
 
-static struct {
+__visible struct {
 	u16 offset;
 	u16 segment;
 } pnp_bios_callpoint;
@@ -41,6 +41,7 @@ asmlinkage void pnp_bios_callfunc(void);
 
 __asm__(".text			\n"
 	__ALIGN_STR "\n"
+	".globl pnp_bios_callfunc\n"
 	"pnp_bios_callfunc:\n"
 	"	pushl %edx	\n"
 	"	pushl %ecx	\n"
@@ -66,9 +67,9 @@ static struct desc_struct bad_bios_desc = GDT_ENTRY_INIT(0x4092,
  * after PnP BIOS oopses.
  */
 
-u32 pnp_bios_fault_esp;
-u32 pnp_bios_fault_eip;
-u32 pnp_bios_is_utter_crap = 0;
+__visible u32 pnp_bios_fault_esp;
+__visible u32 pnp_bios_fault_eip;
+__visible u32 pnp_bios_is_utter_crap = 0;
 
 static spinlock_t pnp_bios_lock;
 
-- 
1.8.5.2


^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH 05/14] asmlinkage: Make lockdep_sys_exit asmlinkage
  2014-02-08  7:51 [PATCH 01/14] asmlinkage, kvm: Make kvm_rebooting visible Andi Kleen
                   ` (2 preceding siblings ...)
  2014-02-08  7:52 ` [PATCH 04/14] asmlinkage, pnp: Make variables used from assembler code visible Andi Kleen
@ 2014-02-08  7:52 ` 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
                   ` (11 subsequent siblings)
  15 siblings, 1 reply; 31+ messages in thread
From: Andi Kleen @ 2014-02-08  7:52 UTC (permalink / raw)
  To: akpm; +Cc: x86, linux-kernel, Andi Kleen, peterz, mingo

lockdep_sys_exit can be called from assembler code, so make it
asmlinkage

Cc: peterz@infradead.org
Cc: mingo@kernel.org
Signed-off-by: Andi Kleen <ak@linux.intel.com>
---
 include/linux/lockdep.h  | 2 +-
 kernel/locking/lockdep.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h
index 92b1bfc..7df9aa6 100644
--- a/include/linux/lockdep.h
+++ b/include/linux/lockdep.h
@@ -265,7 +265,7 @@ extern void lockdep_info(void);
 extern void lockdep_reset(void);
 extern void lockdep_reset_lock(struct lockdep_map *lock);
 extern void lockdep_free_key_range(void *start, unsigned long size);
-extern void lockdep_sys_exit(void);
+extern asmlinkage void lockdep_sys_exit(void);
 
 extern void lockdep_off(void);
 extern void lockdep_on(void);
diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c
index eb8a547..c8b6753c 100644
--- a/kernel/locking/lockdep.c
+++ b/kernel/locking/lockdep.c
@@ -4191,7 +4191,7 @@ void debug_show_held_locks(struct task_struct *task)
 }
 EXPORT_SYMBOL_GPL(debug_show_held_locks);
 
-void lockdep_sys_exit(void)
+asmlinkage void lockdep_sys_exit(void)
 {
 	struct task_struct *curr = current;
 
-- 
1.8.5.2


^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH 06/14] asmlinkage: Make trace_hardirq visible
  2014-02-08  7:51 [PATCH 01/14] asmlinkage, kvm: Make kvm_rebooting visible Andi Kleen
                   ` (3 preceding siblings ...)
  2014-02-08  7:52 ` [PATCH 05/14] asmlinkage: Make lockdep_sys_exit asmlinkage Andi Kleen
@ 2014-02-08  7:52 ` 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 ` [PATCH 07/14] asmlinkage, mutex: Mark __visible Andi Kleen
                   ` (10 subsequent siblings)
  15 siblings, 2 replies; 31+ messages in thread
From: Andi Kleen @ 2014-02-08  7:52 UTC (permalink / raw)
  To: akpm; +Cc: x86, linux-kernel, Andi Kleen, peterz, mingo

Can be called from assembler code.

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

diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c
index c8b6753c..aa3bf15 100644
--- a/kernel/locking/lockdep.c
+++ b/kernel/locking/lockdep.c
@@ -2557,7 +2557,7 @@ static void __trace_hardirqs_on_caller(unsigned long ip)
 	debug_atomic_inc(hardirqs_on_events);
 }
 
-void trace_hardirqs_on_caller(unsigned long ip)
+__visible void trace_hardirqs_on_caller(unsigned long ip)
 {
 	time_hardirqs_on(CALLER_ADDR0, ip);
 
@@ -2610,7 +2610,7 @@ EXPORT_SYMBOL(trace_hardirqs_on);
 /*
  * Hardirqs were disabled:
  */
-void trace_hardirqs_off_caller(unsigned long ip)
+__visible void trace_hardirqs_off_caller(unsigned long ip)
 {
 	struct task_struct *curr = current;
 
-- 
1.8.5.2


^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH 07/14] asmlinkage, mutex: Mark __visible
  2014-02-08  7:51 [PATCH 01/14] asmlinkage, kvm: Make kvm_rebooting visible Andi Kleen
                   ` (4 preceding siblings ...)
  2014-02-08  7:52 ` [PATCH 06/14] asmlinkage: Make trace_hardirq visible Andi Kleen
@ 2014-02-08  7:52 ` Andi Kleen
  2014-02-14  3:58   ` [tip:x86/asmlinkage] " tip-bot for Andi Kleen
  2014-02-08  7:52 ` [PATCH 08/14] asmlinkage: Make main_extable_sort_needed visible Andi Kleen
                   ` (9 subsequent siblings)
  15 siblings, 1 reply; 31+ messages in thread
From: Andi Kleen @ 2014-02-08  7:52 UTC (permalink / raw)
  To: akpm; +Cc: x86, linux-kernel, Andi Kleen, mingo

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


^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH 08/14] asmlinkage: Make main_extable_sort_needed visible
  2014-02-08  7:51 [PATCH 01/14] asmlinkage, kvm: Make kvm_rebooting visible Andi Kleen
                   ` (5 preceding siblings ...)
  2014-02-08  7:52 ` [PATCH 07/14] asmlinkage, mutex: Mark __visible Andi Kleen
@ 2014-02-08  7:52 ` 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
                   ` (8 subsequent siblings)
  15 siblings, 1 reply; 31+ messages in thread
From: Andi Kleen @ 2014-02-08  7:52 UTC (permalink / raw)
  To: akpm; +Cc: x86, linux-kernel, Andi Kleen

main_extable_sort_needed is used by the build system and needs
to be a normal ELF symbol. Make it visible so that LTO
does not remove or mangle it.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
---
 kernel/extable.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/extable.c b/kernel/extable.c
index 763faf0..d8a6446 100644
--- a/kernel/extable.c
+++ b/kernel/extable.c
@@ -36,7 +36,7 @@ extern struct exception_table_entry __start___ex_table[];
 extern struct exception_table_entry __stop___ex_table[];
 
 /* Cleared by build time tools if the table is already sorted. */
-u32 __initdata main_extable_sort_needed = 1;
+u32 __initdata __visible main_extable_sort_needed = 1;
 
 /* Sort the kernel's built-in exception table */
 void __init sort_main_extable(void)
-- 
1.8.5.2


^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH 09/14] asmlinkage: Mark rwsem functions that can be called from assembler asmlinkage
  2014-02-08  7:51 [PATCH 01/14] asmlinkage, kvm: Make kvm_rebooting visible Andi Kleen
                   ` (6 preceding siblings ...)
  2014-02-08  7:52 ` [PATCH 08/14] asmlinkage: Make main_extable_sort_needed visible Andi Kleen
@ 2014-02-08  7:52 ` 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
                   ` (7 subsequent siblings)
  15 siblings, 1 reply; 31+ messages in thread
From: Andi Kleen @ 2014-02-08  7:52 UTC (permalink / raw)
  To: akpm; +Cc: x86, linux-kernel, Andi Kleen

Signed-off-by: Andi Kleen <ak@linux.intel.com>
---
 kernel/locking/rwsem-xadd.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/kernel/locking/rwsem-xadd.c b/kernel/locking/rwsem-xadd.c
index 19c5fa9..1d66e08 100644
--- a/kernel/locking/rwsem-xadd.c
+++ b/kernel/locking/rwsem-xadd.c
@@ -143,6 +143,7 @@ __rwsem_do_wake(struct rw_semaphore *sem, enum rwsem_wake_type wake_type)
 /*
  * wait for the read lock to be granted
  */
+__visible
 struct rw_semaphore __sched *rwsem_down_read_failed(struct rw_semaphore *sem)
 {
 	long count, adjustment = -RWSEM_ACTIVE_READ_BIAS;
@@ -190,6 +191,7 @@ struct rw_semaphore __sched *rwsem_down_read_failed(struct rw_semaphore *sem)
 /*
  * wait until we successfully acquire the write lock
  */
+__visible
 struct rw_semaphore __sched *rwsem_down_write_failed(struct rw_semaphore *sem)
 {
 	long count, adjustment = -RWSEM_ACTIVE_WRITE_BIAS;
@@ -252,6 +254,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;
@@ -272,6 +275,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.8.5.2


^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH 10/14] asmlinkage Make __stack_chk_failed and memcmp visible
  2014-02-08  7:51 [PATCH 01/14] asmlinkage, kvm: Make kvm_rebooting visible Andi Kleen
                   ` (7 preceding siblings ...)
  2014-02-08  7:52 ` [PATCH 09/14] asmlinkage: Mark rwsem functions that can be called from assembler asmlinkage Andi Kleen
@ 2014-02-08  7:52 ` 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
                   ` (6 subsequent siblings)
  15 siblings, 1 reply; 31+ messages in thread
From: Andi Kleen @ 2014-02-08  7:52 UTC (permalink / raw)
  To: akpm; +Cc: x86, linux-kernel, Andi Kleen

In LTO symbols implicitely referenced by the compiler need
to be visible. Earlier these symbols were visible implicitely
from being exported, but we disabled implicit visibility fo
 EXPORTs when modules are disabled to improve code size. So
now these symbols have to be marked visible explicitely.

Do this for __stack_chk_fail (with stack protector)
and memcmp.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
---
 kernel/panic.c | 2 +-
 lib/string.c   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/panic.c b/kernel/panic.c
index 6d63003..3eb0ffb 100644
--- a/kernel/panic.c
+++ b/kernel/panic.c
@@ -459,7 +459,7 @@ EXPORT_SYMBOL(warn_slowpath_null);
  * Called when gcc's -fstack-protector feature is used, and
  * gcc detects corruption of the on-stack canary value
  */
-void __stack_chk_fail(void)
+__visible void __stack_chk_fail(void)
 {
 	panic("stack-protector: Kernel stack is corrupted in: %p\n",
 		__builtin_return_address(0));
diff --git a/lib/string.c b/lib/string.c
index e5878de..9b1f906 100644
--- a/lib/string.c
+++ b/lib/string.c
@@ -648,7 +648,7 @@ EXPORT_SYMBOL(memmove);
  * @count: The size of the area.
  */
 #undef memcmp
-int memcmp(const void *cs, const void *ct, size_t count)
+__visible int memcmp(const void *cs, const void *ct, size_t count)
 {
 	const unsigned char *su1, *su2;
 	int res = 0;
-- 
1.8.5.2


^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH 11/14] asmlinkage, x86: Fix 32bit memcpy for LTO
  2014-02-08  7:51 [PATCH 01/14] asmlinkage, kvm: Make kvm_rebooting visible Andi Kleen
                   ` (8 preceding siblings ...)
  2014-02-08  7:52 ` [PATCH 10/14] asmlinkage Make __stack_chk_failed and memcmp visible Andi Kleen
@ 2014-02-08  7:52 ` 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
                   ` (5 subsequent siblings)
  15 siblings, 1 reply; 31+ messages in thread
From: Andi Kleen @ 2014-02-08  7:52 UTC (permalink / raw)
  To: akpm; +Cc: x86, linux-kernel, Andi Kleen

These functions can be called implicitely from gcc, and thus need to be
visible.

Cc: x86@kernel.org
Signed-off-by: Andi Kleen <ak@linux.intel.com>
---
 arch/x86/lib/memcpy_32.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/x86/lib/memcpy_32.c b/arch/x86/lib/memcpy_32.c
index e78761d..a404b4b 100644
--- a/arch/x86/lib/memcpy_32.c
+++ b/arch/x86/lib/memcpy_32.c
@@ -4,7 +4,7 @@
 #undef memcpy
 #undef memset
 
-void *memcpy(void *to, const void *from, size_t n)
+__visible void *memcpy(void *to, const void *from, size_t n)
 {
 #ifdef CONFIG_X86_USE_3DNOW
 	return __memcpy3d(to, from, n);
@@ -14,13 +14,13 @@ void *memcpy(void *to, const void *from, size_t n)
 }
 EXPORT_SYMBOL(memcpy);
 
-void *memset(void *s, int c, size_t count)
+__visible void *memset(void *s, int c, size_t count)
 {
 	return __memset(s, c, count);
 }
 EXPORT_SYMBOL(memset);
 
-void *memmove(void *dest, const void *src, size_t n)
+__visible void *memmove(void *dest, const void *src, size_t n)
 {
 	int d0,d1,d2,d3,d4,d5;
 	char *ret = dest;
-- 
1.8.5.2


^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH 12/14] asmlinkage: Make trace_hardirqs_on/off_caller visible
  2014-02-08  7:51 [PATCH 01/14] asmlinkage, kvm: Make kvm_rebooting visible Andi Kleen
                   ` (9 preceding siblings ...)
  2014-02-08  7:52 ` [PATCH 11/14] asmlinkage, x86: Fix 32bit memcpy for LTO Andi Kleen
@ 2014-02-08  7:52 ` 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
                   ` (4 subsequent siblings)
  15 siblings, 1 reply; 31+ messages in thread
From: Andi Kleen @ 2014-02-08  7:52 UTC (permalink / raw)
  To: akpm; +Cc: x86, linux-kernel, Andi Kleen, Steven Rostedt

These functions are called from assembler, and thus need to be
__visible

Cc: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
---
 kernel/trace/trace_irqsoff.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/trace/trace_irqsoff.c b/kernel/trace/trace_irqsoff.c
index 2aefbee..887ef88 100644
--- a/kernel/trace/trace_irqsoff.c
+++ b/kernel/trace/trace_irqsoff.c
@@ -498,14 +498,14 @@ void trace_hardirqs_off(void)
 }
 EXPORT_SYMBOL(trace_hardirqs_off);
 
-void trace_hardirqs_on_caller(unsigned long caller_addr)
+__visible void trace_hardirqs_on_caller(unsigned long caller_addr)
 {
 	if (!preempt_trace() && irq_trace())
 		stop_critical_timing(CALLER_ADDR0, caller_addr);
 }
 EXPORT_SYMBOL(trace_hardirqs_on_caller);
 
-void trace_hardirqs_off_caller(unsigned long caller_addr)
+__visible void trace_hardirqs_off_caller(unsigned long caller_addr)
 {
 	if (!preempt_trace() && irq_trace())
 		start_critical_timing(CALLER_ADDR0, caller_addr);
-- 
1.8.5.2


^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH 13/14] initconst: Fix initconst mistake in dcdbas
  2014-02-08  7:51 [PATCH 01/14] asmlinkage, kvm: Make kvm_rebooting visible Andi Kleen
                   ` (10 preceding siblings ...)
  2014-02-08  7:52 ` [PATCH 12/14] asmlinkage: Make trace_hardirqs_on/off_caller visible Andi Kleen
@ 2014-02-08  7:52 ` 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
                   ` (3 subsequent siblings)
  15 siblings, 1 reply; 31+ messages in thread
From: Andi Kleen @ 2014-02-08  7:52 UTC (permalink / raw)
  To: akpm; +Cc: x86, linux-kernel, Andi Kleen, Douglas_Warzecha

const must be __initconst

Cc: Douglas_Warzecha@dell.com
Signed-off-by: Andi Kleen <ak@linux.intel.com>
---
 drivers/firmware/dcdbas.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/firmware/dcdbas.c b/drivers/firmware/dcdbas.c
index 1b5e8e4..7160c43 100644
--- a/drivers/firmware/dcdbas.c
+++ b/drivers/firmware/dcdbas.c
@@ -584,7 +584,7 @@ static struct platform_driver dcdbas_driver = {
 	.remove		= dcdbas_remove,
 };
 
-static const struct platform_device_info dcdbas_dev_info __initdata = {
+static const struct platform_device_info dcdbas_dev_info __initconst = {
 	.name		= DRIVER_NAME,
 	.id		= -1,
 	.dma_mask	= DMA_BIT_MASK(32),
-- 
1.8.5.2


^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH 14/14] initconst, x86: Fix initconst mistake in ts5500 code
  2014-02-08  7:51 [PATCH 01/14] asmlinkage, kvm: Make kvm_rebooting visible Andi Kleen
                   ` (11 preceding siblings ...)
  2014-02-08  7:52 ` [PATCH 13/14] initconst: Fix initconst mistake in dcdbas Andi Kleen
@ 2014-02-08  7:52 ` 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
                   ` (2 subsequent siblings)
  15 siblings, 1 reply; 31+ messages in thread
From: Andi Kleen @ 2014-02-08  7:52 UTC (permalink / raw)
  To: akpm; +Cc: x86, linux-kernel, Andi Kleen

const data must be initconst.

Cc: x86@kernel.org
Signed-off-by: Andi Kleen <ak@linux.intel.com>
---
 arch/x86/platform/ts5500/ts5500.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/platform/ts5500/ts5500.c b/arch/x86/platform/ts5500/ts5500.c
index 39febb2..9471b94 100644
--- a/arch/x86/platform/ts5500/ts5500.c
+++ b/arch/x86/platform/ts5500/ts5500.c
@@ -88,7 +88,7 @@ struct ts5500_sbc {
 static const struct {
 	const char * const string;
 	const ssize_t offset;
-} ts5500_signatures[] __initdata = {
+} ts5500_signatures[] __initconst = {
 	{ "TS-5x00 AMD Elan", 0xb14 },
 };
 
-- 
1.8.5.2


^ permalink raw reply related	[flat|nested] 31+ messages in thread

* Re: [PATCH 01/14] asmlinkage, kvm: Make kvm_rebooting visible
  2014-02-08  7:51 [PATCH 01/14] asmlinkage, kvm: Make kvm_rebooting visible Andi Kleen
                   ` (12 preceding siblings ...)
  2014-02-08  7:52 ` [PATCH 14/14] initconst, x86: Fix initconst mistake in ts5500 code Andi Kleen
@ 2014-02-08  8:13 ` Paolo Bonzini
  2014-02-10 23:46 ` Andrew Morton
  2014-02-14  3:57 ` [tip:x86/asmlinkage] " tip-bot for Andi Kleen
  15 siblings, 0 replies; 31+ messages in thread
From: Paolo Bonzini @ 2014-02-08  8:13 UTC (permalink / raw)
  To: Andi Kleen, akpm; +Cc: x86, linux-kernel, gleb, kvm

Il 08/02/2014 08:51, Andi Kleen ha scritto:
> kvm_rebooting is referenced from assembler code, thus
> needs to be visible.
>
> Cc: gleb@redhat.com
> Cc: pbonzini@redhat.com
> Cc: kvm@vger.kernel.org
> Signed-off-by: Andi Kleen <ak@linux.intel.com>
> ---
>  virt/kvm/kvm_main.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
> index 03a0381..b5ec7fb 100644
> --- a/virt/kvm/kvm_main.c
> +++ b/virt/kvm/kvm_main.c
> @@ -102,7 +102,7 @@ static void kvm_release_pfn_dirty(pfn_t pfn);
>  static void mark_page_dirty_in_slot(struct kvm *kvm,
>  				    struct kvm_memory_slot *memslot, gfn_t gfn);
>
> -bool kvm_rebooting;
> +__visible bool kvm_rebooting;
>  EXPORT_SYMBOL_GPL(kvm_rebooting);
>
>  static bool largepages_enabled = true;
>

Acked-by: Paolo Bonzini <pbonzini@redhat.com>

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [PATCH 06/14] asmlinkage: Make trace_hardirq visible
  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
  1 sibling, 0 replies; 31+ messages in thread
From: Peter Zijlstra @ 2014-02-10 11:24 UTC (permalink / raw)
  To: Andi Kleen; +Cc: akpm, x86, linux-kernel, mingo

On Sat, Feb 08, 2014 at 08:52:02AM +0100, Andi Kleen wrote:
> Can be called from assembler code.

This lacks context; what does __visible do and why does it matter for
asm.

> Cc: peterz@infradead.org
> Cc: mingo@kernel.org
> Signed-off-by: Andi Kleen <ak@linux.intel.com>
> ---
>  kernel/locking/lockdep.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c
> index c8b6753c..aa3bf15 100644
> --- a/kernel/locking/lockdep.c
> +++ b/kernel/locking/lockdep.c
> @@ -2557,7 +2557,7 @@ static void __trace_hardirqs_on_caller(unsigned long ip)
>  	debug_atomic_inc(hardirqs_on_events);
>  }
>  
> -void trace_hardirqs_on_caller(unsigned long ip)
> +__visible void trace_hardirqs_on_caller(unsigned long ip)
>  {
>  	time_hardirqs_on(CALLER_ADDR0, ip);
>  
> @@ -2610,7 +2610,7 @@ EXPORT_SYMBOL(trace_hardirqs_on);
>  /*
>   * Hardirqs were disabled:
>   */
> -void trace_hardirqs_off_caller(unsigned long ip)
> +__visible void trace_hardirqs_off_caller(unsigned long ip)
>  {
>  	struct task_struct *curr = current;
>  
> -- 
> 1.8.5.2
> 

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [PATCH 01/14] asmlinkage, kvm: Make kvm_rebooting visible
  2014-02-08  7:51 [PATCH 01/14] asmlinkage, kvm: Make kvm_rebooting visible Andi Kleen
                   ` (13 preceding siblings ...)
  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
  15 siblings, 0 replies; 31+ messages in thread
From: Andrew Morton @ 2014-02-10 23:46 UTC (permalink / raw)
  To: Andi Kleen; +Cc: x86, linux-kernel, gleb, pbonzini, kvm

On Sat,  8 Feb 2014 08:51:57 +0100 Andi Kleen <ak@linux.intel.com> wrote:

> kvm_rebooting is referenced from assembler code, thus
> needs to be visible.

So I read the gcc page and looked at the __visible definition but I
still don't really get it.  What goes wrong if the __visible isn't
present on these referenced-from-asm identifiers?

> Cc: gleb@redhat.com
> Cc: pbonzini@redhat.com

Grumble.  Email addresses go into commits with display names and <>. 
At least, 89.3% of them do.  Some sucker has to go through these and
fix them up.  I'd prefer it not be me ;)

>
> ...
>
> --- a/virt/kvm/kvm_main.c
> +++ b/virt/kvm/kvm_main.c
> @@ -102,7 +102,7 @@ static void kvm_release_pfn_dirty(pfn_t pfn);
>  static void mark_page_dirty_in_slot(struct kvm *kvm,
>  				    struct kvm_memory_slot *memslot, gfn_t gfn);
>  
> -bool kvm_rebooting;
> +__visible bool kvm_rebooting;
>  EXPORT_SYMBOL_GPL(kvm_rebooting);
>  
>  static bool largepages_enabled = true;

^ permalink raw reply	[flat|nested] 31+ messages in thread

* [tip:x86/asmlinkage] asmlinkage, kvm: Make kvm_rebooting visible
  2014-02-08  7:51 [PATCH 01/14] asmlinkage, kvm: Make kvm_rebooting visible Andi Kleen
                   ` (14 preceding siblings ...)
  2014-02-10 23:46 ` Andrew Morton
@ 2014-02-14  3:57 ` tip-bot for Andi Kleen
  15 siblings, 0 replies; 31+ messages in thread
From: tip-bot for Andi Kleen @ 2014-02-14  3:57 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, gleb, pbonzini, ak, tglx, hpa

Commit-ID:  52480137d82062bb8d0fb778cb9934667958e367
Gitweb:     http://git.kernel.org/tip/52480137d82062bb8d0fb778cb9934667958e367
Author:     Andi Kleen <ak@linux.intel.com>
AuthorDate: Sat, 8 Feb 2014 08:51:57 +0100
Committer:  H. Peter Anvin <hpa@linux.intel.com>
CommitDate: Thu, 13 Feb 2014 18:11:56 -0800

asmlinkage, kvm: Make kvm_rebooting visible

kvm_rebooting is referenced from assembler code, thus
needs to be visible.

Cc: Gleb Natapov <gleb@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1391845930-28580-1-git-send-email-ak@linux.intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
---
 virt/kvm/kvm_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 03a0381..b5ec7fb 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -102,7 +102,7 @@ static void kvm_release_pfn_dirty(pfn_t pfn);
 static void mark_page_dirty_in_slot(struct kvm *kvm,
 				    struct kvm_memory_slot *memslot, gfn_t gfn);
 
-bool kvm_rebooting;
+__visible bool kvm_rebooting;
 EXPORT_SYMBOL_GPL(kvm_rebooting);
 
 static bool largepages_enabled = true;

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [tip:x86/asmlinkage] asmlinkage: Make __iowrite32_copy visible
  2014-02-08  7:51 ` [PATCH 02/14] asmlinkage: Make __iowrite32_copy visible Andi Kleen
@ 2014-02-14  3:57   ` tip-bot for Andi Kleen
  0 siblings, 0 replies; 31+ messages in thread
From: tip-bot for Andi Kleen @ 2014-02-14  3:57 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, ak, tglx, hpa

Commit-ID:  d47d5c8194579bce1d62f88e26fea91d7c553e42
Gitweb:     http://git.kernel.org/tip/d47d5c8194579bce1d62f88e26fea91d7c553e42
Author:     Andi Kleen <ak@linux.intel.com>
AuthorDate: Sat, 8 Feb 2014 08:51:58 +0100
Committer:  H. Peter Anvin <hpa@linux.intel.com>
CommitDate: Thu, 13 Feb 2014 18:12:04 -0800

asmlinkage: Make __iowrite32_copy visible

This is a assembler function on x86, so it should be visible.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1391845930-28580-2-git-send-email-ak@linux.intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
---
 include/linux/io.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/io.h b/include/linux/io.h
index f4f42fa..8a18e75 100644
--- a/include/linux/io.h
+++ b/include/linux/io.h
@@ -24,7 +24,7 @@
 
 struct device;
 
-void __iowrite32_copy(void __iomem *to, const void *from, size_t count);
+__visible void __iowrite32_copy(void __iomem *to, const void *from, size_t count);
 void __iowrite64_copy(void __iomem *to, const void *from, size_t count);
 
 #ifdef CONFIG_MMU

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [tip:x86/asmlinkage] asmlinkage: Make jiffies visible
  2014-02-08  7:51 ` [PATCH 03/14] asmlinkage: Make jiffies visible Andi Kleen
@ 2014-02-14  3:58   ` tip-bot for Andi Kleen
  0 siblings, 0 replies; 31+ messages in thread
From: tip-bot for Andi Kleen @ 2014-02-14  3:58 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, ak, tglx, hpa

Commit-ID:  40747ffa5aa8d5b99ca46c696234b9194b59e0ac
Gitweb:     http://git.kernel.org/tip/40747ffa5aa8d5b99ca46c696234b9194b59e0ac
Author:     Andi Kleen <ak@linux.intel.com>
AuthorDate: Sat, 8 Feb 2014 08:51:59 +0100
Committer:  H. Peter Anvin <hpa@linux.intel.com>
CommitDate: Thu, 13 Feb 2014 18:12:09 -0800

asmlinkage: Make jiffies visible

Jiffies is referenced by the linker script, so it has to be visible.

Handled both the generic and the x86 version.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1391845930-28580-3-git-send-email-ak@linux.intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
---
 arch/x86/kernel/time.c | 2 +-
 kernel/timer.c         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/kernel/time.c b/arch/x86/kernel/time.c
index 24d3c91..6ec91c0 100644
--- a/arch/x86/kernel/time.c
+++ b/arch/x86/kernel/time.c
@@ -23,7 +23,7 @@
 #include <asm/time.h>
 
 #ifdef CONFIG_X86_64
-DEFINE_VVAR(volatile unsigned long, jiffies) = INITIAL_JIFFIES;
+__visible DEFINE_VVAR(volatile unsigned long, jiffies) = INITIAL_JIFFIES;
 #endif
 
 unsigned long profile_pc(struct pt_regs *regs)
diff --git a/kernel/timer.c b/kernel/timer.c
index accfd24..d78de04 100644
--- a/kernel/timer.c
+++ b/kernel/timer.c
@@ -52,7 +52,7 @@
 #define CREATE_TRACE_POINTS
 #include <trace/events/timer.h>
 
-u64 jiffies_64 __cacheline_aligned_in_smp = INITIAL_JIFFIES;
+__visible u64 jiffies_64 __cacheline_aligned_in_smp = INITIAL_JIFFIES;
 
 EXPORT_SYMBOL(jiffies_64);
 

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [tip:x86/asmlinkage] asmlinkage, pnp: Make variables used from assembler code visible
  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-bot for Andi Kleen
  0 siblings, 0 replies; 31+ messages in thread
From: tip-bot for Andi Kleen @ 2014-02-14  3:58 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, ak, tglx, hpa, perex

Commit-ID:  a99aa42d0253f033cbb85096d3f2bd82201321e6
Gitweb:     http://git.kernel.org/tip/a99aa42d0253f033cbb85096d3f2bd82201321e6
Author:     Andi Kleen <ak@linux.intel.com>
AuthorDate: Sat, 8 Feb 2014 08:52:00 +0100
Committer:  H. Peter Anvin <hpa@linux.intel.com>
CommitDate: Thu, 13 Feb 2014 18:12:27 -0800

asmlinkage, pnp: Make variables used from assembler code visible

Mark variables referenced from assembler files visible.

This fixes compile problems with LTO.

Cc: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1391845930-28580-4-git-send-email-ak@linux.intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
---
 drivers/pnp/pnpbios/bioscalls.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/drivers/pnp/pnpbios/bioscalls.c b/drivers/pnp/pnpbios/bioscalls.c
index 769d265..deb7f4b 100644
--- a/drivers/pnp/pnpbios/bioscalls.c
+++ b/drivers/pnp/pnpbios/bioscalls.c
@@ -21,7 +21,7 @@
 
 #include "pnpbios.h"
 
-static struct {
+__visible struct {
 	u16 offset;
 	u16 segment;
 } pnp_bios_callpoint;
@@ -41,6 +41,7 @@ asmlinkage void pnp_bios_callfunc(void);
 
 __asm__(".text			\n"
 	__ALIGN_STR "\n"
+	".globl pnp_bios_callfunc\n"
 	"pnp_bios_callfunc:\n"
 	"	pushl %edx	\n"
 	"	pushl %ecx	\n"
@@ -66,9 +67,9 @@ static struct desc_struct bad_bios_desc = GDT_ENTRY_INIT(0x4092,
  * after PnP BIOS oopses.
  */
 
-u32 pnp_bios_fault_esp;
-u32 pnp_bios_fault_eip;
-u32 pnp_bios_is_utter_crap = 0;
+__visible u32 pnp_bios_fault_esp;
+__visible u32 pnp_bios_fault_eip;
+__visible u32 pnp_bios_is_utter_crap = 0;
 
 static spinlock_t pnp_bios_lock;
 

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [tip:x86/asmlinkage] asmlinkage: Make lockdep_sys_exit asmlinkage
  2014-02-08  7:52 ` [PATCH 05/14] asmlinkage: Make lockdep_sys_exit asmlinkage Andi Kleen
@ 2014-02-14  3:58   ` tip-bot for Andi Kleen
  0 siblings, 0 replies; 31+ messages in thread
From: tip-bot for Andi Kleen @ 2014-02-14  3:58 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, peterz, ak, tglx, hpa

Commit-ID:  63f9a7fde715352e0769302527670542a664b981
Gitweb:     http://git.kernel.org/tip/63f9a7fde715352e0769302527670542a664b981
Author:     Andi Kleen <ak@linux.intel.com>
AuthorDate: Sat, 8 Feb 2014 08:52:01 +0100
Committer:  H. Peter Anvin <hpa@linux.intel.com>
CommitDate: Thu, 13 Feb 2014 18:12:54 -0800

asmlinkage: Make lockdep_sys_exit asmlinkage

lockdep_sys_exit can be called from assembler code, so make it
asmlinkage.

Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1391845930-28580-5-git-send-email-ak@linux.intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
---
 include/linux/lockdep.h  | 2 +-
 kernel/locking/lockdep.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h
index 92b1bfc..7df9aa6 100644
--- a/include/linux/lockdep.h
+++ b/include/linux/lockdep.h
@@ -265,7 +265,7 @@ extern void lockdep_info(void);
 extern void lockdep_reset(void);
 extern void lockdep_reset_lock(struct lockdep_map *lock);
 extern void lockdep_free_key_range(void *start, unsigned long size);
-extern void lockdep_sys_exit(void);
+extern asmlinkage void lockdep_sys_exit(void);
 
 extern void lockdep_off(void);
 extern void lockdep_on(void);
diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c
index eb8a547..c8b6753c 100644
--- a/kernel/locking/lockdep.c
+++ b/kernel/locking/lockdep.c
@@ -4191,7 +4191,7 @@ void debug_show_held_locks(struct task_struct *task)
 }
 EXPORT_SYMBOL_GPL(debug_show_held_locks);
 
-void lockdep_sys_exit(void)
+asmlinkage void lockdep_sys_exit(void)
 {
 	struct task_struct *curr = current;
 

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [tip:x86/asmlinkage] asmlinkage: Make trace_hardirq visible
  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-bot for Andi Kleen
  1 sibling, 0 replies; 31+ messages in thread
From: tip-bot for Andi Kleen @ 2014-02-14  3:58 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, peterz, ak, tglx, hpa

Commit-ID:  b35f8305339f1ba3070fe606c6ef0d86ef093dee
Gitweb:     http://git.kernel.org/tip/b35f8305339f1ba3070fe606c6ef0d86ef093dee
Author:     Andi Kleen <ak@linux.intel.com>
AuthorDate: Sat, 8 Feb 2014 08:52:02 +0100
Committer:  H. Peter Anvin <hpa@linux.intel.com>
CommitDate: Thu, 13 Feb 2014 18:13:07 -0800

asmlinkage: Make trace_hardirq visible

Can be called from assembler code.

Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1391845930-28580-6-git-send-email-ak@linux.intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
---
 kernel/locking/lockdep.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c
index c8b6753c..aa3bf15 100644
--- a/kernel/locking/lockdep.c
+++ b/kernel/locking/lockdep.c
@@ -2557,7 +2557,7 @@ static void __trace_hardirqs_on_caller(unsigned long ip)
 	debug_atomic_inc(hardirqs_on_events);
 }
 
-void trace_hardirqs_on_caller(unsigned long ip)
+__visible void trace_hardirqs_on_caller(unsigned long ip)
 {
 	time_hardirqs_on(CALLER_ADDR0, ip);
 
@@ -2610,7 +2610,7 @@ EXPORT_SYMBOL(trace_hardirqs_on);
 /*
  * Hardirqs were disabled:
  */
-void trace_hardirqs_off_caller(unsigned long ip)
+__visible void trace_hardirqs_off_caller(unsigned long ip)
 {
 	struct task_struct *curr = current;
 

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [tip:x86/asmlinkage] asmlinkage, mutex: Mark __visible
  2014-02-08  7:52 ` [PATCH 07/14] asmlinkage, mutex: Mark __visible Andi Kleen
@ 2014-02-14  3:58   ` tip-bot for Andi Kleen
  0 siblings, 0 replies; 31+ messages in thread
From: tip-bot for Andi Kleen @ 2014-02-14  3:58 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, ak, tglx, hpa

Commit-ID:  22d9fd3411c693ccae5f5c2280fb1f9bb106ad4f
Gitweb:     http://git.kernel.org/tip/22d9fd3411c693ccae5f5c2280fb1f9bb106ad4f
Author:     Andi Kleen <ak@linux.intel.com>
AuthorDate: Sat, 8 Feb 2014 08:52:03 +0100
Committer:  H. Peter Anvin <hpa@linux.intel.com>
CommitDate: Thu, 13 Feb 2014 18:13:19 -0800

asmlinkage, mutex: Mark __visible

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

Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1391845930-28580-7-git-send-email-ak@linux.intel.com
Signed-off-by: H. Peter Anvin <hpa@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);

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [tip:x86/asmlinkage] asmlinkage: Make main_extable_sort_needed visible
  2014-02-08  7:52 ` [PATCH 08/14] asmlinkage: Make main_extable_sort_needed visible Andi Kleen
@ 2014-02-14  3:59   ` tip-bot for Andi Kleen
  0 siblings, 0 replies; 31+ messages in thread
From: tip-bot for Andi Kleen @ 2014-02-14  3:59 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, ak, tglx, hpa

Commit-ID:  00b7103078596a243c16239004e0dc9416910f13
Gitweb:     http://git.kernel.org/tip/00b7103078596a243c16239004e0dc9416910f13
Author:     Andi Kleen <ak@linux.intel.com>
AuthorDate: Sat, 8 Feb 2014 08:52:04 +0100
Committer:  H. Peter Anvin <hpa@linux.intel.com>
CommitDate: Thu, 13 Feb 2014 18:13:22 -0800

asmlinkage: Make main_extable_sort_needed visible

main_extable_sort_needed is used by the build system and needs
to be a normal ELF symbol. Make it visible so that LTO
does not remove or mangle it.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1391845930-28580-8-git-send-email-ak@linux.intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
---
 kernel/extable.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/extable.c b/kernel/extable.c
index 763faf0..d8a6446 100644
--- a/kernel/extable.c
+++ b/kernel/extable.c
@@ -36,7 +36,7 @@ extern struct exception_table_entry __start___ex_table[];
 extern struct exception_table_entry __stop___ex_table[];
 
 /* Cleared by build time tools if the table is already sorted. */
-u32 __initdata main_extable_sort_needed = 1;
+u32 __initdata __visible main_extable_sort_needed = 1;
 
 /* Sort the kernel's built-in exception table */
 void __init sort_main_extable(void)

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [tip:x86/asmlinkage] asmlinkage: Mark rwsem functions that can be called from assembler asmlinkage
  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-bot for Andi Kleen
  0 siblings, 0 replies; 31+ messages in thread
From: tip-bot for Andi Kleen @ 2014-02-14  3:59 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, ak, tglx, hpa

Commit-ID:  3ebae4f3a2e746ae17f25c741e249294e7d6d7c2
Gitweb:     http://git.kernel.org/tip/3ebae4f3a2e746ae17f25c741e249294e7d6d7c2
Author:     Andi Kleen <ak@linux.intel.com>
AuthorDate: Sat, 8 Feb 2014 08:52:05 +0100
Committer:  H. Peter Anvin <hpa@linux.intel.com>
CommitDate: Thu, 13 Feb 2014 18:13:37 -0800

asmlinkage: Mark rwsem functions that can be called from assembler asmlinkage

Mark the rwsem functions that can be called from assembler asmlinkage.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1391845930-28580-9-git-send-email-ak@linux.intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
---
 kernel/locking/rwsem-xadd.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/kernel/locking/rwsem-xadd.c b/kernel/locking/rwsem-xadd.c
index 19c5fa9..1d66e08 100644
--- a/kernel/locking/rwsem-xadd.c
+++ b/kernel/locking/rwsem-xadd.c
@@ -143,6 +143,7 @@ __rwsem_do_wake(struct rw_semaphore *sem, enum rwsem_wake_type wake_type)
 /*
  * wait for the read lock to be granted
  */
+__visible
 struct rw_semaphore __sched *rwsem_down_read_failed(struct rw_semaphore *sem)
 {
 	long count, adjustment = -RWSEM_ACTIVE_READ_BIAS;
@@ -190,6 +191,7 @@ struct rw_semaphore __sched *rwsem_down_read_failed(struct rw_semaphore *sem)
 /*
  * wait until we successfully acquire the write lock
  */
+__visible
 struct rw_semaphore __sched *rwsem_down_write_failed(struct rw_semaphore *sem)
 {
 	long count, adjustment = -RWSEM_ACTIVE_WRITE_BIAS;
@@ -252,6 +254,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;
@@ -272,6 +275,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;

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [tip:x86/asmlinkage] asmlinkage Make __stack_chk_failed and memcmp visible
  2014-02-08  7:52 ` [PATCH 10/14] asmlinkage Make __stack_chk_failed and memcmp visible Andi Kleen
@ 2014-02-14  3:59   ` tip-bot for Andi Kleen
  0 siblings, 0 replies; 31+ messages in thread
From: tip-bot for Andi Kleen @ 2014-02-14  3:59 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, ak, tglx, hpa

Commit-ID:  a7330c997d0f74d909a7d3553b1d550d8be2b61a
Gitweb:     http://git.kernel.org/tip/a7330c997d0f74d909a7d3553b1d550d8be2b61a
Author:     Andi Kleen <ak@linux.intel.com>
AuthorDate: Sat, 8 Feb 2014 08:52:06 +0100
Committer:  H. Peter Anvin <hpa@linux.intel.com>
CommitDate: Thu, 13 Feb 2014 18:13:43 -0800

asmlinkage Make __stack_chk_failed and memcmp visible

In LTO symbols implicitely referenced by the compiler need
to be visible. Earlier these symbols were visible implicitely
from being exported, but we disabled implicit visibility fo
 EXPORTs when modules are disabled to improve code size. So
now these symbols have to be marked visible explicitely.

Do this for __stack_chk_fail (with stack protector)
and memcmp.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1391845930-28580-10-git-send-email-ak@linux.intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
---
 kernel/panic.c | 2 +-
 lib/string.c   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/panic.c b/kernel/panic.c
index 6d63003..3eb0ffb 100644
--- a/kernel/panic.c
+++ b/kernel/panic.c
@@ -459,7 +459,7 @@ EXPORT_SYMBOL(warn_slowpath_null);
  * Called when gcc's -fstack-protector feature is used, and
  * gcc detects corruption of the on-stack canary value
  */
-void __stack_chk_fail(void)
+__visible void __stack_chk_fail(void)
 {
 	panic("stack-protector: Kernel stack is corrupted in: %p\n",
 		__builtin_return_address(0));
diff --git a/lib/string.c b/lib/string.c
index e5878de..9b1f906 100644
--- a/lib/string.c
+++ b/lib/string.c
@@ -648,7 +648,7 @@ EXPORT_SYMBOL(memmove);
  * @count: The size of the area.
  */
 #undef memcmp
-int memcmp(const void *cs, const void *ct, size_t count)
+__visible int memcmp(const void *cs, const void *ct, size_t count)
 {
 	const unsigned char *su1, *su2;
 	int res = 0;

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [tip:x86/asmlinkage] asmlinkage, x86: Fix 32bit memcpy for LTO
  2014-02-08  7:52 ` [PATCH 11/14] asmlinkage, x86: Fix 32bit memcpy for LTO Andi Kleen
@ 2014-02-14  3:59   ` tip-bot for Andi Kleen
  0 siblings, 0 replies; 31+ messages in thread
From: tip-bot for Andi Kleen @ 2014-02-14  3:59 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, ak, tglx, hpa

Commit-ID:  a9143296dd612dceb0765229ccfb13fd642e2840
Gitweb:     http://git.kernel.org/tip/a9143296dd612dceb0765229ccfb13fd642e2840
Author:     Andi Kleen <ak@linux.intel.com>
AuthorDate: Sat, 8 Feb 2014 08:52:07 +0100
Committer:  H. Peter Anvin <hpa@linux.intel.com>
CommitDate: Thu, 13 Feb 2014 18:14:46 -0800

asmlinkage, x86: Fix 32bit memcpy for LTO

These functions can be called implicitely from gcc, and thus need to be
visible.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1391845930-28580-11-git-send-email-ak@linux.intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
---
 arch/x86/lib/memcpy_32.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/x86/lib/memcpy_32.c b/arch/x86/lib/memcpy_32.c
index e78761d..a404b4b 100644
--- a/arch/x86/lib/memcpy_32.c
+++ b/arch/x86/lib/memcpy_32.c
@@ -4,7 +4,7 @@
 #undef memcpy
 #undef memset
 
-void *memcpy(void *to, const void *from, size_t n)
+__visible void *memcpy(void *to, const void *from, size_t n)
 {
 #ifdef CONFIG_X86_USE_3DNOW
 	return __memcpy3d(to, from, n);
@@ -14,13 +14,13 @@ void *memcpy(void *to, const void *from, size_t n)
 }
 EXPORT_SYMBOL(memcpy);
 
-void *memset(void *s, int c, size_t count)
+__visible void *memset(void *s, int c, size_t count)
 {
 	return __memset(s, c, count);
 }
 EXPORT_SYMBOL(memset);
 
-void *memmove(void *dest, const void *src, size_t n)
+__visible void *memmove(void *dest, const void *src, size_t n)
 {
 	int d0,d1,d2,d3,d4,d5;
 	char *ret = dest;

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [tip:x86/asmlinkage] asmlinkage: Make trace_hardirqs_on/ off_caller visible
  2014-02-08  7:52 ` [PATCH 12/14] asmlinkage: Make trace_hardirqs_on/off_caller visible Andi Kleen
@ 2014-02-14  3:59   ` tip-bot for Andi Kleen
  0 siblings, 0 replies; 31+ messages in thread
From: tip-bot for Andi Kleen @ 2014-02-14  3:59 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, rostedt, ak, tglx, hpa

Commit-ID:  285c00adf651c9b1d6c73d5eee482d2a617a64c1
Gitweb:     http://git.kernel.org/tip/285c00adf651c9b1d6c73d5eee482d2a617a64c1
Author:     Andi Kleen <ak@linux.intel.com>
AuthorDate: Sat, 8 Feb 2014 08:52:08 +0100
Committer:  H. Peter Anvin <hpa@linux.intel.com>
CommitDate: Thu, 13 Feb 2014 18:14:54 -0800

asmlinkage: Make trace_hardirqs_on/off_caller visible

These functions are called from assembler, and thus need to be
__visible.

Cc: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1391845930-28580-12-git-send-email-ak@linux.intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
---
 kernel/trace/trace_irqsoff.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/trace/trace_irqsoff.c b/kernel/trace/trace_irqsoff.c
index 2aefbee..887ef88 100644
--- a/kernel/trace/trace_irqsoff.c
+++ b/kernel/trace/trace_irqsoff.c
@@ -498,14 +498,14 @@ void trace_hardirqs_off(void)
 }
 EXPORT_SYMBOL(trace_hardirqs_off);
 
-void trace_hardirqs_on_caller(unsigned long caller_addr)
+__visible void trace_hardirqs_on_caller(unsigned long caller_addr)
 {
 	if (!preempt_trace() && irq_trace())
 		stop_critical_timing(CALLER_ADDR0, caller_addr);
 }
 EXPORT_SYMBOL(trace_hardirqs_on_caller);
 
-void trace_hardirqs_off_caller(unsigned long caller_addr)
+__visible void trace_hardirqs_off_caller(unsigned long caller_addr)
 {
 	if (!preempt_trace() && irq_trace())
 		start_critical_timing(CALLER_ADDR0, caller_addr);

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [tip:x86/asmlinkage] initconst: Fix initconst mistake in dcdbas
  2014-02-08  7:52 ` [PATCH 13/14] initconst: Fix initconst mistake in dcdbas Andi Kleen
@ 2014-02-14  4:00   ` tip-bot for Andi Kleen
  0 siblings, 0 replies; 31+ messages in thread
From: tip-bot for Andi Kleen @ 2014-02-14  4:00 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, ak, tglx, hpa

Commit-ID:  3be5588ad5c2628c8aa4a578bcbb114fa2b49260
Gitweb:     http://git.kernel.org/tip/3be5588ad5c2628c8aa4a578bcbb114fa2b49260
Author:     Andi Kleen <ak@linux.intel.com>
AuthorDate: Sat, 8 Feb 2014 08:52:09 +0100
Committer:  H. Peter Anvin <hpa@linux.intel.com>
CommitDate: Thu, 13 Feb 2014 18:14:54 -0800

initconst: Fix initconst mistake in dcdbas

const must be __initconst.

Cc: Douglas_Warzecha@dell.com
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1391845930-28580-13-git-send-email-ak@linux.intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
---
 drivers/firmware/dcdbas.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/firmware/dcdbas.c b/drivers/firmware/dcdbas.c
index 1b5e8e4..7160c43 100644
--- a/drivers/firmware/dcdbas.c
+++ b/drivers/firmware/dcdbas.c
@@ -584,7 +584,7 @@ static struct platform_driver dcdbas_driver = {
 	.remove		= dcdbas_remove,
 };
 
-static const struct platform_device_info dcdbas_dev_info __initdata = {
+static const struct platform_device_info dcdbas_dev_info __initconst = {
 	.name		= DRIVER_NAME,
 	.id		= -1,
 	.dma_mask	= DMA_BIT_MASK(32),

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [tip:x86/asmlinkage] initconst, x86: Fix initconst mistake in ts5500 code
  2014-02-08  7:52 ` [PATCH 14/14] initconst, x86: Fix initconst mistake in ts5500 code Andi Kleen
@ 2014-02-14  4:00   ` tip-bot for Andi Kleen
  0 siblings, 0 replies; 31+ messages in thread
From: tip-bot for Andi Kleen @ 2014-02-14  4:00 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, ak, tglx, hpa

Commit-ID:  634676c203f130c8efa138296c2efba219821346
Gitweb:     http://git.kernel.org/tip/634676c203f130c8efa138296c2efba219821346
Author:     Andi Kleen <ak@linux.intel.com>
AuthorDate: Sat, 8 Feb 2014 08:52:10 +0100
Committer:  H. Peter Anvin <hpa@linux.intel.com>
CommitDate: Thu, 13 Feb 2014 18:14:54 -0800

initconst, x86: Fix initconst mistake in ts5500 code

const data must be initconst.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1391845930-28580-14-git-send-email-ak@linux.intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
---
 arch/x86/platform/ts5500/ts5500.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/platform/ts5500/ts5500.c b/arch/x86/platform/ts5500/ts5500.c
index 39febb2..9471b94 100644
--- a/arch/x86/platform/ts5500/ts5500.c
+++ b/arch/x86/platform/ts5500/ts5500.c
@@ -88,7 +88,7 @@ struct ts5500_sbc {
 static const struct {
 	const char * const string;
 	const ssize_t offset;
-} ts5500_signatures[] __initdata = {
+} ts5500_signatures[] __initconst = {
 	{ "TS-5x00 AMD Elan", 0xb14 },
 };
 

^ permalink raw reply related	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2014-02-14  4:02 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` [PATCH 07/14] asmlinkage, mutex: Mark __visible Andi Kleen
2014-02-14  3:58   ` [tip:x86/asmlinkage] " 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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.