drivers: misc: mediatek: sspm v2: fix section mismatch
WARNING: vmlinux.o(.text+0x81f924): Section mismatch in reference from the function sspm_lock_emi_mpu() to the function .init.text:sspm_set_emi_mpu() The function sspm_lock_emi_mpu() references the function __init sspm_set_emi_mpu(). This is often because sspm_lock_emi_mpu lacks a __init annotation or the annotation of sspm_set_emi_mpu is wrong. Signed-off-by: HELLINFIX <mridulsharma57570@gmail.com> Change-Id: If7480959031356453967358581fd3e0bccf2352b
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
static unsigned long long sspm_start;
|
||||
static unsigned long long sspm_end;
|
||||
|
||||
void __init sspm_set_emi_mpu(phys_addr_t base, phys_addr_t size)
|
||||
void sspm_set_emi_mpu(phys_addr_t base, phys_addr_t size)
|
||||
{
|
||||
sspm_start = base;
|
||||
sspm_end = base + size - 1;
|
||||
|
||||
Reference in New Issue
Block a user