diff options
author | Alex Waterman <alexw@nvidia.com> | 2018-03-12 18:29:03 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-04-05 14:23:56 -0400 |
commit | d8e23112915d185deb534aa777c3f81ad6df5507 (patch) | |
tree | 1c212fc0b4e680b485827563f673648dfeb4756e /drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c | |
parent | a2ceb5ec310be53227a1e2f7755c1d8ca47e3723 (diff) |
gpu: nvgpu: Only use gr.create_gr_sysfs with CONFIG_SYSFS
Only populate the create_gr_sysfs() functions when the system actually
has SYSFS (i.e is compiling for the Linux kernel). This allows non-
Linux systems to compile.
JIRA NVGPU-525
Change-Id: I3bac34feff376d89c0b63259772c77f7b4a03adc
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1673824
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c b/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c index cfbdbbad..ae30246f 100644 --- a/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c +++ b/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c | |||
@@ -229,7 +229,9 @@ static const struct gpu_ops vgpu_gv11b_ops = { | |||
229 | .update_boosted_ctx = NULL, | 229 | .update_boosted_ctx = NULL, |
230 | .set_bes_crop_debug3 = gr_gp10b_set_bes_crop_debug3, | 230 | .set_bes_crop_debug3 = gr_gp10b_set_bes_crop_debug3, |
231 | .set_bes_crop_debug4 = gr_gp10b_set_bes_crop_debug4, | 231 | .set_bes_crop_debug4 = gr_gp10b_set_bes_crop_debug4, |
232 | #ifdef CONFIG_SYSFS | ||
232 | .create_gr_sysfs = gr_gv11b_create_sysfs, | 233 | .create_gr_sysfs = gr_gv11b_create_sysfs, |
234 | #endif | ||
233 | .set_ctxsw_preemption_mode = vgpu_gr_gp10b_set_ctxsw_preemption_mode, | 235 | .set_ctxsw_preemption_mode = vgpu_gr_gp10b_set_ctxsw_preemption_mode, |
234 | .is_etpc_addr = gv11b_gr_pri_is_etpc_addr, | 236 | .is_etpc_addr = gv11b_gr_pri_is_etpc_addr, |
235 | .egpc_etpc_priv_addr_table = gv11b_gr_egpc_etpc_priv_addr_table, | 237 | .egpc_etpc_priv_addr_table = gv11b_gr_egpc_etpc_priv_addr_table, |