Re: [PATCH] blk-mq: use BLK_MQ_NO_TAG for no tag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Xianting,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on block/for-next]
[also build test WARNING on linux/master linus/master v5.9-rc2 next-20200821]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Xianting-Tian/blk-mq-use-BLK_MQ_NO_TAG-for-no-tag/20200824-012255
base:   https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-next
config: mips-randconfig-r031-20200823 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project b587ca93be114d07ec3bf654add97d7872325281)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

   In file included from drivers/scsi/dpt_i2o.c:62:
   In file included from include/scsi/scsi_cmnd.h:13:
   In file included from include/scsi/scsi_request.h:5:
   include/linux/blk-mq.h:572:17: error: use of undeclared identifier 'BLK_MQ_NO_TAG'
           if (rq->tag != BLK_MQ_NO_TAG)
                          ^
   include/linux/blk-mq.h:572:17: error: use of undeclared identifier 'BLK_MQ_NO_TAG'
   include/linux/blk-mq.h:572:17: error: use of undeclared identifier 'BLK_MQ_NO_TAG'
>> drivers/scsi/dpt_i2o.c:893:31: warning: shift count >= width of type [-Wshift-count-overflow]
               dma_set_mask(&pDev->dev, DMA_BIT_MASK(64)) == 0)
               ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dma-mapping.h:139:54: note: expanded from macro 'DMA_BIT_MASK'
   #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
                                                        ^
   include/linux/compiler.h:56:47: note: expanded from macro 'if'
   #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
                              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/compiler.h:58:52: note: expanded from macro '__trace_if_var'
   #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                      ^~~~
>> drivers/scsi/dpt_i2o.c:893:31: warning: shift count >= width of type [-Wshift-count-overflow]
               dma_set_mask(&pDev->dev, DMA_BIT_MASK(64)) == 0)
               ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dma-mapping.h:139:54: note: expanded from macro 'DMA_BIT_MASK'
   #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
                                                        ^
   include/linux/compiler.h:56:47: note: expanded from macro 'if'
   #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
                              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/compiler.h:58:61: note: expanded from macro '__trace_if_var'
   #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                               ^~~~
>> drivers/scsi/dpt_i2o.c:893:31: warning: shift count >= width of type [-Wshift-count-overflow]
               dma_set_mask(&pDev->dev, DMA_BIT_MASK(64)) == 0)
               ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dma-mapping.h:139:54: note: expanded from macro 'DMA_BIT_MASK'
   #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
                                                        ^
   include/linux/compiler.h:56:47: note: expanded from macro 'if'
   #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
                              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/compiler.h:58:86: note: expanded from macro '__trace_if_var'
   #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                                       ~~~~~~~~~~~~~~~~~^~~~~
   include/linux/compiler.h:69:3: note: expanded from macro '__trace_if_value'
           (cond) ?                                        \
            ^~~~
   3 warnings and 3 errors generated.
--
   In file included from drivers/scsi/hpsa.c:39:
   In file included from include/scsi/scsi_cmnd.h:13:
   In file included from include/scsi/scsi_request.h:5:
   include/linux/blk-mq.h:572:17: error: use of undeclared identifier 'BLK_MQ_NO_TAG'
           if (rq->tag != BLK_MQ_NO_TAG)
                          ^
   include/linux/blk-mq.h:572:17: error: use of undeclared identifier 'BLK_MQ_NO_TAG'
   include/linux/blk-mq.h:572:17: error: use of undeclared identifier 'BLK_MQ_NO_TAG'
>> drivers/scsi/hpsa.c:8713:32: warning: shift count >= width of type [-Wshift-count-overflow]
           rc = dma_set_mask(&pdev->dev, DMA_BIT_MASK(64));
                                         ^~~~~~~~~~~~~~~~
   include/linux/dma-mapping.h:139:54: note: expanded from macro 'DMA_BIT_MASK'
   #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
                                                        ^ ~~~
   1 warning and 3 errors generated.
--
   In file included from drivers/scsi/3w-9xxx.c:97:
   In file included from include/scsi/scsi_host.h:11:
   include/linux/blk-mq.h:572:17: error: use of undeclared identifier 'BLK_MQ_NO_TAG'
           if (rq->tag != BLK_MQ_NO_TAG)
                          ^
   include/linux/blk-mq.h:572:17: error: use of undeclared identifier 'BLK_MQ_NO_TAG'
   include/linux/blk-mq.h:572:17: error: use of undeclared identifier 'BLK_MQ_NO_TAG'
>> drivers/scsi/3w-9xxx.c:2023:49: warning: shift count >= width of type [-Wshift-count-overflow]
           retval = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
                                                          ^~~~~~~~~~~~~~~~
   include/linux/dma-mapping.h:139:54: note: expanded from macro 'DMA_BIT_MASK'
   #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
                                                        ^ ~~~
   drivers/scsi/3w-9xxx.c:2245:49: warning: shift count >= width of type [-Wshift-count-overflow]
           retval = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
                                                          ^~~~~~~~~~~~~~~~
   include/linux/dma-mapping.h:139:54: note: expanded from macro 'DMA_BIT_MASK'
   #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
                                                        ^ ~~~
   2 warnings and 3 errors generated.
--
   In file included from drivers/scsi/arcmsr/arcmsr_hba.c:65:
   In file included from include/scsi/scsi_host.h:11:
   include/linux/blk-mq.h:572:17: error: use of undeclared identifier 'BLK_MQ_NO_TAG'
           if (rq->tag != BLK_MQ_NO_TAG)
                          ^
   include/linux/blk-mq.h:572:17: error: use of undeclared identifier 'BLK_MQ_NO_TAG'
   include/linux/blk-mq.h:572:17: error: use of undeclared identifier 'BLK_MQ_NO_TAG'
>> drivers/scsi/arcmsr/arcmsr_hba.c:930:34: warning: shift count >= width of type [-Wshift-count-overflow]
                       dma_set_mask(&pcidev->dev, DMA_BIT_MASK(64)))
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
   include/linux/dma-mapping.h:139:54: note: expanded from macro 'DMA_BIT_MASK'
   #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
                                                        ^
   include/linux/compiler.h:56:47: note: expanded from macro 'if'
   #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
                              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/compiler.h:58:52: note: expanded from macro '__trace_if_var'
   #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                      ^~~~
>> drivers/scsi/arcmsr/arcmsr_hba.c:930:34: warning: shift count >= width of type [-Wshift-count-overflow]
                       dma_set_mask(&pcidev->dev, DMA_BIT_MASK(64)))
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
   include/linux/dma-mapping.h:139:54: note: expanded from macro 'DMA_BIT_MASK'
   #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
                                                        ^
   include/linux/compiler.h:56:47: note: expanded from macro 'if'
   #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
                              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/compiler.h:58:61: note: expanded from macro '__trace_if_var'
   #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                               ^~~~
>> drivers/scsi/arcmsr/arcmsr_hba.c:930:34: warning: shift count >= width of type [-Wshift-count-overflow]
                       dma_set_mask(&pcidev->dev, DMA_BIT_MASK(64)))
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
   include/linux/dma-mapping.h:139:54: note: expanded from macro 'DMA_BIT_MASK'
   #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
                                                        ^
   include/linux/compiler.h:56:47: note: expanded from macro 'if'
   #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
                              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/compiler.h:58:86: note: expanded from macro '__trace_if_var'
   #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                                       ~~~~~~~~~~~~~~~~~^~~~~
   include/linux/compiler.h:69:3: note: expanded from macro '__trace_if_value'
           (cond) ?                                        \
            ^~~~
   drivers/scsi/arcmsr/arcmsr_hba.c:932:43: warning: shift count >= width of type [-Wshift-count-overflow]
                   if (dma_set_coherent_mask(&pcidev->dev, DMA_BIT_MASK(64)) ||
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
   include/linux/dma-mapping.h:139:54: note: expanded from macro 'DMA_BIT_MASK'
   #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
                                                        ^
   include/linux/compiler.h:56:47: note: expanded from macro 'if'
   #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
                              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/compiler.h:58:52: note: expanded from macro '__trace_if_var'
   #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                      ^~~~
   drivers/scsi/arcmsr/arcmsr_hba.c:933:47: warning: shift count >= width of type [-Wshift-count-overflow]
                       dma_set_mask_and_coherent(&pcidev->dev, DMA_BIT_MASK(64))) {
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
   include/linux/dma-mapping.h:139:54: note: expanded from macro 'DMA_BIT_MASK'
   #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
                                                        ^
   include/linux/compiler.h:56:47: note: expanded from macro 'if'
   #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
                              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/compiler.h:58:52: note: expanded from macro '__trace_if_var'
   #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                      ^~~~
   drivers/scsi/arcmsr/arcmsr_hba.c:932:43: warning: shift count >= width of type [-Wshift-count-overflow]
                   if (dma_set_coherent_mask(&pcidev->dev, DMA_BIT_MASK(64)) ||
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
   include/linux/dma-mapping.h:139:54: note: expanded from macro 'DMA_BIT_MASK'
   #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
                                                        ^
   include/linux/compiler.h:56:47: note: expanded from macro 'if'
   #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
                              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/compiler.h:58:61: note: expanded from macro '__trace_if_var'
   #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                               ^~~~
   drivers/scsi/arcmsr/arcmsr_hba.c:933:47: warning: shift count >= width of type [-Wshift-count-overflow]
                       dma_set_mask_and_coherent(&pcidev->dev, DMA_BIT_MASK(64))) {
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
   include/linux/dma-mapping.h:139:54: note: expanded from macro 'DMA_BIT_MASK'
   #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
                                                        ^
   include/linux/compiler.h:56:47: note: expanded from macro 'if'
   #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
                              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/compiler.h:58:61: note: expanded from macro '__trace_if_var'
   #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                               ^~~~
   drivers/scsi/arcmsr/arcmsr_hba.c:932:43: warning: shift count >= width of type [-Wshift-count-overflow]
                   if (dma_set_coherent_mask(&pcidev->dev, DMA_BIT_MASK(64)) ||
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
   include/linux/dma-mapping.h:139:54: note: expanded from macro 'DMA_BIT_MASK'
   #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
                                                        ^
   include/linux/compiler.h:56:47: note: expanded from macro 'if'
   #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
                              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/compiler.h:58:86: note: expanded from macro '__trace_if_var'
   #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                                       ~~~~~~~~~~~~~~~~~^~~~~
   include/linux/compiler.h:69:3: note: expanded from macro '__trace_if_value'
           (cond) ?                                        \
            ^~~~
   drivers/scsi/arcmsr/arcmsr_hba.c:933:47: warning: shift count >= width of type [-Wshift-count-overflow]
                       dma_set_mask_and_coherent(&pcidev->dev, DMA_BIT_MASK(64))) {
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
   include/linux/dma-mapping.h:139:54: note: expanded from macro 'DMA_BIT_MASK'
   #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
                                                        ^
   include/linux/compiler.h:56:47: note: expanded from macro 'if'
   #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
                              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/compiler.h:58:86: note: expanded from macro '__trace_if_var'
   #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                                       ~~~~~~~~~~~~~~~~~^~~~~
   include/linux/compiler.h:69:3: note: expanded from macro '__trace_if_value'
           (cond) ?                                        \
            ^~~~
   9 warnings and 3 errors generated.
--
   In file included from drivers/scsi/ufs/ufshcd.c:18:
   In file included from drivers/scsi/ufs/ufshcd.h:41:
   In file included from include/scsi/scsi_cmnd.h:13:
   In file included from include/scsi/scsi_request.h:5:
   include/linux/blk-mq.h:572:17: error: use of undeclared identifier 'BLK_MQ_NO_TAG'
           if (rq->tag != BLK_MQ_NO_TAG)
                          ^
   include/linux/blk-mq.h:572:17: error: use of undeclared identifier 'BLK_MQ_NO_TAG'
   include/linux/blk-mq.h:572:17: error: use of undeclared identifier 'BLK_MQ_NO_TAG'
   In file included from drivers/scsi/ufs/ufshcd.c:28:
   In file included from include/trace/events/ufs.h:313:
   In file included from include/trace/define_trace.h:102:
   In file included from include/trace/trace_events.h:21:
   In file included from include/linux/trace_events.h:6:
   In file included from include/linux/ring_buffer.h:7:
   include/linux/poll.h:142:27: warning: division by zero is undefined [-Wdivision-by-zero]
                   M(RDNORM) | M(RDBAND) | M(WRNORM) | M(WRBAND) |
                                           ^~~~~~~~~
   include/linux/poll.h:140:32: note: expanded from macro 'M'
   #define M(X) (__force __poll_t)__MAP(val, POLL##X, (__force __u16)EPOLL##X)
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/poll.h:126:51: note: expanded from macro '__MAP'
           (from < to ? (v & from) * (to/from) : (v & from) / (from/to))
                                                            ^ ~~~~~~~~~
   include/linux/poll.h:142:39: warning: division by zero is undefined [-Wdivision-by-zero]
                   M(RDNORM) | M(RDBAND) | M(WRNORM) | M(WRBAND) |
                                                       ^~~~~~~~~
   include/linux/poll.h:140:32: note: expanded from macro 'M'
   #define M(X) (__force __poll_t)__MAP(val, POLL##X, (__force __u16)EPOLL##X)
                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/poll.h:126:51: note: expanded from macro '__MAP'
           (from < to ? (v & from) * (to/from) : (v & from) / (from/to))
                                                            ^ ~~~~~~~~~
>> drivers/scsi/ufs/ufshcd.c:8711:44: warning: shift count >= width of type [-Wshift-count-overflow]
                   if (!dma_set_mask_and_coherent(hba->dev, DMA_BIT_MASK(64)))
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
   include/linux/dma-mapping.h:139:54: note: expanded from macro 'DMA_BIT_MASK'
   #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
                                                        ^
   include/linux/compiler.h:56:47: note: expanded from macro 'if'
   #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
                              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/compiler.h:58:52: note: expanded from macro '__trace_if_var'
   #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                      ^~~~
>> drivers/scsi/ufs/ufshcd.c:8711:44: warning: shift count >= width of type [-Wshift-count-overflow]
                   if (!dma_set_mask_and_coherent(hba->dev, DMA_BIT_MASK(64)))
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
   include/linux/dma-mapping.h:139:54: note: expanded from macro 'DMA_BIT_MASK'
   #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
                                                        ^
   include/linux/compiler.h:56:47: note: expanded from macro 'if'
   #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
                              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/compiler.h:58:61: note: expanded from macro '__trace_if_var'
   #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                               ^~~~
>> drivers/scsi/ufs/ufshcd.c:8711:44: warning: shift count >= width of type [-Wshift-count-overflow]
                   if (!dma_set_mask_and_coherent(hba->dev, DMA_BIT_MASK(64)))
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
   include/linux/dma-mapping.h:139:54: note: expanded from macro 'DMA_BIT_MASK'
   #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
                                                        ^
   include/linux/compiler.h:56:47: note: expanded from macro 'if'
   #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
                              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/compiler.h:58:86: note: expanded from macro '__trace_if_var'
   #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                                       ~~~~~~~~~~~~~~~~~^~~~~
   include/linux/compiler.h:69:3: note: expanded from macro '__trace_if_value'
           (cond) ?                                        \
            ^~~~
   5 warnings and 3 errors generated.
--
   In file included from drivers/block/skd_main.c:17:
   include/linux/blk-mq.h:572:17: error: use of undeclared identifier 'BLK_MQ_NO_TAG'
           if (rq->tag != BLK_MQ_NO_TAG)
                          ^
   include/linux/blk-mq.h:572:17: error: use of undeclared identifier 'BLK_MQ_NO_TAG'
   include/linux/blk-mq.h:572:17: error: use of undeclared identifier 'BLK_MQ_NO_TAG'
>> drivers/block/skd_main.c:3183:45: warning: shift count >= width of type [-Wshift-count-overflow]
           rc = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
                                                      ^~~~~~~~~~~~~~~~
   include/linux/dma-mapping.h:139:54: note: expanded from macro 'DMA_BIT_MASK'
   #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
                                                        ^ ~~~
   drivers/block/skd_main.c:3372:45: warning: shift count >= width of type [-Wshift-count-overflow]
           rc = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
                                                      ^~~~~~~~~~~~~~~~
   include/linux/dma-mapping.h:139:54: note: expanded from macro 'DMA_BIT_MASK'
   #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
                                                        ^ ~~~
   2 warnings and 3 errors generated.
..

# https://github.com/0day-ci/linux/commit/3f57d0952e89e23c6c5b65b816d3f0a9c9747583
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Xianting-Tian/blk-mq-use-BLK_MQ_NO_TAG-for-no-tag/20200824-012255
git checkout 3f57d0952e89e23c6c5b65b816d3f0a9c9747583
vim +893 drivers/scsi/dpt_i2o.c

^1da177e4c3f41 Linus Torvalds         2005-04-16  864  
^1da177e4c3f41 Linus Torvalds         2005-04-16  865  	adpt_hba* pHba = NULL;
^1da177e4c3f41 Linus Torvalds         2005-04-16  866  	adpt_hba* p = NULL;
^1da177e4c3f41 Linus Torvalds         2005-04-16  867  	ulong base_addr0_phys = 0;
^1da177e4c3f41 Linus Torvalds         2005-04-16  868  	ulong base_addr1_phys = 0;
^1da177e4c3f41 Linus Torvalds         2005-04-16  869  	u32 hba_map0_area_size = 0;
^1da177e4c3f41 Linus Torvalds         2005-04-16  870  	u32 hba_map1_area_size = 0;
^1da177e4c3f41 Linus Torvalds         2005-04-16  871  	void __iomem *base_addr_virt = NULL;
^1da177e4c3f41 Linus Torvalds         2005-04-16  872  	void __iomem *msg_addr_virt = NULL;
62ac5aedc51485 Miquel van Smoorenburg 2008-05-02  873  	int dma64 = 0;
^1da177e4c3f41 Linus Torvalds         2005-04-16  874  
^1da177e4c3f41 Linus Torvalds         2005-04-16  875  	int raptorFlag = FALSE;
^1da177e4c3f41 Linus Torvalds         2005-04-16  876  
^1da177e4c3f41 Linus Torvalds         2005-04-16  877  	if(pci_enable_device(pDev)) {
^1da177e4c3f41 Linus Torvalds         2005-04-16  878  		return -EINVAL;
^1da177e4c3f41 Linus Torvalds         2005-04-16  879  	}
9638d89a75776a Salyzyn, Mark          2006-01-12  880  
9638d89a75776a Salyzyn, Mark          2006-01-12  881  	if (pci_request_regions(pDev, "dpt_i2o")) {
9638d89a75776a Salyzyn, Mark          2006-01-12  882  		PERROR("dpti: adpt_config_hba: pci request region failed\n");
9638d89a75776a Salyzyn, Mark          2006-01-12  883  		return -EINVAL;
9638d89a75776a Salyzyn, Mark          2006-01-12  884  	}
9638d89a75776a Salyzyn, Mark          2006-01-12  885  
^1da177e4c3f41 Linus Torvalds         2005-04-16  886  	pci_set_master(pDev);
62ac5aedc51485 Miquel van Smoorenburg 2008-05-02  887  
62ac5aedc51485 Miquel van Smoorenburg 2008-05-02  888  	/*
62ac5aedc51485 Miquel van Smoorenburg 2008-05-02  889  	 *	See if we should enable dma64 mode.
62ac5aedc51485 Miquel van Smoorenburg 2008-05-02  890  	 */
62ac5aedc51485 Miquel van Smoorenburg 2008-05-02  891  	if (sizeof(dma_addr_t) > 4 &&
c79cd9a24ef71c Christoph Hellwig      2018-10-18  892  	    dma_get_required_mask(&pDev->dev) > DMA_BIT_MASK(32) &&
c79cd9a24ef71c Christoph Hellwig      2018-10-18 @893  	    dma_set_mask(&pDev->dev, DMA_BIT_MASK(64)) == 0)
62ac5aedc51485 Miquel van Smoorenburg 2008-05-02  894  		dma64 = 1;
c79cd9a24ef71c Christoph Hellwig      2018-10-18  895  
c79cd9a24ef71c Christoph Hellwig      2018-10-18  896  	if (!dma64 && dma_set_mask(&pDev->dev, DMA_BIT_MASK(32)) != 0)
^1da177e4c3f41 Linus Torvalds         2005-04-16  897  		return -EINVAL;
^1da177e4c3f41 Linus Torvalds         2005-04-16  898  
67af2b060e027c Miquel van Smoorenburg 2008-05-02  899  	/* adapter only supports message blocks below 4GB */
c79cd9a24ef71c Christoph Hellwig      2018-10-18  900  	dma_set_coherent_mask(&pDev->dev, DMA_BIT_MASK(32));
67af2b060e027c Miquel van Smoorenburg 2008-05-02  901  
^1da177e4c3f41 Linus Torvalds         2005-04-16  902  	base_addr0_phys = pci_resource_start(pDev,0);
^1da177e4c3f41 Linus Torvalds         2005-04-16  903  	hba_map0_area_size = pci_resource_len(pDev,0);
^1da177e4c3f41 Linus Torvalds         2005-04-16  904  
^1da177e4c3f41 Linus Torvalds         2005-04-16  905  	// Check if standard PCI card or single BAR Raptor
^1da177e4c3f41 Linus Torvalds         2005-04-16  906  	if(pDev->device == PCI_DPT_DEVICE_ID){
^1da177e4c3f41 Linus Torvalds         2005-04-16  907  		if(pDev->subsystem_device >=0xc032 && pDev->subsystem_device <= 0xc03b){
^1da177e4c3f41 Linus Torvalds         2005-04-16  908  			// Raptor card with this device id needs 4M
^1da177e4c3f41 Linus Torvalds         2005-04-16  909  			hba_map0_area_size = 0x400000;
^1da177e4c3f41 Linus Torvalds         2005-04-16  910  		} else { // Not Raptor - it is a PCI card
^1da177e4c3f41 Linus Torvalds         2005-04-16  911  			if(hba_map0_area_size > 0x100000 ){ 
^1da177e4c3f41 Linus Torvalds         2005-04-16  912  				hba_map0_area_size = 0x100000;
^1da177e4c3f41 Linus Torvalds         2005-04-16  913  			}
^1da177e4c3f41 Linus Torvalds         2005-04-16  914  		}
^1da177e4c3f41 Linus Torvalds         2005-04-16  915  	} else {// Raptor split BAR config
^1da177e4c3f41 Linus Torvalds         2005-04-16  916  		// Use BAR1 in this configuration
^1da177e4c3f41 Linus Torvalds         2005-04-16  917  		base_addr1_phys = pci_resource_start(pDev,1);
^1da177e4c3f41 Linus Torvalds         2005-04-16  918  		hba_map1_area_size = pci_resource_len(pDev,1);
^1da177e4c3f41 Linus Torvalds         2005-04-16  919  		raptorFlag = TRUE;
^1da177e4c3f41 Linus Torvalds         2005-04-16  920  	}
^1da177e4c3f41 Linus Torvalds         2005-04-16  921  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux