diff --git a/ppc64-diag-unusedvar.patch b/ppc64-diag-unusedvar.patch index 0d43ac3..e521c53 100644 --- a/ppc64-diag-unusedvar.patch +++ b/ppc64-diag-unusedvar.patch @@ -22,7 +22,7 @@ diff -urN ppc64-diag-2.4.2/diags/7031_D24_T24.c ppc64-diag-2.4.2_/diags/7031_D24 if ((status & 0x0F000000) == 0x01000000) printf("ok "); @@ -348,7 +350,8 @@ - diag_7031_D24_T24(int fd, struct dev_vpd *vpd, int se, int verbose) + diag_7031_D24_T24(int fd, struct dev_vpd *vpd) { struct pearl_diag_page2 dp; - int failure = 0, rc, encl_id; @@ -97,12 +97,3 @@ diff -urN ppc64-diag-2.4.2/rtas_errd/guard.c ppc64-diag-2.4.2_/rtas_errd/guard.c char capacity[6], quant_str[5]; char *drmgr_args[] = {DRMGR_PROGRAM_NOPATH, "-r", "-c", NULL, NULL, NULL, NULL, NULL, NULL}; -@@ -368,7 +368,7 @@ - static void - guard_spcpu(struct event *event, int ent_loss) - { -- int n_cpus, rc, quant, ent_cap; -+ int n_cpus, __attribute__((unused)) rc = 0, quant, ent_cap; - int min_ent_cap = d_cfg.min_entitled_capacity; - - /*