Hi Hannes,

[auto build test results on v4.3-rc3 -- if it's inappropriate base, please 
ignore]

reproduce:
  # apt-get install sparse
  make ARCH=x86_64 allmodconfig
  make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

   drivers/scsi/device_handler/scsi_dh_alua.c:142:16: sparse: Variable length 
array is used.
   drivers/scsi/device_handler/scsi_dh_alua.c:171:16: sparse: Variable length 
array is used.
   drivers/scsi/device_handler/scsi_dh_alua.c:194:24: sparse: symbol 
'alua_lookup_pg' was not declared. Should it be static?
   drivers/scsi/device_handler/scsi_dh_alua.c:222:24: sparse: symbol 
'alua_get_pg' was not declared. Should it be static?
>> drivers/scsi/device_handler/scsi_dh_alua.c:856:14: sparse: incompatible 
>> types in comparison expression (different address spaces)
   drivers/scsi/device_handler/scsi_dh_alua.c:900:14: sparse: incompatible 
types in comparison expression (different address spaces)
   drivers/scsi/device_handler/scsi_dh_alua.c:935:14: sparse: incompatible 
types in comparison expression (different address spaces)

vim +856 drivers/scsi/device_handler/scsi_dh_alua.c

   840          struct alua_dh_data *h = sdev->handler_data;
   841          struct alua_port_group *pg = NULL;
   842          unsigned int optimize = 0, argc;
   843          const char *p = params;
   844          int result = SCSI_DH_OK;
   845          unsigned long flags;
   846  
   847          if ((sscanf(params, "%u", &argc) != 1) || (argc != 1))
   848                  return -EINVAL;
   849  
   850          while (*p++)
   851                  ;
   852          if ((sscanf(p, "%u", &optimize) != 1) || (optimize > 1))
   853                  return -EINVAL;
   854  
   855          rcu_read_lock();
 > 856          pg = rcu_dereference(h->pg);
   857          if (!pg) {
   858                  rcu_read_unlock();
   859                  return -ENXIO;
   860          }
   861          spin_lock_irqsave(&pg->lock, flags);
   862          if (optimize)
   863                  pg->flags |= ALUA_OPTIMIZE_STPG;
   864          else

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to