@@ -36,7 +36,7 @@ static struct console early_console = {
.index = -1,
};
-asmlinkage void early_printk(const char *fmt, ...)
+void early_printk(const char *fmt, ...)
{
char buf[512];
int n;
@@ -81,7 +81,7 @@ static void vcpu_debug_exit(struct kvm_vcpu *vcpu)
local_irq_restore(psr);
}
-asmlinkage int printk(const char *fmt, ...)
+int printk(const char *fmt, ...)
{
struct kvm_vcpu *vcpu = current_vcpu;
va_list args;
@@ -173,7 +173,7 @@ static struct console early_serial_console = {
static struct console *early_console = &early_vga_console;
static int __initdata early_console_initialized;
-asmlinkage void early_printk(const char *fmt, ...)
+void early_printk(const char *fmt, ...)
{
char buf[512];
int n;
@@ -90,16 +90,16 @@ int no_printk(const char *fmt, ...)
return 0;
}
-extern asmlinkage __attribute__ ((format (printf, 1, 2)))
+extern __attribute__ ((format (printf, 1, 2)))
void early_printk(const char *fmt, ...);
extern int printk_needs_cpu(int cpu);
extern void printk_tick(void);
#ifdef CONFIG_PRINTK
-asmlinkage __attribute__ ((format (printf, 1, 0)))
+__attribute__ ((format (printf, 1, 0)))
int vprintk(const char *fmt, va_list args);
-asmlinkage __attribute__ ((format (printf, 1, 2))) __cold
+__attribute__ ((format (printf, 1, 2))) __cold
int printk(const char *fmt, ...);
/*
@@ -46,7 +46,7 @@
/*
* Architectures can override it:
*/
-void asmlinkage __attribute__((weak)) early_printk(const char *fmt, ...)
+void __attribute__((weak)) early_printk(const char *fmt, ...)
{
}
@@ -704,7 +704,7 @@ static int have_callable_console(void)
* See the vsnprintf() documentation for format string extensions over C99.
*/
-asmlinkage int printk(const char *fmt, ...)
+int printk(const char *fmt, ...)
{
va_list args;
int r;
@@ -794,7 +794,7 @@ static inline void printk_delay(void)
}
}
-asmlinkage int vprintk(const char *fmt, va_list args)
+int vprintk(const char *fmt, va_list args)
{
int printed_len = 0;
int current_log_level = default_message_loglevel;
Remove the now unnecessary asmlinkage attribute from the various printk prototypes and uses. Signed-off-by: Joe Perches <joe@perches.com> --- arch/arm/kernel/early_printk.c | 2 +- arch/ia64/kvm/vmm.c | 2 +- arch/x86/kernel/early_printk.c | 2 +- include/linux/printk.h | 6 +++--- kernel/printk.c | 6 +++--- 5 files changed, 9 insertions(+), 9 deletions(-)