driver: Add ARG_UNUSED to console and uart drivers
This patch adds the ARG_UNUSED macros to some function arguments to avoid compiler warnings. Change-Id: I628aea55d98cf8519c046ae5835e95cfa70a973f Signed-off-by: Flavio Santes <flavio.santes@intel.com>
This commit is contained in:
parent
208fc48d81
commit
0a1c29cda4
2 changed files with 8 additions and 0 deletions
|
@ -328,6 +328,10 @@ static void shell(void *p1, void *p2, void *p3)
|
|||
char *argv[ARGC_MAX + 1];
|
||||
size_t argc;
|
||||
|
||||
ARG_UNUSED(p1);
|
||||
ARG_UNUSED(p2);
|
||||
ARG_UNUSED(p3);
|
||||
|
||||
while (1) {
|
||||
struct uart_console_input *cmd;
|
||||
shell_cmd_function_t cb;
|
||||
|
|
|
@ -784,6 +784,8 @@ DEVICE_AND_API_INIT(uart_ns16550_0, CONFIG_UART_NS16550_PORT_0_NAME, &uart_ns165
|
|||
#ifdef CONFIG_UART_INTERRUPT_DRIVEN
|
||||
static void irq_config_func_0(struct device *dev)
|
||||
{
|
||||
ARG_UNUSED(dev);
|
||||
|
||||
IRQ_CONNECT(UART_NS16550_PORT_0_IRQ,
|
||||
CONFIG_UART_NS16550_PORT_0_IRQ_PRI,
|
||||
uart_ns16550_isr, DEVICE_GET(uart_ns16550_0),
|
||||
|
@ -836,6 +838,8 @@ DEVICE_AND_API_INIT(uart_ns16550_1, CONFIG_UART_NS16550_PORT_1_NAME, &uart_ns165
|
|||
#ifdef CONFIG_UART_INTERRUPT_DRIVEN
|
||||
static void irq_config_func_1(struct device *dev)
|
||||
{
|
||||
ARG_UNUSED(dev);
|
||||
|
||||
IRQ_CONNECT(UART_NS16550_PORT_1_IRQ,
|
||||
CONFIG_UART_NS16550_PORT_1_IRQ_PRI,
|
||||
uart_ns16550_isr, DEVICE_GET(uart_ns16550_1),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue