diff options
author | Alex Waterman <alexw@nvidia.com> | 2017-04-28 15:11:11 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-05-14 03:05:12 -0400 |
commit | 6070d99a502e71b7290a444556370d3956f1263b (patch) | |
tree | 4df6378dc6d96035b2d3019ab6fe3cdb01cfd841 /drivers/gpu/nvgpu/gp10b/gp10b.h | |
parent | 648f43fe1e474b7232204da7dd68140a197e41c3 (diff) |
gpu: nvgpu: Remove <linux/mm.h> from the page allocator
Remove the <linux/mm.h> include from the VIDMEM page allocator. To
do this PAGE_SIZE needed to be defined for VIDMEM. Technically using
the Linux PAGE_SIZE macro for VIDMEM was a bug since PAGE_SIZE need
not be 4K on Linux so this patch also fixes a theoretical bug.
Also usage of ERR_PTR(), PTR_ERR() and IS_ERR() was removed. These
are Linux specific error handling macros.
Change-Id: Iadaf5b8e0154b0c3adf593449023005afffad90d
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/1472371
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/gp10b.h')
0 files changed, 0 insertions, 0 deletions