kata-ctl: Allow certain constants to go unused

The generic constants for cpu vendor and model may be superseded
by architecture specific constants. Allow these to be marked as
dead code to ignore warnings on architectures where they are overrided.

Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
This commit is contained in:
Archana Shinde 2023-01-09 15:32:39 -08:00
parent 64c11a66fd
commit 8d4c2cf1b9
2 changed files with 4 additions and 0 deletions

View File

@ -12,7 +12,9 @@ mod arch_specific {
use std::path::Path;
const KVM_DEV: &str = "/dev/kvm";
#[allow(dead_code)]
pub const ARCH_CPU_VENDOR_FIELD: &str = "CPU implementer";
#[allow(dead_code)]
pub const ARCH_CPU_MODEL_FIELD: &str = "CPU architecture";
// List of check functions

View File

@ -23,7 +23,9 @@ const JSON_TYPE: &str = "application/json";
const USER_AGT: &str = "kata";
#[allow(dead_code)]
pub const GENERIC_CPU_VENDOR_FIELD: &str = "vendor_id";
#[allow(dead_code)]
pub const GENERIC_CPU_MODEL_FIELD: &str = "model name";
#[allow(dead_code)]