gpu: nvgpu: vgpu: css_vgpu: fix sparse warnings

css_vgpu.c: fix warnings found by sparse tool

Bug 200088648

Change-Id: I4d9d33c6438be8fa8f2ba9cb0b2f786c46b7c9ce
Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com>
Reviewed-on: http://git-master/r/1234605
Reviewed-by: Aingara Paramakuru <aparamakuru@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
Peter Daifuku
2016-10-11 12:08:02 -07:00
committed by mobile promotions
parent 18c7268cbb
commit 1b2529ba68

View File

@@ -26,17 +26,9 @@
#include "gk20a/css_gr_gk20a.h"
#include "vgpu.h"
struct vgpu_hw_snapshot_buffer {
struct tegra_hv_ivm_cookie *cookie;
void *buf;
struct gk20a_cs_snapshot_fifo_entry *end;
struct gk20a_cs_snapshot_fifo_entry *src_get;
struct gk20a_cs_snapshot_fifo_entry *src_put;
};
static struct tegra_hv_ivm_cookie *css_cookie;
struct tegra_hv_ivm_cookie *css_cookie;
int vgpu_css_init_snapshot_buffer(struct gr_gk20a *gr)
static int vgpu_css_init_snapshot_buffer(struct gr_gk20a *gr)
{
struct gk20a *g = gr->g;
struct device *dev = g->dev;