diff --git a/firehose.c b/firehose.c index c7c7c0d..4a2396c 100644 --- a/firehose.c +++ b/firehose.c @@ -83,7 +83,7 @@ static xmlNode *firehose_response_parse(const void *buf, size_t len, int *error) return node; } -static int firehose_generic_parser(xmlNode *node, void *data, bool *rawmode) +static int firehose_generic_parser(xmlNode *node, void __unused *data, bool *rawmode) { xmlChar *value; int ret = -EINVAL; @@ -254,7 +254,8 @@ static int firehose_write(struct qdl_device *qdl, xmlDoc *doc) * * Return: max size supported by the remote, or negative errno on failure */ -static int firehose_configure_response_parser(xmlNode *node, void *data, bool *rawmode) +static int firehose_configure_response_parser(xmlNode *node, void *data, + bool __unused *rawmode) { xmlChar *payload; xmlChar *value; @@ -944,7 +945,7 @@ static int firehose_reset(struct qdl_device *qdl) } static int firehose_detect_and_configure(struct qdl_device *qdl, - bool skip_storage_init, + bool __unused skip_storage_init, enum qdl_storage_type storage, unsigned int timeout_s) { diff --git a/ks.c b/ks.c index 4bc9199..18c18be 100644 --- a/ks.c +++ b/ks.c @@ -24,12 +24,12 @@ static struct qdl_device qdl; bool qdl_debug; -int qdl_read(struct qdl_device *qdl, void *buf, size_t len, unsigned int timeout) +int qdl_read(struct qdl_device *qdl, void *buf, size_t len, unsigned int __unused timeout) { return read(qdl->fd, buf, len); } -int qdl_write(struct qdl_device *qdl, const void *buf, size_t len, unsigned int timeout) +int qdl_write(struct qdl_device *qdl, const void *buf, size_t len, unsigned int __unused timeout) { return write(qdl->fd, buf, len); } diff --git a/sahara.c b/sahara.c index d133471..0bd0f4a 100644 --- a/sahara.c +++ b/sahara.c @@ -264,7 +264,7 @@ static void sahara_eoi(struct qdl_device *qdl, struct sahara_pkt *pkt) qdl_write(qdl, &done, done.length, SAHARA_CMD_TIMEOUT_MS); } -static int sahara_done(struct qdl_device *qdl, struct sahara_pkt *pkt) +static int sahara_done(struct qdl_device __unused *qdl, struct sahara_pkt *pkt) { assert(pkt->length == SAHARA_DONE_RESP_LENGTH); diff --git a/sim.c b/sim.c index 8969f7d..f628cad 100644 --- a/sim.c +++ b/sim.c @@ -13,26 +13,32 @@ struct qdl_device_sim { bool create_digests; }; -static int sim_open(struct qdl_device *qdl, const char *serial) +static int sim_open(struct qdl_device __unused *qdl, + const char __unused *serial) { ux_info("This is a dry-run execution of QDL. No actual flashing has been performed\n"); return 0; } -static void sim_close(struct qdl_device *qdl) {} +static void sim_close(struct qdl_device __unused *qdl) {} -static int sim_read(struct qdl_device *qdl, void *buf, size_t len, unsigned int timeout) +static int sim_read(struct qdl_device __unused *qdl, + void __unused *buf, size_t len, + unsigned int __unused timeout) { return len; } -static int sim_write(struct qdl_device *qdl, const void *buf, size_t len, unsigned int timeout) +static int sim_write(struct qdl_device __unused *qdl, const void __unused *buf, + size_t len, unsigned int __unused timeout) { return len; } -static void sim_set_out_chunk_size(struct qdl_device *qdl, long size) {} +static void sim_set_out_chunk_size(struct qdl_device __unused *qdl, + long __unused size) +{} struct qdl_device *sim_init(void) { diff --git a/ufs.c b/ufs.c index 90ecdf5..1ada9c5 100644 --- a/ufs.c +++ b/ufs.c @@ -36,7 +36,7 @@ bool ufs_need_provisioning(void) return !!ufs_epilogue_p; } -struct ufs_common *ufs_parse_common_params(xmlNode *node, bool finalize_provisioning) +struct ufs_common *ufs_parse_common_params(xmlNode *node, bool __unused finalize_provisioning) { struct ufs_common *result; int errors;