lkml.org 
[lkml]   [2021]   [Jan]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] arcnet: fix macro name when DEBUG is defined
    Date
    From: Tom Rix <trix@redhat.com>

    When DEBUG is defined this error occurs

    drivers/net/arcnet/com20020_cs.c:70:15: error: ‘com20020_REG_W_ADDR_HI’
    undeclared (first use in this function);
    did you mean ‘COM20020_REG_W_ADDR_HI’?
    ioaddr, com20020_REG_W_ADDR_HI);
    ^~~~~~~~~~~~~~~~~~~~~~

    From reviewing the context, the suggestion is what is meant.

    Fixes: 0fec65130b9f ("arcnet: com20020: Use arcnet_<I/O> routines")
    Signed-off-by: Tom Rix <trix@redhat.com>
    ---
    drivers/net/arcnet/com20020_cs.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/net/arcnet/com20020_cs.c b/drivers/net/arcnet/com20020_cs.c
    index cf607ffcf358..81223f6bebcc 100644
    --- a/drivers/net/arcnet/com20020_cs.c
    +++ b/drivers/net/arcnet/com20020_cs.c
    @@ -67,7 +67,7 @@ static void regdump(struct net_device *dev)
    /* set up the address register */
    count = 0;
    arcnet_outb((count >> 8) | RDDATAflag | AUTOINCflag,
    - ioaddr, com20020_REG_W_ADDR_HI);
    + ioaddr, COM20020_REG_W_ADDR_HI);
    arcnet_outb(count & 0xff, ioaddr, COM20020_REG_W_ADDR_LO);

    for (count = 0; count < 256 + 32; count++) {
    --
    2.27.0
    \
     
     \ /
      Last update: 2021-01-17 19:19    [W:4.058 / U:1.988 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site