mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 07:46:53 +07:00
c8608d6b58
Impact: section mismatch fix Ingo reports these warnings: > WARNING: vmlinux.o(.text+0x6a288e): Section mismatch in reference from > the function dmi_alloc() to the function .init.text:extend_brk() > The function dmi_alloc() references > the function __init extend_brk(). > This is often because dmi_alloc lacks a __init annotation or the > annotation of extend_brk is wrong. dmi_alloc() is a static inline, and so should be immune to this kind of error. But force it to be inlined and make it __init anyway, just to be extra sure. All of dmi_alloc()'s callers are already __init. Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Cc: Yinghai Lu <yinghai@kernel.org> LKML-Reference: <49C6B23C.2040308@goop.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
20 lines
411 B
C
20 lines
411 B
C
#ifndef _ASM_X86_DMI_H
|
|
#define _ASM_X86_DMI_H
|
|
|
|
#include <linux/compiler.h>
|
|
#include <linux/init.h>
|
|
|
|
#include <asm/io.h>
|
|
#include <asm/setup.h>
|
|
|
|
static __always_inline __init void *dmi_alloc(unsigned len)
|
|
{
|
|
return extend_brk(len, sizeof(int));
|
|
}
|
|
|
|
/* Use early IO mappings for DMI because it's initialized early */
|
|
#define dmi_ioremap early_ioremap
|
|
#define dmi_iounmap early_iounmap
|
|
|
|
#endif /* _ASM_X86_DMI_H */
|