Skip to content

Commit c368ef2

Browse files
dvlasenkKAGA-KOKO
authored andcommitted
x86: Deinline early_console_register, save 403 bytes
This function compiles to 60 bytes of machine code. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Borislav Petkov <bp@alien8.de> Cc: Brian Gerst <brgerst@gmail.com> Link: http://lkml.kernel.org/r/1443443037-22077-3-git-send-email-dvlasenk@redhat.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent e6e5f84 commit c368ef2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kernel/early_printk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ static struct console early_serial_console = {
316316
.index = -1,
317317
};
318318

319-
static inline void early_console_register(struct console *con, int keep_early)
319+
static void early_console_register(struct console *con, int keep_early)
320320
{
321321
if (con->index != -1) {
322322
printk(KERN_CRIT "ERROR: earlyprintk= %s already used\n",

0 commit comments

Comments
 (0)