net/irda: bfin_sir: remove duplicate defines
Subsystems (2)
PATCH 1/1 net/irda: bfin_sir: remove duplicate defines
The defconfig build of blackfin is failing with the error:
arch/blackfin/include/asm/bfin_serial.h:269:0: warning: "port_membase" redefined drivers/net/irda/bfin_sir.h:85:0: note: this is the location of the previous definition arch/blackfin/include/asm/bfin_serial.h:382:0: warning: "get_lsr_cache" redefined drivers/net/irda/bfin_sir.h:86:0: note: this is the location of the previous definition arch/blackfin/include/asm/bfin_serial.h:383:0: warning: "put_lsr_cache" redefined drivers/net/irda/bfin_sir.h:87:0: note: this is the location of the previous definition
port_membase, get_lsr_cache, put_lsr_cache are already defined in the architecture files, no need to define them again in the driver.
--- drivers/net/irda/bfin_sir.h | 3 --- 1 file changed, 3 deletions(-)
drivers/net/irda/bfin_sir.h +0 -3
@@ -82,9 +82,6 @@ struct bfin_sir_self {#define DRIVER_NAME "bfin_sir" -#define port_membase (port) (((struct bfin_sir_port *)(port))->membase) -#define get_lsr_cache (port) (((struct bfin_sir_port *)(port))->lsr) -#define put_lsr_cache (port, v) (((struct bfin_sir_port *)(port))->lsr = (v))#include <asm/bfin_serial.h> static const unsigned short per[][4 ] = {
Signature · 1 line
1.9.1
From: Sudip Mukherjee <[email protected]>
Date: Thu, 21 Jan 2016 10:42:31 +0530
Quoted 9 lines
The defconfig build of blackfin is failing with the error:
arch/blackfin/include/asm/bfin_serial.h:269:0: warning: "port_membase" redefineddrivers/net/irda/bfin_sir.h:85:0: note: this is the location of the previous definitionarch/blackfin/include/asm/bfin_serial.h:382:0: warning: "get_lsr_cache" redefineddrivers/net/irda/bfin_sir.h:86:0: note: this is the location of the previous definitionarch/blackfin/include/asm/bfin_serial.h:383:0: warning: "put_lsr_cache" redefineddrivers/net/irda/bfin_sir.h:87:0: note: this is the location of the previous definition
Quoted 4 lines
port_membase,get_lsr_cache,put_lsr_cacheare already defined in the architecture files, no need to define them again in the driver.
Applied, thank you.