diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-03-30 10:44:03 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-10 22:04:19 -0400 |
commit | 3ba374a5d94f8c2067731155afaf79f03e6c390c (patch) | |
tree | d8a2bd0d52b1e8862510aedeb7529944c0b7e28e /drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.c | |
parent | 2be51206af88aba6662cdd9de5bd6c18989bbcbd (diff) |
gpu: nvgpu: gk20a: Use new error macro
gk20a_err() and gk20a_warn() require a struct device pointer,
which is not portable across operating systems. The new nvgpu_err()
and nvgpu_warn() macros take struct gk20a pointer. Convert code
to use the more portable macros.
JIRA NVGPU-16
Change-Id: Ia51f36d94c5ce57a5a0ab83b3c83a6bce09e2d5c
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1331694
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Alex Waterman <alexw@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.c b/drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.c index 752ee121..08198776 100644 --- a/drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.c | |||
@@ -20,6 +20,8 @@ | |||
20 | 20 | ||
21 | #include "gk20a.h" | 21 | #include "gk20a.h" |
22 | 22 | ||
23 | #include <nvgpu/log.h> | ||
24 | |||
23 | #include <nvgpu/hw/gk20a/hw_mc_gk20a.h> | 25 | #include <nvgpu/hw/gk20a/hw_mc_gk20a.h> |
24 | #include <nvgpu/hw/gk20a/hw_pri_ringmaster_gk20a.h> | 26 | #include <nvgpu/hw/gk20a/hw_pri_ringmaster_gk20a.h> |
25 | #include <nvgpu/hw/gk20a/hw_pri_ringstation_sys_gk20a.h> | 27 | #include <nvgpu/hw/gk20a/hw_pri_ringstation_sys_gk20a.h> |
@@ -121,6 +123,5 @@ void gk20a_priv_ring_isr(struct gk20a *g) | |||
121 | } while (cmd != pri_ringmaster_command_cmd_no_cmd_v() && --retry); | 123 | } while (cmd != pri_ringmaster_command_cmd_no_cmd_v() && --retry); |
122 | 124 | ||
123 | if (retry <= 0) | 125 | if (retry <= 0) |
124 | gk20a_warn(dev_from_gk20a(g), | 126 | nvgpu_warn(g, "priv ringmaster cmd ack too many retries"); |
125 | "priv ringmaster cmd ack too many retries"); | ||
126 | } | 127 | } |