mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
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:
committed by
Deepak Nibade
parent
8d717d1e7c
commit
7b70eb224a
@@ -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 \
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user