Resolution compiler kernel appears WARNING:modpost:Found 4 section mismatch (es)

Source: Internet
Author: User
Board helper2416 (CPU s3c2416)
Version 3.2.11 when compiling kernel
WARNING:modpost:Found 4 section mismatch (es).
To the full details builds your kernel with:
' Make config_debug_section_mismatch=y '

Make Arch=arm cross_compile=arm-linux--j4 config_debug_section_mismatch=y
Author: I'm too handsome to go out. C + + group 31843264
Problem
LD DRIVERS/VIDEO/BUILT-IN.O
WARNING:DRIVERS/VIDEO/BUILT-IN.O (. text+0x105b8): section mismatch in reference from the function S3c_fb_init_fbinfo () to the variable. init.data:monspecs
The function s3c_fb_init_fbinfo () references
The variable __initdata monspecs.
This is often because S3c_fb_init_fbinfo lacks a __initdata
annotation or the annotation of monspecs is wrong.

Solve
void S3c_fb_init_fbinfo (struct s3c_fb_info *finfo, char *drv_name, int index) changed to
void __init s3c_fb_init_fbinfo (struct s3c_fb_info *finfo, char *drv_name, int index)


Problem
WARNING:DRIVERS/VIDEO/BUILT-IN.O (. data+0x2ac): section mismatch in reference from the variable to the S3c_fb_driver Ion. Init.text:s3c_fb_probe ()
The variable s3c_fb_driver references
The function __init s3c_fb_probe ()
If the reference is valid then annotate the
Variable with __init* or __refdata (= linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

Solve
int __init s3c_fb_probe (struct platform_device *pdev)
Change into
static int __devinit s3c_fb_probe (struct platform_device *pdev)

Problem
WARNING:VMLINUX.O (. text+0x101c4): section mismatch into reference from the function S3c2416_dma_add () to the (unknown refer ence). Init.data: (unknown)
The function S3c2416_dma_add () references
The (unknown Reference) __initdata (unknown).
This is often because S3c2416_dma_add lacks a __initdata
annotation or the annotation of (unknown) is wrong.

Solve
static int __init s3c2416_dma_add (struct sys_device *sysdev)//row plus __init
{
S3c24xx_dma_init (8, irq_s3c2443_dma0, 0x100);
Return S3c24xx_dma_init_map (&s3c2416_dma_sel);
}

static struct Sysdev_driver S3c2416_dma_driver __initdata = {//uplink plus __initdata
. Add = S3c2416_dma_add,
};


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.