amd/iommu: fully initialize array in 'flush_command_buffer'

Fully explicit initialization of the cmd array resolves a violation of
MISRA C:2012 Rule 9.3.

Signed-off-by: Nicola Vetrini <nicola.vetrini@bugseng.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
Nicola Vetrini authored and Jan Beulich committed 2023-11-20 10:55:12 +01:00
1 parent b264570ba2
commit cfb777791d
1 file changed
+2 -1
+2 -1
View File
@@ -66,7 +66,8 @@ static void flush_command_buffer(struct amd_iommu *iommu,
IOMMU_COMP_WAIT_S_FLAG_MASK),
(addr >> 32) | MASK_INSR(IOMMU_CMD_COMPLETION_WAIT,
IOMMU_CMD_OPCODE_MASK),
CMD_COMPLETION_DONE
CMD_COMPLETION_DONE,
0
};
s_time_t start, timeout;
static unsigned int __read_mostly threshold = 1;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.