Kernel 2.6.27.5-117. fc10.i686. The following code is incorrectly compiled:

Source: Internet
Author: User
Kernel 2.6.27.5-117. fc10.i686: the following code is compiled: Linux general technology-Linux technology and application information. For more information, see the following. [I = s] This post was last edited by tosail

# Gcc-dashes KERNEL _-I/usr/src/kernels/2.6.27.5-117. fc10.i686/include-DMODULE-Wall-O2-c hello. c-o hello. o

# Include

# If defined (CONFIG_SMP)
# Define _ SMP __
# Endif

# If defined (CONFIG_MODVERSIONS)
# Define MODVERSIONS
# Include
# Endif

# Include
# Include

Static _ init int init_module (void)
{
Printk (KERN_DEBUG "Hello, kernel \ n ");
Return 0;
}
Static _ exit void cleanup_module (void)
{
Printk (KERN_DEBUG "Good-byte, kernel! \ N ");
}

Compilation has encountered quite a number of problems. Please take a look at it for me if you are free. Thank you.
Related Article

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.