History

memblock: annotate memblock_is_reserved() with __init_memblock

Found warning: WARNING: EXPORT symbol "gsi_write_channel_scratch" [vmlinux] version generation failed, symbol will not be versioned. WARNING: vmlinux.o(.text+0x1e0a0): Section mismatch in reference from the function valid_phys_addr_range() to the function .init.text:memblock_is_reserved() The function valid_phys_addr_range() references the function __init memblock_is_reserved(). This is often because valid_phys_addr_range lacks a __init annotation or the annotation of memblock_is_reserved is wrong. Use __init_memblock instead of __init.

Yueyi Li committed 7 years ago

Commit f5a222d1 parent 428a1cb1 file · +1 −1Browse files

Unified · Split

mm/memblock.c+1−1
@@ -1727,7 +1727,7 @@ static int __init_memblock memblock_search(struct memblock_type *type, phys_addr · 1726 unmodified lines
1727 return -1;1727 return -1;
1728}1728}
1729 1729
1730bool __init memblock_is_reserved(phys_addr_t addr)1730bool __init_memblock memblock_is_reserved(phys_addr_t addr)
1731{1731{
1732 return memblock_search(&memblock.reserved, addr) != -1;1732 return memblock_search(&memblock.reserved, addr) != -1;
1733}1733}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t