Linux kernel compilation __devinit error resolution

Source: Internet
Author: User

After Linux kernel3.8, put: __devinit, __devinitdata, __devinitconst, __devexit, __devexitdata, __devexitconst these are removed.

The error that occurred:

__devinit error expected ' = ' ' asm ' or ' __attribute__ ' before

Workaround:

#define __devexit
#define __devinitdata
#define __devinit
#define __devexit_p

For details, refer to:

A whole set of __dev ... Macros is no longer used or defined this is the list: __devinit, __devinitdata, __devinitconst, __devexit, __devexitdata, __devexitconst Background:these attributes were used on certain driver functions and data declarations, putting them in A separate section, could be discarded under certain circumstances. This functionality was no longer relevant, and the macros were removed in version 3.8 of the kernel. The macros should no longer be used. Just Remove the attributes any place they is used. See this commit:https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=54b956b903607

Linux kernel compilation __devinit error resolution

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.