scsi: bfa: turn bfa_mem_{kva,dma}_setup into inline functions
authorArnd Bergmann <arnd@arndb.de>
Wed, 16 Nov 2016 15:14:27 +0000 (16:14 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 22 Nov 2016 03:28:17 +0000 (22:28 -0500)
commit2244459070c8080bffcd9f9916ee45b9463b6b6d
tree12f444ab279d2ef21ccb1488e0d48958f1c74839
parent4aaa4065f762514c38aba1f1193d200c7140d1c0
scsi: bfa: turn bfa_mem_{kva,dma}_setup into inline functions

These two macros cause lots of warnings with gcc-7:

drivers/scsi/bfa/bfa_svc.c: In function 'bfa_fcxp_meminfo':
drivers/scsi/bfa/bfa_svc.c:521:103: error: '*' in boolean context, suggest '&&' instead [-Werror=int-in-bool-context]

Using inline functions makes them much more readable and avoids the
warnings.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Acked by: Anil Gurumurthy <anil.gurumurthy@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/bfa/bfa_ioc.h