Fix some build issues.
This commit is contained in:
parent
b670546509
commit
e1cbcaff8a
@ -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)
|
if ((status & 0x0F000000) == 0x01000000)
|
||||||
printf("ok ");
|
printf("ok ");
|
||||||
@@ -348,7 +350,8 @@
|
@@ -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;
|
struct pearl_diag_page2 dp;
|
||||||
- int failure = 0, rc, encl_id;
|
- 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 capacity[6], quant_str[5];
|
||||||
char *drmgr_args[] = {DRMGR_PROGRAM_NOPATH, "-r", "-c", NULL,
|
char *drmgr_args[] = {DRMGR_PROGRAM_NOPATH, "-r", "-c", NULL,
|
||||||
NULL, NULL, NULL, NULL, 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;
|
|
||||||
|
|
||||||
/*
|
|
||||||
|
Loading…
Reference in New Issue
Block a user