[feng:master 7/10] mm/page_alloc.c:4768:32: error: 'struct zone' has no member named 'node'
by kbuild test robot
tree: feng/master
head: 669833b66b24f323c7f47823e3369901c92d1ba7
commit: f3f0fe74c2b69c3355eee038ba1e97f72464e012 [7/10] zonelist: add dump
config: openrisc-simple_smp_defconfig (attached as .config)
compiler: or1k-linux-gcc (GCC) 9.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout f3f0fe74c2b69c3355eee038ba1e97f72464e012
# save the attached .config to linux build tree
GCC_VERSION=9.2.0 make.cross ARCH=openrisc
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
mm/page_alloc.c: In function '__alloc_pages_nodemask':
mm/page_alloc.c:4761:6: error: 'watchdog_thresh' undeclared (first use in this function); did you mean 'proc_watchdog_thresh'?
4761 | if (watchdog_thresh == 20) {
| ^~~~~~~~~~~~~~~
| proc_watchdog_thresh
mm/page_alloc.c:4761:6: note: each undeclared identifier is reported only once for each function it appears in
In file included from include/asm-generic/bug.h:19,
from ./arch/openrisc/include/generated/asm/bug.h:1,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/mm.h:9,
from mm/page_alloc.c:19:
>> mm/page_alloc.c:4768:32: error: 'struct zone' has no member named 'node'
4768 | ac.preferred_zoneref->zone->node,
| ^~
include/linux/kernel.h:130:43: note: in definition of macro 'mtp'
130 | trace_printk(KERN_ERR "" f "\n",##x)
| ^
mm/page_alloc.c:4803:18: error: 'struct zone' has no member named 'node'
4803 | zrefs->zone->node,
| ^~
vim +4768 mm/page_alloc.c
4725
4726 /*
4727 * This is the 'heart' of the zoned buddy allocator.
4728 */
4729 struct page *
4730 __alloc_pages_nodemask(gfp_t gfp_mask, unsigned int order, int preferred_nid,
4731 nodemask_t *nodemask)
4732 {
4733 struct page *page;
4734 unsigned int alloc_flags = ALLOC_WMARK_LOW;
4735 gfp_t alloc_mask; /* The gfp_t that was actually used for allocation */
4736 struct alloc_context ac = { };
4737
4738
4739 /*
4740 * There are several places where we assume that the order value is sane
4741 * so bail out early if the request is out of bound.
4742 */
4743 if (unlikely(order >= MAX_ORDER)) {
4744 WARN_ON_ONCE(!(gfp_mask & __GFP_NOWARN));
4745 return NULL;
4746 }
4747
4748 gfp_mask &= gfp_allowed_mask;
4749 alloc_mask = gfp_mask;
4750 if (!prepare_alloc_pages(gfp_mask, order, preferred_nid, nodemask, &ac, &alloc_mask, &alloc_flags))
4751 return NULL;
4752
4753 finalise_ac(gfp_mask, &ac);
4754
4755 /*
4756 * Forbid the first pass from falling back to types that fragment
4757 * memory until all local zones are considered.
4758 */
4759 alloc_flags |= alloc_flags_nofragment(ac.preferred_zoneref->zone, gfp_mask);
4760
> 4761 if (watchdog_thresh == 20) {
4762
4763 // if (loop % 4096 == 0) {
4764 if (tloop % 256 == 0) {
4765
4766 if (ac.preferred_zoneref && ac.preferred_zoneref->zone)
4767 mtp("ac->pref: node[%d].zone[%d] cur_nid=%d aflag=0x%x sdirty=%d order=%d anm=%*pbl pid=%d onm=%*pbl",
> 4768 ac.preferred_zoneref->zone->node,
4769 ac.preferred_zoneref->zone_idx,
4770 numa_node_id(),
4771 alloc_flags,
4772 ac.spread_dirty_pages,
4773 order,
4774 nodemask_pr_args(ac.nodemask),
4775 preferred_nid,
4776 nodemask_pr_args(nodemask)
4777 );
4778 else
4779 mtp("no ac.preferred_zoneref");
4780 }
4781
4782 if (tloop % (8192*2) == 0) {
4783
4784 /* dump node */
4785 pg_data_t *newpgdat = NODE_DATA(numa_node_id());
4786 dump_node_zonelists(newpgdat);
4787
4788 /* dump ac's zonelist */
4789 if (ac.zonelist) {
4790
4791 struct zoneref *zrefs = ac.zonelist->_zonerefs;
4792 int i;
4793
4794 mcp("dump ac.zonelists:");
4795
4796 for (i = 0; i < MAX_ZONES_PER_ZONELIST + 1; i++) {
4797
4798 if (!zrefs->zone)
4799 break;
4800
4801 printk("ac [%d]: nid[%d].zone[%d]\n",
4802 i,
4803 zrefs->zone->node,
4804 zrefs->zone_idx
4805 );
4806
4807 zrefs++;
4808 }
4809 }
4810 }
4811
4812 tloop++;
4813 }
4814
4815
4816 /* First allocation attempt */
4817 page = get_page_from_freelist(alloc_mask, order, alloc_flags, &ac);
4818 if (likely(page))
4819 goto out;
4820
4821 /*
4822 * Apply scoped allocation constraints. This is mainly about GFP_NOFS
4823 * resp. GFP_NOIO which has to be inherited for all allocation requests
4824 * from a particular context which has been marked by
4825 * memalloc_no{fs,io}_{save,restore}.
4826 */
4827 alloc_mask = current_gfp_context(gfp_mask);
4828 ac.spread_dirty_pages = false;
4829
4830 /*
4831 * Restore the original nodemask if it was potentially replaced with
4832 * &cpuset_current_mems_allowed to optimize the fast-path attempt.
4833 */
4834 if (unlikely(ac.nodemask != nodemask))
4835 ac.nodemask = nodemask;
4836
4837 page = __alloc_pages_slowpath(alloc_mask, order, &ac);
4838
4839 out:
4840 if (memcg_kmem_enabled() && (gfp_mask & __GFP_ACCOUNT) && page &&
4841 unlikely(__memcg_kmem_charge(page, gfp_mask, order) != 0)) {
4842 __free_pages(page, order);
4843 page = NULL;
4844 }
4845
4846 trace_mm_page_alloc(page, order, alloc_mask, ac.migratetype);
4847
4848 return page;
4849 }
4850 EXPORT_SYMBOL(__alloc_pages_nodemask);
4851
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 4 months
[bvanassche:scsi-for-next 10/10] drivers/scsi/qla2xxx/qla_init.c:1100:15: sparse: sparse: incorrect type in assignment (different base types)
by kbuild test robot
tree: https://github.com/bvanassche/linux scsi-for-next
head: c84bd2e32945a9e4b2afc600ed4dc3ea0ec89f6d
commit: c84bd2e32945a9e4b2afc600ed4dc3ea0ec89f6d [10/10] qla2xxx: Fix endianness annotations
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-82-g68ac1bb-dirty
git checkout c84bd2e32945a9e4b2afc600ed4dc3ea0ec89f6d
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/scsi/qla2xxx/qla_init.c:1100:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] @@ got e] @@
>> drivers/scsi/qla2xxx/qla_init.c:1100:15: sparse: expected restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_init.c:1100:15: sparse: got int
drivers/scsi/qla2xxx/qla_init.c:1101:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] @@ got e] @@
drivers/scsi/qla2xxx/qla_init.c:1101:15: sparse: expected restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_init.c:1101:15: sparse: got int
>> drivers/scsi/qla2xxx/qla_init.c:1102:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] @@ got tricted __le16 [usertype] @@
drivers/scsi/qla2xxx/qla_init.c:1102:15: sparse: expected restricted __le16 [usertype]
>> drivers/scsi/qla2xxx/qla_init.c:1102:15: sparse: got unsigned short [usertype]
drivers/scsi/qla2xxx/qla_init.c:1103:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] @@ got tricted __le16 [usertype] @@
drivers/scsi/qla2xxx/qla_init.c:1103:15: sparse: expected restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_init.c:1103:15: sparse: got unsigned short [usertype]
drivers/scsi/qla2xxx/qla_init.c:1104:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] @@ got tricted __le16 [usertype] @@
drivers/scsi/qla2xxx/qla_init.c:1104:15: sparse: expected restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_init.c:1104:15: sparse: got unsigned short [usertype]
drivers/scsi/qla2xxx/qla_init.c:1105:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] @@ got tricted __le16 [usertype] @@
drivers/scsi/qla2xxx/qla_init.c:1105:15: sparse: expected restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_init.c:1105:15: sparse: got unsigned short [usertype]
>> drivers/scsi/qla2xxx/qla_init.c:1106:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] @@ got icted __le16 [usertype] @@
drivers/scsi/qla2xxx/qla_init.c:1106:15: sparse: expected restricted __le16 [usertype]
>> drivers/scsi/qla2xxx/qla_init.c:1106:15: sparse: got unsigned int [usertype] size
drivers/scsi/qla2xxx/qla_init.c:1107:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] @@ got tricted __le16 [usertype] @@
drivers/scsi/qla2xxx/qla_init.c:1107:15: sparse: expected restricted __le16 [usertype]
>> drivers/scsi/qla2xxx/qla_init.c:1107:15: sparse: got unsigned short [usertype] vp_idx
drivers/scsi/qla2xxx/qla_init.c:1321:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] @@ got e] @@
drivers/scsi/qla2xxx/qla_init.c:1321:15: sparse: expected restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_init.c:1321:15: sparse: got int
drivers/scsi/qla2xxx/qla_init.c:1322:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] @@ got tricted __le16 [usertype] @@
drivers/scsi/qla2xxx/qla_init.c:1322:15: sparse: expected restricted __le16 [usertype]
>> drivers/scsi/qla2xxx/qla_init.c:1322:15: sparse: got unsigned short [usertype] loop_id
drivers/scsi/qla2xxx/qla_init.c:1323:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] @@ got tricted __le16 [usertype] @@
drivers/scsi/qla2xxx/qla_init.c:1323:15: sparse: expected restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_init.c:1323:15: sparse: got unsigned short [usertype]
drivers/scsi/qla2xxx/qla_init.c:1324:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] @@ got tricted __le16 [usertype] @@
drivers/scsi/qla2xxx/qla_init.c:1324:15: sparse: expected restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_init.c:1324:15: sparse: got unsigned short [usertype]
drivers/scsi/qla2xxx/qla_init.c:1325:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] @@ got tricted __le16 [usertype] @@
drivers/scsi/qla2xxx/qla_init.c:1325:15: sparse: expected restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_init.c:1325:15: sparse: got unsigned short [usertype]
drivers/scsi/qla2xxx/qla_init.c:1326:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] @@ got tricted __le16 [usertype] @@
drivers/scsi/qla2xxx/qla_init.c:1326:15: sparse: expected restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_init.c:1326:15: sparse: got unsigned short [usertype]
drivers/scsi/qla2xxx/qla_init.c:1327:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] @@ got tricted __le16 [usertype] @@
drivers/scsi/qla2xxx/qla_init.c:1327:15: sparse: expected restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_init.c:1327:15: sparse: got unsigned short [usertype] vp_idx
>> drivers/scsi/qla2xxx/qla_init.c:1328:16: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] @@ got ricted __le16 [usertype] @@
drivers/scsi/qla2xxx/qla_init.c:1328:16: sparse: expected restricted __le16 [usertype]
>> drivers/scsi/qla2xxx/qla_init.c:1328:16: sparse: got unsigned char [usertype] opt
drivers/scsi/qla2xxx/qla_init.c:4102:57: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] execution_throttle @@ got resunsigned short [usertype] execution_throttle @@
drivers/scsi/qla2xxx/qla_init.c:4102:57: sparse: expected unsigned short [usertype] execution_throttle
drivers/scsi/qla2xxx/qla_init.c:4102:57: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_init.c:4538:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] max_iocb_allocation @@ got resunsigned short [usertype] max_iocb_allocation @@
drivers/scsi/qla2xxx/qla_init.c:4538:41: sparse: expected unsigned short [usertype] max_iocb_allocation
drivers/scsi/qla2xxx/qla_init.c:4538:41: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_init.c:4539:40: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] execution_throttle @@ got resunsigned short [usertype] execution_throttle @@
drivers/scsi/qla2xxx/qla_init.c:4539:40: sparse: expected unsigned short [usertype] execution_throttle
drivers/scsi/qla2xxx/qla_init.c:4539:40: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_init.c:4557:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] max_luns_per_target @@ got resunsigned short [usertype] max_luns_per_target @@
drivers/scsi/qla2xxx/qla_init.c:4557:41: sparse: expected unsigned short [usertype] max_luns_per_target
drivers/scsi/qla2xxx/qla_init.c:4557:41: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_init.c:4621:34: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_init.c:4671:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] execution_throttle @@ got resunsigned short [usertype] execution_throttle @@
drivers/scsi/qla2xxx/qla_init.c:4671:33: sparse: expected unsigned short [usertype] execution_throttle
drivers/scsi/qla2xxx/qla_init.c:4671:33: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_init.c:4722:26: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] lun_enables @@ got resunsigned short [usertype] lun_enables @@
drivers/scsi/qla2xxx/qla_init.c:4722:26: sparse: expected unsigned short [usertype] lun_enables
drivers/scsi/qla2xxx/qla_init.c:4722:26: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_init.c:4725:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] timeout @@ got resunsigned short [usertype] timeout @@
drivers/scsi/qla2xxx/qla_init.c:4725:22: sparse: expected unsigned short [usertype] timeout
drivers/scsi/qla2xxx/qla_init.c:4725:22: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_init.c:7101:27: sparse: sparse: cast to restricted __le32
drivers/scsi/qla2xxx/qla_init.c:7110:13: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_init.c:7124:35: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] nvram_version @@ got resunsigned short [usertype] nvram_version @@
drivers/scsi/qla2xxx/qla_init.c:7124:35: sparse: expected unsigned short [usertype] nvram_version
drivers/scsi/qla2xxx/qla_init.c:7124:35: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_init.c:7125:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] version @@ got resunsigned short [usertype] version @@
drivers/scsi/qla2xxx/qla_init.c:7125:29: sparse: expected unsigned short [usertype] version
drivers/scsi/qla2xxx/qla_init.c:7125:29: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_init.c:7126:40: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] frame_payload_size @@ got e] frame_payload_size @@
drivers/scsi/qla2xxx/qla_init.c:7126:40: sparse: expected restricted __le16 [usertype] frame_payload_size
drivers/scsi/qla2xxx/qla_init.c:7126:40: sparse: got int
drivers/scsi/qla2xxx/qla_init.c:7127:40: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] execution_throttle @@ got resunsigned short [usertype] execution_throttle @@
drivers/scsi/qla2xxx/qla_init.c:7127:40: sparse: expected unsigned short [usertype] execution_throttle
drivers/scsi/qla2xxx/qla_init.c:7127:40: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_init.c:7128:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] exchange_count @@ got resunsigned short [usertype] exchange_count @@
drivers/scsi/qla2xxx/qla_init.c:7128:36: sparse: expected unsigned short [usertype] exchange_count
drivers/scsi/qla2xxx/qla_init.c:7128:36: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_init.c:7129:34: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] hard_address @@ got resunsigned short [usertype] hard_address @@
drivers/scsi/qla2xxx/qla_init.c:7129:34: sparse: expected unsigned short [usertype] hard_address
drivers/scsi/qla2xxx/qla_init.c:7129:34: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_init.c:7147:39: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] login_retry_count @@ got resunsigned short [usertype] login_retry_count @@
drivers/scsi/qla2xxx/qla_init.c:7147:39: sparse: expected unsigned short [usertype] login_retry_count
drivers/scsi/qla2xxx/qla_init.c:7147:39: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_init.c:7148:43: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] interrupt_delay_timer @@ got resunsigned short [usertype] interrupt_delay_timer @@
drivers/scsi/qla2xxx/qla_init.c:7148:43: sparse: expected unsigned short [usertype] interrupt_delay_timer
drivers/scsi/qla2xxx/qla_init.c:7148:43: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_init.c:7149:35: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] login_timeout @@ got resunsigned short [usertype] login_timeout @@
drivers/scsi/qla2xxx/qla_init.c:7149:35: sparse: expected unsigned short [usertype] login_timeout
drivers/scsi/qla2xxx/qla_init.c:7149:35: sparse: got restricted __le16 [usertype]
>> drivers/scsi/qla2xxx/qla_init.c:7150:40: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be32 [usertype] firmware_options_1 @@ got restricted __be32 [usertype] firmware_options_1 @@
>> drivers/scsi/qla2xxx/qla_init.c:7150:40: sparse: expected restricted __be32 [usertype] firmware_options_1
drivers/scsi/qla2xxx/qla_init.c:7150:40: sparse: got restricted __le32 [usertype]
>> drivers/scsi/qla2xxx/qla_init.c:7152:40: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be32 [usertype] firmware_options_2 @@ got restricted __be32 [usertype] firmware_options_2 @@
>> drivers/scsi/qla2xxx/qla_init.c:7152:40: sparse: expected restricted __be32 [usertype] firmware_options_2
drivers/scsi/qla2xxx/qla_init.c:7152:40: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_init.c:7153:40: sparse: sparse: invalid assignment: |=
>> drivers/scsi/qla2xxx/qla_init.c:7153:40: sparse: left side has type restricted __be32
drivers/scsi/qla2xxx/qla_init.c:7153:40: sparse: right side has type restricted __le32
>> drivers/scsi/qla2xxx/qla_init.c:7154:40: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be32 [usertype] firmware_options_3 @@ got restricted __be32 [usertype] firmware_options_3 @@
>> drivers/scsi/qla2xxx/qla_init.c:7154:40: sparse: expected restricted __be32 [usertype] firmware_options_3
drivers/scsi/qla2xxx/qla_init.c:7154:40: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_init.c:7155:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] host_p @@ got restrunsigned int [usertype] host_p @@
drivers/scsi/qla2xxx/qla_init.c:7155:28: sparse: expected unsigned int [usertype] host_p
drivers/scsi/qla2xxx/qla_init.c:7155:28: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_init.c:7156:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] efi_parameters @@ got restrunsigned int [usertype] efi_parameters @@
drivers/scsi/qla2xxx/qla_init.c:7156:36: sparse: expected unsigned int [usertype] efi_parameters
drivers/scsi/qla2xxx/qla_init.c:7156:36: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_init.c:7158:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] max_luns_per_target @@ got resunsigned short [usertype] max_luns_per_target @@
drivers/scsi/qla2xxx/qla_init.c:7158:41: sparse: expected unsigned short [usertype] max_luns_per_target
drivers/scsi/qla2xxx/qla_init.c:7158:41: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_init.c:7159:43: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] port_down_retry_count @@ got resunsigned short [usertype] port_down_retry_count @@
drivers/scsi/qla2xxx/qla_init.c:7159:43: sparse: expected unsigned short [usertype] port_down_retry_count
drivers/scsi/qla2xxx/qla_init.c:7159:43: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_init.c:7160:39: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] link_down_timeout @@ got resunsigned short [usertype] link_down_timeout @@
drivers/scsi/qla2xxx/qla_init.c:7160:39: sparse: expected unsigned short [usertype] link_down_timeout
drivers/scsi/qla2xxx/qla_init.c:7160:39: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_init.c:7167:40: sparse: sparse: invalid assignment: &=
drivers/scsi/qla2xxx/qla_init.c:7167:40: sparse: left side has type restricted __be32
drivers/scsi/qla2xxx/qla_init.c:7167:40: sparse: right side has type restricted __le32
drivers/scsi/qla2xxx/qla_init.c:7169:28: sparse: sparse: invalid assignment: &=
drivers/scsi/qla2xxx/qla_init.c:7169:28: sparse: left side has type unsigned int
drivers/scsi/qla2xxx/qla_init.c:7169:28: sparse: right side has type restricted __le32
drivers/scsi/qla2xxx/qla_init.c:7194:34: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_init.c:7203:26: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/qla2xxx/qla_init.c:7210:40: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/qla2xxx/qla_init.c:7223:13: sparse: sparse: cast to restricted __le32
drivers/scsi/qla2xxx/qla_init.c:7225:13: sparse: sparse: cast to restricted __le32
drivers/scsi/qla2xxx/qla_init.c:7227:36: sparse: sparse: cast to restricted __le32
drivers/scsi/qla2xxx/qla_init.c:7242:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] execution_throttle @@ got resunsigned short [usertype] execution_throttle @@
drivers/scsi/qla2xxx/qla_init.c:7242:33: sparse: expected unsigned short [usertype] execution_throttle
drivers/scsi/qla2xxx/qla_init.c:7242:33: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_init.c:7244:27: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_init.c:7247:13: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_init.c:7248:35: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] login_timeout @@ got resunsigned short [usertype] login_timeout @@
drivers/scsi/qla2xxx/qla_init.c:7248:35: sparse: expected unsigned short [usertype] login_timeout
drivers/scsi/qla2xxx/qla_init.c:7248:35: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_init.c:7249:13: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_init.c:7250:35: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] login_timeout @@ got resunsigned short [usertype] login_timeout @@
drivers/scsi/qla2xxx/qla_init.c:7250:35: sparse: expected unsigned short [usertype] login_timeout
drivers/scsi/qla2xxx/qla_init.c:7250:35: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_init.c:7251:29: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_init.c:7268:13: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_init.c:7272:41: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_init.c:7278:37: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_init.c:7283:34: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_init.c:7285:13: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_init.c:7300:33: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_init.c:7301:21: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_init.c:7314:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] interrupt_delay_timer @@ got resunsigned short [usertype] interrupt_delay_timer @@
drivers/scsi/qla2xxx/qla_init.c:7314:44: sparse: expected unsigned short [usertype] interrupt_delay_timer
drivers/scsi/qla2xxx/qla_init.c:7314:44: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_init.c:7332:13: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_init.c:7336:13: sparse: sparse: cast to restricted __le32
drivers/scsi/qla2xxx/qla_init.c:7337:13: sparse: sparse: cast to restricted __le32
drivers/scsi/qla2xxx/qla_init.c:7344:27: sparse: sparse: cast to restricted __le32
drivers/scsi/qla2xxx/qla_init.c:7352:27: sparse: sparse: cast to restricted __le32
>> drivers/scsi/qla2xxx/qla_init.c:7367:37: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __le32 const [usertype] *p @@ got __le32 const [usertype] *p @@
>> drivers/scsi/qla2xxx/qla_init.c:7367:37: sparse: expected restricted __le32 const [usertype] *p
>> drivers/scsi/qla2xxx/qla_init.c:7367:37: sparse: got unsigned int [usertype] *p
drivers/scsi/qla2xxx/qla_init.c:7403:13: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_init.c:7404:13: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_init.c:7433:21: sparse: sparse: cast to restricted __le32
drivers/scsi/qla2xxx/qla_init.c:7466:21: sparse: sparse: cast to restricted __le32
drivers/scsi/qla2xxx/qla_init.c:7534:21: sparse: sparse: cast to restricted __le32
drivers/scsi/qla2xxx/qla_init.c:7565:21: sparse: sparse: cast to restricted __le32
>> drivers/scsi/qla2xxx/qla_init.c:7650:29: sparse: sparse: cast to restricted __be32
>> drivers/scsi/qla2xxx/qla_init.c:7650:29: sparse: sparse: cast to restricted __be32
>> drivers/scsi/qla2xxx/qla_init.c:7650:29: sparse: sparse: cast to restricted __be32
>> drivers/scsi/qla2xxx/qla_init.c:7650:29: sparse: sparse: cast to restricted __be32
>> drivers/scsi/qla2xxx/qla_init.c:7650:29: sparse: sparse: cast to restricted __be32
>> drivers/scsi/qla2xxx/qla_init.c:7650:29: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_init.c:7651:29: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_init.c:7651:29: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_init.c:7651:29: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_init.c:7651:29: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_init.c:7651:29: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_init.c:7651:29: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_init.c:7654:37: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_init.c:7654:37: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_init.c:7654:37: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_init.c:7654:37: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_init.c:7654:37: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_init.c:7654:37: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_init.c:7696:29: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_init.c:7696:29: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_init.c:7696:29: sparse: sparse: too many warnings
--
drivers/scsi/qla2xxx/qla_mbx.c:120:21: sparse: sparse: restricted pci_channel_state_t degrades to integer
drivers/scsi/qla2xxx/qla_mbx.c:120:37: sparse: sparse: restricted pci_channel_state_t degrades to integer
>> drivers/scsi/qla2xxx/qla_mbx.c:2407:39: sparse: sparse: cast from restricted __le16
drivers/scsi/qla2xxx/qla_mbx.c:2675:39: sparse: sparse: cast from restricted __le16
drivers/scsi/qla2xxx/qla_mbx.c:3074:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short @@ got restricted __leunsigned short @@
drivers/scsi/qla2xxx/qla_mbx.c:3074:18: sparse: expected unsigned short
drivers/scsi/qla2xxx/qla_mbx.c:3074:18: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_mbx.c:3075:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short @@ got restricted __leunsigned short @@
drivers/scsi/qla2xxx/qla_mbx.c:3075:19: sparse: expected unsigned short
drivers/scsi/qla2xxx/qla_mbx.c:3075:19: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_mbx.c:3148:27: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] nport_handle @@ got resunsigned short [usertype] nport_handle @@
drivers/scsi/qla2xxx/qla_mbx.c:3148:27: sparse: expected unsigned short [usertype] nport_handle
drivers/scsi/qla2xxx/qla_mbx.c:3148:27: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_mbx.c:3155:25: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] req_que_no @@ got resunsigned short [usertype] req_que_no @@
drivers/scsi/qla2xxx/qla_mbx.c:3155:25: sparse: expected unsigned short [usertype] req_que_no
drivers/scsi/qla2xxx/qla_mbx.c:3155:25: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_mbx.c:3166:41: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_mbx.c:3169:21: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_mbx.c:3170:42: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_mbx.c:3227:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] nport_handle @@ got resunsigned short [usertype] nport_handle @@
drivers/scsi/qla2xxx/qla_mbx.c:3227:33: sparse: expected unsigned short [usertype] nport_handle
drivers/scsi/qla2xxx/qla_mbx.c:3227:33: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_mbx.c:3228:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] timeout @@ got resunsigned short [usertype] timeout @@
drivers/scsi/qla2xxx/qla_mbx.c:3228:28: sparse: expected unsigned short [usertype] timeout
drivers/scsi/qla2xxx/qla_mbx.c:3228:28: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_mbx.c:3229:34: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] control_flags @@ got restrunsigned int [usertype] control_flags @@
drivers/scsi/qla2xxx/qla_mbx.c:3229:34: sparse: expected unsigned int [usertype] control_flags
drivers/scsi/qla2xxx/qla_mbx.c:3229:34: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_mbx.c:3250:40: sparse: sparse: cast from restricted __le16
drivers/scsi/qla2xxx/qla_mbx.c:3250:40: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_mbx.c:3253:21: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_mbx.c:3255:20: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_mbx.c:3257:21: sparse: sparse: cast to restricted __le32
drivers/scsi/qla2xxx/qla_mbx.c:3261:29: sparse: sparse: cast to restricted __le32
drivers/scsi/qla2xxx/qla_mbx.c:4115:42: sparse: sparse: cast from restricted __le16
drivers/scsi/qla2xxx/qla_mbx.c:4115:42: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_mbx.c:4118:21: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_mbx.c:4270:35: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] options @@ got resunsigned short [usertype] options @@
drivers/scsi/qla2xxx/qla_mbx.c:4270:35: sparse: expected unsigned short [usertype] options
drivers/scsi/qla2xxx/qla_mbx.c:4270:35: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_mbx.c:4289:29: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_mbx.c:4291:21: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_mbx.c:4295:34: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_mbx.c:4308:29: sparse: sparse: cast to restricted __le32
drivers/scsi/qla2xxx/qla_mbx.c:4313:29: sparse: sparse: cast to restricted __le32
drivers/scsi/qla2xxx/qla_mbx.c:4704:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short @@ got resunsigned short @@
drivers/scsi/qla2xxx/qla_mbx.c:4704:28: sparse: expected unsigned short
drivers/scsi/qla2xxx/qla_mbx.c:4704:28: sparse: got restricted __le16
drivers/scsi/qla2xxx/qla_mbx.c:4822:31: sparse: sparse: cast to restricted __le32
drivers/scsi/qla2xxx/qla_mbx.c:6327:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short @@ got restricted __leunsigned short @@
drivers/scsi/qla2xxx/qla_mbx.c:6327:18: sparse: expected unsigned short
drivers/scsi/qla2xxx/qla_mbx.c:6327:18: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_mbx.c:6332:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short @@ got restricted __leunsigned short @@
drivers/scsi/qla2xxx/qla_mbx.c:6332:18: sparse: expected unsigned short
drivers/scsi/qla2xxx/qla_mbx.c:6332:18: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_mbx.c:6333:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short @@ got restricted __leunsigned short @@
drivers/scsi/qla2xxx/qla_mbx.c:6333:19: sparse: expected unsigned short
drivers/scsi/qla2xxx/qla_mbx.c:6333:19: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_mbx.c:6444:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short @@ got restricted __leunsigned short @@
drivers/scsi/qla2xxx/qla_mbx.c:6444:18: sparse: expected unsigned short
drivers/scsi/qla2xxx/qla_mbx.c:6444:18: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_mbx.c:6470:20: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short @@ got restricted __leunsigned short @@
drivers/scsi/qla2xxx/qla_mbx.c:6470:20: sparse: expected unsigned short
drivers/scsi/qla2xxx/qla_mbx.c:6470:20: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_mbx.c:6471:20: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short @@ got restricted __leunsigned short @@
drivers/scsi/qla2xxx/qla_mbx.c:6471:20: sparse: expected unsigned short
drivers/scsi/qla2xxx/qla_mbx.c:6471:20: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_mbx.c:6496:20: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short @@ got restricted __leunsigned short @@
drivers/scsi/qla2xxx/qla_mbx.c:6496:20: sparse: expected unsigned short
drivers/scsi/qla2xxx/qla_mbx.c:6496:20: sparse: got restricted __le16 [usertype]
--
drivers/scsi/qla2xxx/qla_iocb.c:801:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] ref_tag @@ got restrunsigned int [usertype] ref_tag @@
drivers/scsi/qla2xxx/qla_iocb.c:801:30: sparse: expected unsigned int [usertype] ref_tag
drivers/scsi/qla2xxx/qla_iocb.c:801:30: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:826:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] ref_tag @@ got restrunsigned int [usertype] ref_tag @@
drivers/scsi/qla2xxx/qla_iocb.c:826:30: sparse: expected unsigned int [usertype] ref_tag
drivers/scsi/qla2xxx/qla_iocb.c:826:30: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:828:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] app_tag @@ got resunsigned short [usertype] app_tag @@
drivers/scsi/qla2xxx/qla_iocb.c:828:30: sparse: expected unsigned short [usertype] app_tag
drivers/scsi/qla2xxx/qla_iocb.c:828:30: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:1484:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] fcp_cmnd_dseg_len @@ got resunsigned short [usertype] fcp_cmnd_dseg_len @@
drivers/scsi/qla2xxx/qla_iocb.c:1484:36: sparse: expected unsigned short [usertype] fcp_cmnd_dseg_len
drivers/scsi/qla2xxx/qla_iocb.c:1484:36: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:1547:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] byte_count @@ got restrunsigned int [usertype] byte_count @@
drivers/scsi/qla2xxx/qla_iocb.c:1547:29: sparse: expected unsigned int [usertype] byte_count
drivers/scsi/qla2xxx/qla_iocb.c:1547:29: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:1550:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] @@ got restrunsigned int [usertype] @@
drivers/scsi/qla2xxx/qla_iocb.c:1550:17: sparse: expected unsigned int [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:1550:17: sparse: got restricted __be32 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:1553:37: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] byte_count @@ got restrunsigned int [usertype] byte_count @@
drivers/scsi/qla2xxx/qla_iocb.c:1553:37: sparse: expected unsigned int [usertype] byte_count
drivers/scsi/qla2xxx/qla_iocb.c:1553:37: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:1558:32: sparse: sparse: invalid assignment: |=
drivers/scsi/qla2xxx/qla_iocb.c:1558:32: sparse: left side has type unsigned short
drivers/scsi/qla2xxx/qla_iocb.c:1558:32: sparse: right side has type restricted __le16
drivers/scsi/qla2xxx/qla_iocb.c:1570:40: sparse: sparse: invalid assignment: |=
drivers/scsi/qla2xxx/qla_iocb.c:1570:40: sparse: left side has type unsigned short
drivers/scsi/qla2xxx/qla_iocb.c:1570:40: sparse: right side has type restricted __le16
drivers/scsi/qla2xxx/qla_iocb.c:1872:26: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] timeout @@ got resunsigned short [usertype] timeout @@
drivers/scsi/qla2xxx/qla_iocb.c:1872:26: sparse: expected unsigned short [usertype] timeout
drivers/scsi/qla2xxx/qla_iocb.c:1872:26: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:1984:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] dseg_count @@ got resunsigned short [usertype] dseg_count @@
drivers/scsi/qla2xxx/qla_iocb.c:1984:29: sparse: expected unsigned short [usertype] dseg_count
drivers/scsi/qla2xxx/qla_iocb.c:1984:29: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:1987:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] nport_handle @@ got resunsigned short [usertype] nport_handle @@
drivers/scsi/qla2xxx/qla_iocb.c:1987:31: sparse: expected unsigned short [usertype] nport_handle
drivers/scsi/qla2xxx/qla_iocb.c:1987:31: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:2002:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] byte_count @@ got restrunsigned int [usertype] byte_count @@
drivers/scsi/qla2xxx/qla_iocb.c:2002:29: sparse: expected unsigned int [usertype] byte_count
drivers/scsi/qla2xxx/qla_iocb.c:2002:29: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:715:37: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] byte_count @@ got restrunsigned int [usertype] byte_count @@
drivers/scsi/qla2xxx/qla_iocb.c:715:37: sparse: expected unsigned int [usertype] byte_count
drivers/scsi/qla2xxx/qla_iocb.c:715:37: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:723:42: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] task_mgmt_flags @@ got resunsigned short [usertype] task_mgmt_flags @@
drivers/scsi/qla2xxx/qla_iocb.c:723:42: sparse: expected unsigned short [usertype] task_mgmt_flags
drivers/scsi/qla2xxx/qla_iocb.c:723:42: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:727:42: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] task_mgmt_flags @@ got resunsigned short [usertype] task_mgmt_flags @@
drivers/scsi/qla2xxx/qla_iocb.c:727:42: sparse: expected unsigned short [usertype] task_mgmt_flags
drivers/scsi/qla2xxx/qla_iocb.c:727:42: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:2187:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] nport_handle @@ got resunsigned short [usertype] nport_handle @@
drivers/scsi/qla2xxx/qla_iocb.c:2187:31: sparse: expected unsigned short [usertype] nport_handle
drivers/scsi/qla2xxx/qla_iocb.c:2187:31: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:2196:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] dseg_count @@ got resunsigned short [usertype] dseg_count @@
drivers/scsi/qla2xxx/qla_iocb.c:2196:29: sparse: expected unsigned short [usertype] dseg_count
drivers/scsi/qla2xxx/qla_iocb.c:2196:29: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:1418:37: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] byte_count @@ got restrunsigned int [usertype] byte_count @@
drivers/scsi/qla2xxx/qla_iocb.c:1418:37: sparse: expected unsigned int [usertype] byte_count
drivers/scsi/qla2xxx/qla_iocb.c:1418:37: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:1426:40: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] control_flags @@ got resunsigned short [usertype] control_flags @@
drivers/scsi/qla2xxx/qla_iocb.c:1426:40: sparse: expected unsigned short [usertype] control_flags
drivers/scsi/qla2xxx/qla_iocb.c:1426:40: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:1429:40: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] control_flags @@ got resunsigned short [usertype] control_flags @@
drivers/scsi/qla2xxx/qla_iocb.c:1429:40: sparse: expected unsigned short [usertype] control_flags
drivers/scsi/qla2xxx/qla_iocb.c:1429:40: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:780:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] ref_tag @@ got restrunsigned int [usertype] ref_tag @@
drivers/scsi/qla2xxx/qla_iocb.c:780:30: sparse: expected unsigned int [usertype] ref_tag
drivers/scsi/qla2xxx/qla_iocb.c:780:30: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:797:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] app_tag @@ got resunsigned short [usertype] app_tag @@
drivers/scsi/qla2xxx/qla_iocb.c:797:30: sparse: expected unsigned short [usertype] app_tag
drivers/scsi/qla2xxx/qla_iocb.c:797:30: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:801:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] ref_tag @@ got restrunsigned int [usertype] ref_tag @@
drivers/scsi/qla2xxx/qla_iocb.c:801:30: sparse: expected unsigned int [usertype] ref_tag
drivers/scsi/qla2xxx/qla_iocb.c:801:30: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:826:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] ref_tag @@ got restrunsigned int [usertype] ref_tag @@
drivers/scsi/qla2xxx/qla_iocb.c:826:30: sparse: expected unsigned int [usertype] ref_tag
drivers/scsi/qla2xxx/qla_iocb.c:826:30: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:828:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] app_tag @@ got resunsigned short [usertype] app_tag @@
drivers/scsi/qla2xxx/qla_iocb.c:828:30: sparse: expected unsigned short [usertype] app_tag
drivers/scsi/qla2xxx/qla_iocb.c:828:30: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:1484:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] fcp_cmnd_dseg_len @@ got resunsigned short [usertype] fcp_cmnd_dseg_len @@
drivers/scsi/qla2xxx/qla_iocb.c:1484:36: sparse: expected unsigned short [usertype] fcp_cmnd_dseg_len
drivers/scsi/qla2xxx/qla_iocb.c:1484:36: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:1547:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] byte_count @@ got restrunsigned int [usertype] byte_count @@
drivers/scsi/qla2xxx/qla_iocb.c:1547:29: sparse: expected unsigned int [usertype] byte_count
drivers/scsi/qla2xxx/qla_iocb.c:1547:29: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:1550:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] @@ got restrunsigned int [usertype] @@
drivers/scsi/qla2xxx/qla_iocb.c:1550:17: sparse: expected unsigned int [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:1550:17: sparse: got restricted __be32 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:1553:37: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] byte_count @@ got restrunsigned int [usertype] byte_count @@
drivers/scsi/qla2xxx/qla_iocb.c:1553:37: sparse: expected unsigned int [usertype] byte_count
drivers/scsi/qla2xxx/qla_iocb.c:1553:37: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:1558:32: sparse: sparse: invalid assignment: |=
drivers/scsi/qla2xxx/qla_iocb.c:1558:32: sparse: left side has type unsigned short
drivers/scsi/qla2xxx/qla_iocb.c:1558:32: sparse: right side has type restricted __le16
drivers/scsi/qla2xxx/qla_iocb.c:1570:40: sparse: sparse: invalid assignment: |=
drivers/scsi/qla2xxx/qla_iocb.c:1570:40: sparse: left side has type unsigned short
drivers/scsi/qla2xxx/qla_iocb.c:1570:40: sparse: right side has type restricted __le16
drivers/scsi/qla2xxx/qla_iocb.c:2205:26: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] timeout @@ got resunsigned short [usertype] timeout @@
drivers/scsi/qla2xxx/qla_iocb.c:2205:26: sparse: expected unsigned short [usertype] timeout
drivers/scsi/qla2xxx/qla_iocb.c:2205:26: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:2347:38: sparse: sparse: invalid assignment: |=
>> drivers/scsi/qla2xxx/qla_iocb.c:2347:38: sparse: left side has type restricted __le16
>> drivers/scsi/qla2xxx/qla_iocb.c:2347:38: sparse: right side has type int
>> drivers/scsi/qla2xxx/qla_iocb.c:2349:48: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 @@ got e32 @@
>> drivers/scsi/qla2xxx/qla_iocb.c:2349:48: sparse: expected restricted __le32
>> drivers/scsi/qla2xxx/qla_iocb.c:2349:48: sparse: got int
drivers/scsi/qla2xxx/qla_iocb.c:2389:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] extended @@ got resunsigned short [usertype] extended @@
drivers/scsi/qla2xxx/qla_iocb.c:2389:9: sparse: expected unsigned short [usertype] extended
drivers/scsi/qla2xxx/qla_iocb.c:2389:9: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:2390:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] mb0 @@ got resunsigned short [usertype] mb0 @@
drivers/scsi/qla2xxx/qla_iocb.c:2390:18: sparse: expected unsigned short [usertype] mb0
drivers/scsi/qla2xxx/qla_iocb.c:2390:18: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:2394:26: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] mb1 @@ got resunsigned short [usertype] mb1 @@
drivers/scsi/qla2xxx/qla_iocb.c:2394:26: sparse: expected unsigned short [usertype] mb1
drivers/scsi/qla2xxx/qla_iocb.c:2394:26: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:2395:27: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] mb10 @@ got resunsigned short [usertype] mb10 @@
drivers/scsi/qla2xxx/qla_iocb.c:2395:27: sparse: expected unsigned short [usertype] mb10
drivers/scsi/qla2xxx/qla_iocb.c:2395:27: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:2397:26: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] mb1 @@ got resunsigned short [usertype] mb1 @@
drivers/scsi/qla2xxx/qla_iocb.c:2397:26: sparse: expected unsigned short [usertype] mb1
drivers/scsi/qla2xxx/qla_iocb.c:2397:26: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:2399:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] mb2 @@ got resunsigned short [usertype] mb2 @@
drivers/scsi/qla2xxx/qla_iocb.c:2399:18: sparse: expected unsigned short [usertype] mb2
drivers/scsi/qla2xxx/qla_iocb.c:2399:18: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:2400:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] mb3 @@ got resunsigned short [usertype] mb3 @@
drivers/scsi/qla2xxx/qla_iocb.c:2400:18: sparse: expected unsigned short [usertype] mb3
drivers/scsi/qla2xxx/qla_iocb.c:2400:18: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:2402:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] mb9 @@ got resunsigned short [usertype] mb9 @@
drivers/scsi/qla2xxx/qla_iocb.c:2402:18: sparse: expected unsigned short [usertype] mb9
drivers/scsi/qla2xxx/qla_iocb.c:2402:18: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:2426:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] extended @@ got resunsigned short [usertype] extended @@
drivers/scsi/qla2xxx/qla_iocb.c:2426:9: sparse: expected unsigned short [usertype] extended
drivers/scsi/qla2xxx/qla_iocb.c:2426:9: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:2427:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] mb0 @@ got resunsigned short [usertype] mb0 @@
drivers/scsi/qla2xxx/qla_iocb.c:2427:18: sparse: expected unsigned short [usertype] mb0
drivers/scsi/qla2xxx/qla_iocb.c:2427:18: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:2428:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] mb1 @@ got short [usertype] mb1 @@
drivers/scsi/qla2xxx/qla_iocb.c:2428:18: sparse: expected unsigned short [usertype] mb1
drivers/scsi/qla2xxx/qla_iocb.c:2428:18: sparse: got restricted __le16
drivers/scsi/qla2xxx/qla_iocb.c:2431:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] mb2 @@ got resunsigned short [usertype] mb2 @@
drivers/scsi/qla2xxx/qla_iocb.c:2431:18: sparse: expected unsigned short [usertype] mb2
drivers/scsi/qla2xxx/qla_iocb.c:2431:18: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:2432:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] mb3 @@ got resunsigned short [usertype] mb3 @@
drivers/scsi/qla2xxx/qla_iocb.c:2432:18: sparse: expected unsigned short [usertype] mb3
drivers/scsi/qla2xxx/qla_iocb.c:2432:18: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:2434:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] mb9 @@ got resunsigned short [usertype] mb9 @@
drivers/scsi/qla2xxx/qla_iocb.c:2434:18: sparse: expected unsigned short [usertype] mb9
drivers/scsi/qla2xxx/qla_iocb.c:2434:18: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:2453:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] extended @@ got resunsigned short [usertype] extended @@
drivers/scsi/qla2xxx/qla_iocb.c:2453:9: sparse: expected unsigned short [usertype] extended
drivers/scsi/qla2xxx/qla_iocb.c:2453:9: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:2454:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] mb0 @@ got resunsigned short [usertype] mb0 @@
drivers/scsi/qla2xxx/qla_iocb.c:2454:18: sparse: expected unsigned short [usertype] mb0
drivers/scsi/qla2xxx/qla_iocb.c:2454:18: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:2456:26: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] mb1 @@ got resunsigned short [usertype] mb1 @@
drivers/scsi/qla2xxx/qla_iocb.c:2456:26: sparse: expected unsigned short [usertype] mb1
drivers/scsi/qla2xxx/qla_iocb.c:2456:26: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:2457:27: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] mb10 @@ got resunsigned short [usertype] mb10 @@
drivers/scsi/qla2xxx/qla_iocb.c:2457:27: sparse: expected unsigned short [usertype] mb10
drivers/scsi/qla2xxx/qla_iocb.c:2457:27: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:2459:26: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] mb1 @@ got resunsigned short [usertype] mb1 @@
drivers/scsi/qla2xxx/qla_iocb.c:2459:26: sparse: expected unsigned short [usertype] mb1
drivers/scsi/qla2xxx/qla_iocb.c:2459:26: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:2461:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] mb2 @@ got resunsigned short [usertype] mb2 @@
drivers/scsi/qla2xxx/qla_iocb.c:2461:18: sparse: expected unsigned short [usertype] mb2
drivers/scsi/qla2xxx/qla_iocb.c:2461:18: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:2462:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] mb3 @@ got resunsigned short [usertype] mb3 @@
drivers/scsi/qla2xxx/qla_iocb.c:2462:18: sparse: expected unsigned short [usertype] mb3
drivers/scsi/qla2xxx/qla_iocb.c:2462:18: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:2463:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] mb6 @@ got resunsigned short [usertype] mb6 @@
drivers/scsi/qla2xxx/qla_iocb.c:2463:18: sparse: expected unsigned short [usertype] mb6
drivers/scsi/qla2xxx/qla_iocb.c:2463:18: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:2464:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] mb7 @@ got resunsigned short [usertype] mb7 @@
drivers/scsi/qla2xxx/qla_iocb.c:2464:18: sparse: expected unsigned short [usertype] mb7
drivers/scsi/qla2xxx/qla_iocb.c:2464:18: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:2465:18: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] mb9 @@ got resunsigned short [usertype] mb9 @@
drivers/scsi/qla2xxx/qla_iocb.c:2465:18: sparse: expected unsigned short [usertype] mb9
drivers/scsi/qla2xxx/qla_iocb.c:2465:18: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:2485:27: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] nport_handle @@ got resunsigned short [usertype] nport_handle @@
drivers/scsi/qla2xxx/qla_iocb.c:2485:27: sparse: expected unsigned short [usertype] nport_handle
drivers/scsi/qla2xxx/qla_iocb.c:2485:27: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:2486:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] timeout @@ got resunsigned short [usertype] timeout @@
drivers/scsi/qla2xxx/qla_iocb.c:2486:22: sparse: expected unsigned short [usertype] timeout
drivers/scsi/qla2xxx/qla_iocb.c:2486:22: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:2487:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] control_flags @@ got restrunsigned int [usertype] control_flags @@
drivers/scsi/qla2xxx/qla_iocb.c:2487:28: sparse: expected unsigned int [usertype] control_flags
drivers/scsi/qla2xxx/qla_iocb.c:2487:28: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:2649:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] nport_handle @@ got resunsigned short [usertype] nport_handle @@
drivers/scsi/qla2xxx/qla_iocb.c:2649:32: sparse: expected unsigned short [usertype] nport_handle
drivers/scsi/qla2xxx/qla_iocb.c:2649:32: sparse: got restricted __le16 [usertype]
>> drivers/scsi/qla2xxx/qla_iocb.c:2765:22: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_iocb.c:2766:22: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_iocb.c:2773:22: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_iocb.c:2983:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] nport_handle @@ got resunsigned short [usertype] nport_handle @@
drivers/scsi/qla2xxx/qla_iocb.c:2983:32: sparse: expected unsigned short [usertype] nport_handle
drivers/scsi/qla2xxx/qla_iocb.c:2983:32: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:2984:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] tx_dsd_count @@ got resunsigned short [usertype] tx_dsd_count @@
drivers/scsi/qla2xxx/qla_iocb.c:2984:32: sparse: expected unsigned short [usertype] tx_dsd_count
drivers/scsi/qla2xxx/qla_iocb.c:2984:32: sparse: got restricted __le16 [usertype]
>> drivers/scsi/qla2xxx/qla_iocb.c:2987:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] rx_dsd_count @@ got resunsigned short [usertype] rx_dsd_count @@
>> drivers/scsi/qla2xxx/qla_iocb.c:2987:32: sparse: expected unsigned short [usertype] rx_dsd_count
drivers/scsi/qla2xxx/qla_iocb.c:2987:32: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:3032:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] extended @@ got resunsigned short [usertype] extended @@
drivers/scsi/qla2xxx/qla_iocb.c:3032:9: sparse: expected unsigned short [usertype] extended
drivers/scsi/qla2xxx/qla_iocb.c:3032:9: sparse: got restricted __le16 [usertype]
>> drivers/scsi/qla2xxx/qla_iocb.c:3033:25: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] status @@ got resunsigned short [usertype] status @@
>> drivers/scsi/qla2xxx/qla_iocb.c:3033:25: sparse: expected unsigned short [usertype] status
drivers/scsi/qla2xxx/qla_iocb.c:3033:25: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_iocb.c:3034:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] control_flags @@ got resunsigned short [usertype] control_flags @@
drivers/scsi/qla2xxx/qla_iocb.c:3034:32: sparse: expected unsigned short [usertype] control_flags
drivers/scsi/qla2xxx/qla_iocb.c:3034:32: sparse: got restricted __le16 [usertype]
>> drivers/scsi/qla2xxx/qla_iocb.c:3036:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] cmd_dsd_count @@ got resunsigned short [usertype] cmd_dsd_count @@
>> drivers/scsi/qla2xxx/qla_iocb.c:3036:32: sparse: expected unsigned short [usertype] cmd_dsd_count
drivers/scsi/qla2xxx/qla_iocb.c:3036:32: sparse: got restricted __le16 [usertype]
>> drivers/scsi/qla2xxx/qla_iocb.c:3038:34: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] total_dsd_count @@ got resunsigned short [usertype] total_dsd_count @@
>> drivers/scsi/qla2xxx/qla_iocb.c:3038:34: sparse: expected unsigned short [usertype] total_dsd_count
drivers/scsi/qla2xxx/qla_iocb.c:3038:34: sparse: got restricted __le16 [usertype]
>> drivers/scsi/qla2xxx/qla_iocb.c:3040:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] req_bytecount @@ got restrunsigned int [usertype] req_bytecount @@
>> drivers/scsi/qla2xxx/qla_iocb.c:3040:32: sparse: expected unsigned int [usertype] req_bytecount
drivers/scsi/qla2xxx/qla_iocb.c:3040:32: sparse: got restricted __le32 [usertype]
>> drivers/scsi/qla2xxx/qla_iocb.c:3042:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] rsp_bytecount @@ got restrunsigned int [usertype] rsp_bytecount @@
>> drivers/scsi/qla2xxx/qla_iocb.c:3042:32: sparse: expected unsigned int [usertype] rsp_bytecount
drivers/scsi/qla2xxx/qla_iocb.c:3042:32: sparse: got restricted __le32 [usertype]
>> drivers/scsi/qla2xxx/qla_iocb.c:3047:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] length @@ got icted __le32 [usertype] length @@
>> drivers/scsi/qla2xxx/qla_iocb.c:3047:33: sparse: expected restricted __le32 [usertype] length
>> drivers/scsi/qla2xxx/qla_iocb.c:3047:33: sparse: got unsigned int [usertype] req_bytecount
drivers/scsi/qla2xxx/qla_iocb.c:3051:33: sparse: sparse: too many warnings
--
drivers/scsi/qla2xxx/qla_isr.c:2446:31: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:2447:31: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:2448:31: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:2450:31: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:2451:31: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:2517:28: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_isr.c:2542:37: sparse: sparse: cast to restricted __le32
drivers/scsi/qla2xxx/qla_isr.c:2544:40: sparse: sparse: cast to restricted __le32
drivers/scsi/qla2xxx/qla_isr.c:2546:37: sparse: sparse: cast to restricted __le32
drivers/scsi/qla2xxx/qla_isr.c:2547:36: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_isr.c:2548:40: sparse: sparse: cast to restricted __le32
drivers/scsi/qla2xxx/qla_isr.c:2552:25: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:2563:37: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:2565:40: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:2566:29: sparse: sparse: cast to restricted __le32
drivers/scsi/qla2xxx/qla_isr.c:2590:51: sparse: sparse: restricted __le16 degrades to integer
>> drivers/scsi/qla2xxx/qla_isr.c:2592:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [assigned] [usertype] comp_status @@ got short [assigned] [usertype] comp_status @@
>> drivers/scsi/qla2xxx/qla_isr.c:2592:29: sparse: expected unsigned short [assigned] [usertype] comp_status
>> drivers/scsi/qla2xxx/qla_isr.c:2592:29: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_isr.c:2731:36: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_isr.c:2734:35: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:2159:21: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:2160:21: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:2161:21: sparse: sparse: cast to restricted __le32
drivers/scsi/qla2xxx/qla_isr.c:2162:21: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:2163:21: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:2164:21: sparse: sparse: cast to restricted __le32
drivers/scsi/qla2xxx/qla_isr.c:2181:27: sparse: sparse: restricted __be16 degrades to integer
drivers/scsi/qla2xxx/qla_isr.c:2183:28: sparse: sparse: restricted __be32 degrades to integer
drivers/scsi/qla2xxx/qla_isr.c:2606:14: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_isr.c:2607:14: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_isr.c:2646:14: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_isr.c:2716:14: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_isr.c:2717:14: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_isr.c:2718:14: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_isr.c:2719:14: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_isr.c:2720:14: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_isr.c:2721:14: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_isr.c:2722:14: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_isr.c:2753:14: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_isr.c:2757:14: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_isr.c:2762:14: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_isr.c:2774:14: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_isr.c:651:30: sparse: sparse: cast to restricted __le32
drivers/scsi/qla2xxx/qla_isr.c:690:30: sparse: sparse: cast to restricted __le32
drivers/scsi/qla2xxx/qla_isr.c:691:30: sparse: sparse: cast to restricted __le32
drivers/scsi/qla2xxx/qla_isr.c:1402:21: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:1402:47: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:1403:21: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:1411:18: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:1413:13: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:1415:24: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:1420:21: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:1425:29: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:1427:34: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:1433:19: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:1436:27: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:1449:21: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:1449:44: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:1450:13: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:1450:36: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:1451:13: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:1475:38: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:1475:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 @@ got unsigned restricted __le16 @@
drivers/scsi/qla2xxx/qla_isr.c:1475:36: sparse: expected restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:1475:36: sparse: got unsigned short [usertype]
drivers/scsi/qla2xxx/qla_isr.c:1477:31: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_isr.c:1494:36: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_isr.c:1523:27: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:1532:32: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_isr.c:1533:40: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_isr.c:1536:33: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:1624:38: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:1625:24: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:1626:24: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:1633:46: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] comp_status @@ got [usertype] comp_status @@
drivers/scsi/qla2xxx/qla_isr.c:1633:46: sparse: expected restricted __le16 [usertype] comp_status
drivers/scsi/qla2xxx/qla_isr.c:1633:46: sparse: got unsigned int
drivers/scsi/qla2xxx/qla_isr.c:1634:36: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_isr.c:1637:44: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_isr.c:1640:33: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:1639:54: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] len @@ got tricted __le16 [usertype] len @@
drivers/scsi/qla2xxx/qla_isr.c:1639:54: sparse: expected restricted __le16 [usertype] len
drivers/scsi/qla2xxx/qla_isr.c:1639:54: sparse: got unsigned short [usertype]
drivers/scsi/qla2xxx/qla_isr.c:1650:21: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:1663:28: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_isr.c:1664:36: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_isr.c:1667:29: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:1673:29: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:1680:29: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:1682:29: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:1739:48: sparse: sparse: restricted __le16 degrades to integer
>> drivers/scsi/qla2xxx/qla_isr.c:1860:40: sparse: sparse: cast from restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:1860:40: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_isr.c:1865:21: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:1867:21: sparse: sparse: cast to restricted __le32
drivers/scsi/qla2xxx/qla_isr.c:1895:39: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:1899:34: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] comp_status @@ got tricted __le16 [usertype] comp_status @@
drivers/scsi/qla2xxx/qla_isr.c:1899:34: sparse: expected restricted __le16 [usertype] comp_status
drivers/scsi/qla2xxx/qla_isr.c:1899:34: sparse: got unsigned short [usertype] comp_status
drivers/scsi/qla2xxx/qla_isr.c:1900:24: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:1917:45: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:1924:45: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_isr.c:1935:13: sparse: sparse: cast to restricted __le32
drivers/scsi/qla2xxx/qla_isr.c:1937:13: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_isr.c:1941:44: sparse: sparse: cast to restricted __le32
drivers/scsi/qla2xxx/qla_isr.c:1949:14: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_isr.c:1952:14: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_isr.c:1953:14: sparse: sparse: restricted __le16 degrades to integer
>> drivers/scsi/qla2xxx/qla_isr.c:1954:14: sparse: sparse: too many warnings
--
drivers/scsi/qla2xxx/qla_gs.c:983:42: sparse: expected unsigned short [usertype] subcommand_length
drivers/scsi/qla2xxx/qla_gs.c:983:42: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:984:35: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] subcommand @@ got resunsigned short [usertype] subcommand @@
drivers/scsi/qla2xxx/qla_gs.c:984:35: sparse: expected unsigned short [usertype] subcommand
drivers/scsi/qla2xxx/qla_gs.c:984:35: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:986:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] size @@ got resunsigned short [usertype] size @@
drivers/scsi/qla2xxx/qla_gs.c:986:29: sparse: expected unsigned short [usertype] size
drivers/scsi/qla2xxx/qla_gs.c:986:29: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:981:38: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] buffer_length @@ got resunsigned short [usertype] buffer_length @@
drivers/scsi/qla2xxx/qla_gs.c:981:38: sparse: expected unsigned short [usertype] buffer_length
drivers/scsi/qla2xxx/qla_gs.c:981:38: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:983:42: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] subcommand_length @@ got resunsigned short [usertype] subcommand_length @@
drivers/scsi/qla2xxx/qla_gs.c:983:42: sparse: expected unsigned short [usertype] subcommand_length
drivers/scsi/qla2xxx/qla_gs.c:983:42: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:984:35: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] subcommand @@ got resunsigned short [usertype] subcommand @@
drivers/scsi/qla2xxx/qla_gs.c:984:35: sparse: expected unsigned short [usertype] subcommand
drivers/scsi/qla2xxx/qla_gs.c:984:35: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:986:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] size @@ got resunsigned short [usertype] size @@
drivers/scsi/qla2xxx/qla_gs.c:986:29: sparse: expected unsigned short [usertype] size
drivers/scsi/qla2xxx/qla_gs.c:986:29: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:112:26: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] command @@ got resunsigned short [usertype] command @@
drivers/scsi/qla2xxx/qla_gs.c:112:26: sparse: expected unsigned short [usertype] command
drivers/scsi/qla2xxx/qla_gs.c:112:26: sparse: got restricted __be16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:113:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] max_rsp_size @@ got resunsigned short [usertype] max_rsp_size @@
drivers/scsi/qla2xxx/qla_gs.c:113:31: sparse: expected unsigned short [usertype] max_rsp_size
drivers/scsi/qla2xxx/qla_gs.c:113:31: sparse: got restricted __be16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:112:26: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] command @@ got resunsigned short [usertype] command @@
drivers/scsi/qla2xxx/qla_gs.c:112:26: sparse: expected unsigned short [usertype] command
drivers/scsi/qla2xxx/qla_gs.c:112:26: sparse: got restricted __be16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:113:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] max_rsp_size @@ got resunsigned short [usertype] max_rsp_size @@
drivers/scsi/qla2xxx/qla_gs.c:113:31: sparse: expected unsigned short [usertype] max_rsp_size
drivers/scsi/qla2xxx/qla_gs.c:113:31: sparse: got restricted __be16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:112:26: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] command @@ got resunsigned short [usertype] command @@
drivers/scsi/qla2xxx/qla_gs.c:112:26: sparse: expected unsigned short [usertype] command
drivers/scsi/qla2xxx/qla_gs.c:112:26: sparse: got restricted __be16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:113:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] max_rsp_size @@ got resunsigned short [usertype] max_rsp_size @@
drivers/scsi/qla2xxx/qla_gs.c:113:31: sparse: expected unsigned short [usertype] max_rsp_size
drivers/scsi/qla2xxx/qla_gs.c:113:31: sparse: got restricted __be16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:112:26: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] command @@ got resunsigned short [usertype] command @@
drivers/scsi/qla2xxx/qla_gs.c:112:26: sparse: expected unsigned short [usertype] command
drivers/scsi/qla2xxx/qla_gs.c:112:26: sparse: got restricted __be16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:113:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] max_rsp_size @@ got resunsigned short [usertype] max_rsp_size @@
drivers/scsi/qla2xxx/qla_gs.c:113:31: sparse: expected unsigned short [usertype] max_rsp_size
drivers/scsi/qla2xxx/qla_gs.c:113:31: sparse: got restricted __be16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:40:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] extended @@ got resunsigned short [usertype] extended @@
drivers/scsi/qla2xxx/qla_gs.c:40:9: sparse: expected unsigned short [usertype] extended
drivers/scsi/qla2xxx/qla_gs.c:40:9: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:41:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] control_flags @@ got resunsigned short [usertype] control_flags @@
drivers/scsi/qla2xxx/qla_gs.c:41:31: sparse: expected unsigned short [usertype] control_flags
drivers/scsi/qla2xxx/qla_gs.c:41:31: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:42:25: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] timeout @@ got resunsigned short [usertype] timeout @@
drivers/scsi/qla2xxx/qla_gs.c:42:25: sparse: expected unsigned short [usertype] timeout
drivers/scsi/qla2xxx/qla_gs.c:42:25: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:43:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] cmd_dsd_count @@ got resunsigned short [usertype] cmd_dsd_count @@
drivers/scsi/qla2xxx/qla_gs.c:43:31: sparse: expected unsigned short [usertype] cmd_dsd_count
drivers/scsi/qla2xxx/qla_gs.c:43:31: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:44:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] total_dsd_count @@ got resunsigned short [usertype] total_dsd_count @@
drivers/scsi/qla2xxx/qla_gs.c:44:33: sparse: expected unsigned short [usertype] total_dsd_count
drivers/scsi/qla2xxx/qla_gs.c:44:33: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:45:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] rsp_bytecount @@ got restrunsigned int [usertype] rsp_bytecount @@
drivers/scsi/qla2xxx/qla_gs.c:45:31: sparse: expected unsigned int [usertype] rsp_bytecount
drivers/scsi/qla2xxx/qla_gs.c:45:31: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:46:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] req_bytecount @@ got restrunsigned int [usertype] req_bytecount @@
drivers/scsi/qla2xxx/qla_gs.c:46:31: sparse: expected unsigned int [usertype] req_bytecount
drivers/scsi/qla2xxx/qla_gs.c:46:31: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:49:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] length @@ got icted __le32 [usertype] length @@
drivers/scsi/qla2xxx/qla_gs.c:49:32: sparse: expected restricted __le32 [usertype] length
drivers/scsi/qla2xxx/qla_gs.c:49:32: sparse: got unsigned int [usertype] req_bytecount
drivers/scsi/qla2xxx/qla_gs.c:52:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] length @@ got icted __le32 [usertype] length @@
drivers/scsi/qla2xxx/qla_gs.c:52:32: sparse: expected restricted __le32 [usertype] length
drivers/scsi/qla2xxx/qla_gs.c:52:32: sparse: got unsigned int [usertype] rsp_bytecount
drivers/scsi/qla2xxx/qla_gs.c:77:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] nport_handle @@ got resunsigned short [usertype] nport_handle @@
drivers/scsi/qla2xxx/qla_gs.c:77:30: sparse: expected unsigned short [usertype] nport_handle
drivers/scsi/qla2xxx/qla_gs.c:77:30: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:78:25: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] timeout @@ got resunsigned short [usertype] timeout @@
drivers/scsi/qla2xxx/qla_gs.c:78:25: sparse: expected unsigned short [usertype] timeout
drivers/scsi/qla2xxx/qla_gs.c:78:25: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:79:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] cmd_dsd_count @@ got resunsigned short [usertype] cmd_dsd_count @@
drivers/scsi/qla2xxx/qla_gs.c:79:31: sparse: expected unsigned short [usertype] cmd_dsd_count
drivers/scsi/qla2xxx/qla_gs.c:79:31: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:80:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] rsp_dsd_count @@ got resunsigned short [usertype] rsp_dsd_count @@
drivers/scsi/qla2xxx/qla_gs.c:80:31: sparse: expected unsigned short [usertype] rsp_dsd_count
drivers/scsi/qla2xxx/qla_gs.c:80:31: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:81:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] rsp_byte_count @@ got restrunsigned int [usertype] rsp_byte_count @@
drivers/scsi/qla2xxx/qla_gs.c:81:32: sparse: expected unsigned int [usertype] rsp_byte_count
drivers/scsi/qla2xxx/qla_gs.c:81:32: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:82:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] cmd_byte_count @@ got restrunsigned int [usertype] cmd_byte_count @@
drivers/scsi/qla2xxx/qla_gs.c:82:32: sparse: expected unsigned int [usertype] cmd_byte_count
drivers/scsi/qla2xxx/qla_gs.c:82:32: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:85:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] length @@ got icted __le32 [usertype] length @@
drivers/scsi/qla2xxx/qla_gs.c:85:31: sparse: expected restricted __le32 [usertype] length
drivers/scsi/qla2xxx/qla_gs.c:85:31: sparse: got unsigned int [usertype] cmd_byte_count
drivers/scsi/qla2xxx/qla_gs.c:88:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] length @@ got icted __le32 [usertype] length @@
drivers/scsi/qla2xxx/qla_gs.c:88:31: sparse: expected restricted __le32 [usertype] length
drivers/scsi/qla2xxx/qla_gs.c:88:31: sparse: got unsigned int [usertype] rsp_byte_count
drivers/scsi/qla2xxx/qla_gs.c:135:39: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_gs.c:138:39: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_gs.c:144:29: sparse: sparse: restricted __be16 degrades to integer
drivers/scsi/qla2xxx/qla_gs.c:159:37: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_gs.c:163:37: sparse: sparse: cast to restricted __le16
>> drivers/scsi/qla2xxx/qla_gs.c:140:22: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_gs.c:141:22: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_gs.c:142:22: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_gs.c:157:22: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_gs.c:176:22: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_gs.c:112:26: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] command @@ got resunsigned short [usertype] command @@
drivers/scsi/qla2xxx/qla_gs.c:112:26: sparse: expected unsigned short [usertype] command
drivers/scsi/qla2xxx/qla_gs.c:112:26: sparse: got restricted __be16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:113:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] max_rsp_size @@ got resunsigned short [usertype] max_rsp_size @@
drivers/scsi/qla2xxx/qla_gs.c:113:31: sparse: expected unsigned short [usertype] max_rsp_size
drivers/scsi/qla2xxx/qla_gs.c:113:31: sparse: got restricted __be16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:112:26: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] command @@ got resunsigned short [usertype] command @@
drivers/scsi/qla2xxx/qla_gs.c:112:26: sparse: expected unsigned short [usertype] command
drivers/scsi/qla2xxx/qla_gs.c:112:26: sparse: got restricted __be16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:113:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] max_rsp_size @@ got resunsigned short [usertype] max_rsp_size @@
drivers/scsi/qla2xxx/qla_gs.c:113:31: sparse: expected unsigned short [usertype] max_rsp_size
drivers/scsi/qla2xxx/qla_gs.c:113:31: sparse: got restricted __be16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:112:26: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] command @@ got resunsigned short [usertype] command @@
drivers/scsi/qla2xxx/qla_gs.c:112:26: sparse: expected unsigned short [usertype] command
drivers/scsi/qla2xxx/qla_gs.c:112:26: sparse: got restricted __be16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:113:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] max_rsp_size @@ got resunsigned short [usertype] max_rsp_size @@
drivers/scsi/qla2xxx/qla_gs.c:113:31: sparse: expected unsigned short [usertype] max_rsp_size
drivers/scsi/qla2xxx/qla_gs.c:113:31: sparse: got restricted __be16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:112:26: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] command @@ got resunsigned short [usertype] command @@
drivers/scsi/qla2xxx/qla_gs.c:112:26: sparse: expected unsigned short [usertype] command
drivers/scsi/qla2xxx/qla_gs.c:112:26: sparse: got restricted __be16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:113:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] max_rsp_size @@ got resunsigned short [usertype] max_rsp_size @@
drivers/scsi/qla2xxx/qla_gs.c:113:31: sparse: expected unsigned short [usertype] max_rsp_size
drivers/scsi/qla2xxx/qla_gs.c:113:31: sparse: got restricted __be16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:1411:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] extended @@ got resunsigned short [usertype] extended @@
drivers/scsi/qla2xxx/qla_gs.c:1411:9: sparse: expected unsigned short [usertype] extended
drivers/scsi/qla2xxx/qla_gs.c:1411:9: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:1412:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] control_flags @@ got resunsigned short [usertype] control_flags @@
drivers/scsi/qla2xxx/qla_gs.c:1412:31: sparse: expected unsigned short [usertype] control_flags
drivers/scsi/qla2xxx/qla_gs.c:1412:31: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:1413:25: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] timeout @@ got resunsigned short [usertype] timeout @@
drivers/scsi/qla2xxx/qla_gs.c:1413:25: sparse: expected unsigned short [usertype] timeout
drivers/scsi/qla2xxx/qla_gs.c:1413:25: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:1414:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] cmd_dsd_count @@ got resunsigned short [usertype] cmd_dsd_count @@
drivers/scsi/qla2xxx/qla_gs.c:1414:31: sparse: expected unsigned short [usertype] cmd_dsd_count
drivers/scsi/qla2xxx/qla_gs.c:1414:31: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:1415:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] total_dsd_count @@ got resunsigned short [usertype] total_dsd_count @@
drivers/scsi/qla2xxx/qla_gs.c:1415:33: sparse: expected unsigned short [usertype] total_dsd_count
drivers/scsi/qla2xxx/qla_gs.c:1415:33: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:1416:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] rsp_bytecount @@ got restrunsigned int [usertype] rsp_bytecount @@
drivers/scsi/qla2xxx/qla_gs.c:1416:31: sparse: expected unsigned int [usertype] rsp_bytecount
drivers/scsi/qla2xxx/qla_gs.c:1416:31: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:1417:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] req_bytecount @@ got restrunsigned int [usertype] req_bytecount @@
drivers/scsi/qla2xxx/qla_gs.c:1417:31: sparse: expected unsigned int [usertype] req_bytecount
drivers/scsi/qla2xxx/qla_gs.c:1417:31: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:1420:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] length @@ got icted __le32 [usertype] length @@
drivers/scsi/qla2xxx/qla_gs.c:1420:32: sparse: expected restricted __le32 [usertype] length
drivers/scsi/qla2xxx/qla_gs.c:1420:32: sparse: got unsigned int [usertype] req_bytecount
drivers/scsi/qla2xxx/qla_gs.c:1423:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] length @@ got icted __le32 [usertype] length @@
drivers/scsi/qla2xxx/qla_gs.c:1423:32: sparse: expected restricted __le32 [usertype] length
drivers/scsi/qla2xxx/qla_gs.c:1423:32: sparse: got unsigned int [usertype] rsp_bytecount
drivers/scsi/qla2xxx/qla_gs.c:1448:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] nport_handle @@ got resunsigned short [usertype] nport_handle @@
drivers/scsi/qla2xxx/qla_gs.c:1448:30: sparse: expected unsigned short [usertype] nport_handle
drivers/scsi/qla2xxx/qla_gs.c:1448:30: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:1449:25: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] timeout @@ got resunsigned short [usertype] timeout @@
drivers/scsi/qla2xxx/qla_gs.c:1449:25: sparse: expected unsigned short [usertype] timeout
drivers/scsi/qla2xxx/qla_gs.c:1449:25: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:1450:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] cmd_dsd_count @@ got resunsigned short [usertype] cmd_dsd_count @@
drivers/scsi/qla2xxx/qla_gs.c:1450:31: sparse: expected unsigned short [usertype] cmd_dsd_count
drivers/scsi/qla2xxx/qla_gs.c:1450:31: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:1451:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] rsp_dsd_count @@ got resunsigned short [usertype] rsp_dsd_count @@
drivers/scsi/qla2xxx/qla_gs.c:1451:31: sparse: expected unsigned short [usertype] rsp_dsd_count
drivers/scsi/qla2xxx/qla_gs.c:1451:31: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:1452:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] rsp_byte_count @@ got restrunsigned int [usertype] rsp_byte_count @@
drivers/scsi/qla2xxx/qla_gs.c:1452:32: sparse: expected unsigned int [usertype] rsp_byte_count
drivers/scsi/qla2xxx/qla_gs.c:1452:32: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:1453:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] cmd_byte_count @@ got restrunsigned int [usertype] cmd_byte_count @@
drivers/scsi/qla2xxx/qla_gs.c:1453:32: sparse: expected unsigned int [usertype] cmd_byte_count
drivers/scsi/qla2xxx/qla_gs.c:1453:32: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:1456:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] length @@ got icted __le32 [usertype] length @@
drivers/scsi/qla2xxx/qla_gs.c:1456:31: sparse: expected restricted __le32 [usertype] length
drivers/scsi/qla2xxx/qla_gs.c:1456:31: sparse: got unsigned int [usertype] cmd_byte_count
drivers/scsi/qla2xxx/qla_gs.c:1459:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] length @@ got icted __le32 [usertype] length @@
drivers/scsi/qla2xxx/qla_gs.c:1459:31: sparse: expected restricted __le32 [usertype] length
drivers/scsi/qla2xxx/qla_gs.c:1459:31: sparse: got unsigned int [usertype] rsp_byte_count
drivers/scsi/qla2xxx/qla_gs.c:1473:40: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] cmd_byte_count @@ got restrunsigned int [usertype] cmd_byte_count @@
drivers/scsi/qla2xxx/qla_gs.c:1473:40: sparse: expected unsigned int [usertype] cmd_byte_count
drivers/scsi/qla2xxx/qla_gs.c:1473:40: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:1474:39: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] length @@ got icted __le32 [usertype] length @@
drivers/scsi/qla2xxx/qla_gs.c:1474:39: sparse: expected restricted __le32 [usertype] length
drivers/scsi/qla2xxx/qla_gs.c:1474:39: sparse: got unsigned int [usertype] cmd_byte_count
drivers/scsi/qla2xxx/qla_gs.c:1476:39: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] req_bytecount @@ got restrunsigned int [usertype] req_bytecount @@
drivers/scsi/qla2xxx/qla_gs.c:1476:39: sparse: expected unsigned int [usertype] req_bytecount
drivers/scsi/qla2xxx/qla_gs.c:1476:39: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:1477:40: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [usertype] length @@ got icted __le32 [usertype] length @@
drivers/scsi/qla2xxx/qla_gs.c:1477:40: sparse: expected restricted __le32 [usertype] length
drivers/scsi/qla2xxx/qla_gs.c:1477:40: sparse: got unsigned int [usertype] req_bytecount
drivers/scsi/qla2xxx/qla_gs.c:1498:26: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] command @@ got resunsigned short [usertype] command @@
drivers/scsi/qla2xxx/qla_gs.c:1498:26: sparse: expected unsigned short [usertype] command
drivers/scsi/qla2xxx/qla_gs.c:1498:26: sparse: got restricted __be16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:1499:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] max_rsp_size @@ got resunsigned short [usertype] max_rsp_size @@
drivers/scsi/qla2xxx/qla_gs.c:1499:31: sparse: expected unsigned short [usertype] max_rsp_size
drivers/scsi/qla2xxx/qla_gs.c:1499:31: sparse: got restricted __be16 [usertype]
drivers/scsi/qla2xxx/qla_gs.c:1534:38: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] entry_count @@ got restrunsigned int [usertype] entry_count @@
drivers/scsi/qla2xxx/qla_gs.c:1534:38: sparse: expected unsigned int [usertype] entry_count
drivers/scsi/qla2xxx/qla_gs.c:1534:38: sparse: got restricted __be32 [usertype]
--
drivers/scsi/qla2xxx/qla_mr.c:56:21: sparse: sparse: restricted pci_channel_state_t degrades to integer
drivers/scsi/qla2xxx/qla_mr.c:56:37: sparse: sparse: restricted pci_channel_state_t degrades to integer
>> drivers/scsi/qla2xxx/qla_mr.c:2183:25: sparse: sparse: cast from restricted __le16
drivers/scsi/qla2xxx/qla_mr.c:2185:28: sparse: sparse: cast from restricted __le16
drivers/scsi/qla2xxx/qla_mr.c:2356:28: sparse: sparse: cast from restricted __le16
drivers/scsi/qla2xxx/qla_mr.c:2364:31: sparse: sparse: cast from restricted __le16
>> drivers/scsi/qla2xxx/qla_mr.c:2370:14: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_mr.c:2371:14: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_mr.c:2413:14: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_mr.c:2496:14: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_mr.c:2497:14: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_mr.c:2498:14: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_mr.c:2499:14: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_mr.c:2500:14: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_mr.c:2501:14: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_mr.c:2502:14: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_mr.c:2519:14: sparse: sparse: restricted __le16 degrades to integer
arch/x86/include/asm/bitops.h:77:37: sparse: sparse: cast truncates bits from constant value (ffffff7f becomes 7f)
--
drivers/scsi/qla2xxx/qla_target.c:5768:21: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_target.c:5779:21: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_target.c:5783:29: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_target.c:5828:21: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_target.c:5838:21: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_target.c:5854:29: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_target.c:5855:29: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_target.c:5858:29: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_target.c:5862:37: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_target.c:1689:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] nport_handle @@ got resunsigned short [usertype] nport_handle @@
drivers/scsi/qla2xxx/qla_target.c:1689:36: sparse: expected unsigned short [usertype] nport_handle
>> drivers/scsi/qla2xxx/qla_target.c:1689:36: sparse: got restricted __le16 [usertype] nport_handle
drivers/scsi/qla2xxx/qla_target.c:1690:13: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_target.c:1692:25: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/qla2xxx/qla_target.c:1701:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] srr_flags @@ got resunsigned short [usertype] srr_flags @@
drivers/scsi/qla2xxx/qla_target.c:1701:33: sparse: expected unsigned short [usertype] srr_flags
drivers/scsi/qla2xxx/qla_target.c:1701:33: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_target.c:2133:13: sparse: sparse: cast to restricted __le32
drivers/scsi/qla2xxx/qla_target.c:2155:13: sparse: sparse: cast to restricted __le32
drivers/scsi/qla2xxx/qla_target.c:383:36: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_target.c:1761:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] f_ctl @@ got restrunsigned int [usertype] f_ctl @@
drivers/scsi/qla2xxx/qla_target.c:1761:15: sparse: expected unsigned int [usertype] f_ctl
drivers/scsi/qla2xxx/qla_target.c:1761:15: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_target.c:1833:15: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] f_ctl @@ got restrunsigned int [usertype] f_ctl @@
drivers/scsi/qla2xxx/qla_target.c:1833:15: sparse: expected unsigned int [usertype] f_ctl
drivers/scsi/qla2xxx/qla_target.c:1833:15: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_target.c:1906:23: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] timeout @@ got resunsigned short [usertype] timeout @@
drivers/scsi/qla2xxx/qla_target.c:1906:23: sparse: expected unsigned short [usertype] timeout
drivers/scsi/qla2xxx/qla_target.c:1906:23: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_target.c:1925:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] ox_id @@ got tricted __le16 [usertype] ox_id @@
drivers/scsi/qla2xxx/qla_target.c:1925:31: sparse: expected restricted __le16 [usertype] ox_id
drivers/scsi/qla2xxx/qla_target.c:1925:31: sparse: got unsigned short [usertype] ox_id
drivers/scsi/qla2xxx/qla_target.c:2219:23: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] timeout @@ got resunsigned short [usertype] timeout @@
drivers/scsi/qla2xxx/qla_target.c:2219:23: sparse: expected unsigned short [usertype] timeout
drivers/scsi/qla2xxx/qla_target.c:2219:23: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_target.c:2228:37: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] scsi_status @@ got resunsigned short [usertype] scsi_status @@
drivers/scsi/qla2xxx/qla_target.c:2228:37: sparse: expected unsigned short [usertype] scsi_status
drivers/scsi/qla2xxx/qla_target.c:2228:37: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_target.c:2230:38: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] response_len @@ got resunsigned short [usertype] response_len @@
drivers/scsi/qla2xxx/qla_target.c:2230:38: sparse: expected unsigned short [usertype] response_len
drivers/scsi/qla2xxx/qla_target.c:2230:38: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_target.c:2276:23: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] timeout @@ got resunsigned short [usertype] timeout @@
drivers/scsi/qla2xxx/qla_target.c:2276:23: sparse: expected unsigned short [usertype] timeout
drivers/scsi/qla2xxx/qla_target.c:2276:23: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_target.c:2285:37: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] scsi_status @@ got resunsigned short [usertype] scsi_status @@
drivers/scsi/qla2xxx/qla_target.c:2285:37: sparse: expected unsigned short [usertype] scsi_status
drivers/scsi/qla2xxx/qla_target.c:2285:37: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_target.c:2287:38: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] response_len @@ got resunsigned short [usertype] response_len @@
drivers/scsi/qla2xxx/qla_target.c:2287:38: sparse: expected unsigned short [usertype] response_len
drivers/scsi/qla2xxx/qla_target.c:2287:38: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_target.h:382:17: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_target.h:382:17: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_target.h:382:17: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_target.h:382:17: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_target.h:382:17: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_target.h:382:17: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_target.c:2288:34: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] residual @@ got restrunsigned int [usertype] residual @@
drivers/scsi/qla2xxx/qla_target.c:2288:34: sparse: expected unsigned int [usertype] residual
drivers/scsi/qla2xxx/qla_target.c:2288:34: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_target.c:2291:45: sparse: sparse: invalid assignment: |=
drivers/scsi/qla2xxx/qla_target.c:2291:45: sparse: left side has type unsigned short
drivers/scsi/qla2xxx/qla_target.c:2291:45: sparse: right side has type restricted __le16
drivers/scsi/qla2xxx/qla_target.c:2577:27: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] nport_handle @@ got resunsigned short [usertype] nport_handle @@
drivers/scsi/qla2xxx/qla_target.c:2577:27: sparse: expected unsigned short [usertype] nport_handle
drivers/scsi/qla2xxx/qla_target.c:2577:27: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_target.c:2578:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] timeout @@ got resunsigned short [usertype] timeout @@
drivers/scsi/qla2xxx/qla_target.c:2578:22: sparse: expected unsigned short [usertype] timeout
drivers/scsi/qla2xxx/qla_target.c:2578:22: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_target.c:2585:40: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] relative_offset @@ got restrunsigned int [usertype] relative_offset @@
drivers/scsi/qla2xxx/qla_target.c:2585:40: sparse: expected unsigned int [usertype] relative_offset
drivers/scsi/qla2xxx/qla_target.c:2585:40: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_target.c:2640:42: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] transfer_length @@ got restrunsigned int [usertype] transfer_length @@
drivers/scsi/qla2xxx/qla_target.c:2640:42: sparse: expected unsigned int [usertype] transfer_length
drivers/scsi/qla2xxx/qla_target.c:2640:42: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_target.c:2647:35: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] dseg_count @@ got resunsigned short [usertype] dseg_count @@
drivers/scsi/qla2xxx/qla_target.c:2647:35: sparse: expected unsigned short [usertype] dseg_count
drivers/scsi/qla2xxx/qla_target.c:2647:35: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_target.c:2809:34: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] residual @@ got restrunsigned int [usertype] residual @@
drivers/scsi/qla2xxx/qla_target.c:2809:34: sparse: expected unsigned int [usertype] residual
drivers/scsi/qla2xxx/qla_target.c:2809:34: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_target.c:2810:37: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] scsi_status @@ got resunsigned short [usertype] scsi_status @@
drivers/scsi/qla2xxx/qla_target.c:2810:37: sparse: expected unsigned short [usertype] scsi_status
drivers/scsi/qla2xxx/qla_target.c:2810:37: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_target.c:2831:45: sparse: sparse: invalid assignment: |=
drivers/scsi/qla2xxx/qla_target.c:2831:45: sparse: left side has type unsigned short
drivers/scsi/qla2xxx/qla_target.c:2831:45: sparse: right side has type restricted __le16
drivers/scsi/qla2xxx/qla_target.c:2833:46: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] sense_length @@ got resunsigned short [usertype] sense_length @@
drivers/scsi/qla2xxx/qla_target.c:2833:46: sparse: expected unsigned short [usertype] sense_length
drivers/scsi/qla2xxx/qla_target.c:2833:46: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_target.c:2836:69: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] @@ got restrunsigned int [usertype] @@
drivers/scsi/qla2xxx/qla_target.c:2836:69: sparse: expected unsigned int [usertype]
drivers/scsi/qla2xxx/qla_target.c:2836:69: sparse: got restricted __be32 [usertype]
drivers/scsi/qla2xxx/qla_target.c:3090:27: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] nport_handle @@ got resunsigned short [usertype] nport_handle @@
drivers/scsi/qla2xxx/qla_target.c:3090:27: sparse: expected unsigned short [usertype] nport_handle
drivers/scsi/qla2xxx/qla_target.c:3090:27: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_target.c:3272:60: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] scsi_status @@ got resunsigned short [usertype] scsi_status @@
drivers/scsi/qla2xxx/qla_target.c:3272:60: sparse: expected unsigned short [usertype] scsi_status
drivers/scsi/qla2xxx/qla_target.c:3272:60: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_target.c:3274:57: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] residual @@ got restrunsigned int [usertype] residual @@
drivers/scsi/qla2xxx/qla_target.c:3274:57: sparse: expected unsigned int [usertype] residual
drivers/scsi/qla2xxx/qla_target.c:3274:57: sparse: got restricted __le32 [usertype]
drivers/scsi/qla2xxx/qla_target.c:3090:27: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] nport_handle @@ got resunsigned short [usertype] nport_handle @@
drivers/scsi/qla2xxx/qla_target.c:3090:27: sparse: expected unsigned short [usertype] nport_handle
drivers/scsi/qla2xxx/qla_target.c:3090:27: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_target.c:3450:26: sparse: sparse: cast to restricted __be16
drivers/scsi/qla2xxx/qla_target.c:3450:26: sparse: sparse: cast to restricted __be16
drivers/scsi/qla2xxx/qla_target.c:3450:26: sparse: sparse: cast to restricted __be16
drivers/scsi/qla2xxx/qla_target.c:3450:26: sparse: sparse: cast to restricted __be16
drivers/scsi/qla2xxx/qla_target.c:3451:26: sparse: sparse: cast to restricted __be16
drivers/scsi/qla2xxx/qla_target.c:3451:26: sparse: sparse: cast to restricted __be16
drivers/scsi/qla2xxx/qla_target.c:3451:26: sparse: sparse: cast to restricted __be16
drivers/scsi/qla2xxx/qla_target.c:3451:26: sparse: sparse: cast to restricted __be16
drivers/scsi/qla2xxx/qla_target.c:3452:26: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_target.c:3452:26: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_target.c:3452:26: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_target.c:3452:26: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_target.c:3452:26: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_target.c:3452:26: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_target.c:3454:26: sparse: sparse: cast to restricted __be16
drivers/scsi/qla2xxx/qla_target.c:3454:26: sparse: sparse: cast to restricted __be16
drivers/scsi/qla2xxx/qla_target.c:3454:26: sparse: sparse: cast to restricted __be16
drivers/scsi/qla2xxx/qla_target.c:3454:26: sparse: sparse: cast to restricted __be16
drivers/scsi/qla2xxx/qla_target.c:3455:26: sparse: sparse: cast to restricted __be16
drivers/scsi/qla2xxx/qla_target.c:3455:26: sparse: sparse: cast to restricted __be16
drivers/scsi/qla2xxx/qla_target.c:3455:26: sparse: sparse: cast to restricted __be16
drivers/scsi/qla2xxx/qla_target.c:3455:26: sparse: sparse: cast to restricted __be16
drivers/scsi/qla2xxx/qla_target.c:3456:26: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_target.c:3456:26: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_target.c:3456:26: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_target.c:3456:26: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_target.c:3456:26: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_target.c:3456:26: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_target.c:3565:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] nport_handle @@ got resunsigned short [usertype] nport_handle @@
drivers/scsi/qla2xxx/qla_target.c:3565:36: sparse: expected unsigned short [usertype] nport_handle
drivers/scsi/qla2xxx/qla_target.c:3565:36: sparse: got restricted __le16 [usertype] nport_handle
drivers/scsi/qla2xxx/qla_target.c:3566:13: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_target.c:3568:25: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/qla2xxx/qla_target.c:3572:29: sparse: sparse: invalid assignment: |=
drivers/scsi/qla2xxx/qla_target.c:3572:29: sparse: left side has type unsigned short
drivers/scsi/qla2xxx/qla_target.c:3572:29: sparse: right side has type restricted __le16
drivers/scsi/qla2xxx/qla_target.c:3643:25: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] timeout @@ got resunsigned short [usertype] timeout @@
drivers/scsi/qla2xxx/qla_target.c:3643:25: sparse: expected unsigned short [usertype] timeout
drivers/scsi/qla2xxx/qla_target.c:3643:25: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_target.c:3836:21: sparse: sparse: restricted __le16 degrades to integer
drivers/scsi/qla2xxx/qla_target.h:382:17: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_target.h:382:17: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_target.h:382:17: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_target.h:382:17: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_target.h:382:17: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_target.h:382:17: sparse: sparse: cast to restricted __be32
drivers/scsi/qla2xxx/qla_target.c:4498:13: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_target.c:4519:19: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_target.c:5045:21: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_target.c:5140:18: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_target.c:5226:21: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_target.c:5227:21: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_target.c:5228:21: sparse: sparse: cast to restricted __le16
drivers/scsi/qla2xxx/qla_target.c:5303:25: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] timeout @@ got resunsigned short [usertype] timeout @@
drivers/scsi/qla2xxx/qla_target.c:5303:25: sparse: expected unsigned short [usertype] timeout
drivers/scsi/qla2xxx/qla_target.c:5303:25: sparse: got restricted __le16 [usertype]
drivers/scsi/qla2xxx/qla_target.c:5315:35: sparse: sparse: cast from restricted __be16
>> drivers/scsi/qla2xxx/qla_target.c:5315:35: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] val @@ got resunsigned short [usertype] val @@
>> drivers/scsi/qla2xxx/qla_target.c:5315:35: sparse: expected unsigned short [usertype] val
>> drivers/scsi/qla2xxx/qla_target.c:5315:35: sparse: got restricted __be16 [usertype] ox_id
drivers/scsi/qla2xxx/qla_target.c:5315:35: sparse: sparse: cast from restricted __be16
drivers/scsi/qla2xxx/qla_target.c:5315:35: sparse: sparse: too many warnings
vim +1100 drivers/scsi/qla2xxx/qla_init.c
726b85487067d7 Quinn Tran 2017-01-19 1057
726b85487067d7 Quinn Tran 2017-01-19 1058 int qla24xx_async_gnl(struct scsi_qla_host *vha, fc_port_t *fcport)
726b85487067d7 Quinn Tran 2017-01-19 1059 {
726b85487067d7 Quinn Tran 2017-01-19 1060 srb_t *sp;
726b85487067d7 Quinn Tran 2017-01-19 1061 struct srb_iocb *mbx;
726b85487067d7 Quinn Tran 2017-01-19 1062 int rval = QLA_FUNCTION_FAILED;
726b85487067d7 Quinn Tran 2017-01-19 1063 unsigned long flags;
c84bd2e32945a9 Bart Van Assche 2019-12-01 1064 __le16 *mb;
726b85487067d7 Quinn Tran 2017-01-19 1065
3dbec59bdf63f3 Quinn Tran 2017-12-28 1066 if (!vha->flags.online || (fcport->flags & FCF_ASYNC_SENT))
3dbec59bdf63f3 Quinn Tran 2017-12-28 1067 return rval;
726b85487067d7 Quinn Tran 2017-01-19 1068
83548fe2fcbb78 Quinn Tran 2017-06-02 1069 ql_dbg(ql_dbg_disc, vha, 0x20d9,
726b85487067d7 Quinn Tran 2017-01-19 1070 "Async-gnlist WWPN %8phC \n", fcport->port_name);
726b85487067d7 Quinn Tran 2017-01-19 1071
0aca77843e2803 Quinn Tran 2018-09-04 1072 spin_lock_irqsave(&vha->hw->tgt.sess_lock, flags);
0aca77843e2803 Quinn Tran 2018-09-04 1073 fcport->flags |= FCF_ASYNC_SENT;
726b85487067d7 Quinn Tran 2017-01-19 1074 fcport->disc_state = DSC_GNL;
726b85487067d7 Quinn Tran 2017-01-19 1075 fcport->last_rscn_gen = fcport->rscn_gen;
726b85487067d7 Quinn Tran 2017-01-19 1076 fcport->last_login_gen = fcport->login_gen;
726b85487067d7 Quinn Tran 2017-01-19 1077
726b85487067d7 Quinn Tran 2017-01-19 1078 list_add_tail(&fcport->gnl_entry, &vha->gnl.fcports);
0aca77843e2803 Quinn Tran 2018-09-04 1079 if (vha->gnl.sent) {
0aca77843e2803 Quinn Tran 2018-09-04 1080 spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags);
0aca77843e2803 Quinn Tran 2018-09-04 1081 return QLA_SUCCESS;
0aca77843e2803 Quinn Tran 2018-09-04 1082 }
0aca77843e2803 Quinn Tran 2018-09-04 1083 vha->gnl.sent = 1;
0aca77843e2803 Quinn Tran 2018-09-04 1084 spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags);
726b85487067d7 Quinn Tran 2017-01-19 1085
726b85487067d7 Quinn Tran 2017-01-19 1086 sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
726b85487067d7 Quinn Tran 2017-01-19 1087 if (!sp)
726b85487067d7 Quinn Tran 2017-01-19 1088 goto done;
3dbec59bdf63f3 Quinn Tran 2017-12-28 1089
726b85487067d7 Quinn Tran 2017-01-19 1090 sp->type = SRB_MB_IOCB;
726b85487067d7 Quinn Tran 2017-01-19 1091 sp->name = "gnlist";
726b85487067d7 Quinn Tran 2017-01-19 1092 sp->gen1 = fcport->rscn_gen;
726b85487067d7 Quinn Tran 2017-01-19 1093 sp->gen2 = fcport->login_gen;
726b85487067d7 Quinn Tran 2017-01-19 1094
e74e7d95878d79 Ben Hutchings 2018-03-20 1095 mbx = &sp->u.iocb_cmd;
e74e7d95878d79 Ben Hutchings 2018-03-20 1096 mbx->timeout = qla2x00_async_iocb_timeout;
726b85487067d7 Quinn Tran 2017-01-19 1097 qla2x00_init_timer(sp, qla2x00_get_async_timeout(vha)+2);
726b85487067d7 Quinn Tran 2017-01-19 1098
726b85487067d7 Quinn Tran 2017-01-19 1099 mb = sp->u.iocb_cmd.u.mbx.out_mb;
726b85487067d7 Quinn Tran 2017-01-19 @1100 mb[0] = MBC_PORT_NODE_NAME_LIST;
726b85487067d7 Quinn Tran 2017-01-19 1101 mb[1] = BIT_2 | BIT_3;
726b85487067d7 Quinn Tran 2017-01-19 @1102 mb[2] = MSW(vha->gnl.ldma);
726b85487067d7 Quinn Tran 2017-01-19 @1103 mb[3] = LSW(vha->gnl.ldma);
726b85487067d7 Quinn Tran 2017-01-19 @1104 mb[6] = MSW(MSD(vha->gnl.ldma));
726b85487067d7 Quinn Tran 2017-01-19 1105 mb[7] = LSW(MSD(vha->gnl.ldma));
726b85487067d7 Quinn Tran 2017-01-19 @1106 mb[8] = vha->gnl.size;
726b85487067d7 Quinn Tran 2017-01-19 @1107 mb[9] = vha->vp_idx;
726b85487067d7 Quinn Tran 2017-01-19 1108
726b85487067d7 Quinn Tran 2017-01-19 1109 sp->done = qla24xx_async_gnl_sp_done;
726b85487067d7 Quinn Tran 2017-01-19 1110
83548fe2fcbb78 Quinn Tran 2017-06-02 1111 ql_dbg(ql_dbg_disc, vha, 0x20da,
726b85487067d7 Quinn Tran 2017-01-19 1112 "Async-%s - OUT WWPN %8phC hndl %x\n",
726b85487067d7 Quinn Tran 2017-01-19 1113 sp->name, fcport->port_name, sp->handle);
726b85487067d7 Quinn Tran 2017-01-19 1114
f233e8c000c6ff Bill Kuzeja 2019-02-14 1115 rval = qla2x00_start_sp(sp);
f233e8c000c6ff Bill Kuzeja 2019-02-14 1116 if (rval != QLA_SUCCESS)
f233e8c000c6ff Bill Kuzeja 2019-02-14 1117 goto done_free_sp;
f233e8c000c6ff Bill Kuzeja 2019-02-14 1118
726b85487067d7 Quinn Tran 2017-01-19 1119 return rval;
726b85487067d7 Quinn Tran 2017-01-19 1120
726b85487067d7 Quinn Tran 2017-01-19 1121 done_free_sp:
25ff6af10562cf Joe Carnuccio 2017-01-19 1122 sp->free(sp);
726b85487067d7 Quinn Tran 2017-01-19 1123 fcport->flags &= ~FCF_ASYNC_SENT;
3dbec59bdf63f3 Quinn Tran 2017-12-28 1124 done:
726b85487067d7 Quinn Tran 2017-01-19 1125 return rval;
726b85487067d7 Quinn Tran 2017-01-19 1126 }
726b85487067d7 Quinn Tran 2017-01-19 1127
:::::: The code at line 1100 was first introduced by commit
:::::: 726b85487067d7f5b23495bc33c484b8517c4074 qla2xxx: Add framework for async fabric discovery
:::::: TO: Quinn Tran <quinn.tran(a)cavium.com>
:::::: CC: Nicholas Bellinger <nab(a)linux-iscsi.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 4 months
[bvanassche:scsi-for-next 10/10] drivers/scsi/qla2xxx/qla_isr.c:2340:2: error: duplicate case value
by kbuild test robot
tree: https://github.com/bvanassche/linux scsi-for-next
head: c84bd2e32945a9e4b2afc600ed4dc3ea0ec89f6d
commit: c84bd2e32945a9e4b2afc600ed4dc3ea0ec89f6d [10/10] qla2xxx: Fix endianness annotations
config: powerpc-defconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 7.4.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout c84bd2e32945a9e4b2afc600ed4dc3ea0ec89f6d
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/scsi/qla2xxx/qla_isr.c: In function 'qla25xx_process_bidir_status_iocb':
>> drivers/scsi/qla2xxx/qla_isr.c:2340:2: error: duplicate case value
case CS_BIDIR_RD_OVERRUN:
^~~~
drivers/scsi/qla2xxx/qla_isr.c:2327:2: note: previously used here
case CS_DATA_OVERRUN:
^~~~
drivers/scsi/qla2xxx/qla_isr.c:2361:2: error: duplicate case value
case CS_BIDIR_RD_UNDERRUN:
^~~~
drivers/scsi/qla2xxx/qla_isr.c:2334:2: note: previously used here
case CS_DATA_UNDERRUN:
^~~~
vim +2340 drivers/scsi/qla2xxx/qla_isr.c
bad750028917a7 Arun Easi 2010-05-04 2265
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2266 static void
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2267 qla25xx_process_bidir_status_iocb(scsi_qla_host_t *vha, void *pkt,
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2268 struct req_que *req, uint32_t index)
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2269 {
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2270 struct qla_hw_data *ha = vha->hw;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2271 srb_t *sp;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2272 uint16_t comp_status;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2273 uint16_t scsi_status;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2274 uint16_t thread_id;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2275 uint32_t rval = EXT_STATUS_OK;
75cc8cfc6e13d4 Johannes Thumshirn 2016-11-17 2276 struct bsg_job *bsg_job = NULL;
01e0e15c8b3b32 Johannes Thumshirn 2016-11-17 2277 struct fc_bsg_request *bsg_request;
01e0e15c8b3b32 Johannes Thumshirn 2016-11-17 2278 struct fc_bsg_reply *bsg_reply;
1a20719e074ada Bart Van Assche 2019-08-08 2279 sts_entry_t *sts = pkt;
1a20719e074ada Bart Van Assche 2019-08-08 2280 struct sts_entry_24xx *sts24 = pkt;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2281
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2282 /* Validate handle. */
8d93f5502221cc Chad Dupuis 2013-01-30 2283 if (index >= req->num_outstanding_cmds) {
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2284 ql_log(ql_log_warn, vha, 0x70af,
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2285 "Invalid SCSI completion handle 0x%x.\n", index);
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2286 set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags);
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2287 return;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2288 }
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2289
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2290 sp = req->outstanding_cmds[index];
01e0e15c8b3b32 Johannes Thumshirn 2016-11-17 2291 if (!sp) {
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2292 ql_log(ql_log_warn, vha, 0x70b0,
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2293 "Req:%d: Invalid ISP SCSI completion handle(0x%x)\n",
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2294 req->id, index);
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2295
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2296 set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags);
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2297 return;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2298 }
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2299
01e0e15c8b3b32 Johannes Thumshirn 2016-11-17 2300 /* Free outstanding command slot. */
01e0e15c8b3b32 Johannes Thumshirn 2016-11-17 2301 req->outstanding_cmds[index] = NULL;
01e0e15c8b3b32 Johannes Thumshirn 2016-11-17 2302 bsg_job = sp->u.bsg_job;
01e0e15c8b3b32 Johannes Thumshirn 2016-11-17 2303 bsg_request = bsg_job->request;
01e0e15c8b3b32 Johannes Thumshirn 2016-11-17 2304 bsg_reply = bsg_job->reply;
01e0e15c8b3b32 Johannes Thumshirn 2016-11-17 2305
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2306 if (IS_FWI2_CAPABLE(ha)) {
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2307 comp_status = le16_to_cpu(sts24->comp_status);
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2308 scsi_status = le16_to_cpu(sts24->scsi_status) & SS_MASK;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2309 } else {
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2310 comp_status = le16_to_cpu(sts->comp_status);
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2311 scsi_status = le16_to_cpu(sts->scsi_status) & SS_MASK;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2312 }
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2313
01e0e15c8b3b32 Johannes Thumshirn 2016-11-17 2314 thread_id = bsg_request->rqst_data.h_vendor.vendor_cmd[1];
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2315 switch (comp_status) {
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2316 case CS_COMPLETE:
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2317 if (scsi_status == 0) {
01e0e15c8b3b32 Johannes Thumshirn 2016-11-17 2318 bsg_reply->reply_payload_rcv_len =
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2319 bsg_job->reply_payload.payload_len;
fabbb8df8eba6f Joe Carnuccio 2013-08-27 2320 vha->qla_stats.input_bytes +=
01e0e15c8b3b32 Johannes Thumshirn 2016-11-17 2321 bsg_reply->reply_payload_rcv_len;
fabbb8df8eba6f Joe Carnuccio 2013-08-27 2322 vha->qla_stats.input_requests++;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2323 rval = EXT_STATUS_OK;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2324 }
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2325 goto done;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2326
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2327 case CS_DATA_OVERRUN:
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2328 ql_dbg(ql_dbg_user, vha, 0x70b1,
5a68a1c29fd656 Milan P Gandhi 2017-03-31 2329 "Command completed with data overrun thread_id=%d\n",
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2330 thread_id);
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2331 rval = EXT_STATUS_DATA_OVERRUN;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2332 break;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2333
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2334 case CS_DATA_UNDERRUN:
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2335 ql_dbg(ql_dbg_user, vha, 0x70b2,
5a68a1c29fd656 Milan P Gandhi 2017-03-31 2336 "Command completed with data underrun thread_id=%d\n",
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2337 thread_id);
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2338 rval = EXT_STATUS_DATA_UNDERRUN;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2339 break;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 @2340 case CS_BIDIR_RD_OVERRUN:
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2341 ql_dbg(ql_dbg_user, vha, 0x70b3,
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2342 "Command completed with read data overrun thread_id=%d\n",
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2343 thread_id);
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2344 rval = EXT_STATUS_DATA_OVERRUN;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2345 break;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2346
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2347 case CS_BIDIR_RD_WR_OVERRUN:
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2348 ql_dbg(ql_dbg_user, vha, 0x70b4,
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2349 "Command completed with read and write data overrun "
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2350 "thread_id=%d\n", thread_id);
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2351 rval = EXT_STATUS_DATA_OVERRUN;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2352 break;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2353
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2354 case CS_BIDIR_RD_OVERRUN_WR_UNDERRUN:
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2355 ql_dbg(ql_dbg_user, vha, 0x70b5,
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2356 "Command completed with read data over and write data "
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2357 "underrun thread_id=%d\n", thread_id);
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2358 rval = EXT_STATUS_DATA_OVERRUN;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2359 break;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2360
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2361 case CS_BIDIR_RD_UNDERRUN:
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2362 ql_dbg(ql_dbg_user, vha, 0x70b6,
5a68a1c29fd656 Milan P Gandhi 2017-03-31 2363 "Command completed with read data underrun "
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2364 "thread_id=%d\n", thread_id);
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2365 rval = EXT_STATUS_DATA_UNDERRUN;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2366 break;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2367
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2368 case CS_BIDIR_RD_UNDERRUN_WR_OVERRUN:
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2369 ql_dbg(ql_dbg_user, vha, 0x70b7,
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2370 "Command completed with read data under and write data "
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2371 "overrun thread_id=%d\n", thread_id);
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2372 rval = EXT_STATUS_DATA_UNDERRUN;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2373 break;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2374
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2375 case CS_BIDIR_RD_WR_UNDERRUN:
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2376 ql_dbg(ql_dbg_user, vha, 0x70b8,
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2377 "Command completed with read and write data underrun "
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2378 "thread_id=%d\n", thread_id);
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2379 rval = EXT_STATUS_DATA_UNDERRUN;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2380 break;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2381
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2382 case CS_BIDIR_DMA:
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2383 ql_dbg(ql_dbg_user, vha, 0x70b9,
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2384 "Command completed with data DMA error thread_id=%d\n",
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2385 thread_id);
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2386 rval = EXT_STATUS_DMA_ERR;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2387 break;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2388
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2389 case CS_TIMEOUT:
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2390 ql_dbg(ql_dbg_user, vha, 0x70ba,
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2391 "Command completed with timeout thread_id=%d\n",
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2392 thread_id);
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2393 rval = EXT_STATUS_TIMEOUT;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2394 break;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2395 default:
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2396 ql_dbg(ql_dbg_user, vha, 0x70bb,
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2397 "Command completed with completion status=0x%x "
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2398 "thread_id=%d\n", comp_status, thread_id);
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2399 rval = EXT_STATUS_ERR;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2400 break;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2401 }
01e0e15c8b3b32 Johannes Thumshirn 2016-11-17 2402 bsg_reply->reply_payload_rcv_len = 0;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2403
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2404 done:
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2405 /* Return the vendor specific reply to API */
01e0e15c8b3b32 Johannes Thumshirn 2016-11-17 2406 bsg_reply->reply_data.vendor_reply.vendor_rsp[0] = rval;
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2407 bsg_job->reply_len = sizeof(struct fc_bsg_reply);
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2408 /* Always return DID_OK, bsg will send the vendor specific response
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2409 * in this case only */
f7d5182c8fd9d2 Johannes Thumshirn 2018-04-09 2410 sp->done(sp, DID_OK << 16);
a9b6f722f62d0a Saurav Kashyap 2012-08-22 2411
:::::: The code at line 2340 was first introduced by commit
:::::: a9b6f722f62d0a302b980a4fdcdf9c9933955772 [SCSI] qla2xxx: Implementation of bidirectional.
:::::: TO: Saurav Kashyap <saurav.kashyap(a)qlogic.com>
:::::: CC: James Bottomley <JBottomley(a)Parallels.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 4 months
[zen-kernel-zen-kernel:5.4/muqss 1/19] kernel/sched/MuQSS.c:7071:85: error: 'cpu_llc_id' undeclared; did you mean 'sd_llc_id'?
by kbuild test robot
Hi Con,
FYI, the error/warning still remains.
tree: https://github.com/zen-kernel/zen-kernel 5.4/muqss
head: 530963db1905c4de80985b947858b391e1d363e7
commit: 7acac2e4000e75f3349106a8847cf1021651446b [1/19] MultiQueue Skiplist Scheduler v0.196.
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 7.4.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 7acac2e4000e75f3349106a8847cf1021651446b
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
kernel/sched/MuQSS.c:138:36: error: 'CONFIG_SHARERQ' undeclared here (not in a function); did you mean 'CONFIG_SHMEM'?
static int rqshare __read_mostly = CONFIG_SHARERQ; /* Default RQSHARE_MC */
^~~~~~~~~~~~~~
CONFIG_SHMEM
In file included from include/asm-generic/percpu.h:7:0,
from arch/ia64/include/asm/percpu.h:46,
from arch/ia64/include/asm/processor.h:76,
from arch/ia64/include/asm/thread_info.h:12,
from include/linux/thread_info.h:38,
from include/asm-generic/preempt.h:5,
from ./arch/ia64/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/percpu.h:6,
from include/linux/tick.h:10,
from include/linux/sched/isolation.h:6,
from kernel/sched/MuQSS.c:35:
kernel/sched/MuQSS.c: In function 'sched_init_smp':
>> kernel/sched/MuQSS.c:7071:85: error: 'cpu_llc_id' undeclared (first use in this function); did you mean 'sd_llc_id'?
printk(KERN_DEBUG "MuQSS CPU %d llc %d RQ order %d RQ %d llc %d\n", cpu, per_cpu(cpu_llc_id, cpu), i,
^
include/linux/percpu-defs.h:220:47: note: in definition of macro '__verify_pcpu_ptr'
const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
^~~
include/linux/percpu-defs.h:270:29: note: in expansion of macro 'per_cpu_ptr'
#define per_cpu(var, cpu) (*per_cpu_ptr(&(var), cpu))
^~~~~~~~~~~
kernel/sched/MuQSS.c:7071:77: note: in expansion of macro 'per_cpu'
printk(KERN_DEBUG "MuQSS CPU %d llc %d RQ order %d RQ %d llc %d\n", cpu, per_cpu(cpu_llc_id, cpu), i,
^~~~~~~
kernel/sched/MuQSS.c:7071:85: note: each undeclared identifier is reported only once for each function it appears in
printk(KERN_DEBUG "MuQSS CPU %d llc %d RQ order %d RQ %d llc %d\n", cpu, per_cpu(cpu_llc_id, cpu), i,
^
include/linux/percpu-defs.h:220:47: note: in definition of macro '__verify_pcpu_ptr'
const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
^~~
include/linux/percpu-defs.h:270:29: note: in expansion of macro 'per_cpu_ptr'
#define per_cpu(var, cpu) (*per_cpu_ptr(&(var), cpu))
^~~~~~~~~~~
kernel/sched/MuQSS.c:7071:77: note: in expansion of macro 'per_cpu'
printk(KERN_DEBUG "MuQSS CPU %d llc %d RQ order %d RQ %d llc %d\n", cpu, per_cpu(cpu_llc_id, cpu), i,
^~~~~~~
vim +7071 kernel/sched/MuQSS.c
6973
6974 local_irq_enable();
6975
6976 total_runqueues = 0;
6977 for_each_online_cpu(cpu) {
6978 int locality, total_rqs = 0, total_cpus = 0;
6979
6980 rq = cpu_rq(cpu);
6981 if (
6982 #ifdef CONFIG_SCHED_MC
6983 (rq->mc_leader == rq) &&
6984 #endif
6985 #ifdef CONFIG_SCHED_SMT
6986 (rq->smt_leader == rq) &&
6987 #endif
6988 (rq->smp_leader == rq)) {
6989 total_runqueues++;
6990 }
6991
6992 for (locality = LOCALITY_SAME; locality <= LOCALITY_DISTANT; locality++) {
6993 int selected_cpus[NR_CPUS], selected_cpu_cnt, selected_cpu_idx, test_cpu_idx, cpu_idx, best_locality, test_cpu;
6994 int ordered_cpus[NR_CPUS], ordered_cpus_idx;
6995
6996 ordered_cpus_idx = -1;
6997 selected_cpu_cnt = 0;
6998
6999 for_each_online_cpu(test_cpu) {
7000 if (cpu < num_online_cpus() / 2)
7001 other_cpu = cpu + test_cpu;
7002 else
7003 other_cpu = cpu - test_cpu;
7004 if (other_cpu < 0)
7005 other_cpu += num_online_cpus();
7006 else
7007 other_cpu %= num_online_cpus();
7008 /* gather CPUs of the same locality */
7009 if (rq->cpu_locality[other_cpu] == locality) {
7010 selected_cpus[selected_cpu_cnt] = other_cpu;
7011 selected_cpu_cnt++;
7012 }
7013 }
7014
7015 /* reserve first CPU as starting point */
7016 if (selected_cpu_cnt > 0) {
7017 ordered_cpus_idx++;
7018 ordered_cpus[ordered_cpus_idx] = selected_cpus[ordered_cpus_idx];
7019 selected_cpus[ordered_cpus_idx] = -1;
7020 }
7021
7022 /* take each CPU and sort it within the same locality based on each inter-CPU localities */
7023 for(test_cpu_idx = 1; test_cpu_idx < selected_cpu_cnt; test_cpu_idx++) {
7024 /* starting point with worst locality and current CPU */
7025 best_locality = LOCALITY_DISTANT;
7026 selected_cpu_idx = test_cpu_idx;
7027
7028 /* try to find the best locality within group */
7029 for(cpu_idx = 1; cpu_idx < selected_cpu_cnt; cpu_idx++) {
7030 /* if CPU has not been used and locality is better */
7031 if (selected_cpus[cpu_idx] > -1) {
7032 other_rq = cpu_rq(ordered_cpus[ordered_cpus_idx]);
7033 if (best_locality > other_rq->cpu_locality[selected_cpus[cpu_idx]]) {
7034 /* assign best locality and best CPU idx in array */
7035 best_locality = other_rq->cpu_locality[selected_cpus[cpu_idx]];
7036 selected_cpu_idx = cpu_idx;
7037 }
7038 }
7039 }
7040
7041 /* add our next best CPU to ordered list */
7042 ordered_cpus_idx++;
7043 ordered_cpus[ordered_cpus_idx] = selected_cpus[selected_cpu_idx];
7044 /* mark this CPU as used */
7045 selected_cpus[selected_cpu_idx] = -1;
7046 }
7047
7048 /* set up RQ and CPU orders */
7049 for (test_cpu = 0; test_cpu <= ordered_cpus_idx; test_cpu++) {
7050 other_rq = cpu_rq(ordered_cpus[test_cpu]);
7051 /* set up cpu orders */
7052 rq->cpu_order[total_cpus++] = other_rq;
7053 if (
7054 #ifdef CONFIG_SCHED_MC
7055 (other_rq->mc_leader == other_rq) &&
7056 #endif
7057 #ifdef CONFIG_SCHED_SMT
7058 (other_rq->smt_leader == other_rq) &&
7059 #endif
7060 (other_rq->smp_leader == other_rq)) {
7061 /* set up RQ orders */
7062 rq->rq_order[total_rqs++] = other_rq;
7063 }
7064 }
7065 }
7066 }
7067
7068 for_each_online_cpu(cpu) {
7069 rq = cpu_rq(cpu);
7070 for (i = 0; i < total_runqueues; i++) {
> 7071 printk(KERN_DEBUG "MuQSS CPU %d llc %d RQ order %d RQ %d llc %d\n", cpu, per_cpu(cpu_llc_id, cpu), i,
7072 rq->rq_order[i]->cpu, per_cpu(cpu_llc_id, rq->rq_order[i]->cpu));
7073 }
7074 }
7075
7076 for_each_online_cpu(cpu) {
7077 rq = cpu_rq(cpu);
7078 for (i = 0; i < num_online_cpus(); i++) {
7079 printk(KERN_DEBUG "MuQSS CPU %d llc %d CPU order %d RQ %d llc %d\n", cpu, per_cpu(cpu_llc_id, cpu), i,
7080 rq->cpu_order[i]->cpu, per_cpu(cpu_llc_id, rq->cpu_order[i]->cpu));
7081 }
7082 }
7083
7084 switch (rqshare) {
7085 case RQSHARE_ALL:
7086 /* This should only ever read 1 */
7087 printk(KERN_INFO "MuQSS runqueue share type ALL total runqueues: %d\n",
7088 total_runqueues);
7089 break;
7090 case RQSHARE_SMP:
7091 printk(KERN_INFO "MuQSS runqueue share type SMP total runqueues: %d\n",
7092 total_runqueues);
7093 break;
7094 case RQSHARE_MC:
7095 printk(KERN_INFO "MuQSS runqueue share type MC total runqueues: %d\n",
7096 total_runqueues);
7097 break;
7098 case RQSHARE_MC_LLC:
7099 printk(KERN_INFO "MuQSS runqueue share type LLC total runqueues: %d\n",
7100 total_runqueues);
7101 break;
7102 case RQSHARE_SMT:
7103 printk(KERN_INFO "MuQSS runqueue share type SMT total runqueues: %d\n",
7104 total_runqueues);
7105 break;
7106 case RQSHARE_NONE:
7107 printk(KERN_INFO "MuQSS runqueue share type NONE total runqueues: %d\n",
7108 total_runqueues);
7109 break;
7110 }
7111
7112 sched_smp_initialized = true;
7113 }
7114 #else
7115 void __init sched_init_smp(void)
7116 {
7117 sched_smp_initialized = true;
7118 }
7119 #endif /* CONFIG_SMP */
7120
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 4 months
[linux-next:master 13908/13922] arch/m68k/mm/kmap.c:76:24: error: passing argument 1 of 'pmd_offset' from incompatible pointer type
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: c165016bac2719e05794c216f9b6da730d68d1e3
commit: ce385197533e1cbf3ff0e055b7d680b8185f574d [13908/13922] m68k: mm: use pgtable-nopXd instead of 4level-fixup
config: m68k-multi_defconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 7.4.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout ce385197533e1cbf3ff0e055b7d680b8185f574d
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/m68k/mm/kmap.c: In function '__free_io_area':
>> arch/m68k/mm/kmap.c:76:24: error: passing argument 1 of 'pmd_offset' from incompatible pointer type [-Werror=incompatible-pointer-types]
pmd_dir = pmd_offset(pgd_dir, virtaddr);
^~~~~~~
In file included from arch/m68k/include/asm/pgtable_mm.h:151:0,
from arch/m68k/include/asm/pgtable.h:5,
from include/linux/mm.h:99,
from arch/m68k/mm/kmap.c:12:
arch/m68k/include/asm/motorola_pgtable.h:212:22: note: expected 'pud_t * {aka struct <anonymous> *}' but argument is of type 'pgd_t * {aka struct <anonymous> *}'
static inline pmd_t *pmd_offset(pud_t *dir, unsigned long address)
^~~~~~~~~~
arch/m68k/mm/kmap.c: In function 'kernel_set_cachemode':
>> arch/m68k/mm/kmap.c:348:2: error: #endif without #if
#endif
^~~~~
>> arch/m68k/mm/kmap.c:352:3: error: 'p4d_dir' undeclared (first use in this function); did you mean 'pmd_dir'?
p4d_dir = p4d_offset(pgd_dir, virtaddr);
^~~~~~~
pmd_dir
arch/m68k/mm/kmap.c:352:3: note: each undeclared identifier is reported only once for each function it appears in
>> arch/m68k/mm/kmap.c:353:3: error: 'pud_dir' undeclared (first use in this function); did you mean 'p4d_dir'?
pud_dir = pud_offset(p4d_dir, virtaddr);
^~~~~~~
p4d_dir
cc1: some warnings being treated as errors
vim +/pmd_offset +76 arch/m68k/mm/kmap.c
1bccc43c1010f2 Greg Ungerer 2011-03-28 @12 #include <linux/mm.h>
1bccc43c1010f2 Greg Ungerer 2011-03-28 13 #include <linux/kernel.h>
1bccc43c1010f2 Greg Ungerer 2011-03-28 14 #include <linux/string.h>
1bccc43c1010f2 Greg Ungerer 2011-03-28 15 #include <linux/types.h>
1bccc43c1010f2 Greg Ungerer 2011-03-28 16 #include <linux/slab.h>
1bccc43c1010f2 Greg Ungerer 2011-03-28 17 #include <linux/vmalloc.h>
1bccc43c1010f2 Greg Ungerer 2011-03-28 18
1bccc43c1010f2 Greg Ungerer 2011-03-28 19 #include <asm/setup.h>
1bccc43c1010f2 Greg Ungerer 2011-03-28 20 #include <asm/segment.h>
1bccc43c1010f2 Greg Ungerer 2011-03-28 21 #include <asm/page.h>
1bccc43c1010f2 Greg Ungerer 2011-03-28 22 #include <asm/pgalloc.h>
1bccc43c1010f2 Greg Ungerer 2011-03-28 23 #include <asm/io.h>
1bccc43c1010f2 Greg Ungerer 2011-03-28 24
1bccc43c1010f2 Greg Ungerer 2011-03-28 25 #undef DEBUG
1bccc43c1010f2 Greg Ungerer 2011-03-28 26
1bccc43c1010f2 Greg Ungerer 2011-03-28 27 #define PTRTREESIZE (256*1024)
1bccc43c1010f2 Greg Ungerer 2011-03-28 28
1bccc43c1010f2 Greg Ungerer 2011-03-28 29 /*
1bccc43c1010f2 Greg Ungerer 2011-03-28 30 * For 040/060 we can use the virtual memory area like other architectures,
f6fc30dbb720e3 Geert Uytterhoeven 2013-12-17 31 * but for 020/030 we want to use early termination page descriptors and we
1bccc43c1010f2 Greg Ungerer 2011-03-28 32 * can't mix this with normal page descriptors, so we have to copy that code
f6fc30dbb720e3 Geert Uytterhoeven 2013-12-17 33 * (mm/vmalloc.c) and return appropriately aligned addresses.
1bccc43c1010f2 Greg Ungerer 2011-03-28 34 */
1bccc43c1010f2 Greg Ungerer 2011-03-28 35
1bccc43c1010f2 Greg Ungerer 2011-03-28 36 #ifdef CPU_M68040_OR_M68060_ONLY
1bccc43c1010f2 Greg Ungerer 2011-03-28 37
1bccc43c1010f2 Greg Ungerer 2011-03-28 38 #define IO_SIZE PAGE_SIZE
1bccc43c1010f2 Greg Ungerer 2011-03-28 39
1bccc43c1010f2 Greg Ungerer 2011-03-28 40 static inline struct vm_struct *get_io_area(unsigned long size)
1bccc43c1010f2 Greg Ungerer 2011-03-28 41 {
1bccc43c1010f2 Greg Ungerer 2011-03-28 42 return get_vm_area(size, VM_IOREMAP);
1bccc43c1010f2 Greg Ungerer 2011-03-28 43 }
1bccc43c1010f2 Greg Ungerer 2011-03-28 44
1bccc43c1010f2 Greg Ungerer 2011-03-28 45
1bccc43c1010f2 Greg Ungerer 2011-03-28 46 static inline void free_io_area(void *addr)
1bccc43c1010f2 Greg Ungerer 2011-03-28 47 {
1bccc43c1010f2 Greg Ungerer 2011-03-28 48 vfree((void *)(PAGE_MASK & (unsigned long)addr));
1bccc43c1010f2 Greg Ungerer 2011-03-28 49 }
1bccc43c1010f2 Greg Ungerer 2011-03-28 50
^1da177e4c3f41 Linus Torvalds 2005-04-16 51 #else
1bccc43c1010f2 Greg Ungerer 2011-03-28 52
1bccc43c1010f2 Greg Ungerer 2011-03-28 53 #define IO_SIZE (256*1024)
1bccc43c1010f2 Greg Ungerer 2011-03-28 54
1bccc43c1010f2 Greg Ungerer 2011-03-28 55 static struct vm_struct *iolist;
1bccc43c1010f2 Greg Ungerer 2011-03-28 56
076863473c0cdb Christoph Hellwig 2019-08-13 57 /*
076863473c0cdb Christoph Hellwig 2019-08-13 58 * __free_io_area unmaps nearly everything, so be careful
076863473c0cdb Christoph Hellwig 2019-08-13 59 * Currently it doesn't free pointer/page tables anymore but this
076863473c0cdb Christoph Hellwig 2019-08-13 60 * wasn't used anyway and might be added later.
076863473c0cdb Christoph Hellwig 2019-08-13 61 */
076863473c0cdb Christoph Hellwig 2019-08-13 62 static void __free_io_area(void *addr, unsigned long size)
076863473c0cdb Christoph Hellwig 2019-08-13 63 {
076863473c0cdb Christoph Hellwig 2019-08-13 64 unsigned long virtaddr = (unsigned long)addr;
076863473c0cdb Christoph Hellwig 2019-08-13 65 pgd_t *pgd_dir;
076863473c0cdb Christoph Hellwig 2019-08-13 66 pmd_t *pmd_dir;
076863473c0cdb Christoph Hellwig 2019-08-13 67 pte_t *pte_dir;
076863473c0cdb Christoph Hellwig 2019-08-13 68
076863473c0cdb Christoph Hellwig 2019-08-13 69 while ((long)size > 0) {
076863473c0cdb Christoph Hellwig 2019-08-13 70 pgd_dir = pgd_offset_k(virtaddr);
076863473c0cdb Christoph Hellwig 2019-08-13 71 if (pgd_bad(*pgd_dir)) {
076863473c0cdb Christoph Hellwig 2019-08-13 72 printk("iounmap: bad pgd(%08lx)\n", pgd_val(*pgd_dir));
076863473c0cdb Christoph Hellwig 2019-08-13 73 pgd_clear(pgd_dir);
076863473c0cdb Christoph Hellwig 2019-08-13 74 return;
076863473c0cdb Christoph Hellwig 2019-08-13 75 }
076863473c0cdb Christoph Hellwig 2019-08-13 @76 pmd_dir = pmd_offset(pgd_dir, virtaddr);
076863473c0cdb Christoph Hellwig 2019-08-13 77
076863473c0cdb Christoph Hellwig 2019-08-13 78 if (CPU_IS_020_OR_030) {
076863473c0cdb Christoph Hellwig 2019-08-13 79 int pmd_off = (virtaddr/PTRTREESIZE) & 15;
076863473c0cdb Christoph Hellwig 2019-08-13 80 int pmd_type = pmd_dir->pmd[pmd_off] & _DESCTYPE_MASK;
076863473c0cdb Christoph Hellwig 2019-08-13 81
076863473c0cdb Christoph Hellwig 2019-08-13 82 if (pmd_type == _PAGE_PRESENT) {
076863473c0cdb Christoph Hellwig 2019-08-13 83 pmd_dir->pmd[pmd_off] = 0;
076863473c0cdb Christoph Hellwig 2019-08-13 84 virtaddr += PTRTREESIZE;
076863473c0cdb Christoph Hellwig 2019-08-13 85 size -= PTRTREESIZE;
076863473c0cdb Christoph Hellwig 2019-08-13 86 continue;
076863473c0cdb Christoph Hellwig 2019-08-13 87 } else if (pmd_type == 0)
076863473c0cdb Christoph Hellwig 2019-08-13 88 continue;
076863473c0cdb Christoph Hellwig 2019-08-13 89 }
076863473c0cdb Christoph Hellwig 2019-08-13 90
076863473c0cdb Christoph Hellwig 2019-08-13 91 if (pmd_bad(*pmd_dir)) {
076863473c0cdb Christoph Hellwig 2019-08-13 92 printk("iounmap: bad pmd (%08lx)\n", pmd_val(*pmd_dir));
076863473c0cdb Christoph Hellwig 2019-08-13 93 pmd_clear(pmd_dir);
076863473c0cdb Christoph Hellwig 2019-08-13 94 return;
076863473c0cdb Christoph Hellwig 2019-08-13 95 }
076863473c0cdb Christoph Hellwig 2019-08-13 96 pte_dir = pte_offset_kernel(pmd_dir, virtaddr);
076863473c0cdb Christoph Hellwig 2019-08-13 97
076863473c0cdb Christoph Hellwig 2019-08-13 98 pte_val(*pte_dir) = 0;
076863473c0cdb Christoph Hellwig 2019-08-13 99 virtaddr += PAGE_SIZE;
076863473c0cdb Christoph Hellwig 2019-08-13 100 size -= PAGE_SIZE;
076863473c0cdb Christoph Hellwig 2019-08-13 101 }
076863473c0cdb Christoph Hellwig 2019-08-13 102
076863473c0cdb Christoph Hellwig 2019-08-13 103 flush_tlb_all();
076863473c0cdb Christoph Hellwig 2019-08-13 104 }
076863473c0cdb Christoph Hellwig 2019-08-13 105
:::::: The code at line 76 was first introduced by commit
:::::: 076863473c0cdbf7fdcbf97e1878028ccde3b4ec m68k: rename __iounmap and mark it static
:::::: TO: Christoph Hellwig <hch(a)lst.de>
:::::: CC: Christoph Hellwig <hch(a)lst.de>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 4 months
Re: [PATCH] Bluetooth: Expose debugfs entry to force resolvable private address
by kbuild test robot
Hi Mike,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on bluetooth-next/master]
[cannot apply to bluetooth/master v5.4 v5.4-rc8 v5.4-rc7 next-20191129 v5.4 next-20191129]
[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-Ryan/Bluetooth-Expose-debug...
base: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git master
config: sparc64-allmodconfig (attached as .config)
compiler: sparc64-linux-gcc (GCC) 7.4.0
reproduce:
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
GCC_VERSION=7.4.0 make.cross ARCH=sparc64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
net/bluetooth/hci_debugfs.c: In function 'force_rpa_write':
>> net/bluetooth/hci_debugfs.c:741:6: error: implicit declaration of function 'str2ba'; did you mean 'strspn'? [-Werror=implicit-function-declaration]
if (str2ba(buf, &rpa))
^~~~~~
strspn
cc1: some warnings being treated as errors
vim +741 net/bluetooth/hci_debugfs.c
725
726 static ssize_t force_rpa_write(struct file *file, const char __user *user_buf,
727 size_t count, loff_t *ppos)
728 {
729 struct hci_dev *hdev = file->private_data;
730 char buf[18];
731 size_t buf_size = min(count, (sizeof(buf)-1));
732 bdaddr_t rpa;
733
734 if (test_bit(HCI_UP, &hdev->flags))
735 return -EBUSY;
736
737 if (copy_from_user(buf, user_buf, buf_size))
738 return -EFAULT;
739
740 buf[buf_size] = '\0';
> 741 if (str2ba(buf, &rpa))
742 return -EINVAL;
743
744 /* The two most significant bits shall be 01 unless the address is
745 * 00:00:00:00:00:00.
746 */
747 if ((rpa.b[5] & 0xc0) != 0x40 && bacmp(&rpa, BDADDR_ANY))
748 return -EINVAL;
749
750 if (!bacmp(&hdev->force_rpa, &rpa))
751 return -EALREADY;
752
753 bacpy(&hdev->force_rpa, &rpa);
754
755 return count;
756 }
757
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 4 months
[tobetter-linux:odroidxu4-5.4.y 35/74] make[5]: *** No rule to make target 'drivers/gpu/arm/midgard/backend/gpu/mali_kbase_model_dummy.o', needed by 'drivers/gpu/arm/midgard/mali_kbase.o'.
by kbuild test robot
Hi memeka,
First bad commit (maybe != root cause):
tree: https://github.com/tobetter/linux odroidxu4-5.4.y
head: 3f6a9e533ea5b61bc00304f73365796aeba1756b
commit: dd620910dca29e8d479c2786f390a2017bb5d795 [35/74] mali/midgard: enable driver config
config: i386-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.5.0-1) 7.5.0
reproduce:
git checkout dd620910dca29e8d479c2786f390a2017bb5d795
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
make[5]: *** [drivers/gpu/arm/midgard/tests] Error 2
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_device.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_cache_policy.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_mem.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_mmu.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_ctx_sched.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_jd.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_gpuprops.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_jd_debugfs.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_jm.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_js.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_js_ctx_attr.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_event.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_context.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_pm.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_config.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_vinstr.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_10969_workaround.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_softjobs.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_hw.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_utility.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_trace_timeline.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_debug.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_gpu_memory_debugfs.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_mem_linux.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_core_linux.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_replay.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_mem_profile_debugfs.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_mmu_mode_lpae.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_mmu_mode_aarch64.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_disjoint_events.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_gator_api.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_debug_mem_view.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_debug_job_fault.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_mem_pool.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_mem_pool_debugfs.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_tlstream.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_as_fault_debugfs.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_regs_history_debugfs.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/platform/devicetree/mali_kbase_config_devicetree.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/ipa/mali_kbase_ipa_simple.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/platform/devicetree/mali_kbase_runtime_pm.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/ipa/mali_kbase_ipa.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/ipa/mali_kbase_ipa_debugfs.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_dma_fence.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_fence.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_sync_file.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/mali_kbase_sync_common.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/backend/gpu/mali_kbase_cache_policy_backend.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/backend/gpu/mali_kbase_device_hw.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/backend/gpu/mali_kbase_gpu.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/backend/gpu/mali_kbase_gpuprops_backend.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/backend/gpu/mali_kbase_debug_job_fault_backend.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/backend/gpu/mali_kbase_irq_linux.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/backend/gpu/mali_kbase_instr_backend.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/backend/gpu/mali_kbase_jm_as.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/backend/gpu/mali_kbase_jm_hw.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/backend/gpu/mali_kbase_jm_rb.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/backend/gpu/mali_kbase_js_affinity.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/backend/gpu/mali_kbase_js_backend.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/backend/gpu/mali_kbase_mmu_hw_direct.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/backend/gpu/mali_kbase_pm_backend.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/backend/gpu/mali_kbase_pm_driver.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/backend/gpu/mali_kbase_pm_ca.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/backend/gpu/mali_kbase_pm_metrics.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/backend/gpu/mali_kbase_pm_ca_fixed.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/backend/gpu/mali_kbase_pm_always_on.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/backend/gpu/mali_kbase_pm_coarse_demand.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/backend/gpu/mali_kbase_pm_demand.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/backend/gpu/mali_kbase_pm_policy.o] Error 1
>> make[5]: *** No rule to make target 'drivers/gpu/arm/midgard/backend/gpu/mali_kbase_model_dummy.o', needed by 'drivers/gpu/arm/midgard/mali_kbase.o'.
>> make[5]: *** No rule to make target 'drivers/gpu/arm/midgard/backend/gpu/mali_kbase_model_linux.o', needed by 'drivers/gpu/arm/midgard/mali_kbase.o'.
>> make[5]: *** No rule to make target 'drivers/gpu/arm/midgard/backend/gpu/mali_kbase_model_error_generator.o', needed by 'drivers/gpu/arm/midgard/mali_kbase.o'.
make[5]: *** [drivers/gpu/arm/midgard/backend/gpu/mali_kbase_time.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/backend/gpu/mali_kbase_pm_ca_devfreq.o] Error 1
make[5]: *** [drivers/gpu/arm/midgard/backend/gpu/mali_kbase_devfreq.o] Error 1
make[5]: Target '__build' not remade because of errors.
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 4 months
[zen-kernel-zen-kernel:5.4/muqss 1/19] kernel/sched/MuQSS.h:764:16: sparse: sparse: incompatible types in comparison expression (different address spaces):
by kbuild test robot
tree: https://github.com/zen-kernel/zen-kernel 5.4/muqss
head: 530963db1905c4de80985b947858b391e1d363e7
commit: 7acac2e4000e75f3349106a8847cf1021651446b [1/19] MultiQueue Skiplist Scheduler v0.196.
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-82-g68ac1bb-dirty
git checkout 7acac2e4000e75f3349106a8847cf1021651446b
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> kernel/sched/MuQSS.h:764:16: sparse: sparse: incompatible types in comparison expression (different address spaces):
>> kernel/sched/MuQSS.h:764:16: sparse: struct update_util_data [noderef] <asn:4> *
>> kernel/sched/MuQSS.h:764:16: sparse: struct update_util_data *
>> kernel/sched/MuQSS.c:1713:17: sparse: sparse: incompatible types in comparison expression (different address spaces):
>> kernel/sched/MuQSS.c:1713:17: sparse: struct sched_domain [noderef] <asn:4> *
>> kernel/sched/MuQSS.c:1713:17: sparse: struct sched_domain *
kernel/sched/MuQSS.c:1854:27: sparse: sparse: incompatible types in comparison expression (different address spaces):
>> kernel/sched/MuQSS.c:1854:27: sparse: struct task_struct [noderef] <asn:4> *
>> kernel/sched/MuQSS.c:1854:27: sparse: struct task_struct *
>> kernel/sched/MuQSS.c:2388:16: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct task_struct *parent @@ got struct task_structstruct task_struct *parent @@
>> kernel/sched/MuQSS.c:2388:16: sparse: expected struct task_struct *parent
>> kernel/sched/MuQSS.c:2388:16: sparse: got struct task_struct [noderef] <asn:4> *parent
kernel/sched/MuQSS.c:4124:17: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/MuQSS.c:4124:17: sparse: struct task_struct [noderef] <asn:4> *
kernel/sched/MuQSS.c:4124:17: sparse: struct task_struct *
kernel/sched/MuQSS.c:5975:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/MuQSS.c:5975:9: sparse: struct task_struct [noderef] <asn:4> *
kernel/sched/MuQSS.c:5975:9: sparse: struct task_struct *
kernel/sched/MuQSS.c:6053:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/MuQSS.c:6053:9: sparse: struct sched_domain [noderef] <asn:4> *
kernel/sched/MuQSS.c:6053:9: sparse: struct sched_domain *
kernel/sched/MuQSS.c:6460:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/MuQSS.c:6460:9: sparse: struct sched_domain [noderef] <asn:4> *
kernel/sched/MuQSS.c:6460:9: sparse: struct sched_domain *
kernel/sched/MuQSS.c:6467:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/MuQSS.c:6467:9: sparse: struct sched_domain [noderef] <asn:4> *
kernel/sched/MuQSS.c:6467:9: sparse: struct sched_domain *
kernel/sched/MuQSS.c:6816:17: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/MuQSS.c:6816:17: sparse: struct sched_domain [noderef] <asn:4> *
kernel/sched/MuQSS.c:6816:17: sparse: struct sched_domain *
>> kernel/sched/MuQSS.c:2772:27: sparse: sparse: context imbalance in 'schedule_tail' - unexpected unlock
>> kernel/sched/MuQSS.c:3741:43: sparse: sparse: context imbalance in '__schedule' - different lock contexts for basic block
>> kernel/sched/MuQSS.c:431:9: sparse: sparse: context imbalance in 'sched_init_smp' - different lock contexts for basic block
kernel/sched/MuQSS.c:7598:10: sparse: sparse: Initializer entry defined twice
--
kernel/sched/topology.c:92:56: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct sched_domain *sd @@ got struct sched_domaistruct sched_domain *sd @@
kernel/sched/topology.c:92:56: sparse: expected struct sched_domain *sd
kernel/sched/topology.c:92:56: sparse: got struct sched_domain [noderef] <asn:4> *child
kernel/sched/topology.c:111:60: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct sched_domain *sd @@ got struct sched_domaistruct sched_domain *sd @@
kernel/sched/topology.c:111:60: sparse: expected struct sched_domain *sd
kernel/sched/topology.c:111:60: sparse: got struct sched_domain [noderef] <asn:4> *parent
kernel/sched/topology.c:134:20: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct sched_domain *sd @@ got struct sched_domaistruct sched_domain *sd @@
kernel/sched/topology.c:134:20: sparse: expected struct sched_domain *sd
kernel/sched/topology.c:134:20: sparse: got struct sched_domain [noderef] <asn:4> *parent
kernel/sched/topology.c:408:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
>> kernel/sched/topology.c:408:9: sparse: struct perf_domain [noderef] <asn:4> *
>> kernel/sched/topology.c:408:9: sparse: struct perf_domain *
kernel/sched/topology.c:417:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/topology.c:417:9: sparse: struct perf_domain [noderef] <asn:4> *
kernel/sched/topology.c:417:9: sparse: struct perf_domain *
kernel/sched/topology.c:606:49: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct sched_domain *parent @@ got struct sched_domaistruct sched_domain *parent @@
kernel/sched/topology.c:606:49: sparse: expected struct sched_domain *parent
kernel/sched/topology.c:606:49: sparse: got struct sched_domain [noderef] <asn:4> *parent
kernel/sched/topology.c:627:1: sparse: sparse: symbol 'sd_llc' redeclared with different type (originally declared at kernel/sched/MuQSS.h:574) - different address spaces
kernel/sched/topology.c:630:1: sparse: sparse: symbol 'sd_llc_shared' redeclared with different type (originally declared at kernel/sched/MuQSS.h:577) - different address spaces
kernel/sched/topology.c:631:1: sparse: sparse: symbol 'sd_numa' redeclared with different type (originally declared at kernel/sched/MuQSS.h:578) - different address spaces
kernel/sched/topology.c:632:1: sparse: sparse: symbol 'sd_asym_packing' redeclared with different type (originally declared at kernel/sched/MuQSS.h:579) - different address spaces
kernel/sched/topology.c:633:1: sparse: sparse: symbol 'sd_asym_cpucapacity' redeclared with different type (originally declared at kernel/sched/MuQSS.h:580) - different address spaces
kernel/sched/MuQSS.h:553:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
>> kernel/sched/MuQSS.h:553:9: sparse: struct sched_domain [noderef] <asn:4> *
>> kernel/sched/MuQSS.h:553:9: sparse: struct sched_domain *
kernel/sched/MuQSS.h:566:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/MuQSS.h:566:9: sparse: struct sched_domain [noderef] <asn:4> *
kernel/sched/MuQSS.h:566:9: sparse: struct sched_domain *
kernel/sched/MuQSS.h:553:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
>> kernel/sched/MuQSS.h:553:9: sparse: struct sched_domain [noderef] <asn:4> *
>> kernel/sched/MuQSS.h:553:9: sparse: struct sched_domain *
kernel/sched/MuQSS.h:566:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/MuQSS.h:566:9: sparse: struct sched_domain [noderef] <asn:4> *
kernel/sched/MuQSS.h:566:9: sparse: struct sched_domain *
kernel/sched/topology.c:677:50: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct sched_domain *parent @@ got struct sched_domaistruct sched_domain *parent @@
kernel/sched/topology.c:684:55: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct sched_domain [noderef] <asn:4> *[noderef] <asn:4> child @@ got ref] <asn:4> *[noderef] <asn:4> child @@
kernel/sched/topology.c:694:29: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct sched_domain *[assigned] tmp @@ got struct struct sched_domain *[assigned] tmp @@
kernel/sched/topology.c:699:20: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct sched_domain *sd @@ got struct sched_domaistruct sched_domain *sd @@
kernel/sched/topology.c:709:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/topology.c:709:9: sparse: struct sched_domain [noderef] <asn:4> *
kernel/sched/topology.c:709:9: sparse: struct sched_domain *
kernel/sched/topology.c:870:70: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct sched_domain *sd @@ got struct sched_domaistruct sched_domain *sd @@
kernel/sched/topology.c:870:70: sparse: expected struct sched_domain *sd
kernel/sched/topology.c:870:70: sparse: got struct sched_domain [noderef] <asn:4> *child
kernel/sched/topology.c:899:59: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct sched_domain *sd @@ got struct sched_domaistruct sched_domain *sd @@
kernel/sched/topology.c:899:59: sparse: expected struct sched_domain *sd
kernel/sched/topology.c:899:59: sparse: got struct sched_domain [noderef] <asn:4> *child
kernel/sched/topology.c:1069:40: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct sched_domain *child @@ got struct sched_domaistruct sched_domain *child @@
kernel/sched/topology.c:1069:40: sparse: expected struct sched_domain *child
kernel/sched/topology.c:1069:40: sparse: got struct sched_domain [noderef] <asn:4> *child
kernel/sched/topology.c:1376:43: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct sched_domain [noderef] <asn:4> *child @@ got n [noderef] <asn:4> *child @@
kernel/sched/topology.c:1376:43: sparse: expected struct sched_domain [noderef] <asn:4> *child
kernel/sched/topology.c:1376:43: sparse: got struct sched_domain *child
kernel/sched/topology.c:1398:17: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct sched_domain *t @@ got struct sched_domaistruct sched_domain *t @@
kernel/sched/topology.c:1398:17: sparse: expected struct sched_domain *t
kernel/sched/topology.c:1398:17: sparse: got struct sched_domain [noderef] <asn:4> *child
kernel/sched/topology.c:1873:31: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct sched_domain [noderef] <asn:4> *parent @@ got n [noderef] <asn:4> *parent @@
kernel/sched/topology.c:1873:31: sparse: expected struct sched_domain [noderef] <asn:4> *parent
kernel/sched/topology.c:1873:31: sparse: got struct sched_domain *sd
kernel/sched/topology.c:2003:57: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct sched_domain *[assigned] sd @@ got struct struct sched_domain *[assigned] sd @@
kernel/sched/topology.c:2003:57: sparse: expected struct sched_domain *[assigned] sd
kernel/sched/topology.c:2003:57: sparse: got struct sched_domain [noderef] <asn:4> *parent
kernel/sched/topology.c:2020:57: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct sched_domain *[assigned] sd @@ got struct struct sched_domain *[assigned] sd @@
kernel/sched/topology.c:2020:57: sparse: expected struct sched_domain *[assigned] sd
kernel/sched/topology.c:2020:57: sparse: got struct sched_domain [noderef] <asn:4> *parent
kernel/sched/topology.c:1396:27: sparse: sparse: dereference of noderef expression
vim +764 kernel/sched/MuQSS.h
623
624 /*
625 * See build_balance_mask().
626 */
> 627 static inline struct cpumask *group_balance_mask(struct sched_group *sg)
628 {
629 return to_cpumask(sg->sgc->cpumask);
630 }
631
632 /**
633 * group_first_cpu - Returns the first cpu in the cpumask of a sched_group.
634 * @group: The group whose first cpu is to be returned.
635 */
636 static inline unsigned int group_first_cpu(struct sched_group *group)
637 {
638 return cpumask_first(sched_group_span(group));
639 }
640
641
642 #if defined(CONFIG_SCHED_DEBUG) && defined(CONFIG_SYSCTL)
643 void register_sched_domain_sysctl(void);
644 void dirty_sched_domain_sysctl(int cpu);
645 void unregister_sched_domain_sysctl(void);
646 #else
647 static inline void register_sched_domain_sysctl(void)
648 {
649 }
650 static inline void dirty_sched_domain_sysctl(int cpu)
651 {
652 }
653 static inline void unregister_sched_domain_sysctl(void)
654 {
655 }
656 #endif
657
658 extern void sched_ttwu_pending(void);
659 extern void set_cpus_allowed_common(struct task_struct *p, const struct cpumask *new_mask);
660 extern void set_rq_online (struct rq *rq);
661 extern void set_rq_offline(struct rq *rq);
662 extern bool sched_smp_initialized;
663
664 static inline void update_group_capacity(struct sched_domain *sd, int cpu)
665 {
666 }
667
668 static inline void trigger_load_balance(struct rq *rq)
669 {
670 }
671
672 #define sched_feat(x) 0
673
674 #else /* CONFIG_SMP */
675
676 static inline void sched_ttwu_pending(void) { }
677
678 #endif /* CONFIG_SMP */
679
680 #ifdef CONFIG_CPU_IDLE
681 static inline void idle_set_state(struct rq *rq,
682 struct cpuidle_state *idle_state)
683 {
684 rq->idle_state = idle_state;
685 }
686
687 static inline struct cpuidle_state *idle_get_state(struct rq *rq)
688 {
689 SCHED_WARN_ON(!rcu_read_lock_held());
690 return rq->idle_state;
691 }
692 #else
693 static inline void idle_set_state(struct rq *rq,
694 struct cpuidle_state *idle_state)
695 {
696 }
697
698 static inline struct cpuidle_state *idle_get_state(struct rq *rq)
699 {
700 return NULL;
701 }
702 #endif
703
704 #ifdef CONFIG_SCHED_DEBUG
705 extern bool sched_debug_enabled;
706 #endif
707
708 extern void schedule_idle(void);
709
710 #ifdef CONFIG_IRQ_TIME_ACCOUNTING
711 struct irqtime {
712 u64 total;
713 u64 tick_delta;
714 u64 irq_start_time;
715 struct u64_stats_sync sync;
716 };
717
718 DECLARE_PER_CPU(struct irqtime, cpu_irqtime);
719
720 /*
721 * Returns the irqtime minus the softirq time computed by ksoftirqd.
722 * Otherwise ksoftirqd's sum_exec_runtime is substracted its own runtime
723 * and never move forward.
724 */
725 static inline u64 irq_time_read(int cpu)
726 {
727 struct irqtime *irqtime = &per_cpu(cpu_irqtime, cpu);
728 unsigned int seq;
729 u64 total;
730
731 do {
732 seq = __u64_stats_fetch_begin(&irqtime->sync);
733 total = irqtime->total;
734 } while (__u64_stats_fetch_retry(&irqtime->sync, seq));
735
736 return total;
737 }
738 #endif /* CONFIG_IRQ_TIME_ACCOUNTING */
739
740 static inline bool sched_stop_runnable(struct rq *rq)
741 {
742 return rq->stop && task_on_rq_queued(rq->stop);
743 }
744
745 #ifdef CONFIG_SMP
746 static inline int cpu_of(struct rq *rq)
747 {
748 return rq->cpu;
749 }
750 #else /* CONFIG_SMP */
751 static inline int cpu_of(struct rq *rq)
752 {
753 return 0;
754 }
755 #endif
756
757 #ifdef CONFIG_CPU_FREQ
758 DECLARE_PER_CPU(struct update_util_data *, cpufreq_update_util_data);
759
760 static inline void cpufreq_trigger(struct rq *rq, unsigned int flags)
761 {
762 struct update_util_data *data;
763
> 764 data = rcu_dereference_sched(*per_cpu_ptr(&cpufreq_update_util_data,
765 cpu_of(rq)));
766
767 if (data)
768 data->func(data, rq->niffies, flags);
769 }
770 #else
771 static inline void cpufreq_trigger(struct rq *rq, unsigned int flag)
772 {
773 }
774 #endif /* CONFIG_CPU_FREQ */
775
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 4 months
[feng:master 7/9] mm/page_alloc.c:4761:6: error: 'watchdog_thresh' undeclared; did you mean 'proc_watchdog_thresh'?
by kbuild test robot
Hi Feng,
FYI, the error/warning still remains.
tree: feng/master
head: 11809ca05c8787f97e074cab981f928743a2c3c2
commit: f3f0fe74c2b69c3355eee038ba1e97f72464e012 [7/9] zonelist: add dump
config: i386-tinyconfig (attached as .config)
compiler: gcc-7 (Debian 7.5.0-1) 7.5.0
reproduce:
git checkout f3f0fe74c2b69c3355eee038ba1e97f72464e012
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
mm/page_alloc.c: In function '__alloc_pages_nodemask':
>> mm/page_alloc.c:4761:6: error: 'watchdog_thresh' undeclared (first use in this function); did you mean 'proc_watchdog_thresh'?
if (watchdog_thresh == 20) {
^~~~~~~~~~~~~~~
proc_watchdog_thresh
mm/page_alloc.c:4761:6: note: each undeclared identifier is reported only once for each function it appears in
In file included from include/asm-generic/bug.h:19:0,
from arch/x86/include/asm/bug.h:83,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/mm.h:9,
from mm/page_alloc.c:19:
>> mm/page_alloc.c:4768:34: error: 'struct zone' has no member named 'node'; did you mean 'name'?
ac.preferred_zoneref->zone->node,
^
include/linux/kernel.h:130:43: note: in definition of macro 'mtp'
trace_printk(KERN_ERR "" f "\n",##x)
^
mm/page_alloc.c:4803:20: error: 'struct zone' has no member named 'node'; did you mean 'name'?
zrefs->zone->node,
^~~~
name
vim +4761 mm/page_alloc.c
4725
4726 /*
4727 * This is the 'heart' of the zoned buddy allocator.
4728 */
4729 struct page *
4730 __alloc_pages_nodemask(gfp_t gfp_mask, unsigned int order, int preferred_nid,
4731 nodemask_t *nodemask)
4732 {
4733 struct page *page;
4734 unsigned int alloc_flags = ALLOC_WMARK_LOW;
4735 gfp_t alloc_mask; /* The gfp_t that was actually used for allocation */
4736 struct alloc_context ac = { };
4737
4738
4739 /*
4740 * There are several places where we assume that the order value is sane
4741 * so bail out early if the request is out of bound.
4742 */
4743 if (unlikely(order >= MAX_ORDER)) {
4744 WARN_ON_ONCE(!(gfp_mask & __GFP_NOWARN));
4745 return NULL;
4746 }
4747
4748 gfp_mask &= gfp_allowed_mask;
4749 alloc_mask = gfp_mask;
4750 if (!prepare_alloc_pages(gfp_mask, order, preferred_nid, nodemask, &ac, &alloc_mask, &alloc_flags))
4751 return NULL;
4752
4753 finalise_ac(gfp_mask, &ac);
4754
4755 /*
4756 * Forbid the first pass from falling back to types that fragment
4757 * memory until all local zones are considered.
4758 */
4759 alloc_flags |= alloc_flags_nofragment(ac.preferred_zoneref->zone, gfp_mask);
4760
> 4761 if (watchdog_thresh == 20) {
4762
4763 // if (loop % 4096 == 0) {
4764 if (tloop % 256 == 0) {
4765
4766 if (ac.preferred_zoneref && ac.preferred_zoneref->zone)
4767 mtp("ac->pref: node[%d].zone[%d] cur_nid=%d aflag=0x%x sdirty=%d order=%d anm=%*pbl pid=%d onm=%*pbl",
> 4768 ac.preferred_zoneref->zone->node,
4769 ac.preferred_zoneref->zone_idx,
4770 numa_node_id(),
4771 alloc_flags,
4772 ac.spread_dirty_pages,
4773 order,
4774 nodemask_pr_args(ac.nodemask),
4775 preferred_nid,
4776 nodemask_pr_args(nodemask)
4777 );
4778 else
4779 mtp("no ac.preferred_zoneref");
4780 }
4781
4782 if (tloop % (8192*2) == 0) {
4783
4784 /* dump node */
4785 pg_data_t *newpgdat = NODE_DATA(numa_node_id());
4786 dump_node_zonelists(newpgdat);
4787
4788 /* dump ac's zonelist */
4789 if (ac.zonelist) {
4790
4791 struct zoneref *zrefs = ac.zonelist->_zonerefs;
4792 int i;
4793
4794 mcp("dump ac.zonelists:");
4795
4796 for (i = 0; i < MAX_ZONES_PER_ZONELIST + 1; i++) {
4797
4798 if (!zrefs->zone)
4799 break;
4800
4801 printk("ac [%d]: nid[%d].zone[%d]\n",
4802 i,
4803 zrefs->zone->node,
4804 zrefs->zone_idx
4805 );
4806
4807 zrefs++;
4808 }
4809 }
4810 }
4811
4812 tloop++;
4813 }
4814
4815
4816 /* First allocation attempt */
4817 page = get_page_from_freelist(alloc_mask, order, alloc_flags, &ac);
4818 if (likely(page))
4819 goto out;
4820
4821 /*
4822 * Apply scoped allocation constraints. This is mainly about GFP_NOFS
4823 * resp. GFP_NOIO which has to be inherited for all allocation requests
4824 * from a particular context which has been marked by
4825 * memalloc_no{fs,io}_{save,restore}.
4826 */
4827 alloc_mask = current_gfp_context(gfp_mask);
4828 ac.spread_dirty_pages = false;
4829
4830 /*
4831 * Restore the original nodemask if it was potentially replaced with
4832 * &cpuset_current_mems_allowed to optimize the fast-path attempt.
4833 */
4834 if (unlikely(ac.nodemask != nodemask))
4835 ac.nodemask = nodemask;
4836
4837 page = __alloc_pages_slowpath(alloc_mask, order, &ac);
4838
4839 out:
4840 if (memcg_kmem_enabled() && (gfp_mask & __GFP_ACCOUNT) && page &&
4841 unlikely(__memcg_kmem_charge(page, gfp_mask, order) != 0)) {
4842 __free_pages(page, order);
4843 page = NULL;
4844 }
4845
4846 trace_mm_page_alloc(page, order, alloc_mask, ac.migratetype);
4847
4848 return page;
4849 }
4850 EXPORT_SYMBOL(__alloc_pages_nodemask);
4851
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 4 months
Re: [PATCH 1/2] drivers: md: dm-log.c: Remove unused variable 'sz'
by kbuild test robot
Hi Jieun,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on dm/for-next]
[also build test ERROR on v5.4 next-20191129]
[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/Jieun-Kim/drivers-md-dm-log-c-Re...
base: https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git for-next
config: i386-defconfig (attached as .config)
compiler: gcc-7 (Debian 7.5.0-1) 7.5.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from include/linux/dm-dirty-log.h:16:0,
from drivers/md/dm-log.c:13:
drivers/md/dm-log.c: In function 'core_status':
>> include/linux/device-mapper.h:551:22: error: 'sz' undeclared (first use in this function); did you mean 's8'?
#define DMEMIT(x...) sz += ((sz >= maxlen) ? \
^
>> drivers/md/dm-log.c:788:3: note: in expansion of macro 'DMEMIT'
DMEMIT("1 %s", log->type->name);
^~~~~~
include/linux/device-mapper.h:551:22: note: each undeclared identifier is reported only once for each function it appears in
#define DMEMIT(x...) sz += ((sz >= maxlen) ? \
^
>> drivers/md/dm-log.c:788:3: note: in expansion of macro 'DMEMIT'
DMEMIT("1 %s", log->type->name);
^~~~~~
--
In file included from include/linux/dm-dirty-log.h:16:0,
from drivers//md/dm-log.c:13:
drivers//md/dm-log.c: In function 'core_status':
>> include/linux/device-mapper.h:551:22: error: 'sz' undeclared (first use in this function); did you mean 's8'?
#define DMEMIT(x...) sz += ((sz >= maxlen) ? \
^
drivers//md/dm-log.c:788:3: note: in expansion of macro 'DMEMIT'
DMEMIT("1 %s", log->type->name);
^~~~~~
include/linux/device-mapper.h:551:22: note: each undeclared identifier is reported only once for each function it appears in
#define DMEMIT(x...) sz += ((sz >= maxlen) ? \
^
drivers//md/dm-log.c:788:3: note: in expansion of macro 'DMEMIT'
DMEMIT("1 %s", log->type->name);
^~~~~~
vim +/DMEMIT +788 drivers/md/dm-log.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 776
^1da177e4c3f41 Linus Torvalds 2005-04-16 777 #define DMEMIT_SYNC \
^1da177e4c3f41 Linus Torvalds 2005-04-16 778 if (lc->sync != DEFAULTSYNC) \
^1da177e4c3f41 Linus Torvalds 2005-04-16 779 DMEMIT("%ssync ", lc->sync == NOSYNC ? "no" : "")
^1da177e4c3f41 Linus Torvalds 2005-04-16 780
416cd17b198221 Heinz Mauelshagen 2008-04-24 781 static int core_status(struct dm_dirty_log *log, status_type_t status,
^1da177e4c3f41 Linus Torvalds 2005-04-16 782 char *result, unsigned int maxlen)
^1da177e4c3f41 Linus Torvalds 2005-04-16 783 {
^1da177e4c3f41 Linus Torvalds 2005-04-16 784 struct log_c *lc = log->context;
^1da177e4c3f41 Linus Torvalds 2005-04-16 785
^1da177e4c3f41 Linus Torvalds 2005-04-16 786 switch(status) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 787 case STATUSTYPE_INFO:
315dcc226f066c Jonathan E Brassow 2007-05-09 @788 DMEMIT("1 %s", log->type->name);
^1da177e4c3f41 Linus Torvalds 2005-04-16 789 break;
^1da177e4c3f41 Linus Torvalds 2005-04-16 790
^1da177e4c3f41 Linus Torvalds 2005-04-16 791 case STATUSTYPE_TABLE:
^1da177e4c3f41 Linus Torvalds 2005-04-16 792 DMEMIT("%s %u %u ", log->type->name,
^1da177e4c3f41 Linus Torvalds 2005-04-16 793 lc->sync == DEFAULTSYNC ? 1 : 2, lc->region_size);
^1da177e4c3f41 Linus Torvalds 2005-04-16 794 DMEMIT_SYNC;
^1da177e4c3f41 Linus Torvalds 2005-04-16 795 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 796
2a79ee10b97355 Jieun Kim 2019-12-01 797 return 0;
^1da177e4c3f41 Linus Torvalds 2005-04-16 798 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 799
:::::: The code at line 788 was first introduced by commit
:::::: 315dcc226f066c1d3cef79283dcde807fe0e32d1 dm log: report fault status
:::::: TO: Jonathan E Brassow <jbrassow(a)redhat.com>
:::::: CC: Linus Torvalds <torvalds(a)woody.linux-foundation.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 4 months