Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions arch/arm/src/sama5/sam_ohci.c
Original file line number Diff line number Diff line change
Expand Up @@ -2855,13 +2855,12 @@ static int sam_epalloc(struct usbhost_driver_s *drvr,

static int sam_epfree(struct usbhost_driver_s *drvr, usbhost_ep_t ep)
{
struct sam_rhport_s *rhport = (struct sam_rhport_s *)drvr;
struct sam_eplist_s *eplist = (struct sam_eplist_s *)ep;
struct sam_ed_s *ed;
int ret;
int ret2;

DEBUGASSERT(rhport != NULL && eplist != NULL &&
DEBUGASSERT(drvr != NULL && eplist != NULL &&
eplist->ed != NULL && eplist->tail != NULL);

/* There should not be any pending, real TDs linked to this ED */
Expand Down
1 change: 1 addition & 0 deletions drivers/input/djoystick.c
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,7 @@ static int djoy_poll(FAR struct file *filep, FAR struct pollfd *fds,
opriv = filep->f_priv;
inode = filep->f_inode;
DEBUGASSERT(inode->i_private);
UNUSED(inode);

/* Get exclusive access to the driver structure */

Expand Down
2 changes: 2 additions & 0 deletions drivers/net/slip.c
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,8 @@ static void slip_receive(FAR struct slip_driver_s *self)
}
}

UNUSED(ret);

/* Move remaining bytes in rxbuf to the front */

DEBUGASSERT((pend - self->rxbuf) <= self->rxlen);
Expand Down
10 changes: 8 additions & 2 deletions fs/hostfs/hostfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ static ssize_t hostfs_read(FAR struct file *filep, FAR char *buffer,
fs = inode->i_private;

DEBUGASSERT(fs != NULL);
UNUSED(fs);

/* Take the lock */

Expand Down Expand Up @@ -493,6 +494,7 @@ static ssize_t hostfs_write(FAR struct file *filep, const char *buffer,
fs = inode->i_private;

DEBUGASSERT(fs != NULL);
UNUSED(fs);

/* Take the lock */

Expand Down Expand Up @@ -547,6 +549,7 @@ static off_t hostfs_seek(FAR struct file *filep, off_t offset, int whence)
fs = inode->i_private;

DEBUGASSERT(fs != NULL);
UNUSED(fs);

/* Take the lock */

Expand Down Expand Up @@ -588,8 +591,7 @@ static int hostfs_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
hf = filep->f_priv;
inode = filep->f_inode;
fs = inode->i_private;

DEBUGASSERT(fs != NULL);
UNUSED(fs);

/* Take the lock */

Expand Down Expand Up @@ -633,6 +635,7 @@ static int hostfs_sync(FAR struct file *filep)
fs = inode->i_private;

DEBUGASSERT(fs != NULL);
UNUSED(fs);

/* Take the lock */

Expand Down Expand Up @@ -707,6 +710,7 @@ static int hostfs_fstat(FAR const struct file *filep, FAR struct stat *buf)

fs = inode->i_private;
DEBUGASSERT(fs != NULL);
UNUSED(fs);

/* Take the lock */

Expand Down Expand Up @@ -753,6 +757,7 @@ static int hostfs_fchstat(FAR const struct file *filep,

fs = inode->i_private;
DEBUGASSERT(fs != NULL);
UNUSED(fs);

/* Take the lock */

Expand Down Expand Up @@ -794,6 +799,7 @@ static int hostfs_ftruncate(FAR struct file *filep, off_t length)

fs = inode->i_private;
DEBUGASSERT(fs != NULL);
UNUSED(fs);

/* Take the lock */

Expand Down
1 change: 1 addition & 0 deletions fs/littlefs/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ $(LITTLEFS_TARBALL):
$(Q) mv littlefs/littlefs-$(LITTLEFS_VERSION) littlefs/littlefs
$(Q) git apply littlefs/lfs_util.patch
$(Q) git apply littlefs/lfs_getpath.patch
$(Q) git apply littlefs/lfs_unused.patch
$(Q) touch littlefs/.littlefsunpack

# Download and unpack tarball if no git repo found
Expand Down
1 change: 1 addition & 0 deletions libs/libc/machine/risc-v/arch_elf.c
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,7 @@ int up_relocateadd(const Elf_Rela *rel, const Elf_Sym *sym,

insn = _get_val((uint16_t *)addr);
ASSERT(OPCODE_AUIPC == (insn & RVI_OPCODE_MASK));
UNUSED(insn);

_calc_imm(offset, &imm_hi, &imm_lo);

Expand Down
1 change: 1 addition & 0 deletions mm/mm_gran/mm_pgalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ void mm_pgreserve(uintptr_t start, size_t size)
{
FAR void * ret = gran_reserve(g_pgalloc, start, size);
DEBUGASSERT(ret != NULL);
UNUSED(ret);
}

/****************************************************************************
Expand Down
1 change: 1 addition & 0 deletions net/bluetooth/bluetooth_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ static int bluetooth_queue_frame(FAR struct bluetooth_conn_s *conn,
}

DEBUGASSERT((int)conn->bc_backlog == bluetooth_count_frames(conn));
UNUSED(bluetooth_count_frames);
#endif

return OK;
Expand Down
1 change: 1 addition & 0 deletions net/bluetooth/bluetooth_recvmsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ static ssize_t
DEBUGASSERT(conn->bc_backlog > 0);
conn->bc_backlog--;
DEBUGASSERT((int)conn->bc_backlog == bluetooth_count_frames(conn));
UNUSED(bluetooth_count_frames);
#endif

/* Extract the IOB containing the frame from the container */
Expand Down
1 change: 1 addition & 0 deletions net/ieee802154/ieee802154_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ static int ieee802154_queue_frame(FAR struct ieee802154_conn_s *conn,
}

DEBUGASSERT((int)conn->backlog == ieee802154_count_frames(conn));
UNUSED(ieee802154_count_frames);
#endif

return OK;
Expand Down
1 change: 1 addition & 0 deletions net/ieee802154/ieee802154_recvmsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ static ssize_t
DEBUGASSERT(conn->backlog > 0);
conn->backlog--;
DEBUGASSERT((int)conn->backlog == ieee802154_count_frames(conn));
UNUSED(ieee802154_count_frames);
#endif

/* Extract the IOB containing the frame from the container */
Expand Down
1 change: 1 addition & 0 deletions net/netdev/netdev_ifconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ static int ifconf_ipv6_callback(FAR struct net_driver_s *dev, FAR void *arg)
FAR struct ifconf_ipv6_info_s *info = (FAR struct ifconf_ipv6_info_s *)arg;

DEBUGASSERT(dev != NULL && info != NULL && info->lifc != NULL);
UNUSED(info);

/* Check if this adapter has an IPv6 address assigned and is in the UP
* state.
Expand Down
1 change: 1 addition & 0 deletions wireless/bluetooth/bt_hcicore.c
Original file line number Diff line number Diff line change
Expand Up @@ -1525,6 +1525,7 @@ static void cmd_queue_init(void)
CONFIG_BLUETOOTH_TXCMD_STACKSIZE,
hci_tx_kthread, NULL);
DEBUGASSERT(pid > 0);
UNUSED(pid);

#ifdef CONFIG_BLUETOOTH_TXCMD_PINNED_TO_CORE
CPU_ZERO(&cpuset);
Expand Down