mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
rust/pvapconfig: add dead_code pragmas to suppress warnings
The ap.rs code is already prepared for possible support for CCA mode APQNs for the Secure Execution environment. However, this patch marks these fields and structs with pragma allow(dead_code) to prevent warnings during cargo build of pvapconfig. Signed-off-by: Harald Freudenberger <freude@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
5806c4e1f4
commit
f8d5b4b341
@@ -119,6 +119,7 @@ pub struct ApqnInfoEp11 {
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
#[allow(dead_code)]
|
||||
pub struct ApqnInfoCca {
|
||||
pub serialnr: String,
|
||||
pub mkvp_aes: String, // may be an empty string if no MK set
|
||||
@@ -129,6 +130,7 @@ pub struct ApqnInfoCca {
|
||||
pub enum ApqnInfo {
|
||||
Accel(ApqnInfoAccel),
|
||||
Ep11(ApqnInfoEp11),
|
||||
#[allow(dead_code)]
|
||||
Cca(ApqnInfoCca),
|
||||
}
|
||||
|
||||
@@ -262,6 +264,7 @@ impl ApqnInfo {
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Apqn {
|
||||
#[allow(dead_code)]
|
||||
pub name: String,
|
||||
pub card: u32,
|
||||
pub domain: u32,
|
||||
|
||||
Reference in New Issue
Block a user