gpu: nvgpu: Add wrapper for linux/types.h

Add wrapper header nvgpu/types.h. It checks if build is for Linux
kernel and pulls in linux/types.h.

Delete also all #includes for linux/types.h which are not strictly
necessary, and change the remaining ones to use the new wrapper.

JIRA NVGPU-13

Change-Id: I1ddfef0b0b9d840e3e41a62f69c7cb9148d2d5fa
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1453371
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Terje Bergstrom
2017-03-31 13:11:29 -07:00
committed by mobile promotions
parent 2119213467
commit f116320137
26 changed files with 22 additions and 36 deletions

View File

@@ -14,7 +14,7 @@
#ifndef NVGPU_BIOS_H
#define NVGPU_BIOS_H
#include <linux/types.h>
#include <nvgpu/types.h>
struct gk20a;