Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 722a9f92 authored by Andi Kleen's avatar Andi Kleen Committed by H. Peter Anvin
Browse files

asmlinkage: Add explicit __visible to drivers/*, lib/*, kernel/*



As requested by Linus add explicit __visible to the asmlinkage users.
This marks functions visible to assembler.

Tree sweep for rest of tree.

Signed-off-by: default avatarAndi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1398984278-29319-4-git-send-email-andi@firstfloor.org


Signed-off-by: default avatarH. Peter Anvin <hpa@linux.intel.com>
parent 2605fc21
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ __visible struct {
 * kernel begins at offset 3GB...
 */

asmlinkage void pnp_bios_callfunc(void);
asmlinkage __visible void pnp_bios_callfunc(void);

__asm__(".text			\n"
	__ALIGN_STR "\n"
+1 −1
Original line number Diff line number Diff line
@@ -476,7 +476,7 @@ static void __init mm_init(void)
	vmalloc_init();
}

asmlinkage void __init start_kernel(void)
asmlinkage __visible void __init start_kernel(void)
{
	char * command_line;
	extern const struct kernel_param __start___param[], __stop___param[];
+1 −1
Original line number Diff line number Diff line
@@ -120,7 +120,7 @@ void context_tracking_user_enter(void)
 * instead of preempt_schedule() to exit user context if needed before
 * calling the scheduler.
 */
asmlinkage void __sched notrace preempt_schedule_context(void)
asmlinkage __visible void __sched notrace preempt_schedule_context(void)
{
	enum ctx_state prev_ctx;

+1 −1
Original line number Diff line number Diff line
@@ -4188,7 +4188,7 @@ void debug_show_held_locks(struct task_struct *task)
}
EXPORT_SYMBOL_GPL(debug_show_held_locks);

asmlinkage void lockdep_sys_exit(void)
asmlinkage __visible void lockdep_sys_exit(void)
{
	struct task_struct *curr = current;

+1 −1
Original line number Diff line number Diff line
@@ -1586,7 +1586,7 @@ swsusp_alloc(struct memory_bitmap *orig_bm, struct memory_bitmap *copy_bm,
	return -ENOMEM;
}

asmlinkage int swsusp_save(void)
asmlinkage __visible int swsusp_save(void)
{
	unsigned int nr_pages, nr_highmem;

Loading