staging: octeon-usb: Resolve some checkpatch.pl warnings
PATCH 1/1 staging: octeon-usb: Resolve some checkpatch.pl warnings
This patch removes some of the warnings that are present when running the checkpatch.pl script. It corrects the warnings related to macro precedents.
Signed-off-by Geert Custers <[email protected]>
--- drivers/staging/octeon-usb/octeon-hcd.c | 2 +- drivers/staging/octeon-usb/octeon-hcd.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-)
drivers/staging/octeon-usb/octeon-hcd.c +1 -1
@@ -380,7 +380,7 @@ struct octeon_hcd {#define CVMX_WAIT_FOR_FIELD32 (address, _union, cond, timeout_usec) \ ({int result; \ do { \ - u64 done = cvmx_get_cycle() + (u64)timeout_usec * \ + u64 done = cvmx_get_cycle() + (u64)(timeout_usec) * \ octeon_get_clock_rate() / 1000000; \ union _union c; \ \
drivers/staging/octeon-usb/octeon-hcd.h +4 -4
@@ -51,10 +51,10 @@#define CVMX_USBCXBASE 0x00016F0010000000ull#define CVMX_USBCXREG1 (reg, bid) \ - (CVMX_ADD_IO_SEG(CVMX_USBCXBASE | reg) + \ + (CVMX_ADD_IO_SEG(CVMX_USBCXBASE | (reg)) + \ ((bid) & 1) * 0x100000000000ull)#define CVMX_USBCXREG2 (reg, bid, off) \ - (CVMX_ADD_IO_SEG(CVMX_USBCXBASE | reg) + \ + (CVMX_ADD_IO_SEG(CVMX_USBCXBASE | (reg)) + \ (((off) & 7) + ((bid) & 1) * 0x8000000000ull) * 32)#define CVMX_USBCX_GAHBCFG (bid) CVMX_USBCXREG1(0x008, bid)
@@ -86,9 +86,9 @@#define CVMX_USBNXBID2 (bid) (((bid) & 1) * 0x100000000000ull)#define CVMX_USBNXREG1 (reg, bid) \ - (CVMX_ADD_IO_SEG(0x0001180068000000ull | reg) + CVMX_USBNXBID1(bid)) + (CVMX_ADD_IO_SEG(0x0001180068000000ull | (reg)) + CVMX_USBNXBID1(bid))#define CVMX_USBNXREG2 (reg, bid) \ - (CVMX_ADD_IO_SEG(0x00016F0000000000ull | reg) + CVMX_USBNXBID2(bid)) + (CVMX_ADD_IO_SEG(0x00016F0000000000ull | (reg)) + CVMX_USBNXBID2(bid))#define CVMX_USBNX_CLK_CTL (bid) CVMX_USBNXREG1(0x10, bid)#define CVMX_USBNX_DMA0_INB_CHN0 (bid) CVMX_USBNXREG2(0x818, bid)
Signature · 1 line
2.10.2
Greg KH
maintainerQuoted 9 lines · Geert Custers
This patch removes some of the warnings that are present when running the checkpatch.pl script. It corrects the warnings related to macro precedents.
Signed-off-by Geert Custers <[email protected]>--- drivers/staging/octeon-usb/octeon-hcd.c | 2 +- drivers/staging/octeon-usb/octeon-hcd.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-)
Why are you not using scripts/get_maintainer.pl to determine what mailing list you should be sending patches like this to?
thanks,
greg k-h