arch/arc, usb, ztest: Add the ARG_UNUSED macro
Add the ARG_UNUSED macro to avoid compiler warnings. Change-Id: Ie07f52e742bdb93fb35301bd50cce3865f229623 Signed-off-by: Flavio Santes <flavio.santes@intel.com>
This commit is contained in:
parent
358056692f
commit
d8083e92ab
|
@ -57,6 +57,8 @@
|
|||
void _FaultDump(const NANO_ESF *esf, int fault)
|
||||
{
|
||||
ARG_UNUSED(esf);
|
||||
ARG_UNUSED(fault);
|
||||
|
||||
#ifdef CONFIG_PRINTK
|
||||
uint32_t exc_addr = _arc_v2_aux_reg_read(_ARC_V2_EFA);
|
||||
uint32_t ecr = _arc_v2_aux_reg_read(_ARC_V2_ECR);
|
||||
|
|
|
@ -307,6 +307,9 @@ static void cdc_acm_bulk_in(uint8_t ep, enum usb_dc_ep_cb_status_code ep_status)
|
|||
{
|
||||
struct cdc_acm_dev_data_t * const dev_data = DEV_DATA(cdc_acm_dev);
|
||||
|
||||
ARG_UNUSED(ep_status);
|
||||
ARG_UNUSED(ep);
|
||||
|
||||
dev_data->tx_ready = 1;
|
||||
k_sem_give(&poll_wait_sem);
|
||||
/* Call callback only if tx irq ena */
|
||||
|
@ -330,6 +333,8 @@ static void cdc_acm_bulk_out(uint8_t ep,
|
|||
uint32_t bytes_to_read, i, j, buf_head;
|
||||
uint8_t tmp_buf[4];
|
||||
|
||||
ARG_UNUSED(ep_status);
|
||||
|
||||
/* Check how many bytes were received */
|
||||
usb_read(ep, NULL, 0, &bytes_to_read);
|
||||
|
||||
|
@ -379,6 +384,8 @@ static void cdc_acm_int_in(uint8_t ep, enum usb_dc_ep_cb_status_code ep_status)
|
|||
{
|
||||
struct cdc_acm_dev_data_t * const dev_data = DEV_DATA(cdc_acm_dev);
|
||||
|
||||
ARG_UNUSED(ep_status);
|
||||
|
||||
dev_data->notification_sent = 1;
|
||||
SYS_LOG_DBG("CDC_IntIN EP[%x]\r", ep);
|
||||
}
|
||||
|
@ -696,6 +703,8 @@ static int cdc_acm_irq_is_pending(struct device *dev)
|
|||
*/
|
||||
static int cdc_acm_irq_update(struct device *dev)
|
||||
{
|
||||
ARG_UNUSED(dev);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -844,6 +853,9 @@ static int cdc_acm_line_ctrl_get(struct device *dev,
|
|||
|
||||
static int cdc_acm_poll_in(struct device *dev, unsigned char *c)
|
||||
{
|
||||
ARG_UNUSED(dev);
|
||||
ARG_UNUSED(c);
|
||||
|
||||
return -ENOTSUP;
|
||||
}
|
||||
|
||||
|
|
|
@ -685,6 +685,8 @@ static void mass_storage_bulk_out(uint8_t ep,
|
|||
uint32_t bytes_read = 0;
|
||||
uint8_t bo_buf[MASS_STORAGE_BULK_EP_MPS];
|
||||
|
||||
ARG_UNUSED(ep_status);
|
||||
|
||||
usb_ep_read_wait(ep, bo_buf, MASS_STORAGE_BULK_EP_MPS, &bytes_read);
|
||||
|
||||
switch (stage) {
|
||||
|
@ -760,6 +762,9 @@ static void thread_memory_write_done(void)
|
|||
static void mass_storage_bulk_in(uint8_t ep,
|
||||
enum usb_dc_ep_cb_status_code ep_status)
|
||||
{
|
||||
ARG_UNUSED(ep_status);
|
||||
ARG_UNUSED(ep);
|
||||
|
||||
switch (stage) {
|
||||
/*the device has to send data to the host*/
|
||||
case PROCESS_CBW:
|
||||
|
@ -867,8 +872,8 @@ static struct usb_cfg_data mass_storage_config = {
|
|||
|
||||
static void mass_thread_main(int arg1, int unused)
|
||||
{
|
||||
|
||||
ARG_UNUSED(unused);
|
||||
ARG_UNUSED(arg1);
|
||||
|
||||
while (1) {
|
||||
k_sem_take(&disk_wait_sem, K_FOREVER);
|
||||
|
@ -913,6 +918,8 @@ static int mass_storage_init(struct device *dev)
|
|||
int ret;
|
||||
uint32_t block_size = 0;
|
||||
|
||||
ARG_UNUSED(dev);
|
||||
|
||||
if (disk_access_init() != 0) {
|
||||
SYS_LOG_ERR("Storage init ERROR !!!! - Aborting USB init");
|
||||
return 0;
|
||||
|
|
|
@ -156,6 +156,9 @@ static void test_cb(void *a, void *dummy2, void *dummy)
|
|||
{
|
||||
struct unit_test *test = (struct unit_test *)a;
|
||||
|
||||
ARG_UNUSED(dummy2);
|
||||
ARG_UNUSED(dummy);
|
||||
|
||||
test_result = 1;
|
||||
run_test_functions(test);
|
||||
test_result = 0;
|
||||
|
|
Loading…
Reference in a new issue