include/asm-generic/irqflags.h:47:9: sparse: sparse: context imbalance in 'cm_queue_work_unlock' - unexpected unlock
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: b29482fde649c72441d5478a4ea2c52c56d97a5e
commit: e83f195aa45c1ffd73b3a950a887e41c260cf194 RDMA/cm: Pull duplicated code into cm_queue_work_unlock()
date: 4 weeks ago
config: sh-randconfig-s032-20200611 (attached as .config)
compiler: sh4-linux-gcc (GCC) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-250-g42323db3-dirty
git checkout e83f195aa45c1ffd73b3a950a887e41c260cf194
# save the attached .config to linux build tree
make W=1 C=1 ARCH=sh CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
drivers/infiniband/core/cm.c:1297:21: sparse: sparse: cast from restricted __be32
>> include/asm-generic/irqflags.h:47:9: sparse: sparse: context imbalance in 'cm_queue_work_unlock' - unexpected unlock
drivers/infiniband/core/cm.c:2043:12: sparse: sparse: context imbalance in 'cm_req_handler' - different lock contexts for basic block
drivers/infiniband/core/cm.c:2422:12: sparse: sparse: context imbalance in 'cm_rep_handler' - different lock contexts for basic block
drivers/infiniband/core/cm.c:2533:12: sparse: sparse: context imbalance in 'cm_establish_handler' - different lock contexts for basic block
drivers/infiniband/core/cm.c:2556:12: sparse: sparse: context imbalance in 'cm_rtu_handler' - different lock contexts for basic block
drivers/infiniband/core/cm.c:2770:12: sparse: sparse: context imbalance in 'cm_dreq_handler' - different lock contexts for basic block
drivers/infiniband/core/cm.c:2847:12: sparse: sparse: context imbalance in 'cm_drep_handler' - different lock contexts for basic block
drivers/infiniband/core/cm.c:2995:12: sparse: sparse: context imbalance in 'cm_rej_handler' - wrong count at exit
drivers/infiniband/core/cm.c:3153:12: sparse: sparse: context imbalance in 'cm_mra_handler' - different lock contexts for basic block
drivers/infiniband/core/cm.c:3271:12: sparse: sparse: context imbalance in 'cm_lap_handler' - different lock contexts for basic block
drivers/infiniband/core/cm.c:3360:12: sparse: sparse: context imbalance in 'cm_apr_handler' - different lock contexts for basic block
drivers/infiniband/core/cm.c:3405:12: sparse: sparse: context imbalance in 'cm_timewait_handler' - different lock contexts for basic block
vim +/cm_queue_work_unlock +47 include/asm-generic/irqflags.h
aafe4dbed0bf6c Arnd Bergmann 2009-05-13 42
aafe4dbed0bf6c Arnd Bergmann 2009-05-13 43 /* unconditionally enable interrupts */
df9ee29270c11d David Howells 2010-10-07 44 #ifndef arch_local_irq_enable
df9ee29270c11d David Howells 2010-10-07 45 static inline void arch_local_irq_enable(void)
aafe4dbed0bf6c Arnd Bergmann 2009-05-13 46 {
df9ee29270c11d David Howells 2010-10-07 @47 arch_local_irq_restore(ARCH_IRQ_ENABLED);
aafe4dbed0bf6c Arnd Bergmann 2009-05-13 48 }
aafe4dbed0bf6c Arnd Bergmann 2009-05-13 49 #endif
aafe4dbed0bf6c Arnd Bergmann 2009-05-13 50
:::::: The code at line 47 was first introduced by commit
:::::: df9ee29270c11dba7d0fe0b83ce47a4d8e8d2101 Fix IRQ flag handling naming
:::::: TO: David Howells <dhowells(a)redhat.com>
:::::: CC: David Howells <dhowells(a)redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c:881:45: sparse: sparse: incorrect type in assignment (different base types)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: b29482fde649c72441d5478a4ea2c52c56d97a5e
commit: 6482023b9d3350bf1b756ef36e1ea1a1c871879c crypto: marvell - enable OcteonTX cpt options for build
date: 3 months ago
config: s390-randconfig-s032-20200611 (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-250-g42323db3-dirty
git checkout 6482023b9d3350bf1b756ef36e1ea1a1c871879c
# save the attached .config to linux build tree
make W=1 C=1 ARCH=s390 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c:306:22: sparse: sparse: cast to restricted __be32
>> drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c:881:45: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] @@ got restricted __be64 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c:881:45: sparse: expected unsigned long long [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c:881:45: sparse: got restricted __be64 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c:885:45: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] @@ got restricted __be16 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c:885:45: sparse: expected unsigned short [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c:885:45: sparse: got restricted __be16 [usertype]
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c:905:23: sparse: sparse: cast to restricted __be32
include/asm-generic/io.h:236:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned long long [usertype] val @@ got restricted __le64 [usertype] @@
include/asm-generic/io.h:236:22: sparse: expected unsigned long long [usertype] val
include/asm-generic/io.h:236:22: sparse: got restricted __le64 [usertype]
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:236:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned long long [usertype] val @@ got restricted __le64 [usertype] @@
include/asm-generic/io.h:236:22: sparse: expected unsigned long long [usertype] val
include/asm-generic/io.h:236:22: sparse: got restricted __le64 [usertype]
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:236:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned long long [usertype] val @@ got restricted __le64 [usertype] @@
include/asm-generic/io.h:236:22: sparse: expected unsigned long long [usertype] val
include/asm-generic/io.h:236:22: sparse: got restricted __le64 [usertype]
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:236:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned long long [usertype] val @@ got restricted __le64 [usertype] @@
include/asm-generic/io.h:236:22: sparse: expected unsigned long long [usertype] val
include/asm-generic/io.h:236:22: sparse: got restricted __le64 [usertype]
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:236:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned long long [usertype] val @@ got restricted __le64 [usertype] @@
include/asm-generic/io.h:236:22: sparse: expected unsigned long long [usertype] val
include/asm-generic/io.h:236:22: sparse: got restricted __le64 [usertype]
include/asm-generic/io.h:236:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned long long [usertype] val @@ got restricted __le64 [usertype] @@
include/asm-generic/io.h:236:22: sparse: expected unsigned long long [usertype] val
include/asm-generic/io.h:236:22: sparse: got restricted __le64 [usertype]
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:236:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned long long [usertype] val @@ got restricted __le64 [usertype] @@
include/asm-generic/io.h:236:22: sparse: expected unsigned long long [usertype] val
include/asm-generic/io.h:236:22: sparse: got restricted __le64 [usertype]
--
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:365:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [assigned] [usertype] opcode @@ got restricted __be16 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:365:29: sparse: expected unsigned short [assigned] [usertype] opcode
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:365:29: sparse: got restricted __be16 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:366:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [assigned] [usertype] param1 @@ got restricted __be16 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:366:29: sparse: expected unsigned short [assigned] [usertype] param1
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:366:29: sparse: got restricted __be16 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:367:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [assigned] [usertype] param2 @@ got restricted __be16 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:367:29: sparse: expected unsigned short [assigned] [usertype] param2
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:367:29: sparse: got restricted __be16 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:368:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [assigned] [usertype] dlen @@ got restricted __be16 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:368:29: sparse: expected unsigned short [assigned] [usertype] dlen
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:368:29: sparse: got restricted __be16 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:371:24: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [assigned] [usertype] u64 @@ got restricted __be64 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:371:24: sparse: expected unsigned long long [assigned] [usertype] u64
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:371:24: sparse: got restricted __be64 [usertype]
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:439:19: sparse: sparse: cast to restricted __be64
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:209:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] @@ got restricted __be64 @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:209:33: sparse: expected unsigned long long [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:209:33: sparse: got restricted __be64
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:127:34: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] len0 @@ got restricted __be16 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:127:34: sparse: expected unsigned short [usertype] len0
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:127:34: sparse: got restricted __be16 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:128:34: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] len1 @@ got restricted __be16 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:128:34: sparse: expected unsigned short [usertype] len1
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:128:34: sparse: got restricted __be16 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:129:34: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] len2 @@ got restricted __be16 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:129:34: sparse: expected unsigned short [usertype] len2
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:129:34: sparse: got restricted __be16 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:130:34: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] len3 @@ got restricted __be16 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:130:34: sparse: expected unsigned short [usertype] len3
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:130:34: sparse: got restricted __be16 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:131:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] ptr0 @@ got restricted __be64 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:131:30: sparse: expected unsigned long long [usertype] ptr0
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:131:30: sparse: got restricted __be64 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:132:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] ptr1 @@ got restricted __be64 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:132:30: sparse: expected unsigned long long [usertype] ptr1
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:132:30: sparse: got restricted __be64 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:133:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] ptr2 @@ got restricted __be64 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:133:30: sparse: expected unsigned long long [usertype] ptr2
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:133:30: sparse: got restricted __be64 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:134:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] ptr3 @@ got restricted __be64 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:134:30: sparse: expected unsigned long long [usertype] ptr3
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:134:30: sparse: got restricted __be64 [usertype]
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:141:34: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] len2 @@ got restricted __be16 [usertype] @@
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:141:34: sparse: expected unsigned short [usertype] len2
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:141:34: sparse: got restricted __be16 [usertype]
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:142:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] ptr2 @@ got restricted __be64 [usertype] @@
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:142:30: sparse: expected unsigned long long [usertype] ptr2
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:142:30: sparse: got restricted __be64 [usertype]
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:145:34: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] len1 @@ got restricted __be16 [usertype] @@
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:145:34: sparse: expected unsigned short [usertype] len1
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:145:34: sparse: got restricted __be16 [usertype]
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:146:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] ptr1 @@ got restricted __be64 [usertype] @@
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:146:30: sparse: expected unsigned long long [usertype] ptr1
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:146:30: sparse: got restricted __be64 [usertype]
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:149:34: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] len0 @@ got restricted __be16 [usertype] @@
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:149:34: sparse: expected unsigned short [usertype] len0
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:149:34: sparse: got restricted __be16 [usertype]
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:150:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] ptr0 @@ got restricted __be64 [usertype] @@
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:150:30: sparse: expected unsigned long long [usertype] ptr0
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:150:30: sparse: got restricted __be64 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:127:34: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] len0 @@ got restricted __be16 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:127:34: sparse: expected unsigned short [usertype] len0
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:127:34: sparse: got restricted __be16 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:128:34: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] len1 @@ got restricted __be16 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:128:34: sparse: expected unsigned short [usertype] len1
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:128:34: sparse: got restricted __be16 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:129:34: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] len2 @@ got restricted __be16 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:129:34: sparse: expected unsigned short [usertype] len2
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:129:34: sparse: got restricted __be16 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:130:34: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] len3 @@ got restricted __be16 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:130:34: sparse: expected unsigned short [usertype] len3
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:130:34: sparse: got restricted __be16 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:131:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] ptr0 @@ got restricted __be64 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:131:30: sparse: expected unsigned long long [usertype] ptr0
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:131:30: sparse: got restricted __be64 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:132:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] ptr1 @@ got restricted __be64 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:132:30: sparse: expected unsigned long long [usertype] ptr1
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:132:30: sparse: got restricted __be64 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:133:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] ptr2 @@ got restricted __be64 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:133:30: sparse: expected unsigned long long [usertype] ptr2
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:133:30: sparse: got restricted __be64 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:134:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] ptr3 @@ got restricted __be64 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:134:30: sparse: expected unsigned long long [usertype] ptr3
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:134:30: sparse: got restricted __be64 [usertype]
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:141:34: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] len2 @@ got restricted __be16 [usertype] @@
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:141:34: sparse: expected unsigned short [usertype] len2
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:141:34: sparse: got restricted __be16 [usertype]
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:142:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] ptr2 @@ got restricted __be64 [usertype] @@
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:142:30: sparse: expected unsigned long long [usertype] ptr2
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:142:30: sparse: got restricted __be64 [usertype]
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:145:34: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] len1 @@ got restricted __be16 [usertype] @@
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:145:34: sparse: expected unsigned short [usertype] len1
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:145:34: sparse: got restricted __be16 [usertype]
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:146:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] ptr1 @@ got restricted __be64 [usertype] @@
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:146:30: sparse: expected unsigned long long [usertype] ptr1
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:146:30: sparse: got restricted __be64 [usertype]
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:149:34: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] len0 @@ got restricted __be16 [usertype] @@
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:149:34: sparse: expected unsigned short [usertype] len0
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:149:34: sparse: got restricted __be16 [usertype]
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:150:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] ptr0 @@ got restricted __be64 [usertype] @@
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:150:30: sparse: expected unsigned long long [usertype] ptr0
drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c:150:30: sparse: got restricted __be64 [usertype]
--
>> drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:281:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] @@ got restricted __be64 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:281:21: sparse: expected unsigned long long [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:281:21: sparse: got restricted __be64 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:281:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] @@ got restricted __be64 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:281:21: sparse: expected unsigned long long [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:281:21: sparse: got restricted __be64 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:696:24: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] @@ got restricted __be32 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:696:24: sparse: expected unsigned int [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:696:24: sparse: got restricted __be32 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:696:24: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] @@ got restricted __be32 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:696:24: sparse: expected unsigned int [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:696:24: sparse: got restricted __be32 [usertype]
drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:705:24: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] @@ got restricted __be64 [usertype] @@
drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:705:24: sparse: expected unsigned long long [usertype]
drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:705:24: sparse: got restricted __be64 [usertype]
>> drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:1012:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] flags @@ got restricted __be64 [usertype] @@
>> drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:1012:31: sparse: expected unsigned long long [usertype] flags
drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:1012:31: sparse: got restricted __be64 [usertype]
drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:1032:34: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] flags @@ got restricted __be64 [usertype] @@
drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:1032:34: sparse: expected unsigned long long [usertype] flags
drivers/crypto/marvell/octeontx/otx_cptvf_algs.c:1032:34: sparse: got restricted __be64 [usertype]
vim +881 drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
d9110b0b01ff1cd SrujanaChalla 2020-03-13 858
d9110b0b01ff1cd SrujanaChalla 2020-03-13 859 static int copy_ucode_to_dma_mem(struct device *dev,
d9110b0b01ff1cd SrujanaChalla 2020-03-13 860 struct otx_cpt_ucode *ucode,
d9110b0b01ff1cd SrujanaChalla 2020-03-13 861 const u8 *ucode_data)
d9110b0b01ff1cd SrujanaChalla 2020-03-13 862 {
d9110b0b01ff1cd SrujanaChalla 2020-03-13 863 u32 i;
d9110b0b01ff1cd SrujanaChalla 2020-03-13 864
d9110b0b01ff1cd SrujanaChalla 2020-03-13 865 /* Allocate DMAable space */
d9110b0b01ff1cd SrujanaChalla 2020-03-13 866 ucode->va = dma_alloc_coherent(dev, ucode->size +
d9110b0b01ff1cd SrujanaChalla 2020-03-13 867 OTX_CPT_UCODE_ALIGNMENT,
d9110b0b01ff1cd SrujanaChalla 2020-03-13 868 &ucode->dma, GFP_KERNEL);
d9110b0b01ff1cd SrujanaChalla 2020-03-13 869 if (!ucode->va) {
d9110b0b01ff1cd SrujanaChalla 2020-03-13 870 dev_err(dev, "Unable to allocate space for microcode");
d9110b0b01ff1cd SrujanaChalla 2020-03-13 871 return -ENOMEM;
d9110b0b01ff1cd SrujanaChalla 2020-03-13 872 }
d9110b0b01ff1cd SrujanaChalla 2020-03-13 873 ucode->align_va = PTR_ALIGN(ucode->va, OTX_CPT_UCODE_ALIGNMENT);
d9110b0b01ff1cd SrujanaChalla 2020-03-13 874 ucode->align_dma = PTR_ALIGN(ucode->dma, OTX_CPT_UCODE_ALIGNMENT);
d9110b0b01ff1cd SrujanaChalla 2020-03-13 875
d9110b0b01ff1cd SrujanaChalla 2020-03-13 876 memcpy((void *) ucode->align_va, (void *) ucode_data +
d9110b0b01ff1cd SrujanaChalla 2020-03-13 877 sizeof(struct otx_cpt_ucode_hdr), ucode->size);
d9110b0b01ff1cd SrujanaChalla 2020-03-13 878
d9110b0b01ff1cd SrujanaChalla 2020-03-13 879 /* Byte swap 64-bit */
d9110b0b01ff1cd SrujanaChalla 2020-03-13 880 for (i = 0; i < (ucode->size / 8); i++)
d9110b0b01ff1cd SrujanaChalla 2020-03-13 @881 ((u64 *)ucode->align_va)[i] =
d9110b0b01ff1cd SrujanaChalla 2020-03-13 882 cpu_to_be64(((u64 *)ucode->align_va)[i]);
d9110b0b01ff1cd SrujanaChalla 2020-03-13 883 /* Ucode needs 16-bit swap */
d9110b0b01ff1cd SrujanaChalla 2020-03-13 884 for (i = 0; i < (ucode->size / 2); i++)
d9110b0b01ff1cd SrujanaChalla 2020-03-13 @885 ((u16 *)ucode->align_va)[i] =
d9110b0b01ff1cd SrujanaChalla 2020-03-13 886 cpu_to_be16(((u16 *)ucode->align_va)[i]);
d9110b0b01ff1cd SrujanaChalla 2020-03-13 887 return 0;
d9110b0b01ff1cd SrujanaChalla 2020-03-13 888 }
d9110b0b01ff1cd SrujanaChalla 2020-03-13 889
:::::: The code at line 881 was first introduced by commit
:::::: d9110b0b01ff1cd02751cd5c2c94e938a8906083 crypto: marvell - add support for OCTEON TX CPT engine
:::::: TO: SrujanaChalla <schalla(a)marvell.com>
:::::: CC: Herbert Xu <herbert(a)gondor.apana.org.au>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
include/asm-generic/qspinlock.h:94:9: sparse: sparse: context imbalance in 'do_sched_cfs_period_timer' - unexpected unlock
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: b29482fde649c72441d5478a4ea2c52c56d97a5e
commit: ab93a4bc955b3980c699430bc0b633f0d8b607be sched/fair: Remove distribute_running from CFS bandwidth
date: 6 weeks ago
config: arm64-randconfig-s032-20200611 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-250-g42323db3-dirty
git checkout ab93a4bc955b3980c699430bc0b633f0d8b607be
# save the attached .config to linux build tree
make W=1 C=1 ARCH=arm64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
kernel/sched/fair.c:882:34: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct sched_entity *se @@ got struct sched_entity [noderef] <asn:4> * @@
kernel/sched/fair.c:882:34: sparse: expected struct sched_entity *se
kernel/sched/fair.c:882:34: sparse: got struct sched_entity [noderef] <asn:4> *
kernel/sched/fair.c:4851:22: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/fair.c:4851:22: sparse: struct task_struct [noderef] <asn:4> *
kernel/sched/fair.c:4851:22: sparse: struct task_struct *
kernel/sched/fair.c:6533:20: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct sched_domain *[assigned] sd @@ got struct sched_domain [noderef] <asn:4> *parent @@
kernel/sched/fair.c:6533:20: sparse: expected struct sched_domain *[assigned] sd
kernel/sched/fair.c:6533:20: sparse: got struct sched_domain [noderef] <asn:4> *parent
kernel/sched/fair.c:6652:9: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct sched_domain *[assigned] tmp @@ got struct sched_domain [noderef] <asn:4> *parent @@
kernel/sched/fair.c:6652:9: sparse: expected struct sched_domain *[assigned] tmp
kernel/sched/fair.c:6652:9: sparse: got struct sched_domain [noderef] <asn:4> *parent
kernel/sched/fair.c:6854:38: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct task_struct *curr @@ got struct task_struct [noderef] <asn:4> *curr @@
kernel/sched/fair.c:6854:38: sparse: expected struct task_struct *curr
kernel/sched/fair.c:6854:38: sparse: got struct task_struct [noderef] <asn:4> *curr
kernel/sched/fair.c:7105:38: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct task_struct *curr @@ got struct task_struct [noderef] <asn:4> *curr @@
kernel/sched/fair.c:7105:38: sparse: expected struct task_struct *curr
kernel/sched/fair.c:7105:38: sparse: got struct task_struct [noderef] <asn:4> *curr
kernel/sched/fair.c:8063:40: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct sched_domain *child @@ got struct sched_domain [noderef] <asn:4> *child @@
kernel/sched/fair.c:8063:40: sparse: expected struct sched_domain *child
kernel/sched/fair.c:8063:40: sparse: got struct sched_domain [noderef] <asn:4> *child
kernel/sched/fair.c:8556:22: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/fair.c:8556:22: sparse: struct task_struct [noderef] <asn:4> *
kernel/sched/fair.c:8556:22: sparse: struct task_struct *
kernel/sched/fair.c:9800:9: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct sched_domain *[assigned] sd @@ got struct sched_domain [noderef] <asn:4> *parent @@
kernel/sched/fair.c:9800:9: sparse: expected struct sched_domain *[assigned] sd
kernel/sched/fair.c:9800:9: sparse: got struct sched_domain [noderef] <asn:4> *parent
kernel/sched/fair.c:9460:44: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct sched_domain *sd_parent @@ got struct sched_domain [noderef] <asn:4> *parent @@
kernel/sched/fair.c:9460:44: sparse: expected struct sched_domain *sd_parent
kernel/sched/fair.c:9460:44: sparse: got struct sched_domain [noderef] <asn:4> *parent
kernel/sched/fair.c:9879:9: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct sched_domain *[assigned] sd @@ got struct sched_domain [noderef] <asn:4> *parent @@
kernel/sched/fair.c:9879:9: sparse: expected struct sched_domain *[assigned] sd
kernel/sched/fair.c:9879:9: sparse: got struct sched_domain [noderef] <asn:4> *parent
kernel/sched/fair.c:10479:9: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct sched_domain *[assigned] sd @@ got struct sched_domain [noderef] <asn:4> *parent @@
kernel/sched/fair.c:10479:9: sparse: expected struct sched_domain *[assigned] sd
kernel/sched/fair.c:10479:9: sparse: got struct sched_domain [noderef] <asn:4> *parent
kernel/sched/fair.c:10683:22: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/fair.c:10683:22: sparse: struct task_struct [noderef] <asn:4> *
kernel/sched/fair.c:10683:22: sparse: struct task_struct *
kernel/sched/fair.c:10816:30: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/fair.c:10816:30: sparse: struct task_struct [noderef] <asn:4> *
kernel/sched/fair.c:10816:30: sparse: struct task_struct *
>> include/asm-generic/qspinlock.h:94:9: sparse: sparse: context imbalance in 'do_sched_cfs_period_timer' - unexpected unlock
kernel/sched/fair.c:5908:28: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct sched_domain *sd @@ got struct sched_domain [noderef] <asn:4> *child @@
kernel/sched/fair.c:5908:28: sparse: expected struct sched_domain *sd
kernel/sched/fair.c:5908:28: sparse: got struct sched_domain [noderef] <asn:4> *child
kernel/sched/fair.c:5914:28: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct sched_domain *sd @@ got struct sched_domain [noderef] <asn:4> *child @@
kernel/sched/fair.c:5914:28: sparse: expected struct sched_domain *sd
kernel/sched/fair.c:5914:28: sparse: got struct sched_domain [noderef] <asn:4> *child
kernel/sched/fair.c:5921:28: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct sched_domain *sd @@ got struct sched_domain [noderef] <asn:4> *child @@
kernel/sched/fair.c:5921:28: sparse: expected struct sched_domain *sd
kernel/sched/fair.c:5921:28: sparse: got struct sched_domain [noderef] <asn:4> *child
kernel/sched/fair.c:5929:17: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct sched_domain *[assigned] tmp @@ got struct sched_domain [noderef] <asn:4> *parent @@
kernel/sched/fair.c:5929:17: sparse: expected struct sched_domain *[assigned] tmp
kernel/sched/fair.c:5929:17: sparse: got struct sched_domain [noderef] <asn:4> *parent
kernel/sched/sched.h:1808:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/sched.h:1808:9: sparse: struct task_struct [noderef] <asn:4> *
kernel/sched/sched.h:1808:9: sparse: struct task_struct *
vim +/do_sched_cfs_period_timer +94 include/asm-generic/qspinlock.h
a33fda35e3a765 Waiman Long 2015-04-24 83
a33fda35e3a765 Waiman Long 2015-04-24 84 #ifndef queued_spin_unlock
a33fda35e3a765 Waiman Long 2015-04-24 85 /**
a33fda35e3a765 Waiman Long 2015-04-24 86 * queued_spin_unlock - release a queued spinlock
a33fda35e3a765 Waiman Long 2015-04-24 87 * @lock : Pointer to queued spinlock structure
a33fda35e3a765 Waiman Long 2015-04-24 88 */
a33fda35e3a765 Waiman Long 2015-04-24 89 static __always_inline void queued_spin_unlock(struct qspinlock *lock)
a33fda35e3a765 Waiman Long 2015-04-24 90 {
a33fda35e3a765 Waiman Long 2015-04-24 91 /*
ca50e426f96c90 Pan Xinhui 2016-06-03 92 * unlock() needs release semantics:
a33fda35e3a765 Waiman Long 2015-04-24 93 */
626e5fbc143589 Will Deacon 2018-04-26 @94 smp_store_release(&lock->locked, 0);
a33fda35e3a765 Waiman Long 2015-04-24 95 }
a33fda35e3a765 Waiman Long 2015-04-24 96 #endif
a33fda35e3a765 Waiman Long 2015-04-24 97
:::::: The code at line 94 was first introduced by commit
:::::: 626e5fbc14358901ddaa90ce510e0fbeab310432 locking/qspinlock: Use smp_store_release() in queued_spin_unlock()
:::::: TO: Will Deacon <will.deacon(a)arm.com>
:::::: CC: Ingo Molnar <mingo(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
drivers/video/fbdev/tdfxfb.c:1120:27: sparse: sparse: incorrect type in argument 1 (different address spaces)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: b29482fde649c72441d5478a4ea2c52c56d97a5e
commit: 80591e61a0f7e88deaada69844e4a31280c4a38f kbuild: tell sparse about the $ARCH
date: 7 months ago
config: s390-randconfig-s032-20200611 (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-247-gcadbd124-dirty
git checkout 80591e61a0f7e88deaada69844e4a31280c4a38f
# save the attached .config to linux build tree
make W=1 C=1 ARCH=s390 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/video/fbdev/tdfxfb.c:1120:27: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *p @@ got unsigned char [noderef] [usertype] <asn:2> *cursorbase @@
>> drivers/video/fbdev/tdfxfb.c:1120:27: sparse: expected void *p
drivers/video/fbdev/tdfxfb.c:1120:27: sparse: got unsigned char [noderef] [usertype] <asn:2> *cursorbase
drivers/video/fbdev/tdfxfb.c:1131:33: sparse: sparse: cast removes address space '<asn:2>' of expression
drivers/video/fbdev/tdfxfb.c:1134:33: sparse: sparse: cast removes address space '<asn:2>' of expression
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] val
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] val
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] val
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] val
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] val
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] val
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] val
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] val
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] val
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] val
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] val
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] val
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] val
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] val
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] val
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] val
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] val
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] val
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] val
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] val
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
--
>> drivers/video/fbdev/sstfb.c:337:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *p @@ got char [noderef] <asn:2> *screen_base @@
>> drivers/video/fbdev/sstfb.c:337:23: sparse: expected void *p
drivers/video/fbdev/sstfb.c:337:23: sparse: got char [noderef] <asn:2> *screen_base
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] val
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] val
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] val
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] val
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] val
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] val
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] val
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] val
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] val
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] val
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] val
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] val
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] val
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] val
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] val
include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype]
--
>> drivers/video/fbdev/kyro/fbdev.c:725:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *p @@ got char [noderef] <asn:2> *screen_base @@
>> drivers/video/fbdev/kyro/fbdev.c:725:23: sparse: expected void *p
drivers/video/fbdev/kyro/fbdev.c:725:23: sparse: got char [noderef] <asn:2> *screen_base
vim +1120 drivers/video/fbdev/tdfxfb.c
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1040
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1041 static int tdfxfb_cursor(struct fb_info *info, struct fb_cursor *cursor)
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1042 {
a807f618b62594 drivers/video/tdfxfb.c Antonino A. Daplas 2006-01-09 1043 struct tdfx_par *par = info->par;
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1044 u32 vidcfg;
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1045
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1046 if (!hwcursor)
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1047 return -EINVAL; /* just to force soft_cursor() call */
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1048
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1049 /* Too large of a cursor or wrong bpp :-( */
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1050 if (cursor->image.width > 64 ||
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1051 cursor->image.height > 64 ||
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1052 cursor->image.depth > 1)
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1053 return -EINVAL;
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1054
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1055 vidcfg = tdfx_inl(par, VIDPROCCFG);
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1056 if (cursor->enable)
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1057 tdfx_outl(par, VIDPROCCFG, vidcfg | VIDCFG_HWCURSOR_ENABLE);
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1058 else
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1059 tdfx_outl(par, VIDPROCCFG, vidcfg & ~VIDCFG_HWCURSOR_ENABLE);
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1060
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1061 /*
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1062 * If the cursor is not be changed this means either we want the
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1063 * current cursor state (if enable is set) or we want to query what
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1064 * we can do with the cursor (if enable is not set)
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1065 */
8af1d50f7f6793 drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1066 if (!cursor->set)
8af1d50f7f6793 drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1067 return 0;
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1068
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1069 /* fix cursor color - XFree86 forgets to restore it properly */
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1070 if (cursor->set & FB_CUR_SETCMAP) {
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1071 struct fb_cmap cmap = info->cmap;
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1072 u32 bg_idx = cursor->image.bg_color;
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1073 u32 fg_idx = cursor->image.fg_color;
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1074 unsigned long bg_color, fg_color;
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1075
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1076 fg_color = (((u32)cmap.red[fg_idx] & 0xff00) << 8) |
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1077 (((u32)cmap.green[fg_idx] & 0xff00) << 0) |
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1078 (((u32)cmap.blue[fg_idx] & 0xff00) >> 8);
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1079 bg_color = (((u32)cmap.red[bg_idx] & 0xff00) << 8) |
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1080 (((u32)cmap.green[bg_idx] & 0xff00) << 0) |
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1081 (((u32)cmap.blue[bg_idx] & 0xff00) >> 8);
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1082 banshee_make_room(par, 2);
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1083 tdfx_outl(par, HWCURC0, bg_color);
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1084 tdfx_outl(par, HWCURC1, fg_color);
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1085 }
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1086
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1087 if (cursor->set & FB_CUR_SETPOS) {
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1088 int x = cursor->image.dx;
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1089 int y = cursor->image.dy - info->var.yoffset;
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1090
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1091 x += 63;
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1092 y += 63;
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1093 banshee_make_room(par, 1);
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1094 tdfx_outl(par, HWCURLOC, (y << 16) + x);
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1095 }
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1096 if (cursor->set & (FB_CUR_SETIMAGE | FB_CUR_SETSHAPE)) {
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1097 /*
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1098 * Voodoo 3 and above cards use 2 monochrome cursor patterns.
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1099 * The reason is so the card can fetch 8 words at a time
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1100 * and are stored on chip for use for the next 8 scanlines.
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1101 * This reduces the number of times for access to draw the
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1102 * cursor for each screen refresh.
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1103 * Each pattern is a bitmap of 64 bit wide and 64 bit high
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1104 * (total of 8192 bits or 1024 bytes). The two patterns are
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1105 * stored in such a way that pattern 0 always resides in the
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1106 * lower half (least significant 64 bits) of a 128 bit word
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1107 * and pattern 1 the upper half. If you examine the data of
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1108 * the cursor image the graphics card uses then from the
25985edcedea63 drivers/video/tdfxfb.c Lucas De Marchi 2011-03-30 1109 * beginning you see line one of pattern 0, line one of
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1110 * pattern 1, line two of pattern 0, line two of pattern 1,
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1111 * etc etc. The linear stride for the cursor is always 16 bytes
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1112 * (128 bits) which is the maximum cursor width times two for
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1113 * the two monochrome patterns.
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1114 */
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1115 u8 __iomem *cursorbase = info->screen_base + info->fix.smem_len;
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1116 u8 *bitmap = (u8 *)cursor->image.data;
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1117 u8 *mask = (u8 *)cursor->mask;
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1118 int i;
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1119
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 @1120 fb_memset(cursorbase, 0, 1024);
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1121
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1122 for (i = 0; i < cursor->image.height; i++) {
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1123 int h = 0;
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1124 int j = (cursor->image.width + 7) >> 3;
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1125
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1126 for (; j > 0; j--) {
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1127 u8 data = *mask ^ *bitmap;
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1128 if (cursor->rop == ROP_COPY)
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1129 data = *mask & *bitmap;
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1130 /* Pattern 0. Copy the cursor mask to it */
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1131 fb_writeb(*mask, cursorbase + h);
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1132 mask++;
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1133 /* Pattern 1. Copy the cursor bitmap to it */
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1134 fb_writeb(data, cursorbase + h + 8);
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1135 bitmap++;
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1136 h++;
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1137 }
90b0f08536531a drivers/video/tdfxfb.c Krzysztof Helt 2007-10-16 1138 cursorbase += 16;
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1139 }
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1140 }
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1141 return 0;
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1142 }
^1da177e4c3f41 drivers/video/tdfxfb.c Linus Torvalds 2005-04-16 1143
:::::: The code at line 1120 was first introduced by commit
:::::: 90b0f08536531abbbe7b5d4944792da08cadde01 tdfxfb: hardware cursor
:::::: TO: Krzysztof Helt <krzysztof.h1(a)wp.pl>
:::::: CC: Linus Torvalds <torvalds(a)woody.linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[RFC PATCH zen-kernel-zen-kernel] __pcpu_scope_runqueues can be static
by kernel test robot
Fixes: cd3b420bc9cd ("MultiQueue Skiplist Scheduler v0.202")
Signed-off-by: kernel test robot <lkp(a)intel.com>
---
MuQSS.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/MuQSS.c b/kernel/sched/MuQSS.c
index 18a9b4a23e44e..d4a21959f8c09 100644
--- a/kernel/sched/MuQSS.c
+++ b/kernel/sched/MuQSS.c
@@ -211,7 +211,7 @@ static inline int timeslice(void)
return MS_TO_US(rr_interval);
}
-DEFINE_PER_CPU_SHARED_ALIGNED(struct rq, runqueues);
+static DEFINE_PER_CPU_SHARED_ALIGNED(struct rq, runqueues);
#ifdef CONFIG_SMP
/*
2 years, 3 months
Re: [PATCH v2] ovl: provide real_file() and overlayfs get_unmapped_area()
by kbuild test robot
Hi Mike,
I love your patch! Yet something to improve:
[auto build test ERROR on miklos-vfs/overlayfs-next]
[also build test ERROR on linus/master v5.7-rc7]
[cannot apply to linux/master next-20200526]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Mike-Kravetz/ovl-provide-real_fi...
base: https://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git overlayfs-next
config: h8300-randconfig-r036-20200528 (attached as .config)
compiler: h8300-linux-gcc (GCC) 9.3.0
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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=h8300
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>, old ones prefixed by <<):
fs/overlayfs/file.c: In function 'ovl_get_unmapped_area':
>> fs/overlayfs/file.c:768:14: error: 'struct mm_struct' has no member named 'get_unmapped_area'
768 | current->mm->get_unmapped_area)(realfile,
| ^~
>> fs/overlayfs/file.c:770:1: warning: control reaches end of non-void function [-Wreturn-type]
770 | }
| ^
vim +768 fs/overlayfs/file.c
760
761 static unsigned long ovl_get_unmapped_area(struct file *file,
762 unsigned long uaddr, unsigned long len,
763 unsigned long pgoff, unsigned long flags)
764 {
765 struct file *realfile = real_file(file);
766
767 return (realfile->f_op->get_unmapped_area ?:
> 768 current->mm->get_unmapped_area)(realfile,
769 uaddr, len, pgoff, flags);
> 770 }
771
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
Re: [PATCH v3 25/41] powerpc/book3s64/kuep: Store/restore userspace IAMR correctly on entry and exit from kernel
by kernel test robot
Hi "Aneesh,
I love your patch! Yet something to improve:
[auto build test ERROR on powerpc/next]
[also build test ERROR on next-20200610]
[cannot apply to v5.7]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Aneesh-Kumar-K-V/Kernel-userspac...
base: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: powerpc-randconfig-r006-20200608 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project bc2b70982be8f5250cd0082a7190f8b417bd4dfe)
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 powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
In file included from arch/powerpc/kernel/asm-offsets.c:14:
In file included from include/linux/compat.h:15:
In file included from include/linux/socket.h:8:
In file included from include/linux/uio.h:10:
In file included from include/crypto/hash.h:11:
In file included from include/linux/crypto.h:21:
In file included from include/linux/uaccess.h:11:
In file included from arch/powerpc/include/asm/uaccess.h:9:
In file included from arch/powerpc/include/asm/kup.h:18:
arch/powerpc/include/asm/book3s/64/kup.h:181:24: error: no member named 'kuap' in 'struct pt_regs'
mtspr(SPRN_AMR, regs->kuap);
~~~~ ^
arch/powerpc/include/asm/reg.h:1386:33: note: expanded from macro 'mtspr'
: "r" ((unsigned long)(v)) ^
In file included from arch/powerpc/kernel/asm-offsets.c:14:
In file included from include/linux/compat.h:15:
In file included from include/linux/socket.h:8:
In file included from include/linux/uio.h:10:
In file included from include/crypto/hash.h:11:
In file included from include/linux/crypto.h:21:
In file included from include/linux/uaccess.h:11:
In file included from arch/powerpc/include/asm/uaccess.h:9:
In file included from arch/powerpc/include/asm/kup.h:18:
>> arch/powerpc/include/asm/book3s/64/kup.h:182:25: error: no member named 'kuep' in 'struct pt_regs'
mtspr(SPRN_IAMR, regs->kuep);
~~~~ ^
arch/powerpc/include/asm/reg.h:1386:33: note: expanded from macro 'mtspr'
: "r" ((unsigned long)(v)) ^
In file included from arch/powerpc/kernel/asm-offsets.c:14:
In file included from include/linux/compat.h:15:
In file included from include/linux/socket.h:8:
In file included from include/linux/uio.h:10:
In file included from include/crypto/hash.h:11:
In file included from include/linux/crypto.h:21:
In file included from include/linux/uaccess.h:11:
In file included from arch/powerpc/include/asm/uaccess.h:9:
In file included from arch/powerpc/include/asm/kup.h:18:
arch/powerpc/include/asm/book3s/64/kup.h:194:22: error: no member named 'kuap' in 'struct pt_regs'
if (unlikely(regs->kuap != amr)) {
~~~~ ^
include/linux/compiler.h:78:42: note: expanded from macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
In file included from arch/powerpc/kernel/asm-offsets.c:14:
In file included from include/linux/compat.h:15:
In file included from include/linux/socket.h:8:
In file included from include/linux/uio.h:10:
In file included from include/crypto/hash.h:11:
In file included from include/linux/crypto.h:21:
In file included from include/linux/uaccess.h:11:
In file included from arch/powerpc/include/asm/uaccess.h:9:
In file included from arch/powerpc/include/asm/kup.h:18:
arch/powerpc/include/asm/book3s/64/kup.h:196:26: error: no member named 'kuap' in 'struct pt_regs'
mtspr(SPRN_AMR, regs->kuap);
~~~~ ^
arch/powerpc/include/asm/reg.h:1386:33: note: expanded from macro 'mtspr'
: "r" ((unsigned long)(v)) ^
In file included from arch/powerpc/kernel/asm-offsets.c:14:
In file included from include/linux/compat.h:15:
In file included from include/linux/socket.h:8:
In file included from include/linux/uio.h:10:
In file included from include/crypto/hash.h:11:
In file included from include/linux/crypto.h:21:
In file included from include/linux/uaccess.h:11:
In file included from arch/powerpc/include/asm/uaccess.h:9:
In file included from arch/powerpc/include/asm/kup.h:18:
arch/powerpc/include/asm/book3s/64/kup.h:293:14: error: no member named 'kuap' in 'struct pt_regs'
(regs->kuap & (is_write ? AMR_KUAP_BLOCK_WRITE : AMR_KUAP_BLOCK_READ)),
~~~~ ^
include/asm-generic/bug.h:122:25: note: expanded from macro 'WARN'
int __ret_warn_on = !!(condition); ^~~~~~~~~
In file included from arch/powerpc/kernel/asm-offsets.c:14:
In file included from include/linux/compat.h:15:
In file included from include/linux/socket.h:8:
In file included from include/linux/uio.h:10:
In file included from include/crypto/hash.h:11:
In file included from include/linux/crypto.h:21:
In file included from include/linux/uaccess.h:11:
In file included from arch/powerpc/include/asm/uaccess.h:9:
arch/powerpc/include/asm/kup.h:56:20: error: redefinition of 'allow_user_access'
static inline void allow_user_access(void __user *to, const void __user *from,
^
arch/powerpc/include/asm/book3s/64/kup.h:254:29: note: previous definition is here
static __always_inline void allow_user_access(void __user *to, const void __user *from,
^
In file included from arch/powerpc/kernel/asm-offsets.c:14:
In file included from include/linux/compat.h:15:
In file included from include/linux/socket.h:8:
In file included from include/linux/uio.h:10:
In file included from include/crypto/hash.h:11:
In file included from include/linux/crypto.h:21:
In file included from include/linux/uaccess.h:11:
In file included from arch/powerpc/include/asm/uaccess.h:9:
arch/powerpc/include/asm/kup.h:58:20: error: redefinition of 'prevent_user_access'
static inline void prevent_user_access(void __user *to, const void __user *from,
^
arch/powerpc/include/asm/book3s/64/kup.h:269:20: note: previous definition is here
static inline void prevent_user_access(void __user *to, const void __user *from,
^
In file included from arch/powerpc/kernel/asm-offsets.c:14:
In file included from include/linux/compat.h:15:
In file included from include/linux/socket.h:8:
In file included from include/linux/uio.h:10:
In file included from include/crypto/hash.h:11:
In file included from include/linux/crypto.h:21:
In file included from include/linux/uaccess.h:11:
In file included from arch/powerpc/include/asm/uaccess.h:9:
arch/powerpc/include/asm/kup.h:60:29: error: redefinition of 'prevent_user_access_return'
static inline unsigned long prevent_user_access_return(void) { return 0UL; }
^
arch/powerpc/include/asm/book3s/64/kup.h:275:29: note: previous definition is here
static inline unsigned long prevent_user_access_return(void)
^
In file included from arch/powerpc/kernel/asm-offsets.c:14:
In file included from include/linux/compat.h:15:
In file included from include/linux/socket.h:8:
In file included from include/linux/uio.h:10:
In file included from include/crypto/hash.h:11:
In file included from include/linux/crypto.h:21:
In file included from include/linux/uaccess.h:11:
In file included from arch/powerpc/include/asm/uaccess.h:9:
vim +182 arch/powerpc/include/asm/book3s/64/kup.h
174
175 static inline void kuap_restore_user_amr(struct pt_regs *regs)
176 {
177 if (!mmu_has_feature(MMU_FTR_PKEY))
178 return;
179
180 isync();
181 mtspr(SPRN_AMR, regs->kuap);
> 182 mtspr(SPRN_IAMR, regs->kuep);
183 /*
184 * No isync required here because we are about to rfi
185 * back to previous context before any user accesses
186 * would be made, which is a CSI.
187 */
188 }
189 static inline void kuap_restore_kernel_amr(struct pt_regs *regs,
190 unsigned long amr)
191 {
192 if (mmu_has_feature(MMU_FTR_KUAP) || mmu_has_feature(MMU_FTR_PKEY)) {
193
194 if (unlikely(regs->kuap != amr)) {
195 isync();
196 mtspr(SPRN_AMR, regs->kuap);
197 /*
198 * No isync required here because we are about to rfi
199 * back to previous context before any user accesses
200 * would be made, which is a CSI.
201 */
202 }
203 }
204 /*
205 * No need to restore IAMR when returning to kernel space.
206 */
207 }
208
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
Re: [PATCH 2/2] Add Intel LGM soc DMA support.
by kernel test robot
Hi Amireddy,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on robh/for-next]
[also build test WARNING on linus/master v5.7 next-20200610]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Amireddy-Mallikarjuna-reddy/Add-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project bc2b70982be8f5250cd0082a7190f8b417bd4dfe)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
>> drivers/dma/lgm/lgm-dma.c:729:5: warning: no previous prototype for function 'intel_dma_chan_desc_cfg' [-Wmissing-prototypes]
int intel_dma_chan_desc_cfg(struct dma_chan *chan, dma_addr_t desc_base,
^
drivers/dma/lgm/lgm-dma.c:729:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int intel_dma_chan_desc_cfg(struct dma_chan *chan, dma_addr_t desc_base,
^
static
1 warning generated.
vim +/intel_dma_chan_desc_cfg +729 drivers/dma/lgm/lgm-dma.c
728
> 729 int intel_dma_chan_desc_cfg(struct dma_chan *chan, dma_addr_t desc_base,
730 int desc_num)
731 {
732 return ldma_chan_desc_cfg(to_ldma_chan(chan), desc_base, desc_num);
733 }
734 EXPORT_SYMBOL_GPL(intel_dma_chan_desc_cfg);
735
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months