Opening of kernel project in Eclipse.

By opening the project Linux kernel in eclipse using the standard method, the code navigation will not work fully. All code will be underlined with a red line, as if you make a syntax error.

This is because eclipse doesn't know about define __KERNEL__ which is transmitted via the Makefile.

Therefore, to make the code navigation work it is needed to add this define via:

свойства проекта(Properties) -> C/C++ General -> Path and Symbols -> #Symbols

Press the button Add and add the define:

Name: __KERNEL__
Value: 1

After that a new indexation will be performed and the navigation will start working.