title: How to develop Linux Kernel Module with vscode without incorrect error detection
body: <p>I'm trying to develop a Linux kernel module with vscode on Ubuntu, but vscode will throw a lot errors about Linux system header, kernel macro, etc. (Even if it's just a almost empty driver...)</p>
  
  <p>Can somebody help me configure vscode to remove these errors?<br>
  Below is my configuration and the screenshots of errors.</p>
  
  <pre><code>//c_cpp_properties.json
  {
      "configurations": [
          {
              "name": "Linux",
              "includePath": [
                  "${workspaceFolder}",
                  "/usr/src/linux-headers-4.15.0-65/include"
              ],
              "defines": [
              ],
              "compilerPath": "/usr/bin/clang",
              "cStandard": "c99",
              "cppStandard": "c++14",
              "browse": {
                  "path": [
                      "${workspaceFolder}",
                      "/usr/src/linux-headers-4.15.0-65/include"
                  ],
                  "limitSymbolsToIncludedHeaders": true
              },
              "intelliSenseMode": "clang-x64"
          }
      ],
      "version": 4
  }
  </code></pre>
  
  <pre><code>//settings.json
  {
      "files.associations": {
          "init.h": "c",
          "module.h": "c",
          "workqueue.h": "c",
          "list.h": "c",
          "types.h": "c",
          "posix_types.h": "c"
      },
      "C_Cpp.errorSquiggles": "Enabled",
      "clang.cflags": [
          "-std=c99",
          "-I/usr/src/linux-headers-4.15.0-65/include",
          "-DMODULE",
      ]
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/CWwu2.png" alt="1">
  <img src="https://i.stack.imgur.com/vE5QH.png" alt="2">
  <img src="https://i.stack.imgur.com/o5Sdt.png" alt="3">
  <img src="https://i.stack.imgur.com/A7a3D.png" alt="4"></p>