Fix misleading indentation warnings
PATCH 1/1 Fix misleading indentation warnings
Gcc6 build reports misleading indentation as warnings. Fix a few warnings in stubdom.
--- stubdom/vtpmmgr/disk_read.c | 8 ++++---- stubdom/vtpmmgr/log.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-)
stubdom/vtpmmgr/disk_read.c +4 -4
@@ -123,10 +123,10 @@ static int parse_root_key(struct mem_tpm_mgr *dst, struct disk_seal_entry *src)struct disk_root_sealed_data sealed;/*TPM 2.0 unbind | TPM 1.x unseal*/ -if (hw_is_tpm2 ()) - rc =TPM2_disk_unbind (&sealed, &olen, src); -else - rc =TPM_disk_unseal (&sealed,sizeof (sealed), src); +if (hw_is_tpm2 ()) + rc =TPM2_disk_unbind (&sealed, &olen, src); +else + rc =TPM_disk_unseal (&sealed,sizeof (sealed), src);if (rc)return rc;
stubdom/vtpmmgr/log.c +1 -1
@@ -147,5 +147,5 @@ const char* tpm_get_error_name (TPM_RESULT code) {if (code == error_msgs[i].code)return error_msgs[i].code_name; -return ("Unknown Error Code" ); +return ("Unknown Error Code" ); }
Signature · 7 lines
2.10.1 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Quoted 2 lines · Cédric Bosdonnat
Gcc6 build reports misleading indentation as warnings. Fix a few warnings in stubdom.
You should CC: the maintainers. Calling
./scripts/get_maintainer.pl <patchfile>
will show them. Added them for now.
Juergen
Quoted 30 lines
--- stubdom/vtpmmgr/disk_read.c | 8 ++++---- stubdom/vtpmmgr/log.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-)stubdom/vtpmmgr/disk_read.c +4
-4@@ -123,10 +123,10 @@ static int parse_root_key(struct mem_tpm_mgr *dst, struct disk_seal_entry *src)struct disk_root_sealed_data sealed;/*TPM 2.0 unbind | TPM 1.x unseal*/ -if (hw_is_tpm2 ()) - rc =TPM2_disk_unbind (&sealed, &olen, src); -else - rc =TPM_disk_unseal (&sealed,sizeof (sealed), src); +if (hw_is_tpm2 ()) + rc =TPM2_disk_unbind (&sealed, &olen, src); +else + rc =TPM_disk_unseal (&sealed,sizeof (sealed), src);if (rc)return rc;stubdom/vtpmmgr/log.c +0
-0
stubdom/vtpmmgr/log.c const char* tpm_get_error_name (TPM_RESULT code) { · line 151
Quoted 6 lines
stubdom/vtpmmgr/log.c +1
-1@@ -147,5 +147,5 @@ const char* tpm_get_error_name (TPM_RESULT code) {if (code == error_msgs[i].code)return error_msgs[i].code_name; -return ("Unknown Error Code" ); +return ("Unknown Error Code" ); }
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Hi Juergen,
Just resent the patch with the missing Signed-off-By and --cc-cmd './scripts/get_maintainers.pl'
--
Cedric
Quoted 41 lines · Juergen Gross
Quoted 2 lines · Cédric Bosdonnat
Gcc6 build reports misleading indentation as warnings. Fix a few warnings in stubdom.
You should CC: the maintainers. Calling
./scripts/get_maintainer.pl<patchfile>will show them. Added them for now.
Juergen
Quoted 28 lines
---
stubdom/vtpmmgr/disk_read.c | 8 ++++----
stubdom/vtpmmgr/log.c | 2 +-2 files changed, 5 insertions(+), 5 deletions(-)stubdom/vtpmmgr/disk_read.c +0
-0@@ -123,10 +123,10 @@ static int parse_root_key(struct mem_tpm_mgr *dst, struct disk_seal_entry *src) struct disk_root_sealed_data sealed;
/*TPM 2.0 unbind | TPM 1.x unseal*/
- if (hw_is_tpm2())
- rc =TPM2_disk_unbind(&sealed, &olen, src); - else
- rc =TPM_disk_unseal(&sealed, sizeof(sealed), src);stubdom/vtpmmgr/disk_read.c +4
-0+if (hw_is_tpm2 ()) + rc =TPM2_disk_unbind (&sealed, &olen, src); +else + rc =TPM_disk_unseal (&sealed,sizeof (sealed), src);
if (rc)
return rc;stubdom/vtpmmgr/log.c +0
-0
Quoted 10 lines
Quoted 8 lines
stubdom/vtpmmgr/log.c +0
-0@@ -147,5 +147,5 @@ const char* tpm_get_error_name (TPM_RESULT code) { if (code == error_msgs[i].code) return error_msgs[i].code_name;
- return("Unknown Error Code");
+ return("Unknown Error Code");
}
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel