mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: fix compile error of new compile flags
Preparing to push hvrtos gpu server changes which requires bellow CFLAGS:
-Werror -Wall -Wextra \
-Wmissing-braces -Wpointer-arith -Wundef \
-Wconversion -Wsign-conversion \
-Wformat-security \
-Wmissing-declarations -Wredundant-decls -Wimplicit-fallthrough
Jira GVSCI-11640
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Change-Id: I25167f17f231ed741f19af87ca0aa72991563a0f
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2653746
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com>
Reviewed-by: Alex Waterman <alexw@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
mobile promotions
parent
69ec2dcff7
commit
1ce899ce46
@@ -146,5 +146,6 @@ exit:
|
||||
|
||||
u32 nvgpu_gsp_get_last_cmd_id(struct gk20a *g)
|
||||
{
|
||||
(void)g;
|
||||
return GSP_NV_CMDQ_LOG_ID__LAST;
|
||||
}
|
||||
|
||||
@@ -49,6 +49,7 @@ static int gsp_handle_event(struct nvgpu_gsp_sched *gsp_sched,
|
||||
break;
|
||||
}
|
||||
|
||||
(void)gsp_sched;
|
||||
return err;
|
||||
}
|
||||
|
||||
@@ -193,7 +194,7 @@ int nvgpu_gsp_process_message(struct gk20a *g)
|
||||
nvgpu_info(g, "ctrl_flags = 0x%08x, seq_id = 0x%08x",
|
||||
msg.hdr.ctrl_flags, msg.hdr.seq_id);
|
||||
|
||||
msg.hdr.ctrl_flags &= ~GSP_CMD_FLAGS_MASK;
|
||||
msg.hdr.ctrl_flags &= (u8)~GSP_CMD_FLAGS_MASK;
|
||||
|
||||
if (msg.hdr.ctrl_flags == GSP_CMD_FLAGS_EVENT) {
|
||||
gsp_handle_event(gsp_sched, &msg);
|
||||
|
||||
@@ -92,7 +92,6 @@ int nvgpu_gsp_seq_acquire(struct gk20a *g,
|
||||
gsp_callback callback, void *cb_params)
|
||||
{
|
||||
struct gsp_sequence *seq;
|
||||
u16 size_of_seq_tbl = 0;
|
||||
u32 index = 0;
|
||||
int err = 0;
|
||||
|
||||
@@ -100,10 +99,7 @@ int nvgpu_gsp_seq_acquire(struct gk20a *g,
|
||||
|
||||
nvgpu_mutex_acquire(&sequences->gsp_seq_lock);
|
||||
|
||||
size_of_seq_tbl = sizeof(sequences->gsp_seq_tbl) *
|
||||
sizeof(sequences->gsp_seq_tbl[0]);
|
||||
|
||||
index = find_first_zero_bit(sequences->gsp_seq_tbl,
|
||||
index = (u32)find_first_zero_bit(sequences->gsp_seq_tbl,
|
||||
GSP_MAX_NUM_SEQUENCES);
|
||||
|
||||
if (index >= GSP_MAX_NUM_SEQUENCES) {
|
||||
|
||||
Reference in New Issue
Block a user