summaryrefslogtreecommitdiffstats
path: root/external/gard
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2017-07-17 17:33:09 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-07-19 15:49:39 +1000
commit3a8e6bf13530a2cce24da42b099e684ca2899ea6 (patch)
tree159fd1c040b2ef0e656e916c24b011c425593094 /external/gard
parent519f6e132f5bcfdd7c419291d5bab5e5c61066b2 (diff)
downloadblackbird-skiboot-3a8e6bf13530a2cce24da42b099e684ca2899ea6.tar.gz
blackbird-skiboot-3a8e6bf13530a2cce24da42b099e684ca2899ea6.zip
gard: enable building with skiboot HOSTCFLAGS warnings
Mostly unused parameter warnings due to callbacks Reviewed-by: Cyril Bur <cyril.bur@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external/gard')
-rw-r--r--external/gard/gard.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/external/gard/gard.c b/external/gard/gard.c
index 32a0003f..c5cb93b8 100644
--- a/external/gard/gard.c
+++ b/external/gard/gard.c
@@ -260,6 +260,9 @@ static int do_iterate(struct gard_ctx *ctx,
static int get_largest_pos_i(struct gard_ctx *ctx, int pos, struct gard_record *gard, void *priv)
{
+ (void)ctx;
+ (void)gard;
+
if (!priv)
return -1;
@@ -272,6 +275,8 @@ static int get_largest_pos(struct gard_ctx *ctx)
{
int rc, largest = -1;
+ (void)ctx;
+
rc = do_iterate(ctx, &get_largest_pos_i, &largest);
if (rc)
return -1;
@@ -281,6 +286,9 @@ static int get_largest_pos(struct gard_ctx *ctx)
static int count_valid_records_i(struct gard_ctx *ctx, int pos, struct gard_record *gard, void *priv)
{
+ (void)ctx;
+ (void)pos;
+
if (!gard || !priv)
return -1;
@@ -303,6 +311,10 @@ static int count_valid_records(struct gard_ctx *ctx)
static int do_list_i(struct gard_ctx *ctx, int pos, struct gard_record *gard, void *priv)
{
+ (void)ctx;
+ (void)pos;
+ (void)priv;
+
if (!gard)
return -1;
@@ -317,6 +329,9 @@ static int do_list(struct gard_ctx *ctx, int argc, char **argv)
{
int rc;
+ (void)argc;
+ (void)argv;
+
/* No entries */
if (count_valid_records(ctx) == 0) {
printf("No GARD entries to display\n");
@@ -335,6 +350,9 @@ static int do_show_i(struct gard_ctx *ctx, int pos, struct gard_record *gard, vo
{
uint32_t id;
+ (void)ctx;
+ (void)pos;
+
if (!priv || !gard)
return -1;
@@ -477,7 +495,7 @@ static int do_clear(struct gard_ctx *ctx, int argc, char **argv)
return rc;
}
-int check_gard_partition(struct gard_ctx *ctx)
+static int check_gard_partition(struct gard_ctx *ctx)
{
int rc;
struct gard_record gard;
@@ -520,6 +538,8 @@ int check_gard_partition(struct gard_ctx *ctx)
__attribute__ ((unused))
static int do_nop(struct gard_ctx *ctx, int argc, char **argv)
{
+ (void)ctx;
+ (void)argc;
fprintf(stderr, "Unimplemented action '%s'\n", argv[0]);
return EXIT_SUCCESS;
}
OpenPOWER on IntegriCloud