gpu: nvgpu: gp10b: Enable warnings as errors

Change-Id: I86de27309ebecd038a7b32c6f86d87ce0156eb14
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/709867
This commit is contained in:
Terje Bergstrom
2015-02-20 08:39:31 -08:00
committed by Deepak Nibade
parent 8d717d1e7c
commit 7b70eb224a
2 changed files with 3 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ ccflags-$(CONFIG_GK20A) += -I$(srctree)/../kernel-t18x/include
ccflags-$(CONFIG_GK20A) += -I$(srctree)/../kernel-t18x/include/uapi
ccflags-$(CONFIG_GK20A) += -Wno-multichar
ccflags-y += -Werror
obj-$(CONFIG_GK20A) += \
gr_gp10b.o \

View File

@@ -571,11 +571,12 @@ int gr_gp10b_alloc_gr_ctx(struct gk20a *g,
(*gr_ctx)->preempt_mode = flags;
}
if (class == PASCAL_COMPUTE_A)
if (class == PASCAL_COMPUTE_A) {
if (flags == NVGPU_GR_PREEMPTION_MODE_CILP)
(*gr_ctx)->preempt_mode = NVGPU_GR_PREEMPTION_MODE_CILP;
else
(*gr_ctx)->preempt_mode = NVGPU_GR_PREEMPTION_MODE_CTA;
}
gk20a_dbg_fn("done");