Embeded Linux inside Kernel compilation error warning summary

Source: Internet
Author: User

Error A:

WARNING:DRIVERS/SPI/HI_SPI.O (. data+0x0): section mismatch in reference from the variable hi_spi_platform_driver to the FU Nction. Init.text:hi_spi_probe ()
The variable hi_spi_platform_driver references
The function __init hi_spi_probe ()
If the reference is valid then annotate the
Variable with __init* or __refdata (see LINUX/INIT.H) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

Resolution A:

__init uses two places for the same C file.

Remove Hi_spi_probe () before the __init

Error B:

Drivers/net/ethernet/hieth-gmac/bcm53101.c:249:13:warning: ' bcm53101_dump ' defined but not used [-wunused-function]
static void Bcm53101_dump (void)

Resolution B:

The function is useless to write.

Mask off function

Embeded Linux inside Kernel compilation error warning summary

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.