iommu: fix MISRA C 2012 Rule 8.7 violation
authorXenia Ragiadakou <burzalodowa@gmail.com>
Tue, 28 Jun 2022 15:07:11 +0000 (17:07 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 28 Jun 2022 15:07:11 +0000 (17:07 +0200)
commit1fd3698175d2de5c0b91c28902cfe0dac6c332a9
treefc2bd3e76f53b0053ca7cb0963fb96ce3add1471
parent56ff13f640b400f5e68e0450b7b24f6deae13b63
iommu: fix MISRA C 2012 Rule 8.7 violation

The variable iommu_crash_disable is referenced only in one translation unit.
Change its linkage from external to internal by adding the storage-class
specifier static to its definition.

This patch also aims to resolve indirectly a MISRA C 2012 Rule 8.4 violation
warning.

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/passthrough/iommu.c