WARNING: vmlinux.o(.text+0x21a7c): Section mismatch in reference from the function mmu_mark_rodata_ro() to the function .init.text:mmu_mapin_ram_chunk()

From: kbuild test robot
Date: Fri Dec 13 2019 - 18:48:40 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 37d4e84f765bb3038ddfeebdc5d1cfd7e1ef688f
commit: a2227a27774328507a5c2335a6dd600c079d1ff5 powerpc/32: Don't populate page tables for block mapped pages except on the 8xx.
date: 4 weeks ago
config: powerpc-randconfig-a001-20191213 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 7.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout a2227a27774328507a5c2335a6dd600c079d1ff5
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=powerpc

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> WARNING: vmlinux.o(.text+0x21a7c): Section mismatch in reference from the function mmu_mark_rodata_ro() to the function .init.text:mmu_mapin_ram_chunk()
The function mmu_mark_rodata_ro() references
the function __init mmu_mapin_ram_chunk().
This is often because mmu_mark_rodata_ro lacks a __init
annotation or the annotation of mmu_mapin_ram_chunk is wrong.

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx Intel Corporation

Attachment: .config.gz
Description: application/gzip