mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: userd MISRA fix for Rule 8.6
When NVGPU_USERD is undefined, nvgpu_userd_free_slabs and nvgpu_userd_init_slabs are declared but never defined. Fixed MISRA Rule 8.6 with #ifdef NVGPU_USERD directive. Jira NVGPU-3260 Change-Id: Id9e8a7e0aed069ad8d56536e4637d0f9529b34a4 Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2108848 GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
983b4018e2
commit
a68f66d307
@@ -30,8 +30,11 @@ struct channel_gk20a;
|
||||
|
||||
int nvgpu_userd_setup_sw(struct gk20a *g);
|
||||
void nvgpu_userd_cleanup_sw(struct gk20a *g);
|
||||
int nvgpu_userd_init_slabs(struct gk20a *g);
|
||||
void nvgpu_userd_free_slabs(struct gk20a *g);
|
||||
int nvgpu_userd_init_channel(struct gk20a *g, struct channel_gk20a *c);
|
||||
|
||||
#ifdef NVGPU_USERD
|
||||
int nvgpu_userd_init_slabs(struct gk20a *g);
|
||||
void nvgpu_userd_free_slabs(struct gk20a *g);
|
||||
#endif
|
||||
|
||||
#endif /* NVGPU_FIFO_USERD_H */
|
||||
|
||||
Reference in New Issue
Block a user