Section mismatch: reference to .init.data:monspecs from .text between 's3c_fb_init_fbinfo' (at offset 0x84c) and 's3c_fb_probe'
最近准备将framebuff 编译成模块方式,但发现一个问题,找了好久都没找到,后来偶然发现问题竟然在这里:
/* Fake monspecs to fill in fbinfo structure */
/* Don't know if the values are important */
struct fb_monspecs monspecs __initdata = {
.hfmin = 30000,
.hfmax = 70000,
.vfmin = 50,
.vfmax = 65,
};
将这里的定义移动到调用函数里面,将__initdata 去掉就可以了。