diff options
author | skadamati <skadamati@nvidia.com> | 2017-05-23 06:25:29 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-05-26 06:34:42 -0400 |
commit | e21e6e947b334cd16cc92c41953bf3c0153b1508 (patch) | |
tree | a9222039f465548e0f69730c8c3bf24ad6223116 /drivers/gpu/nvgpu/gk20a/sched_gk20a.c | |
parent | 2e338c77eac4edffb94c8c9480dbd72712c7696f (diff) |
gpu: nvgpu: Fix build failure by missing headers
Move the platform_gk20a.h include out of the ifdef CONFIG_DEBUG_FS
in the CDE code since dev_from_gk20a() is used regardless of
whether debugfs is enabled.
Also modify some of the CE ops to take a struct gk20a instead of a
struct device. This avoids any requirement for including
linux/device.h or platform_gk20a.h.
Bug 200310575
Change-Id: Ifef963cd0f66d05094a698200386cc6140920eac
Signed-off-by: skadamati <skadamati@nvidia.com>
Reviewed-on: http://git-master/r/1487830
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/sched_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/sched_gk20a.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/sched_gk20a.c b/drivers/gpu/nvgpu/gk20a/sched_gk20a.c index dba0bdb4..b7edf3f0 100644 --- a/drivers/gpu/nvgpu/gk20a/sched_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/sched_gk20a.c | |||
@@ -478,8 +478,7 @@ long gk20a_sched_dev_ioctl(struct file *filp, unsigned int cmd, | |||
478 | (struct nvgpu_sched_tsg_refcount_args *)buf); | 478 | (struct nvgpu_sched_tsg_refcount_args *)buf); |
479 | break; | 479 | break; |
480 | default: | 480 | default: |
481 | dev_dbg(dev_from_gk20a(g), "unrecognized gpu ioctl cmd: 0x%x", | 481 | nvgpu_log_info(g, "unrecognized gpu ioctl cmd: 0x%x", cmd); |
482 | cmd); | ||
483 | err = -ENOTTY; | 482 | err = -ENOTTY; |
484 | } | 483 | } |
485 | 484 | ||