Skip to content

Commit 33d46f9

Browse files
committed
Merge branch 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 cleanups from Ingo Molnar: "An early_printk cleanup plus deinlining enhancements" * 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/early_printk: Set __iomem address space for IO x86/signal: Deinline get_sigframe, save 240 bytes x86: Deinline early_console_register, save 403 bytes x86/e820: Deinline e820_type_to_string, save 126 bytes
2 parents 378e4e9 + 3435dd0 commit 33d46f9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

arch/x86/kernel/e820.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ void __init finish_e820_parsing(void)
911911
}
912912
}
913913

914-
static inline const char *e820_type_to_string(int e820_type)
914+
static const char *e820_type_to_string(int e820_type)
915915
{
916916
switch (e820_type) {
917917
case E820_RESERVED_KERN:

arch/x86/kernel/early_printk.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,14 +195,14 @@ static __init void early_serial_init(char *s)
195195
#ifdef CONFIG_PCI
196196
static void mem32_serial_out(unsigned long addr, int offset, int value)
197197
{
198-
u32 *vaddr = (u32 *)addr;
198+
u32 __iomem *vaddr = (u32 __iomem *)addr;
199199
/* shift implied by pointer type */
200200
writel(value, vaddr + offset);
201201
}
202202

203203
static unsigned int mem32_serial_in(unsigned long addr, int offset)
204204
{
205-
u32 *vaddr = (u32 *)addr;
205+
u32 __iomem *vaddr = (u32 __iomem *)addr;
206206
/* shift implied by pointer type */
207207
return readl(vaddr + offset);
208208
}
@@ -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",

arch/x86/kernel/signal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ static unsigned long align_sigframe(unsigned long sp)
196196
return sp;
197197
}
198198

199-
static inline void __user *
199+
static void __user *
200200
get_sigframe(struct k_sigaction *ka, struct pt_regs *regs, size_t frame_size,
201201
void __user **fpstate)
202202
{

0 commit comments

Comments
 (0)