Re: [PATCH V2] lib/scatterlist: Add SG_CHAIN and SG_END macros for LSB encodings
From: kbuild test robot
Date: Sat Feb 17 2018 - 13:34:43 EST
Hi Anshuman,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on v4.16-rc1 next-20180216]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Anshuman-Khandual/lib-scatterlist-Add-SG_CHAIN-and-SG_END-macros-for-LSB-encodings/20180218-015554
config: i386-randconfig-s0-201807 (attached as .config)
compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
All warnings (new ones prefixed by >>):
In file included from drivers/misc/cardreader/rtsx_pcr.c:32:0:
>> include/linux/rtsx_pci.h:40:0: warning: "SG_END" redefined
#define SG_END 0x02
In file included from include/linux/dmapool.h:14:0,
from include/linux/pci.h:1316,
from drivers/misc/cardreader/rtsx_pcr.c:22:
include/linux/scatterlist.h:69:0: note: this is the location of the previous definition
#define SG_END 0x02UL
vim +/SG_END +40 include/linux/rtsx_pci.h
67d16a46 include/linux/mfd/rtsx_pci.h Wei WANG 2012-11-09 37
ada71f55 include/linux/mfd/rtsx_pci.h Micky Ching 2015-02-25 38 #define RTSX_HDBAR 0x08
ada71f55 include/linux/mfd/rtsx_pci.h Micky Ching 2015-02-25 39 #define SG_INT 0x04
ada71f55 include/linux/mfd/rtsx_pci.h Micky Ching 2015-02-25 @40 #define SG_END 0x02
ada71f55 include/linux/mfd/rtsx_pci.h Micky Ching 2015-02-25 41 #define SG_VALID 0x01
ada71f55 include/linux/mfd/rtsx_pci.h Micky Ching 2015-02-25 42 #define SG_NO_OP 0x00
ada71f55 include/linux/mfd/rtsx_pci.h Micky Ching 2015-02-25 43 #define SG_TRANS_DATA (0x02 << 4)
ada71f55 include/linux/mfd/rtsx_pci.h Micky Ching 2015-02-25 44 #define SG_LINK_DESC (0x03 << 4)
ada71f55 include/linux/mfd/rtsx_pci.h Micky Ching 2015-02-25 45 #define RTSX_HDBCTLR 0x0C
67d16a46 include/linux/mfd/rtsx_pci.h Wei WANG 2012-11-09 46 #define SDMA_MODE 0x00
67d16a46 include/linux/mfd/rtsx_pci.h Wei WANG 2012-11-09 47 #define ADMA_MODE (0x02 << 26)
67d16a46 include/linux/mfd/rtsx_pci.h Wei WANG 2012-11-09 48 #define STOP_DMA (0x01 << 28)
67d16a46 include/linux/mfd/rtsx_pci.h Wei WANG 2012-11-09 49 #define TRIG_DMA (0x01 << 31)
67d16a46 include/linux/mfd/rtsx_pci.h Wei WANG 2012-11-09 50
:::::: The code at line 40 was first introduced by commit
:::::: ada71f5588320e7a5c7166cb7c1c8c40cb866ac4 mfd: rtsx: Place register address and values togather
:::::: TO: Micky Ching <micky_ching@xxxxxxxxxxxxxx>
:::::: CC: Lee Jones <lee.jones@xxxxxxxxxx>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip