[dm-devel] [dm:dm-5.8 50/54] drivers/md/dm-zoned-metadata.c:2468:6: warning: no previous prototype for 'dmz_print_dev'

2020-05-18 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
dm-5.8
head:   44eaf01834bc7414ab5298d097ed4e142a714420
commit: 4813c868bef0182b7ca7662f967b1c4bfdff1c1e [50/54] dm zoned: add metadata 
logging functions
config: parisc-randconfig-r024-20200519 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.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 4813c868bef0182b7ca7662f967b1c4bfdff1c1e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 
ARCH=parisc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 

All warnings (new ones prefixed by >>, old ones prefixed by <<):

In file included from include/linux/mm.h:94,
from include/linux/bvec.h:13,
from include/linux/blk_types.h:10,
from include/linux/genhd.h:19,
from include/linux/blkdev.h:11,
from drivers/md/dm-zoned.h:12,
from drivers/md/dm-zoned-metadata.c:8:
include/asm-generic/pgtable.h: In function 'pte_clear_not_present_full':
arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but not 
used [-Wunused-but-set-variable]
96 |   pte_t old_pte;  | ^~~
arch/parisc/include/asm/pgtable.h:322:34: note: in expansion of macro 
'set_pte_at'
322 | #define pte_clear(mm, addr, xp)  set_pte_at(mm, addr, xp, __pte(0))
|  ^~
include/asm-generic/pgtable.h:201:2: note: in expansion of macro 'pte_clear'
201 |  pte_clear(mm, address, ptep);
|  ^
include/asm-generic/pgtable.h: In function '__ptep_modify_prot_commit':
arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but not 
used [-Wunused-but-set-variable]
96 |   pte_t old_pte;  | ^~~
include/asm-generic/pgtable.h:640:2: note: in expansion of macro 'set_pte_at'
640 |  set_pte_at(vma->vm_mm, addr, ptep, pte);
|  ^~
drivers/md/dm-zoned-metadata.c: At top level:
>> drivers/md/dm-zoned-metadata.c:2468:6: warning: no previous prototype for 
>> 'dmz_print_dev' [-Wmissing-prototypes]
2468 | void dmz_print_dev(struct dmz_metadata *zmd, int num)
|  ^

vim +/dmz_print_dev +2468 drivers/md/dm-zoned-metadata.c

  2467  
> 2468  void dmz_print_dev(struct dmz_metadata *zmd, int num)
  2469  {
  2470  struct dmz_dev *dev = >dev[num];
  2471  
  2472  dmz_dev_info(dev, "Host-%s zoned block device",
  2473   bdev_zoned_model(dev->bdev) == BLK_ZONED_HA ?
  2474   "aware" : "managed");
  2475  dmz_dev_info(dev, "  %llu 512-byte logical sectors",
  2476   (u64)dev->capacity);
  2477  dmz_dev_info(dev, "  %u zones of %llu 512-byte logical sectors",
  2478   dev->nr_zones, (u64)zmd->zone_nr_sectors);
  2479  }
  2480  /*
  2481   * Initialize the zoned metadata.
  2482   */
  2483  int dmz_ctr_metadata(struct dmz_dev *dev, struct dmz_metadata 
**metadata,
  2484   const char *devname)
  2485  {
  2486  struct dmz_metadata *zmd;
  2487  unsigned int i;
  2488  struct dm_zone *zone;
  2489  int ret;
  2490  
  2491  zmd = kzalloc(sizeof(struct dmz_metadata), GFP_KERNEL);
  2492  if (!zmd)
  2493  return -ENOMEM;
  2494  
  2495  strcpy(zmd->devname, devname);
  2496  zmd->dev = dev;
  2497  zmd->mblk_rbtree = RB_ROOT;
  2498  init_rwsem(>mblk_sem);
  2499  mutex_init(>mblk_flush_lock);
  2500  spin_lock_init(>mblk_lock);
  2501  INIT_LIST_HEAD(>mblk_lru_list);
  2502  INIT_LIST_HEAD(>mblk_dirty_list);
  2503  
  2504  mutex_init(>map_lock);
  2505  atomic_set(>unmap_nr_rnd, 0);
  2506  INIT_LIST_HEAD(>unmap_rnd_list);
  2507  INIT_LIST_HEAD(>map_rnd_list);
  2508  
  2509  atomic_set(>unmap_nr_seq, 0);
  2510  INIT_LIST_HEAD(>unmap_seq_list);
  2511  INIT_LIST_HEAD(>map_seq_list);
  2512  
  2513  atomic_set(>nr_reserved_seq_zones, 0);
  2514  INIT_LIST_HEAD(>reserved_seq_zones_list);
  2515  
  2516  init_waitqueue_head(>free_wq);
  2517  
  2518  /* Initialize zone descriptors */
  2519  ret = dmz_init_zones(zmd);
  2520  if (ret)
  2521  goto err;
  2522  
  2523  /* Get super block */
  2524  ret = dmz_load_sb(zmd);
  2525  if (ret)
  2526  goto err;
  2527  
  2528  /* Set metadata zones starting from sb_zone */
  2529  for (i = 0; i < zmd->nr_meta_zones << 1; i++) {
  2530  zone = dmz_get(zmd, zmd->sb[

[dm-devel] [dm:dm-5.8 47/54] drivers/md/dm-zoned-reclaim.c:350:18: warning: variable 'dev' set but not used

2020-05-18 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
dm-5.8
head:   44eaf01834bc7414ab5298d097ed4e142a714420
commit: 21a33c39f41e5fc4e9ecfdf958190c9dc4a86b94 [47/54] dm zoned: remove 'dev' 
argument from reclaim
config: parisc-randconfig-r024-20200519 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.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 21a33c39f41e5fc4e9ecfdf958190c9dc4a86b94
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 
ARCH=parisc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 

All warnings (new ones prefixed by >>, old ones prefixed by <<):

In file included from include/linux/mm.h:94,
from include/linux/bvec.h:13,
from include/linux/blk_types.h:10,
from include/linux/genhd.h:19,
from include/linux/blkdev.h:11,
from drivers/md/dm-zoned.h:12,
from drivers/md/dm-zoned-reclaim.c:8:
include/asm-generic/pgtable.h: In function 'pte_clear_not_present_full':
arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but not 
used [-Wunused-but-set-variable]
96 |   pte_t old_pte;  | ^~~
arch/parisc/include/asm/pgtable.h:322:34: note: in expansion of macro 
'set_pte_at'
322 | #define pte_clear(mm, addr, xp)  set_pte_at(mm, addr, xp, __pte(0))
|  ^~
include/asm-generic/pgtable.h:201:2: note: in expansion of macro 'pte_clear'
201 |  pte_clear(mm, address, ptep);
|  ^
include/asm-generic/pgtable.h: In function '__ptep_modify_prot_commit':
arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but not 
used [-Wunused-but-set-variable]
96 |   pte_t old_pte;  | ^~~
include/asm-generic/pgtable.h:640:2: note: in expansion of macro 'set_pte_at'
640 |  set_pte_at(vma->vm_mm, addr, ptep, pte);
|  ^~
drivers/md/dm-zoned-reclaim.c: In function 'dmz_do_reclaim':
>> drivers/md/dm-zoned-reclaim.c:350:18: warning: variable 'dev' set but not 
>> used [-Wunused-but-set-variable]
350 |  struct dmz_dev *dev;
|  ^~~

vim +/dev +350 drivers/md/dm-zoned-reclaim.c

   341  
   342  /*
   343   * Find a candidate zone for reclaim and process it.
   344   */
   345  static int dmz_do_reclaim(struct dmz_reclaim *zrc)
   346  {
   347  struct dmz_metadata *zmd = zrc->metadata;
   348  struct dm_zone *dzone;
   349  struct dm_zone *rzone;
 > 350  struct dmz_dev *dev;
   351  unsigned long start;
   352  int ret;
   353  
   354  /* Get a data zone */
   355  dzone = dmz_get_zone_for_reclaim(zmd);
   356  if (IS_ERR(dzone))
   357  return PTR_ERR(dzone);
   358  
   359  start = jiffies;
   360  dev = dmz_zone_to_dev(zmd, dzone);
   361  if (dmz_is_rnd(dzone)) {
   362  if (!dmz_weight(dzone)) {
   363  /* Empty zone */
   364  dmz_reclaim_empty(zrc, dzone);
   365  ret = 0;
   366  } else {
   367  /*
   368   * Reclaim the random data zone by moving its
   369   * valid data blocks to a free sequential zone.
   370   */
   371  ret = dmz_reclaim_rnd_data(zrc, dzone);
   372  }
   373  rzone = dzone;
   374  
   375  } else {
   376  struct dm_zone *bzone = dzone->bzone;
   377  sector_t chunk_block = 0;
   378  
   379  ret = dmz_first_valid_block(zmd, bzone, _block);
   380  if (ret < 0)
   381  goto out;
   382  
   383  if (ret == 0 || chunk_block >= dzone->wp_block) {
   384  /*
   385   * The buffer zone is empty or its valid blocks 
are
   386   * after the data zone write pointer.
   387   */
   388  ret = dmz_reclaim_buf(zrc, dzone);
   389  rzone = bzone;
   390  } else {
   391  /*
   392   * Reclaim the data zone by merging it into the
   393   * buffer zone so that the buffer zone itself 
can
   394   * be later reclaimed.
   395   */
   396  ret = dmz_reclaim_seq_data(zrc, dzone);
   397  rzone = dzone;
   398  }
   399  }
   400  out:
   401  if (ret) {
   402  dmz_unlock_zone_reclaim(dzone

[dm-devel] [dm:for-next 53/58] drivers/md/dm-zoned-metadata.c:779:3: error: implicit declaration of function 'export_uuid'

2020-05-15 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
head:   6c871f63986b34c7768080259ddf5991c55ee385
commit: 70978208ec91d798066f4c291bc98ff914bea222 [53/58] dm zoned: metadata 
version 2
config: nios2-allyesconfig (attached as .config)
compiler: nios2-linux-gcc (GCC) 9.3.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 70978208ec91d798066f4c291bc98ff914bea222
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross 
ARCH=nios2 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 

All errors (new ones prefixed by >>, old ones prefixed by <<):

drivers/md/dm-zoned-metadata.c: In function 'dmz_write_sb':
>> drivers/md/dm-zoned-metadata.c:779:3: error: implicit declaration of 
>> function 'export_uuid' [-Werror=implicit-function-declaration]
779 |   export_uuid(sb->dmz_uuid, >uuid);
|   ^~~
drivers/md/dm-zoned-metadata.c: In function 'dmz_check_sb':
>> drivers/md/dm-zoned-metadata.c:1015:3: error: implicit declaration of 
>> function 'import_uuid' [-Werror=implicit-function-declaration]
1015 |   import_uuid(_uuid, sb->dmz_uuid);
|   ^~~
cc1: some warnings being treated as errors

vim +/export_uuid +779 drivers/md/dm-zoned-metadata.c

   761  
   762  /*
   763   * Write super block of the specified metadata set.
   764   */
   765  static int dmz_write_sb(struct dmz_metadata *zmd, unsigned int set)
   766  {
   767  struct dmz_mblock *mblk = zmd->sb[set].mblk;
   768  struct dmz_super *sb = zmd->sb[set].sb;
   769  struct dmz_dev *dev = zmd->sb[set].dev;
   770  sector_t sb_block;
   771  u64 sb_gen = zmd->sb_gen + 1;
   772  int ret;
   773  
   774  sb->magic = cpu_to_le32(DMZ_MAGIC);
   775  
   776  sb->version = cpu_to_le32(zmd->sb_version);
   777  if (zmd->sb_version > 1) {
   778  BUILD_BUG_ON(UUID_SIZE != 16);
 > 779  export_uuid(sb->dmz_uuid, >uuid);
   780  memcpy(sb->dmz_label, zmd->label, BDEVNAME_SIZE);
   781  export_uuid(sb->dev_uuid, >uuid);
   782  }
   783  
   784  sb->gen = cpu_to_le64(sb_gen);
   785  
   786  /*
   787   * The metadata always references the absolute block address,
   788   * ie relative to the entire block range, not the per-device
   789   * block address.
   790   */
   791  sb_block = zmd->sb[set].zone->id << zmd->zone_nr_blocks_shift;
   792  sb->sb_block = cpu_to_le64(sb_block);
   793  sb->nr_meta_blocks = cpu_to_le32(zmd->nr_meta_blocks);
   794  sb->nr_reserved_seq = cpu_to_le32(zmd->nr_reserved_seq);
   795  sb->nr_chunks = cpu_to_le32(zmd->nr_chunks);
   796  
   797  sb->nr_map_blocks = cpu_to_le32(zmd->nr_map_blocks);
   798  sb->nr_bitmap_blocks = cpu_to_le32(zmd->nr_bitmap_blocks);
   799  
   800  sb->crc = 0;
   801  sb->crc = cpu_to_le32(crc32_le(sb_gen, (unsigned char *)sb, 
DMZ_BLOCK_SIZE));
   802  
   803  ret = dmz_rdwr_block(dev, REQ_OP_WRITE, zmd->sb[set].block,
   804   mblk->page);
   805  if (ret == 0)
   806  ret = blkdev_issue_flush(dev->bdev, GFP_NOIO, NULL);
   807  
   808  return ret;
   809  }
   810  

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


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

[dm-devel] [dm:dm-5.8 55/57] include/linux/device-mapper.h:626:2: error: #endif without #if

2020-05-14 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
dm-5.8
head:   2e374fada9514fe10561a41838a52dc05f0317b4
commit: 6e1746c86200d4cd2562abe0a4b2892e3be04271 [55/57] dm: use dynamic debug 
instead of compile-time config option
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 9.3.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 6e1746c86200d4cd2562abe0a4b2892e3be04271
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=sh 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 

All errors (new ones prefixed by >>, old ones prefixed by <<):

In file included from drivers/md/dm.h:14,
from drivers/md/dm-uevent.c:14:
>> include/linux/device-mapper.h:626:2: error: #endif without #if
626 | #endif /* _LINUX_DEVICE_MAPPER_H */
|  ^
--
In file included from drivers/md/dm.h:14,
from drivers/md/dm-linear.c:7:
>> include/linux/device-mapper.h:626:2: error: #endif without #if
626 | #endif /* _LINUX_DEVICE_MAPPER_H */
|  ^
In file included from drivers/md/dm-linear.c:14:
>> include/linux/device-mapper.h:616:24: error: redefinition of 'to_sector'
616 | static inline sector_t to_sector(unsigned long long n)
|^
In file included from drivers/md/dm.h:14,
from drivers/md/dm-linear.c:7:
include/linux/device-mapper.h:616:24: note: previous definition of 'to_sector' 
was here
616 | static inline sector_t to_sector(unsigned long long n)
|^
In file included from drivers/md/dm-linear.c:14:
>> include/linux/device-mapper.h:621:29: error: redefinition of 'to_bytes'
621 | static inline unsigned long to_bytes(sector_t n)
| ^~~~
In file included from drivers/md/dm.h:14,
from drivers/md/dm-linear.c:7:
include/linux/device-mapper.h:621:29: note: previous definition of 'to_bytes' 
was here
621 | static inline unsigned long to_bytes(sector_t n)
| ^~~~
In file included from drivers/md/dm-linear.c:14:
>> include/linux/device-mapper.h:626:2: error: #endif without #if
626 | #endif /* _LINUX_DEVICE_MAPPER_H */
|  ^
--
In file included from drivers/md/dm-snap.c:8:
>> include/linux/device-mapper.h:626:2: error: #endif without #if
626 | #endif /* _LINUX_DEVICE_MAPPER_H */
|  ^
In file included from drivers/md/dm.h:14,
from drivers/md/dm-snap.c:22:
>> include/linux/device-mapper.h:616:24: error: redefinition of 'to_sector'
616 | static inline sector_t to_sector(unsigned long long n)
|^
In file included from drivers/md/dm-snap.c:8:
include/linux/device-mapper.h:616:24: note: previous definition of 'to_sector' 
was here
616 | static inline sector_t to_sector(unsigned long long n)
|^
In file included from drivers/md/dm.h:14,
from drivers/md/dm-snap.c:22:
>> include/linux/device-mapper.h:621:29: error: redefinition of 'to_bytes'
621 | static inline unsigned long to_bytes(sector_t n)
| ^~~~
In file included from drivers/md/dm-snap.c:8:
include/linux/device-mapper.h:621:29: note: previous definition of 'to_bytes' 
was here
621 | static inline unsigned long to_bytes(sector_t n)
| ^~~~
In file included from drivers/md/dm.h:14,
from drivers/md/dm-snap.c:22:
>> include/linux/device-mapper.h:626:2: error: #endif without #if
626 | #endif /* _LINUX_DEVICE_MAPPER_H */
|  ^
In file included from drivers/md/dm-exception-store.h:15,
from drivers/md/dm-snap.c:24:
>> include/linux/device-mapper.h:616:24: error: redefinition of 'to_sector'
616 | static inline sector_t to_sector(unsigned long long n)
|^
In file included from drivers/md/dm.h:14,
from drivers/md/dm-snap.c:22:
include/linux/device-mapper.h:616:24: note: previous definition of 'to_sector' 
was here
616 | static inline sector_t to_sector(unsigned long long n)
|^
In file included from drivers/md/dm-exception-store.h:15,
from drivers/md/dm-snap.c:24:
>> include/linux/device-mapper.h:621:29: error: redefinition of 'to_bytes'
621 | static inline unsigned long to_bytes(sector_t n)
| ^~~~
In file included from drivers/md/dm.h:14,
from drivers/md/dm-snap.c:22:
include/linux/device-mapper.h:621:29: note: previous definition of 'to_bytes' 
was here
621 | static inline unsigned long to_bytes(sector_t n)
| ^~~~
In file included from drivers/md/dm-exception-store.h:15,
from drivers/md/dm-snap.c:24:
>> include/linux/device-mapper.h:626:2: error: #endif without #if
626 | #endif /* _LINUX_DEVICE_MAPPER_H */
|  ^
--
In file included from driv

Re: [dm-devel] [PATCH -next] dm mpath: Remove unused variable ret

2020-05-07 Thread kbuild test robot
Hi Samuel,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on next-20200507]
[also build test ERROR on dm/for-next]
[cannot apply to v5.7-rc4]
[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/Samuel-Zou/dm-mpath-Remove-unused-variable-ret/20200508-031551
base:6b43f715b6379433e8eb30aa9bcc99bd6a585f77
config: alpha-allyesconfig (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.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
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross 
ARCH=alpha 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 

All error/warnings (new ones prefixed by >>):

   In file included from drivers/md/dm.h:14,
from drivers/md/dm-historical-service-time.c:24:
   drivers/md/dm-historical-service-time.c: In function 'hst_status':
>> include/linux/device-mapper.h:570:22: error: 'sz' undeclared (first use in 
>> this function); did you mean 's'?
 570 | #define DMEMIT(x...) sz += ((sz >= maxlen) ? \
 |  ^~
>> drivers/md/dm-historical-service-time.c:245:3: note: in expansion of macro 
>> 'DMEMIT'
 245 |   DMEMIT("2 %u %u ", s->weights[0], s->threshold_multiplier);
 |   ^~
   include/linux/device-mapper.h:570:22: note: each undeclared identifier is 
reported only once for each function it appears in
 570 | #define DMEMIT(x...) sz += ((sz >= maxlen) ? \
 |  ^~
>> drivers/md/dm-historical-service-time.c:245:3: note: in expansion of macro 
>> 'DMEMIT'
 245 |   DMEMIT("2 %u %u ", s->weights[0], s->threshold_multiplier);
 |   ^~

vim +/DMEMIT +245 drivers/md/dm-historical-service-time.c

580d206a4321a1 Khazhismel Kumykov 2020-04-30  236  
580d206a4321a1 Khazhismel Kumykov 2020-04-30  237  static int hst_status(struct 
path_selector *ps, struct dm_path *path,
580d206a4321a1 Khazhismel Kumykov 2020-04-30  238
status_type_t type, char *result, unsigned int maxlen)
580d206a4321a1 Khazhismel Kumykov 2020-04-30  239  {
580d206a4321a1 Khazhismel Kumykov 2020-04-30  240   struct path_info *pi;
580d206a4321a1 Khazhismel Kumykov 2020-04-30  241  
580d206a4321a1 Khazhismel Kumykov 2020-04-30  242   if (!path) {
580d206a4321a1 Khazhismel Kumykov 2020-04-30  243   struct selector 
*s = ps->context;
580d206a4321a1 Khazhismel Kumykov 2020-04-30  244  
580d206a4321a1 Khazhismel Kumykov 2020-04-30 @245   DMEMIT("2 %u %u 
", s->weights[0], s->threshold_multiplier);
580d206a4321a1 Khazhismel Kumykov 2020-04-30  246   } else {
580d206a4321a1 Khazhismel Kumykov 2020-04-30  247   pi = 
path->pscontext;
580d206a4321a1 Khazhismel Kumykov 2020-04-30  248  
580d206a4321a1 Khazhismel Kumykov 2020-04-30  249   switch (type) {
580d206a4321a1 Khazhismel Kumykov 2020-04-30  250   case 
STATUSTYPE_INFO:
580d206a4321a1 Khazhismel Kumykov 2020-04-30  251   
DMEMIT("%llu %llu %llu ", pi->historical_service_time,
580d206a4321a1 Khazhismel Kumykov 2020-04-30  252  
pi->outstanding, pi->stale_after);
580d206a4321a1 Khazhismel Kumykov 2020-04-30  253   break;
580d206a4321a1 Khazhismel Kumykov 2020-04-30  254   case 
STATUSTYPE_TABLE:
580d206a4321a1 Khazhismel Kumykov 2020-04-30  255   
DMEMIT("0 ");
580d206a4321a1 Khazhismel Kumykov 2020-04-30  256   break;
580d206a4321a1 Khazhismel Kumykov 2020-04-30  257   }
580d206a4321a1 Khazhismel Kumykov 2020-04-30  258   }
580d206a4321a1 Khazhismel Kumykov 2020-04-30  259  
356072d04813ba Samuel Zou 2020-05-07  260   return 0;
580d206a4321a1 Khazhismel Kumykov 2020-04-30  261  }
580d206a4321a1 Khazhismel Kumykov 2020-04-30  262  

:: The code at line 245 was first introduced by commit
:: 580d206a4321a146ef4637f14f2fc6d0d5c72c12 dm mpath: add Historical 
Service Time Path Selector

:: TO: Khazhismel Kumykov 
:: CC: Mike Snitzer 

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


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

[dm-devel] [dm:for-next 29/30] drivers/md/dm-ebs-target.c:190:32: sparse: expected restricted blk_status_t [usertype] bi_status

2020-04-29 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
head:   ddc1316e185f6ab4a74656b4879a15ec23cdec31
commit: eeb17d25430dc2b3251a5abfec6a3b9160daaef6 [29/30] dm ebs: new block size 
emulating target
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-191-gc51a0382-dirty
git checkout eeb17d25430dc2b3251a5abfec6a3b9160daaef6
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
:: branch date: 7 hours ago
:: commit date: 30 hours ago

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 


sparse warnings: (new ones prefixed by >>)

   drivers/md/dm-ebs-target.c:190:32: sparse: sparse: incorrect type in 
assignment (different base types) @@expected restricted blk_status_t 
[usertype] bi_status @@got s_t [usertype] bi_status @@
>> drivers/md/dm-ebs-target.c:190:32: sparse:expected restricted 
>> blk_status_t [usertype] bi_status
>> drivers/md/dm-ebs-target.c:190:32: sparse:got int [assigned] r
   drivers/md/dm-ebs-target.c:423:12: sparse: sparse: symbol 'dm_ebs_init' was 
not declared. Should it be static?
   drivers/md/dm-ebs-target.c:433:6: sparse: sparse: symbol 'dm_ebs_exit' was 
not declared. Should it be static?

# 
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git/commit/?id=eeb17d25430dc2b3251a5abfec6a3b9160daaef6
git remote add dm 
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git
git remote update dm
git checkout eeb17d25430dc2b3251a5abfec6a3b9160daaef6
vim +190 drivers/md/dm-ebs-target.c

eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  146  
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  147  /* Worker funtion to process 
incoming bios. */
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  148  static void 
__ebs_process_bios(struct work_struct *ws)
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  149  {
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  150int r;
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  151bool write = false;
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  152sector_t block1, block2;
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  153struct ebs_c *ec = 
container_of(ws, struct ebs_c, ws);
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  154struct bio *bio;
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  155struct bio_list bios;
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  156  
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  157bio_list_init();
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  158  
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  159
spin_lock_irq(>lock);
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  160bios = ec->bios_in;
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  161
bio_list_init(>bios_in);
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  162
spin_unlock_irq(>lock);
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  163  
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  164/* Prefetch all read 
and any mis-aligned write buffers */
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  165bio_list_for_each(bio, 
) {
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  166block1 = 
__sector_to_block(ec, bio->bi_iter.bi_sector);
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  167if (bio_op(bio) 
== REQ_OP_READ)
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  168
dm_bufio_prefetch(ec->bufio, block1, __nr_blocks(ec, bio));
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  169else if 
(bio_op(bio) == REQ_OP_WRITE && !(bio->bi_opf & REQ_PREFLUSH)) {
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  170block2 
= __sector_to_block(ec, bio_end_sector(bio));
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  171if 
(__block_mod(bio->bi_iter.bi_sector, ec->u_bs))
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  172
dm_bufio_prefetch(ec->bufio, block1, 1);
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  173if 
(__block_mod(bio_end_sector(bio), ec->u_bs) && block2 != block1)
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  174
dm_bufio_prefetch(ec->bufio, block2, 1);
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  175}
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  176}
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  177  
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  178bio_list_for_each(bio, 
) {
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  179r = -EIO;
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  180if (bio_op(bio) 
== REQ_OP_READ)
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  181r = 
__ebs_rw_bio(ec, READ, bio);
eeb17d25430dc2 Heinz Mauelshagen 2020-03-09  182else

[dm-devel] [dm:for-next 30/30] drivers/md/dm-bufio.c:1342:13: error: implicit declaration of function 'block_to_sector'; did you mean 'blk_rq_sectors'?

2020-04-25 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
head:   42dfec0984d6c084a33ec7997b2b792fd0fc628c
commit: 42dfec0984d6c084a33ec7997b2b792fd0fc628c [30/30] dm bufio: implement 
discard
config: x86_64-rhel (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
git checkout 42dfec0984d6c084a33ec7997b2b792fd0fc628c
# save the attached .config to linux build tree
make ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 

All errors (new ones prefixed by >>):

   drivers/md/dm-bufio.c: In function 'dm_bufio_issue_discard':
>> drivers/md/dm-bufio.c:1342:13: error: implicit declaration of function 
>> 'block_to_sector'; did you mean 'blk_rq_sectors'? 
>> [-Werror=implicit-function-declaration]
  .sector = block_to_sector(c, block),
^~~
blk_rq_sectors
   cc1: some warnings being treated as errors

vim +1342 drivers/md/dm-bufio.c

  1327  
  1328  /*
  1329   * Use dm-io to send a discard request to flush the device.
  1330   */
  1331  int dm_bufio_issue_discard(struct dm_bufio_client *c, sector_t block, 
sector_t count)
  1332  {
  1333  struct dm_io_request io_req = {
  1334  .bi_op = REQ_OP_DISCARD,
  1335  .bi_op_flags = REQ_SYNC,
  1336  .mem.type = DM_IO_KMEM,
  1337  .mem.ptr.addr = NULL,
  1338  .client = c->dm_io,
  1339  };
  1340  struct dm_io_region io_reg = {
  1341  .bdev = c->bdev,
> 1342  .sector = block_to_sector(c, block),
  1343  .count = block_to_sector(c, count),
  1344  };
  1345  
  1346  BUG_ON(dm_bufio_in_request());
  1347  
  1348  return dm_io(_req, 1, _reg, NULL);
  1349  }
  1350  EXPORT_SYMBOL_GPL(dm_bufio_issue_discard);
  1351  

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


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

[dm-devel] [dm:for-next 27/28] drivers/md/dm-crypt.c:2281: undefined reference to `key_type_encrypted'

2020-04-22 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
head:   2d56364c7c7ba64576c37a16c8af98f66b4bb16b
commit: 5cacab0334b940164ad6aac39712f4d3b06076bc [27/28] dm crypt: support 
using encrypted keys
config: i386-randconfig-e001-20200421 (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
git checkout 5cacab0334b940164ad6aac39712f4d3b06076bc
# save the attached .config to linux build tree
make ARCH=i386 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot 

All errors (new ones prefixed by >>):

   ld: drivers/md/dm-crypt.o: in function `crypt_set_keyring_key':
>> drivers/md/dm-crypt.c:2281: undefined reference to `key_type_encrypted'

vim +2281 drivers/md/dm-crypt.c

  2251  
  2252  static int crypt_set_keyring_key(struct crypt_config *cc, const char 
*key_string)
  2253  {
  2254  char *new_key_string, *key_desc;
  2255  int ret;
  2256  struct key_type *type;
  2257  struct key *key;
  2258  int (*set_key)(struct crypt_config *cc, struct key *key);
  2259  
  2260  /*
  2261   * Reject key_string with whitespace. dm core currently lacks 
code for
  2262   * proper whitespace escaping in arguments on DM_TABLE_STATUS 
path.
  2263   */
  2264  if (contains_whitespace(key_string)) {
  2265  DMERR("whitespace chars not allowed in key string");
  2266  return -EINVAL;
  2267  }
  2268  
  2269  /* look for next ':' separating key_type from key_description */
  2270  key_desc = strpbrk(key_string, ":");
  2271  if (!key_desc || key_desc == key_string || !strlen(key_desc + 
1))
  2272  return -EINVAL;
  2273  
  2274  if (!strncmp(key_string, "logon:", key_desc - key_string + 1)) {
  2275  type = _type_logon;
  2276  set_key = set_key_user;
  2277  } else if (!strncmp(key_string, "user:", key_desc - key_string 
+ 1)) {
  2278  type = _type_user;
  2279  set_key = set_key_user;
  2280  } else if (!strncmp(key_string, "encrypted:", key_desc - 
key_string + 1)) {
> 2281  type = _type_encrypted;
  2282  set_key = set_key_encrypted;
  2283  } else {
  2284  return -EINVAL;
  2285  }
  2286  
  2287  new_key_string = kstrdup(key_string, GFP_KERNEL);
  2288  if (!new_key_string)
  2289  return -ENOMEM;
  2290  
  2291  key = request_key(type, key_desc + 1, NULL);
  2292  if (IS_ERR(key)) {
  2293  kzfree(new_key_string);
  2294  return PTR_ERR(key);
  2295  }
  2296  
  2297  down_read(>sem);
  2298  
  2299  ret = set_key(cc, key);
  2300  if (ret < 0) {
  2301  up_read(>sem);
  2302  key_put(key);
  2303  kzfree(new_key_string);
  2304  return ret;
  2305  }
  2306  
  2307  up_read(>sem);
  2308  key_put(key);
  2309  
  2310  /* clear the flag since following operations may invalidate 
previously valid key */
  2311  clear_bit(DM_CRYPT_KEY_VALID, >flags);
  2312  
  2313  ret = crypt_setkey(cc);
  2314  
  2315  if (!ret) {
  2316  set_bit(DM_CRYPT_KEY_VALID, >flags);
  2317  kzfree(cc->key_string);
  2318  cc->key_string = new_key_string;
  2319  } else
  2320  kzfree(new_key_string);
  2321  
  2322  return ret;
  2323  }
  2324  

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


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

[dm-devel] [dm:for-next 30/32] drivers/md/dm-bio-record.h:45:7: error: 'struct bio' has no member named 'bi_integrity'; did you mean 'bi_iter'?

2020-02-28 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
head:   8a71e3cd0499fd9bfe1a99cda6a62fe83f80d622
commit: 6e18585702772969431c269438cb828a5e3d9db6 [30/32] dm bio record: 
save/restore bi_integrity and bi_end_io
config: x86_64-defconfig (attached as .config)
compiler: gcc-7 (Debian 7.5.0-5) 7.5.0
reproduce:
git checkout 6e18585702772969431c269438cb828a5e3d9db6
# save the attached .config to linux build tree
make ARCH=x86_64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 

All errors (new ones prefixed by >>):

   In file included from drivers/md/dm-raid1.c:8:0:
   drivers/md/dm-bio-record.h: In function 'dm_bio_restore':
>> drivers/md/dm-bio-record.h:45:7: error: 'struct bio' has no member named 
>> 'bi_integrity'; did you mean 'bi_iter'?
 bio->bi_integrity = bd->bi_integrity;
  ^~~~
  bi_iter

vim +45 drivers/md/dm-bio-record.h

38  
39  static inline void dm_bio_restore(struct dm_bio_details *bd, struct bio 
*bio)
40  {
41  bio->bi_disk = bd->bi_disk;
42  bio->bi_partno = bd->bi_partno;
43  bio->bi_flags = bd->bi_flags;
44  bio->bi_iter = bd->bi_iter;
  > 45  bio->bi_integrity = bd->bi_integrity;
46  if (bio->bi_end_io != bd->bi_end_io) {
47  /* BIO_CHAIN may have been used, reset __bi_remaining */
48  atomic_set(>__bi_remaining, 1);
49  bio->bi_end_io = bd->bi_end_io;
50  }
51  }
52  

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


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 5/5] dax, iomap: Add helper dax_iomap_zero() to zero a range

2020-02-03 Thread kbuild test robot
Hi Vivek,

I love your patch! Yet something to improve:

[auto build test ERROR on dm/for-next]
[also build test ERROR on s390/features xfs-linux/for-next linus/master 
linux-nvdimm/libnvdimm-for-next v5.5 next-20200203]
[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/Vivek-Goyal/dax-pmem-Provide-a-dax-operation-to-zero-range-of-memory/20200204-082750
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
config: s390-alldefconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 7.5.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.5.0 make.cross ARCH=s390 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 

All errors (new ones prefixed by >>):

>> drivers/s390/block/dcssblk.c:65:21: error: 'dcssblk_dax_zero_page_range' 
>> undeclared here (not in a function); did you mean 
>> 'generic_dax_zero_page_range'?
 .zero_page_range = dcssblk_dax_zero_page_range,
^~~
generic_dax_zero_page_range
   drivers/s390/block/dcssblk.c:945:12: warning: 'dcssblk_dax_zero_page_range' 
defined but not used [-Wunused-function]
static int dcssblk_dax_zero_page_range(struct dax_device *dax_dev,pgoff_t 
pgoff,
   ^~~

vim +65 drivers/s390/block/dcssblk.c

b3a9a0c36e1f7b Dan Williams   2018-05-02  59  
7a2765f6e82063 Dan Williams   2017-01-26  60  static const struct 
dax_operations dcssblk_dax_ops = {
7a2765f6e82063 Dan Williams   2017-01-26  61.direct_access = 
dcssblk_dax_direct_access,
7bf7eac8d64805 Dan Williams   2019-05-16  62.dax_supported = 
generic_fsdax_supported,
5d61e43b3975c0 Dan Williams   2017-06-27  63.copy_from_iter = 
dcssblk_dax_copy_from_iter,
b3a9a0c36e1f7b Dan Williams   2018-05-02  64.copy_to_iter = 
dcssblk_dax_copy_to_iter,
c5cb636194a0d8 Vivek Goyal2020-02-03 @65.zero_page_range = 
dcssblk_dax_zero_page_range,
^1da177e4c3f41 Linus Torvalds 2005-04-16  66  };
^1da177e4c3f41 Linus Torvalds 2005-04-16  67  

:: The code at line 65 was first introduced by commit
:: c5cb636194a0d8d33d549903c92189385db48406 s390,dax: Add dax 
zero_page_range operation to dcssblk driver

:: TO: Vivek Goyal 
:: CC: 0day robot 

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 1/2] drivers: md: dm-log.c: Remove unused variable 'sz'

2019-11-30 Thread 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-Remove-unused-variable-sz/20191201-134548
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 

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 
:: CC: Linus Torvalds 

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

[dm-devel] [dm:for-next 30/30] drivers/md/dm-clone-target.c:563:14: error: too few arguments to function 'kvmalloc'

2019-09-11 Thread kbuild test robot
tree:   
https://kernel.googlesource.com/pub/scm/linux/kernel/git/device-mapper/linux-dm.git
 for-next
head:   25e871a221e3e7bdf31745d7aaaeffb671edfeac
commit: 25e871a221e3e7bdf31745d7aaaeffb671edfeac [30/30] dm: add clone target
config: s390-allmodconfig (attached as .config)
compiler: s390-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 25e871a221e3e7bdf31745d7aaaeffb671edfeac
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=s390 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 

All errors (new ones prefixed by >>):

   drivers/md/dm-clone-target.c: In function 'hash_table_init':
>> drivers/md/dm-clone-target.c:563:14: error: too few arguments to function 
>> 'kvmalloc'
 clone->ht = kvmalloc(sz * sizeof(struct hash_table_bucket));
 ^~~~
   In file included from include/linux/highmem.h:8:0,
from include/linux/bio.h:8,
from drivers/md/dm-clone-target.c:6:
   include/linux/mm.h:668:21: note: declared here
static inline void *kvmalloc(size_t size, gfp_t flags)
^~~~

vim +/kvmalloc +563 drivers/md/dm-clone-target.c

   549  
   550  #define bucket_lock_irqsave(bucket, flags) \
   551  spin_lock_irqsave(&(bucket)->lock, flags)
   552  
   553  #define bucket_unlock_irqrestore(bucket, flags) \
   554  spin_unlock_irqrestore(&(bucket)->lock, flags)
   555  
   556  static int hash_table_init(struct clone *clone)
   557  {
   558  unsigned int i, sz;
   559  struct hash_table_bucket *bucket;
   560  
   561  sz = 1 << HASH_TABLE_BITS;
   562  
 > 563  clone->ht = kvmalloc(sz * sizeof(struct hash_table_bucket));
   564  if (!clone->ht)
   565  return -ENOMEM;
   566  
   567  for (i = 0; i < sz; i++) {
   568  bucket = clone->ht + i;
   569  
   570  INIT_HLIST_HEAD(>head);
   571  spin_lock_init(>lock);
   572  }
   573  
   574  return 0;
   575  }
   576  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

[dm-devel] [dm:for-next 29/30] drivers//md/dm-clone-target.c:563:14: error: implicit declaration of function 'vmalloc'; did you mean 'kmalloc'?

2019-09-11 Thread kbuild test robot
tree:   
https://kernel.googlesource.com/pub/scm/linux/kernel/git/device-mapper/linux-dm.git
 for-next
head:   509818079bf1fefff4ed02d6a1b994e20efc0480
commit: 1529a543debdf75fb26e7ecd732da0cc36f78a36 [29/30] dm: add clone target
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
git checkout 1529a543debdf75fb26e7ecd732da0cc36f78a36
# 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 

All error/warnings (new ones prefixed by >>):

   drivers//md/dm-clone-target.c: In function 'hash_table_init':
>> drivers//md/dm-clone-target.c:563:14: error: implicit declaration of 
>> function 'vmalloc'; did you mean 'kmalloc'? 
>> [-Werror=implicit-function-declaration]
 clone->ht = vmalloc(sz * sizeof(struct hash_table_bucket));
 ^~~
 kmalloc
>> drivers//md/dm-clone-target.c:563:12: warning: assignment makes pointer from 
>> integer without a cast [-Wint-conversion]
 clone->ht = vmalloc(sz * sizeof(struct hash_table_bucket));
   ^
   drivers//md/dm-clone-target.c: In function 'hash_table_exit':
>> drivers//md/dm-clone-target.c:579:2: error: implicit declaration of function 
>> 'vfree'; did you mean 'kfree'? [-Werror=implicit-function-declaration]
 vfree(clone->ht);
 ^
 kfree
   cc1: some warnings being treated as errors
--
   drivers//md/dm-clone-metadata.c: In function 'dirty_map_init':
>> drivers//md/dm-clone-metadata.c:466:28: error: implicit declaration of 
>> function 'vzalloc'; did you mean 'kvzalloc'? 
>> [-Werror=implicit-function-declaration]
 md->dmap[0].dirty_words = vzalloc(bitmap_size(md->nr_words));
   ^~~
   kvzalloc
>> drivers//md/dm-clone-metadata.c:466:26: warning: assignment makes pointer 
>> from integer without a cast [-Wint-conversion]
 md->dmap[0].dirty_words = vzalloc(bitmap_size(md->nr_words));
 ^
   drivers//md/dm-clone-metadata.c:474:26: warning: assignment makes pointer 
from integer without a cast [-Wint-conversion]
 md->dmap[1].dirty_words = vzalloc(bitmap_size(md->nr_words));
 ^
>> drivers//md/dm-clone-metadata.c:478:3: error: implicit declaration of 
>> function 'vfree'; did you mean 'kvfree'? 
>> [-Werror=implicit-function-declaration]
  vfree(md->dmap[0].dirty_words);
  ^
  kvfree
   drivers//md/dm-clone-metadata.c: In function 'dm_clone_metadata_open':
>> drivers//md/dm-clone-metadata.c:553:19: error: implicit declaration of 
>> function 'vmalloc'; did you mean 'kvmalloc'? 
>> [-Werror=implicit-function-declaration]
 md->region_map = vmalloc(bitmap_size(md->nr_regions));
  ^~~
  kvmalloc
   drivers//md/dm-clone-metadata.c:553:17: warning: assignment makes pointer 
from integer without a cast [-Wint-conversion]
 md->region_map = vmalloc(bitmap_size(md->nr_regions));
^
   cc1: some warnings being treated as errors

vim +563 drivers//md/dm-clone-target.c

   549  
   550  #define bucket_lock_irqsave(bucket, flags) \
   551  spin_lock_irqsave(&(bucket)->lock, flags)
   552  
   553  #define bucket_unlock_irqrestore(bucket, flags) \
   554  spin_unlock_irqrestore(&(bucket)->lock, flags)
   555  
   556  static int hash_table_init(struct clone *clone)
   557  {
   558  unsigned int i, sz;
   559  struct hash_table_bucket *bucket;
   560  
   561  sz = 1 << HASH_TABLE_BITS;
   562  
 > 563  clone->ht = vmalloc(sz * sizeof(struct hash_table_bucket));
   564  if (!clone->ht)
   565  return -ENOMEM;
   566  
   567  for (i = 0; i < sz; i++) {
   568  bucket = clone->ht + i;
   569  
   570  INIT_HLIST_HEAD(>head);
   571  spin_lock_init(>lock);
   572  }
   573  
   574  return 0;
   575  }
   576  
   577  static void hash_table_exit(struct clone *clone)
   578  {
 > 579  vfree(clone->ht);
   580  }
   581  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 2/2] scsi: core: fix dh and multipathing for SCSI hosts without request batching

2019-08-09 Thread kbuild test robot
Hi Steffen,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[cannot apply to v5.3-rc3 next-20190808]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Steffen-Maier/scsi-core-fix-missing-cleanup_rq-for-SCSI-hosts-without-request-batching/20190808-052017
config: i386-randconfig-d003-201931 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-10) 7.4.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 

All warnings (new ones prefixed by >>):

   drivers/scsi/scsi_lib.c:1824:3: error: 'const struct blk_mq_ops' has no 
member named 'cleanup_rq'; did you mean 'queue_rq'?
 .cleanup_rq = scsi_cleanup_rq,
  ^~
  queue_rq
   drivers/scsi/scsi_lib.c:1824:16: error: 'scsi_cleanup_rq' undeclared here 
(not in a function); did you mean 'scsi_queue_rq'?
 .cleanup_rq = scsi_cleanup_rq,
   ^~~
   scsi_queue_rq
   In file included from include/linux/export.h:45:0,
from include/linux/linkage.h:7,
from include/linux/fs.h:5,
from include/linux/highmem.h:5,
from include/linux/bio.h:8,
from drivers/scsi/scsi_lib.c:12:
   drivers/scsi/scsi_lib.c: In function 'scsi_device_from_queue':
   drivers/scsi/scsi_lib.c:1881:20: error: 'scsi_mq_ops_no_commit' undeclared 
(first use in this function); did you mean 'scsi_mq_ops'?
 if (q->mq_ops == _mq_ops_no_commit ||
   ^
   include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : 
__trace_if_value(cond))
   ^~~~
>> drivers/scsi/scsi_lib.c:1881:2: note: in expansion of macro 'if'
 if (q->mq_ops == _mq_ops_no_commit ||
 ^~
   drivers/scsi/scsi_lib.c:1881:20: note: each undeclared identifier is 
reported only once for each function it appears in
 if (q->mq_ops == _mq_ops_no_commit ||
   ^
   include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : 
__trace_if_value(cond))
   ^~~~
>> drivers/scsi/scsi_lib.c:1881:2: note: in expansion of macro 'if'
 if (q->mq_ops == _mq_ops_no_commit ||
 ^~

vim +/if +1881 drivers/scsi/scsi_lib.c

  1869  
  1870  /**
  1871   * scsi_device_from_queue - return sdev associated with a request_queue
  1872   * @q: The request queue to return the sdev from
  1873   *
  1874   * Return the sdev associated with a request queue or NULL if the
  1875   * request_queue does not reference a SCSI device.
  1876   */
  1877  struct scsi_device *scsi_device_from_queue(struct request_queue *q)
  1878  {
  1879  struct scsi_device *sdev = NULL;
  1880  
> 1881  if (q->mq_ops == _mq_ops_no_commit ||
  1882  q->mq_ops == _mq_ops)
  1883  sdev = q->queuedata;
  1884  if (!sdev || !get_device(>sdev_gendev))
  1885  sdev = NULL;
  1886  
  1887  return sdev;
  1888  }
  1889  EXPORT_SYMBOL_GPL(scsi_device_from_queue);
  1890  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 1/2] scsi: core: fix missing .cleanup_rq for SCSI hosts without request batching

2019-08-08 Thread kbuild test robot
Hi Steffen,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc3 next-20190808]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Steffen-Maier/scsi-core-fix-missing-cleanup_rq-for-SCSI-hosts-without-request-batching/20190808-052017
config: s390-allmodconfig (attached as .config)
compiler: s390-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=s390 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 

All errors (new ones prefixed by >>):

   drivers//scsi/scsi_lib.c:1824:3: error: 'const struct blk_mq_ops' has no 
member named 'cleanup_rq'; did you mean 'queue_rq'?
 .cleanup_rq = scsi_cleanup_rq,
  ^~
  queue_rq
   drivers//scsi/scsi_lib.c:1824:16: error: 'scsi_cleanup_rq' undeclared here 
(not in a function); did you mean 'scsi_queue_rq'?
 .cleanup_rq = scsi_cleanup_rq,
   ^~~
   scsi_queue_rq
>> drivers//scsi/scsi_lib.c:1824:16: error: positional initialization of field 
>> in 'struct' declared with 'designated_init' attribute 
>> [-Werror=designated-init]
   drivers//scsi/scsi_lib.c:1824:16: note: (near initialization for 
'scsi_mq_ops')
   cc1: some warnings being treated as errors

vim +1824 drivers//scsi/scsi_lib.c

  1811  
  1812  static const struct blk_mq_ops scsi_mq_ops = {
  1813  .get_budget = scsi_mq_get_budget,
  1814  .put_budget = scsi_mq_put_budget,
  1815  .queue_rq   = scsi_queue_rq,
  1816  .complete   = scsi_softirq_done,
  1817  .timeout= scsi_timeout,
  1818  #ifdef CONFIG_BLK_DEBUG_FS
  1819  .show_rq= scsi_show_rq,
  1820  #endif
  1821  .init_request   = scsi_mq_init_request,
  1822  .exit_request   = scsi_mq_exit_request,
  1823  .initialize_rq_fn = scsi_initialize_rq,
> 1824  .cleanup_rq = scsi_cleanup_rq,
  1825  .busy   = scsi_mq_lld_busy,
  1826  .map_queues = scsi_map_queues,
  1827  };
  1828  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 2/2] scsi: core: fix dh and multipathing for SCSI hosts without request batching

2019-08-08 Thread kbuild test robot
Hi Steffen,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc3 next-20190807]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Steffen-Maier/scsi-core-fix-missing-cleanup_rq-for-SCSI-hosts-without-request-batching/20190808-052017
config: riscv-defconfig (attached as .config)
compiler: riscv64-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=riscv 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 

All errors (new ones prefixed by >>):

   drivers/scsi/scsi_lib.c:1824:3: error: 'const struct blk_mq_ops' has no 
member named 'cleanup_rq'; did you mean 'queue_rq'?
 .cleanup_rq = scsi_cleanup_rq,
  ^~
  queue_rq
   drivers/scsi/scsi_lib.c:1824:16: error: 'scsi_cleanup_rq' undeclared here 
(not in a function); did you mean 'scsi_queue_rq'?
 .cleanup_rq = scsi_cleanup_rq,
   ^~~
   scsi_queue_rq
   drivers/scsi/scsi_lib.c: In function 'scsi_device_from_queue':
>> drivers/scsi/scsi_lib.c:1881:20: error: 'scsi_mq_ops_no_commit' undeclared 
>> (first use in this function); did you mean 'scsi_mq_ops'?
 if (q->mq_ops == _mq_ops_no_commit ||
   ^
   scsi_mq_ops
   drivers/scsi/scsi_lib.c:1881:20: note: each undeclared identifier is 
reported only once for each function it appears in

vim +1881 drivers/scsi/scsi_lib.c

  1811  
  1812  static const struct blk_mq_ops scsi_mq_ops = {
  1813  .get_budget = scsi_mq_get_budget,
  1814  .put_budget = scsi_mq_put_budget,
  1815  .queue_rq   = scsi_queue_rq,
  1816  .complete   = scsi_softirq_done,
  1817  .timeout= scsi_timeout,
  1818  #ifdef CONFIG_BLK_DEBUG_FS
  1819  .show_rq= scsi_show_rq,
  1820  #endif
  1821  .init_request   = scsi_mq_init_request,
  1822  .exit_request   = scsi_mq_exit_request,
  1823  .initialize_rq_fn = scsi_initialize_rq,
> 1824  .cleanup_rq = scsi_cleanup_rq,
  1825  .busy   = scsi_mq_lld_busy,
  1826  .map_queues = scsi_map_queues,
  1827  };
  1828  
  1829  struct request_queue *scsi_mq_alloc_queue(struct scsi_device *sdev)
  1830  {
  1831  sdev->request_queue = blk_mq_init_queue(>host->tag_set);
  1832  if (IS_ERR(sdev->request_queue))
  1833  return NULL;
  1834  
  1835  sdev->request_queue->queuedata = sdev;
  1836  __scsi_init_queue(sdev->host, sdev->request_queue);
  1837  blk_queue_flag_set(QUEUE_FLAG_SCSI_PASSTHROUGH, 
sdev->request_queue);
  1838  return sdev->request_queue;
  1839  }
  1840  
  1841  int scsi_mq_setup_tags(struct Scsi_Host *shost)
  1842  {
  1843  unsigned int cmd_size, sgl_size;
  1844  
  1845  sgl_size = scsi_mq_inline_sgl_size(shost);
  1846  cmd_size = sizeof(struct scsi_cmnd) + shost->hostt->cmd_size + 
sgl_size;
  1847  if (scsi_host_get_prot(shost))
  1848  cmd_size += sizeof(struct scsi_data_buffer) +
  1849  sizeof(struct scatterlist) * 
SCSI_INLINE_PROT_SG_CNT;
  1850  
  1851  memset(>tag_set, 0, sizeof(shost->tag_set));
  1852  shost->tag_set.ops = _mq_ops;
  1853  shost->tag_set.nr_hw_queues = shost->nr_hw_queues ? : 1;
  1854  shost->tag_set.queue_depth = shost->can_queue;
  1855  shost->tag_set.cmd_size = cmd_size;
  1856  shost->tag_set.numa_node = NUMA_NO_NODE;
  1857  shost->tag_set.flags = BLK_MQ_F_SHOULD_MERGE;
  1858  shost->tag_set.flags |=
  1859  
BLK_ALLOC_POLICY_TO_MQ_FLAG(shost->hostt->tag_alloc_policy);
  1860  shost->tag_set.driver_data = shost;
  1861  
  1862  return blk_mq_alloc_tag_set(>tag_set);
  1863  }
  1864  
  1865  void scsi_mq_destroy_tags(struct Scsi_Host *shost)
  1866  {
  1867  blk_mq_free_tag_set(>tag_set);
  1868  }
  1869  
  1870  /**
  1871   * scsi_device_from_queue - return sdev associated with a request_queue
  1872   * @q: The request queue to return the sdev from
  1873   *
  1874   * Return the sdev associated with a request queue or NULL if the
  1875   * request_queue does not reference a SCSI device.
  1876   */
  1877  struct scsi_device *scsi_device_from_queue(struct request_queue *q)
  1878  {
  1879  struct scsi_device *sdev = NULL;
  1880  
> 1881  if (q->mq_ops == _mq_ops_no_commit ||
  1882   

Re: [dm-devel] [PATCH 1/2] scsi: core: fix missing .cleanup_rq for SCSI hosts without request batching

2019-08-07 Thread kbuild test robot
Hi Steffen,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc3 next-20190807]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Steffen-Maier/scsi-core-fix-missing-cleanup_rq-for-SCSI-hosts-without-request-batching/20190808-052017
config: riscv-defconfig (attached as .config)
compiler: riscv64-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=riscv 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 

All errors (new ones prefixed by >>):

>> drivers/scsi/scsi_lib.c:1824:3: error: 'const struct blk_mq_ops' has no 
>> member named 'cleanup_rq'; did you mean 'queue_rq'?
 .cleanup_rq = scsi_cleanup_rq,
  ^~
  queue_rq
>> drivers/scsi/scsi_lib.c:1824:16: error: 'scsi_cleanup_rq' undeclared here 
>> (not in a function); did you mean 'scsi_queue_rq'?
 .cleanup_rq = scsi_cleanup_rq,
   ^~~
   scsi_queue_rq

vim +1824 drivers/scsi/scsi_lib.c

  1811  
  1812  static const struct blk_mq_ops scsi_mq_ops = {
  1813  .get_budget = scsi_mq_get_budget,
  1814  .put_budget = scsi_mq_put_budget,
  1815  .queue_rq   = scsi_queue_rq,
  1816  .complete   = scsi_softirq_done,
  1817  .timeout= scsi_timeout,
  1818  #ifdef CONFIG_BLK_DEBUG_FS
  1819  .show_rq= scsi_show_rq,
  1820  #endif
  1821  .init_request   = scsi_mq_init_request,
  1822  .exit_request   = scsi_mq_exit_request,
  1823  .initialize_rq_fn = scsi_initialize_rq,
> 1824  .cleanup_rq = scsi_cleanup_rq,
  1825  .busy   = scsi_mq_lld_busy,
  1826  .map_queues = scsi_map_queues,
  1827  };
  1828  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

[dm-devel] [dm:for-next 22/22] drivers/md/dm-dust.o:undefined reference to `__udivdi3'

2019-04-26 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
head:   58a5429bb8ce1aac81be6ba201bc9fe9f4422d67
commit: 58a5429bb8ce1aac81be6ba201bc9fe9f4422d67 [22/22] dm: add dust target
config: microblaze-allyesconfig (attached as .config)
compiler: microblaze-linux-gcc (GCC) 8.1.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 58a5429bb8ce1aac81be6ba201bc9fe9f4422d67
# save the attached .config to linux build tree
GCC_VERSION=8.1.0 make.cross ARCH=microblaze 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 

All errors (new ones prefixed by >>):

   `.exit.data' referenced in section `.exit.text' of drivers/tty/n_hdlc.o: 
defined in discarded section `.exit.data' of drivers/tty/n_hdlc.o
   `.exit.data' referenced in section `.exit.text' of drivers/tty/n_hdlc.o: 
defined in discarded section `.exit.data' of drivers/tty/n_hdlc.o
   drivers/md/dm-dust.o: In function `dust_map':
>> drivers/md/dm-dust.o:(.text+0x600): undefined reference to `__udivdi3'
   drivers/md/dm-dust.o: In function `dust_message':
   drivers/md/dm-dust.o:(.text+0xe4c): undefined reference to `__udivdi3'
   drivers/android/binder.o: In function `binder_thread_write':
   drivers/android/.tmp_gl_binder.o:(.text+0xe558): undefined reference to 
`__user_bad'
   drivers/android/.tmp_gl_binder.o:(.text+0xe584): undefined reference to 
`__user_bad'
   drivers/android/.tmp_gl_binder.o:(.text+0xe9fc): undefined reference to 
`__user_bad'
   drivers/android/.tmp_gl_binder.o:(.text+0xef78): undefined reference to 
`__user_bad'
   drivers/android/.tmp_gl_binder.o:(.text+0xf554): undefined reference to 
`__user_bad'
   make[1]: *** [vmlinux] Error 1
   make[1]: Target '_all' not remade because of errors.

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

[dm-devel] [dm:dm-5.2 22/22] ERROR: "__aeabi_uldivmod" [drivers/md/dm-dust.ko] undefined!

2019-04-26 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
dm-5.2
head:   cefb8eb074c8cde87d4a6947e24c00b8cbde830c
commit: cefb8eb074c8cde87d4a6947e24c00b8cbde830c [22/22] dm: add dust target
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.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 cefb8eb074c8cde87d4a6947e24c00b8cbde830c
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=arm 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot 

All errors (new ones prefixed by >>):

>> ERROR: "__aeabi_uldivmod" [drivers/md/dm-dust.ko] undefined!

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

[dm-devel] [RFC PATCH dm] dm: dust_rb_search() can be static

2019-04-26 Thread kbuild test robot


Fixes: cefb8eb074c8 ("dm: add dust target")
Signed-off-by: kbuild test robot 
---
 dm-dust.c |8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/md/dm-dust.c b/drivers/md/dm-dust.c
index f5434ada..dd56284 100644
--- a/drivers/md/dm-dust.c
+++ b/drivers/md/dm-dust.c
@@ -32,7 +32,7 @@ struct dust_device {
bool quiet_mode:1;
 };
 
-struct badblock *dust_rb_search(struct rb_root *root, sector_t blk)
+static struct badblock *dust_rb_search(struct rb_root *root, sector_t blk)
 {
struct rb_node *node = root->rb_node;
 
@@ -50,7 +50,7 @@ struct badblock *dust_rb_search(struct rb_root *root, 
sector_t blk)
return NULL;
 }
 
-bool dust_rb_insert(struct rb_root *root, struct badblock *new)
+static bool dust_rb_insert(struct rb_root *root, struct badblock *new)
 {
struct badblock *bblk;
struct rb_node **link = >rb_node, *parent = NULL;
@@ -492,7 +492,7 @@ static struct target_type dust_target = {
.prepare_ioctl = dust_prepare_ioctl,
 };
 
-int __init dm_dust_init(void)
+static int __init dm_dust_init(void)
 {
int result = dm_register_target(_target);
 
@@ -502,7 +502,7 @@ int __init dm_dust_init(void)
return result;
 }
 
-void __exit dm_dust_exit(void)
+static void __exit dm_dust_exit(void)
 {
dm_unregister_target(_target);
 }

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel


[dm-devel] [dm:block-dm-4.21-inflight 4/9] include/linux/percpu-defs.h:219:52: error: invalid operands to binary + (have 'struct disk_stats' and 'int')

2018-12-12 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
block-dm-4.21-inflight
head:   847fb34c0a7f7bbfca9d6053316aafb864a550b2
commit: 525770fecc9110905dfc5e6b447155b08d865936 [4/9] block: switch to per-cpu 
in-flight counters
config: arm-at91_dt_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.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 525770fecc9110905dfc5e6b447155b08d865936
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   In file included from ./arch/arm/include/generated/asm/local.h:1:0,
from include/linux/genhd.h:20,
from block/genhd.c:7:
   block/genhd.c: In function 'part_inc_in_flight':
>> include/linux/percpu-defs.h:219:52: error: invalid operands to binary + 
>> (have 'struct disk_stats' and 'int')
 const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
 ~ ^
   include/asm-generic/local.h:31:40: note: in definition of macro 'local_inc'
#define local_inc(l) atomic_long_inc(&(l)->a)
   ^
   include/linux/percpu-defs.h:259:2: note: in expansion of macro 
'__verify_pcpu_ptr'
 __verify_pcpu_ptr(__p);  \
 ^
   include/linux/percpu-defs.h:263:47: note: in expansion of macro 
'VERIFY_PERCPU_PTR'
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
  ^
   block/genhd.c:53:13: note: in expansion of macro 'per_cpu_ptr'
 local_inc(_cpu_ptr(part->dkstats, cpu)->in_flight[rw]);
^~~
>> include/linux/percpu-defs.h:260:10: error: invalid type argument of unary 
>> '*' (have 'struct disk_stats')
 (typeof(*(__p)) __kernel __force *)(__p);   \
 ^~
   include/asm-generic/local.h:31:40: note: in definition of macro 'local_inc'
#define local_inc(l) atomic_long_inc(&(l)->a)
   ^
   include/linux/percpu-defs.h:263:47: note: in expansion of macro 
'VERIFY_PERCPU_PTR'
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
  ^
   block/genhd.c:53:13: note: in expansion of macro 'per_cpu_ptr'
 local_inc(_cpu_ptr(part->dkstats, cpu)->in_flight[rw]);
^~~
>> include/linux/percpu-defs.h:219:52: error: invalid operands to binary + 
>> (have 'struct disk_stats' and 'int')
 const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
 ~ ^
   include/asm-generic/local.h:31:40: note: in definition of macro 'local_inc'
#define local_inc(l) atomic_long_inc(&(l)->a)
   ^
   include/linux/percpu-defs.h:259:2: note: in expansion of macro 
'__verify_pcpu_ptr'
 __verify_pcpu_ptr(__p);  \
 ^
   include/linux/percpu-defs.h:263:47: note: in expansion of macro 
'VERIFY_PERCPU_PTR'
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
  ^
   block/genhd.c:55:14: note: in expansion of macro 'per_cpu_ptr'
  local_inc(_cpu_ptr(part_to_disk(part)->part0.dkstats, 
cpu)->in_flight[rw]);
 ^~~
>> include/linux/percpu-defs.h:260:10: error: invalid type argument of unary 
>> '*' (have 'struct disk_stats')
 (typeof(*(__p)) __kernel __force *)(__p);   \
 ^~
   include/asm-generic/local.h:31:40: note: in definition of macro 'local_inc'
#define local_inc(l) atomic_long_inc(&(l)->a)
   ^
   include/linux/percpu-defs.h:263:47: note: in expansion of macro 
'VERIFY_PERCPU_PTR'
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
  ^
   block/genhd.c:55:14: note: in expansion of macro 'per_cpu_ptr'
  local_inc(_cpu_ptr(part_to_disk(part)->part0.dkstats, 
cpu)->in_flight[rw]);
 ^~~
   block/genhd.c: In function 'part_dec_in_flight':
>> include/linux/percpu-defs.h:219:52: error: invalid operands to binary + 
>> (have 'struct disk_stats' and 'int')
 const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
 ~ ^
   include/asm-generic/local.h:32:40: note: in definition of macro 'local_dec'
#define local_dec(l) atomic_long_dec(&(l)->a)
   ^
   include/linux/percpu-defs.h:259:2: note: in expansion of macro 
'__verify_pcpu_ptr'
 __verify_pcpu_ptr(__p);  \
 ^
   

[dm-devel] [dm:for-next 6/11] drivers//md/dm.c:655:7: note: in expansion of macro 'local_read'

2018-12-05 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
head:   bb4e8f8316b49ff3a716d1d3cacdc3fd8ca8ef19
commit: 729d2b8facea98d83e7df7ff850d79795ed23d3d [6/11] dm: remove the pending 
IO accounting
config: x86_64-randconfig-r0-12060719 (attached as .config)
compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026
reproduce:
git checkout 729d2b8facea98d83e7df7ff850d79795ed23d3d
# save the attached .config to linux build tree
make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   In file included from include/linux/err.h:5:0,
from include/linux/kthread.h:5,
from drivers//md/dm-core.h:12,
from drivers//md/dm.c:8:
   drivers//md/dm.c: In function 'md_in_flight':
   include/linux/percpu-defs.h:219:52: error: invalid operands to binary + 
(have 'struct disk_stats' and 'int')
 const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
 ~ ^
   include/linux/compiler.h:58:30: note: in definition of macro '__trace_if'
 if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
 ^~~~
>> drivers//md/dm.c:655:3: note: in expansion of macro 'if'
  if (local_read(_cpu_ptr(part->dkstats, cpu)->in_flight[0]) ||
  ^~
>> drivers//md/dm.c:655:7: note: in expansion of macro 'local_read'
  if (local_read(_cpu_ptr(part->dkstats, cpu)->in_flight[0]) ||
  ^~
   include/linux/percpu-defs.h:259:2: note: in expansion of macro 
'__verify_pcpu_ptr'
 __verify_pcpu_ptr(__p);  \
 ^
   include/linux/percpu-defs.h:263:47: note: in expansion of macro 
'VERIFY_PERCPU_PTR'
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
  ^
   drivers//md/dm.c:655:19: note: in expansion of macro 'per_cpu_ptr'
  if (local_read(_cpu_ptr(part->dkstats, cpu)->in_flight[0]) ||
  ^~~
   include/linux/percpu-defs.h:260:10: error: invalid type argument of unary 
'*' (have 'struct disk_stats')
 (typeof(*(__p)) __kernel __force *)(__p);   \
 ^~
   include/linux/compiler.h:58:30: note: in definition of macro '__trace_if'
 if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
 ^~~~
>> drivers//md/dm.c:655:3: note: in expansion of macro 'if'
  if (local_read(_cpu_ptr(part->dkstats, cpu)->in_flight[0]) ||
  ^~
>> drivers//md/dm.c:655:7: note: in expansion of macro 'local_read'
  if (local_read(_cpu_ptr(part->dkstats, cpu)->in_flight[0]) ||
  ^~
   include/linux/percpu-defs.h:263:47: note: in expansion of macro 
'VERIFY_PERCPU_PTR'
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
  ^
   drivers//md/dm.c:655:19: note: in expansion of macro 'per_cpu_ptr'
  if (local_read(_cpu_ptr(part->dkstats, cpu)->in_flight[0]) ||
  ^~~
   include/linux/percpu-defs.h:219:52: error: invalid operands to binary + 
(have 'struct disk_stats' and 'int')
 const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
 ~ ^
   include/linux/compiler.h:58:30: note: in definition of macro '__trace_if'
 if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
 ^~~~
>> drivers//md/dm.c:655:3: note: in expansion of macro 'if'
  if (local_read(_cpu_ptr(part->dkstats, cpu)->in_flight[0]) ||
  ^~
   drivers//md/dm.c:656:7: note: in expansion of macro 'local_read'
  local_read(_cpu_ptr(part->dkstats, cpu)->in_flight[1]))
  ^~
   include/linux/percpu-defs.h:259:2: note: in expansion of macro 
'__verify_pcpu_ptr'
 __verify_pcpu_ptr(__p);  \
 ^
   include/linux/percpu-defs.h:263:47: note: in expansion of macro 
'VERIFY_PERCPU_PTR'
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
  ^
   drivers//md/dm.c:656:19: note: in expansion of macro 'per_cpu_ptr'
  local_read(_cpu_ptr(part->dkstats, cpu)->in_flight[1]))
  ^~~
   include/linux/percpu-defs.h:260:10: error: invalid type argument of unary 
'*' (have 'struct disk_stats')
 (typeof(*(__p)) __kernel __force *)(__p);   \
 ^~
   include/linux/compiler.h:58:30: note: in definition of macro '__trace_if'
 if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
 ^~~~
>> drivers//md/dm.c:655:3: note: in expansion of macro 'if'
  if (local_read(_cpu_ptr(part->dkstats, cpu)->in_flight[0]) ||
  ^~
   drivers//md/dm.c:656:7: note: in expansion of macro 'local_read'
  local_read(_cpu_ptr(part->dkstats, cpu)->in_flight[1]))
  ^~
   

[dm-devel] [dm:block-dm-4.21-inflight 6/9] drivers//md/dm.c:655:19: note: in expansion of macro 'per_cpu_ptr'

2018-11-30 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
block-dm-4.21-inflight
head:   43ffa903230b8656a88fdc38882153a765076972
commit: 335b41c7513110b1519d8a93d412c138bf671263 [6/9] dm: remove the pending 
IO accounting
config: i386-randconfig-x001-201847 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
git checkout 335b41c7513110b1519d8a93d412c138bf671263
# save the attached .config to linux build tree
make ARCH=i386 

All warnings (new ones prefixed by >>):

   In file included from include/linux/genhd.h:20:0,
from include/linux/blkdev.h:11,
from include/linux/blk-mq.h:5,
from drivers//md/dm-core.h:14,
from drivers//md/dm.c:8:
   drivers//md/dm.c: In function 'md_in_flight':
   include/linux/percpu-defs.h:219:52: error: invalid operands to binary + 
(have 'struct disk_stats' and 'int')
 const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
 ~ ^
   arch/x86/include/asm/local.h:16:42: note: in definition of macro 'local_read'
#define local_read(l) atomic_long_read(&(l)->a)
 ^
   include/linux/percpu-defs.h:259:2: note: in expansion of macro 
'__verify_pcpu_ptr'
 __verify_pcpu_ptr(__p);  \
 ^
   include/linux/percpu-defs.h:263:47: note: in expansion of macro 
'VERIFY_PERCPU_PTR'
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
  ^
>> drivers//md/dm.c:655:19: note: in expansion of macro 'per_cpu_ptr'
  if (local_read(_cpu_ptr(part->dkstats, cpu)->in_flight[0]) ||
  ^~~
   include/linux/percpu-defs.h:260:10: error: invalid type argument of unary 
'*' (have 'struct disk_stats')
 (typeof(*(__p)) __kernel __force *)(__p);   \
 ^~
   arch/x86/include/asm/local.h:16:42: note: in definition of macro 'local_read'
#define local_read(l) atomic_long_read(&(l)->a)
 ^
   include/linux/percpu-defs.h:263:47: note: in expansion of macro 
'VERIFY_PERCPU_PTR'
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
  ^
>> drivers//md/dm.c:655:19: note: in expansion of macro 'per_cpu_ptr'
  if (local_read(_cpu_ptr(part->dkstats, cpu)->in_flight[0]) ||
  ^~~
   include/linux/percpu-defs.h:219:52: error: invalid operands to binary + 
(have 'struct disk_stats' and 'int')
 const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
 ~ ^
   arch/x86/include/asm/local.h:16:42: note: in definition of macro 'local_read'
#define local_read(l) atomic_long_read(&(l)->a)
 ^
   include/linux/percpu-defs.h:259:2: note: in expansion of macro 
'__verify_pcpu_ptr'
 __verify_pcpu_ptr(__p);  \
 ^
   include/linux/percpu-defs.h:263:47: note: in expansion of macro 
'VERIFY_PERCPU_PTR'
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
  ^
   drivers//md/dm.c:656:19: note: in expansion of macro 'per_cpu_ptr'
  local_read(_cpu_ptr(part->dkstats, cpu)->in_flight[1]))
  ^~~
   include/linux/percpu-defs.h:260:10: error: invalid type argument of unary 
'*' (have 'struct disk_stats')
 (typeof(*(__p)) __kernel __force *)(__p);   \
 ^~
   arch/x86/include/asm/local.h:16:42: note: in definition of macro 'local_read'
#define local_read(l) atomic_long_read(&(l)->a)
 ^
   include/linux/percpu-defs.h:263:47: note: in expansion of macro 
'VERIFY_PERCPU_PTR'
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
  ^
   drivers//md/dm.c:656:19: note: in expansion of macro 'per_cpu_ptr'
  local_read(_cpu_ptr(part->dkstats, cpu)->in_flight[1]))
  ^~~

vim +/per_cpu_ptr +655 drivers//md/dm.c

   648  
   649  static bool md_in_flight(struct mapped_device *md)
   650  {
   651  int cpu;
   652  struct hd_struct *part = _disk(md)->part0;
   653  
   654  for_each_possible_cpu(cpu) {
 > 655  if (local_read(_cpu_ptr(part->dkstats, 
 > cpu)->in_flight[0]) ||
   656  local_read(_cpu_ptr(part->dkstats, 
cpu)->in_flight[1]))
   657  return true;
   658  }
   659  
   660  return false;
   661  }
   662  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all  

[dm-devel] [dm:block-dm-4.21-inflight 5/6] include/linux/percpu-defs.h:219:52: error: invalid operands to binary + (have 'struct disk_stats' and 'int')

2018-11-30 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
block-dm-4.21-inflight
head:   d694c9be5e3948e25ce95162fac9ab47ecc8c589
commit: 2f111f36ecbedc0cff9e87cdca3bfecc71d210d5 [5/6] block: switch to per-cpu 
in-flight counters
config: i386-randconfig-x000-201847 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
git checkout 2f111f36ecbedc0cff9e87cdca3bfecc71d210d5
# save the attached .config to linux build tree
make ARCH=i386 

All error/warnings (new ones prefixed by >>):

   In file included from include/asm-generic/percpu.h:7:0,
from arch/x86/include/asm/percpu.h:544,
from arch/x86/include/asm/preempt.h:6,
from include/linux/preempt.h:81,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/linux/stat.h:19,
from include/linux/module.h:10,
from block/genhd.c:5:
   block/genhd.c: In function 'part_inc_in_flight':
>> include/linux/percpu-defs.h:219:52: error: invalid operands to binary + 
>> (have 'struct disk_stats' and 'int')
 const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
 ~ ^
>> include/linux/percpu-defs.h:259:2: note: in expansion of macro 
>> '__verify_pcpu_ptr'
 __verify_pcpu_ptr(__p);  \
 ^
   include/linux/percpu-defs.h:263:47: note: in expansion of macro 
'VERIFY_PERCPU_PTR'
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
  ^
>> block/genhd.c:53:12: note: in expansion of macro 'per_cpu_ptr'
 local_inc(per_cpu_ptr(part->dkstats, cpu)->in_flight);
   ^~~
>> include/linux/percpu-defs.h:260:10: error: invalid type argument of unary 
>> '*' (have 'struct disk_stats')
 (typeof(*(__p)) __kernel __force *)(__p);   \
 ^~
   include/linux/percpu-defs.h:263:47: note: in expansion of macro 
'VERIFY_PERCPU_PTR'
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
  ^
>> block/genhd.c:53:12: note: in expansion of macro 'per_cpu_ptr'
 local_inc(per_cpu_ptr(part->dkstats, cpu)->in_flight);
   ^~~
>> include/linux/percpu-defs.h:219:52: error: invalid operands to binary + 
>> (have 'struct disk_stats' and 'int')
 const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
 ~ ^
>> include/linux/percpu-defs.h:259:2: note: in expansion of macro 
>> '__verify_pcpu_ptr'
 __verify_pcpu_ptr(__p);  \
 ^
   include/linux/percpu-defs.h:263:47: note: in expansion of macro 
'VERIFY_PERCPU_PTR'
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
  ^
   block/genhd.c:55:13: note: in expansion of macro 'per_cpu_ptr'
  local_inc(per_cpu_ptr(part_to_disk(part)->part0.dkstats, cpu)->in_flight);
^~~
>> include/linux/percpu-defs.h:260:10: error: invalid type argument of unary 
>> '*' (have 'struct disk_stats')
 (typeof(*(__p)) __kernel __force *)(__p);   \
 ^~
   include/linux/percpu-defs.h:263:47: note: in expansion of macro 
'VERIFY_PERCPU_PTR'
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
  ^
   block/genhd.c:55:13: note: in expansion of macro 'per_cpu_ptr'
  local_inc(per_cpu_ptr(part_to_disk(part)->part0.dkstats, cpu)->in_flight);
^~~
   block/genhd.c: In function 'part_dec_in_flight':
>> include/linux/percpu-defs.h:219:52: error: invalid operands to binary + 
>> (have 'struct disk_stats' and 'int')
 const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
 ~ ^
>> include/linux/percpu-defs.h:259:2: note: in expansion of macro 
>> '__verify_pcpu_ptr'
 __verify_pcpu_ptr(__p);  \
 ^
   include/linux/percpu-defs.h:263:47: note: in expansion of macro 
'VERIFY_PERCPU_PTR'
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
  ^
   block/genhd.c:63:12: note: in expansion of macro 'per_cpu_ptr'
 local_dec(per_cpu_ptr(part->dkstats, cpu)->in_flight);
   ^~~
>> include/linux/percpu-defs.h:260:10: error: invalid type argument of unary 
>> '*' (have 'struct disk_stats')
 (typeof(*(__p)) __kernel __force *)(__p);   \
 ^~
   include/linux/percpu-defs.h:263:47: note: in expansion of macro 
'VERIFY_PERCPU_PTR'
#define 

[dm-devel] [dm:block-dm-4.21-inflight 5/6] drivers//md/dm.c:651:40: error: 'struct hd_struct' has no member named 'in_flight'

2018-11-30 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
block-dm-4.21-inflight
head:   d694c9be5e3948e25ce95162fac9ab47ecc8c589
commit: 2f111f36ecbedc0cff9e87cdca3bfecc71d210d5 [5/6] block: switch to per-cpu 
in-flight counters
config: i386-randconfig-x001-201847 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
git checkout 2f111f36ecbedc0cff9e87cdca3bfecc71d210d5
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers//md/dm.c: In function 'md_in_flight':
>> drivers//md/dm.c:651:40: error: 'struct hd_struct' has no member named 
>> 'in_flight'
 return atomic_read(_disk(md)->part0.in_flight[READ]) +
   ^
   drivers//md/dm.c:652:40: error: 'struct hd_struct' has no member named 
'in_flight'
atomic_read(_disk(md)->part0.in_flight[WRITE]);
   ^
   drivers//md/dm.c:653:1: warning: control reaches end of non-void function 
[-Wreturn-type]
}
^

vim +651 drivers//md/dm.c

^1da177e Linus Torvalds  2005-04-16  648  
4cc96131 Mike Snitzer2016-05-12  649  int md_in_flight(struct mapped_device 
*md)
90abb8c4 Kiyoshi Ueda2009-12-10  650  {
5fc19e40 Mikulas Patocka 2018-11-06 @651return 
atomic_read(_disk(md)->part0.in_flight[READ]) +
5fc19e40 Mikulas Patocka 2018-11-06  652   
atomic_read(_disk(md)->part0.in_flight[WRITE]);
90abb8c4 Kiyoshi Ueda2009-12-10  653  }
90abb8c4 Kiyoshi Ueda2009-12-10  654  

:: The code at line 651 was first introduced by commit
:: 5fc19e40ec570e8b403f8b073d3332b540834a77 dm: remove the pending variable

:: TO: Mikulas Patocka 
:: CC: Mike Snitzer 

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 09/11] block: Expose queue nr_zones in sysfs

2018-10-10 Thread kbuild test robot
Hi Damien,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on block/for-next]
[also build test ERROR on v4.19-rc7 next-20181010]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Damien-Le-Moal/Zoned-block-device-support-improvements/20181010-190504
base:   https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git 
for-next
config: i386-randconfig-x0-10102333 (attached as .config)
compiler: gcc-5 (Debian 5.5.0-3) 5.4.1 20171010
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   block/blk-sysfs.c: In function 'queue_nr_zones_show':
>> block/blk-sysfs.c:305:25: error: 'struct request_queue' has no member named 
>> 'nr_zones'
 return queue_var_show(q->nr_zones, page);
^
   block/blk-sysfs.c:306:1: warning: control reaches end of non-void function 
[-Wreturn-type]
}
^

vim +305 block/blk-sysfs.c

   302  
   303  static ssize_t queue_nr_zones_show(struct request_queue *q, char *page)
   304  {
 > 305  return queue_var_show(q->nr_zones, page);
   306  }
   307  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 10/11] block: add a report_zones method

2018-10-10 Thread kbuild test robot
Hi Christoph,

I love your patch! Yet something to improve:

[auto build test ERROR on block/for-next]
[also build test ERROR on v4.19-rc7]
[cannot apply to next-20181010]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Damien-Le-Moal/Zoned-block-device-support-improvements/20181010-190504
base:   https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git 
for-next
config: x86_64-randconfig-e2-10081527 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

>> drivers/block/null_blk_main.c:1509:18: error: initialization from 
>> incompatible pointer type [-Werror=incompatible-pointer-types]
 .report_zones = null_zone_report,
 ^~~~
   drivers/block/null_blk_main.c:1509:18: note: (near initialization for 
'null_fops.report_zones')
   cc1: some warnings being treated as errors

vim +1509 drivers/block/null_blk_main.c

  1504  
  1505  static const struct block_device_operations null_fops = {
  1506  .owner =THIS_MODULE,
  1507  .open = null_open,
  1508  .release =  null_release,
> 1509  .report_zones = null_zone_report,
  1510  };
  1511  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 10/11] block: add a report_zones method

2018-10-10 Thread kbuild test robot
Hi Christoph,

I love your patch! Yet something to improve:

[auto build test ERROR on block/for-next]
[also build test ERROR on v4.19-rc7]
[cannot apply to next-20181010]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Damien-Le-Moal/Zoned-block-device-support-improvements/20181010-190504
base:   https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git 
for-next
config: x86_64-randconfig-x000-201840 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers//md/dm-linear.c: In function 'linear_report_zones':
>> drivers//md/dm-linear.c:146:8: error: implicit declaration of function 
>> 'blkdev_report_zones'; did you mean 'linear_report_zones'? 
>> [-Werror=implicit-function-declaration]
 ret = blkdev_report_zones(lc->dev->bdev, linear_map_sector(ti, sector),
   ^~~
   linear_report_zones
   cc1: some warnings being treated as errors
--
   drivers//md/dm-flakey.c: In function 'flakey_report_zones':
>> drivers//md/dm-flakey.c:459:8: error: implicit declaration of function 
>> 'blkdev_report_zones'; did you mean 'flakey_report_zones'? 
>> [-Werror=implicit-function-declaration]
 ret = blkdev_report_zones(fc->dev->bdev, flakey_map_sector(ti, sector),
   ^~~
   flakey_report_zones
   cc1: some warnings being treated as errors

vim +146 drivers//md/dm-linear.c

   137  
   138  static int linear_report_zones(struct dm_target *ti, sector_t sector,
   139 struct blk_zone *zones, unsigned int 
*nr_zones,
   140 gfp_t gfp_mask)
   141  {
   142  struct linear_c *lc = (struct linear_c *) ti->private;
   143  int ret;
   144  
   145  /* Do report and remap it */
 > 146  ret = blkdev_report_zones(lc->dev->bdev, linear_map_sector(ti, 
 > sector),
   147zones, nr_zones, gfp_mask);
   148  if (ret != 0)
   149  return ret;
   150  
   151  if (*nr_zones)
   152  dm_remap_zone_report(ti, lc->start, zones, nr_zones);
   153  return 0;
   154  }
   155  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 09/11] block: Expose queue nr_zones in sysfs

2018-10-10 Thread kbuild test robot
Hi Damien,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on block/for-next]
[also build test ERROR on v4.19-rc7 next-20181010]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Damien-Le-Moal/Zoned-block-device-support-improvements/20181010-190504
base:   https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git 
for-next
config: x86_64-randconfig-x000-201840 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All error/warnings (new ones prefixed by >>):

   block/blk-sysfs.c: In function 'queue_nr_zones_show':
>> block/blk-sysfs.c:305:27: error: 'struct request_queue' has no member named 
>> 'nr_zones'; did you mean 'nr_rqs'?
 return queue_var_show(q->nr_zones, page);
  ^~~~
  nr_rqs
>> block/blk-sysfs.c:306:1: warning: control reaches end of non-void function 
>> [-Wreturn-type]
}
^

vim +305 block/blk-sysfs.c

   302  
   303  static ssize_t queue_nr_zones_show(struct request_queue *q, char *page)
   304  {
 > 305  return queue_var_show(q->nr_zones, page);
 > 306  }
   307  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

[dm-devel] [dm:for-next 2/3] drivers/md/dm-mpath.c:821:37: error: passing argument 1 of 'strcmp' from incompatible pointer type

2018-09-17 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
head:   9c01fc7e4f3b269a5550014c16ba2fa15b90fc45
commit: 560e9814d061de1dce3328630846025d653dea7d [2/3] dm mpath: fix 
attached_handler_name leak and dangling hw_handler_name pointer
config: x86_64-randconfig-x019-201837 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
git checkout 560e9814d061de1dce3328630846025d653dea7d
# save the attached .config to linux build tree
make ARCH=x86_64 

All error/warnings (new ones prefixed by >>):

   drivers/md/dm-mpath.c: In function 'setup_scsi_dh':
>> drivers/md/dm-mpath.c:821:37: error: passing argument 1 of 'strcmp' from 
>> incompatible pointer type [-Werror=incompatible-pointer-types]
   if (m->hw_handler_name && strcmp(attached_handler_name, 
m->hw_handler_name)) {
^
   In file included from include/linux/bitmap.h:9:0,
from include/linux/cpumask.h:12,
from arch/x86/include/asm/cpumask.h:5,
from arch/x86/include/asm/msr.h:11,
from arch/x86/include/asm/processor.h:21,
from arch/x86/include/asm/cpufeature.h:5,
from arch/x86/include/asm/thread_info.h:53,
from include/linux/thread_info.h:38,
from arch/x86/include/asm/preempt.h:7,
from include/linux/preempt.h:81,
from include/linux/spinlock.h:51,
from include/linux/wait.h:9,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from include/linux/highmem.h:5,
from include/linux/bio.h:21,
from include/linux/device-mapper.h:11,
from drivers/md/dm-mpath.c:8:
   include/linux/string.h:44:12: note: expected 'const char *' but argument is 
of type 'char **'
extern int strcmp(const char *,const char *);
   ^~
   drivers/md/dm-mpath.c: In function 'parse_path':
>> drivers/md/dm-mpath.c:891:24: warning: assignment discards 'const' qualifier 
>> from pointer target type [-Wdiscarded-qualifiers]
 attached_handler_name = scsi_dh_attached_handler_name(q, GFP_KERNEL);
   ^
   cc1: some warnings being treated as errors

vim +/strcmp +821 drivers/md/dm-mpath.c

^1da177e Linus Torvalds  2005-04-16  807  
e8f74a0f Mike Snitzer2018-03-12  808  static int setup_scsi_dh(struct 
block_device *bdev, struct multipath *m,
560e9814 Mike Snitzer2018-09-17  809 char 
**attached_handler_name, char **error)
^1da177e Linus Torvalds  2005-04-16  810  {
848b8aef Mike Snitzer2017-12-10  811struct request_queue *q = 
bdev_get_queue(bdev);
848b8aef Mike Snitzer2017-12-10  812int r;
a58a935d Mike Snitzer2012-07-27  813  
518257b1 Mike Snitzer2016-03-17  814if 
(test_bit(MPATHF_RETAIN_ATTACHED_HW_HANDLER, >flags)) {
1bab0de0 Christoph Hellwig   2015-08-27  815  retain:
560e9814 Mike Snitzer2018-09-17  816if 
(*attached_handler_name) {
a58a935d Mike Snitzer2012-07-27  817/*
54cd640d tang.junhui 2016-11-24  818 * Clear any 
hw_handler_params associated with a
54cd640d tang.junhui 2016-11-24  819 * handler that 
isn't already attached.
54cd640d tang.junhui 2016-11-24  820 */
54cd640d tang.junhui 2016-11-24 @821if 
(m->hw_handler_name && strcmp(attached_handler_name, m->hw_handler_name)) {
54cd640d tang.junhui 2016-11-24  822
kfree(m->hw_handler_params);
54cd640d tang.junhui 2016-11-24  823
m->hw_handler_params = NULL;
54cd640d tang.junhui 2016-11-24  824}
54cd640d tang.junhui 2016-11-24  825  
54cd640d tang.junhui 2016-11-24  826/*
a58a935d Mike Snitzer2012-07-27  827 * Reset 
hw_handler_name to match the attached handler
a58a935d Mike Snitzer2012-07-27  828 *
a58a935d Mike Snitzer2012-07-27  829 * NB. This 
modifies the table line to show the actual
a58a935d Mike Snitzer2012-07-27  830 * handler 
instead of the original table passed in.
a58a935d Mike Snitzer2012-07-27  831 */
a58a935d Mike Snitzer2012-07-27  832
kfree(m->hw_handler_name);
560e9814 Mike Snitzer2018-09-17  833
m->hw_handler_name = *attached_handler_name;
560e9814 Mike Snitzer2018-09-17  834
*attached_handler_name = NULL;
a58a935d Mike Snitzer2012-07-27  835}
a58a935d Mike Snitzer

[dm-devel] [dm:for-next 1/1] drivers/md/dm-verity-target.c:109:23: note: in expansion of macro 'min'

2018-08-30 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
head:   43323993e68adf32894189c57245a13c2bc2ff91
commit: 43323993e68adf32894189c57245a13c2bc2ff91 [1/1] dm verity: fix crash on 
bufio buffer that was allocated with vmalloc
config: i386-randconfig-x000-201834 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
git checkout 43323993e68adf32894189c57245a13c2bc2ff91
# save the attached .config to linux build tree
make ARCH=i386 

All warnings (new ones prefixed by >>):

   In file included from arch/x86/include/asm/percpu.h:45:0,
from arch/x86/include/asm/current.h:6,
from include/linux/sched.h:12,
from include/linux/blkdev.h:5,
from include/linux/dm-bufio.h:12,
from drivers/md/dm-verity.h:15,
from drivers/md/dm-verity-target.c:17:
   drivers/md/dm-verity-target.c: In function 'verity_hash_update':
   include/linux/kernel.h:845:29: warning: comparison of distinct pointer types 
lacks a cast
  (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
^
   include/linux/kernel.h:859:4: note: in expansion of macro '__typecheck'
  (__typecheck(x, y) && __no_side_effects(x, y))
   ^~~
   include/linux/kernel.h:869:24: note: in expansion of macro '__safe_cmp'
 __builtin_choose_expr(__safe_cmp(x, y), \
   ^~
   include/linux/kernel.h:878:19: note: in expansion of macro '__careful_cmp'
#define min(x, y) __careful_cmp(x, y, <)
  ^
>> drivers/md/dm-verity-target.c:109:23: note: in expansion of macro 'min'
   size_t this_step = min(len, PAGE_SIZE - offset_in_page(data));
  ^~~

vim +/min +109 drivers/md/dm-verity-target.c

95  
96  static int verity_hash_update(struct dm_verity *v, struct ahash_request 
*req,
97  const u8 *data, size_t len,
98  struct crypto_wait *wait)
99  {
   100  struct scatterlist sg;
   101  
   102  if (likely(!is_vmalloc_addr(data))) {
   103  sg_init_one(, data, len);
   104  ahash_request_set_crypt(req, , NULL, len);
   105  return crypto_wait_req(crypto_ahash_update(req), wait);
   106  } else {
   107  do {
   108  int r;
 > 109  size_t this_step = min(len, PAGE_SIZE - 
 > offset_in_page(data));
   110  flush_kernel_vmap_range((void *)data, 
this_step);
   111  sg_init_table(, 1);
   112  sg_set_page(, vmalloc_to_page(data), 
this_step, offset_in_page(data));
   113  ahash_request_set_crypt(req, , NULL, 
this_step);
   114  r = crypto_wait_req(crypto_ahash_update(req), 
wait);
   115  if (unlikely(r))
   116  return r;
   117  data += this_step;
   118  len -= this_step;
   119  } while (len);
   120  return 0;
   121  }
   122  }
   123  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

[dm-devel] [dm:for-next 26/26] drivers/md/dm-crypt.c:3068:2: error: 't' undeclared

2018-08-10 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
head:   08575fd060d7f88f674509461b32d86b272093d9
commit: 08575fd060d7f88f674509461b32d86b272093d9 [26/26] dm crypt: don't 
decrease device limits
config: openrisc-allyesconfig (attached as .config)
compiler: or1k-linux-gcc (GCC) 6.0.0 20160327 (experimental)
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 08575fd060d7f88f674509461b32d86b272093d9
# save the attached .config to linux build tree
make.cross ARCH=openrisc 

All errors (new ones prefixed by >>):

   drivers/md/dm-crypt.c: In function 'crypt_io_hints':
>> drivers/md/dm-crypt.c:3068:2: error: 't' undeclared (first use in this 
>> function)
 t->io_min = max_t(unsigned, limits->io_min, cc->sector_size);
 ^
   drivers/md/dm-crypt.c:3068:2: note: each undeclared identifier is reported 
only once for each function it appears in

vim +/t +3068 drivers/md/dm-crypt.c

  3051  
  3052  static void crypt_io_hints(struct dm_target *ti, struct queue_limits 
*limits)
  3053  {
  3054  struct crypt_config *cc = ti->private;
  3055  
  3056  /*
  3057   * Unfortunate constraint that is required to avoid the 
potential
  3058   * for exceeding underlying device's max_segments limits -- due 
to
  3059   * crypt_alloc_buffer() possibly allocating pages for the 
encryption
  3060   * bio that are not as physically contiguous as the original 
bio.
  3061   */
  3062  limits->max_segment_size = PAGE_SIZE;
  3063  
  3064  limits->logical_block_size =
  3065  max_t(unsigned short, limits->logical_block_size, 
cc->sector_size);
  3066  limits->physical_block_size =
  3067  max_t(unsigned, limits->physical_block_size, 
cc->sector_size);
> 3068  t->io_min = max_t(unsigned, limits->io_min, cc->sector_size);
  3069  }
  3070  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

[dm-devel] [dm:for-next 26/26] drivers/md/dm-crypt.c:3068:2: error: 't' undeclared; did you mean 'ti'?

2018-08-10 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
head:   08575fd060d7f88f674509461b32d86b272093d9
commit: 08575fd060d7f88f674509461b32d86b272093d9 [26/26] dm crypt: don't 
decrease device limits
config: i386-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
git checkout 08575fd060d7f88f674509461b32d86b272093d9
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers/md/dm-crypt.c: In function 'crypt_io_hints':
>> drivers/md/dm-crypt.c:3068:2: error: 't' undeclared (first use in this 
>> function); did you mean 'ti'?
 t->io_min = max_t(unsigned, limits->io_min, cc->sector_size);
 ^
 ti
   drivers/md/dm-crypt.c:3068:2: note: each undeclared identifier is reported 
only once for each function it appears in

vim +3068 drivers/md/dm-crypt.c

  3051  
  3052  static void crypt_io_hints(struct dm_target *ti, struct queue_limits 
*limits)
  3053  {
  3054  struct crypt_config *cc = ti->private;
  3055  
  3056  /*
  3057   * Unfortunate constraint that is required to avoid the 
potential
  3058   * for exceeding underlying device's max_segments limits -- due 
to
  3059   * crypt_alloc_buffer() possibly allocating pages for the 
encryption
  3060   * bio that are not as physically contiguous as the original 
bio.
  3061   */
  3062  limits->max_segment_size = PAGE_SIZE;
  3063  
  3064  limits->logical_block_size =
  3065  max_t(unsigned short, limits->logical_block_size, 
cc->sector_size);
  3066  limits->physical_block_size =
  3067  max_t(unsigned, limits->physical_block_size, 
cc->sector_size);
> 3068  t->io_min = max_t(unsigned, limits->io_min, cc->sector_size);
  3069  }
  3070  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 4/5] crypto: Add IV generation templates

2018-07-19 Thread kbuild test robot
Hi Xiongfeng,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on cryptodev/master]
[also build test WARNING on v4.18-rc5 next-20180719]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Xiongfeng-Wang/crypto-add-IV-generation-templates/20180719-034438
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
reproduce:
# apt-get install sparse
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

>> crypto/geniv.c:303:9: sparse: Variable length array is used.
   crypto/geniv.c:568:9: sparse: Variable length array is used.
   crypto/geniv.c:729:9: sparse: Variable length array is used.
   include/linux/slab.h:631:13: sparse: undefined identifier 
'__builtin_mul_overflow'
   include/linux/slab.h:631:13: sparse: not a function 
>> crypto/geniv.c:1482:17: sparse: incorrect type in assignment (different base 
>> types) @@expected unsigned long long [unsigned] [long] [long long] 
>> [usertype]  @@got long] [long long] [usertype]  @@
   crypto/geniv.c:1482:17:expected unsigned long long [unsigned] [long] 
[long long] [usertype] 
   crypto/geniv.c:1482:17:got restricted __le64 [usertype] 
>> crypto/geniv.c:1543:17: sparse: cast to restricted __le64
   crypto/geniv.c:1580:17: sparse: incorrect type in assignment (different base 
types) @@expected unsigned long long [unsigned] [long] [long long] 
[usertype]  @@got long] [long long] [usertype]  @@
   crypto/geniv.c:1580:17:expected unsigned long long [unsigned] [long] 
[long long] [usertype] 
   crypto/geniv.c:1580:17:got restricted __le64 [usertype] 
>> crypto/geniv.c:1912:32: sparse: expression using sizeof(void)
   include/linux/slab.h:631:13: sparse: call with no type!

vim +303 crypto/geniv.c

   298  
   299  /* Initialise ESSIV - compute salt but no local memory allocations */
   300  static int crypt_iv_essiv_init(struct geniv_ctx *ctx)
   301  {
   302  struct geniv_essiv_private *essiv = >iv_gen_private.essiv;
 > 303  AHASH_REQUEST_ON_STACK(req, essiv->hash_tfm);
   304  struct scatterlist sg;
   305  struct crypto_cipher *essiv_tfm;
   306  int err;
   307  
   308  sg_init_one(, ctx->key, ctx->key_size);
   309  ahash_request_set_tfm(req, essiv->hash_tfm);
   310  ahash_request_set_callback(req, CRYPTO_TFM_REQ_MAY_SLEEP, NULL, 
NULL);
   311  ahash_request_set_crypt(req, , essiv->salt, ctx->key_size);
   312  
   313  err = crypto_ahash_digest(req);
   314  ahash_request_zero(req);
   315  if (err)
   316  return err;
   317  
   318  essiv_tfm = ctx->iv_private;
   319  
   320  return crypto_cipher_setkey(essiv_tfm, essiv->salt,
   321  crypto_ahash_digestsize(essiv->hash_tfm));
   322  }
   323  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel


[dm-devel] [dm:for-next 6/8] drivers/md/dm-writecache.c:862:24: error: implicit declaration of function 'array_size'; did you mean '__ua_size'?

2018-06-22 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
head:   696ee10fad76d6ec15f256e6dc2c08aa2c706890
commit: 5174624414ac49495a08eca4ee584dac193c0eb7 [6/8] dm writecache: use 
2-factor allocator arguments
config: mips-allyesconfig (attached as .config)
compiler: mips-linux-gnu-gcc (Debian 7.2.0-11) 7.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 5174624414ac49495a08eca4ee584dac193c0eb7
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=mips 

All errors (new ones prefixed by >>):

   drivers/md/dm-writecache.c: In function 'writecache_alloc_entries':
>> drivers/md/dm-writecache.c:862:24: error: implicit declaration of function 
>> 'array_size'; did you mean '__ua_size'? 
>> [-Werror=implicit-function-declaration]
 wc->entries = vmalloc(array_size(sizeof(struct wc_entry), wc->n_blocks));
   ^~
   __ua_size
   cc1: some warnings being treated as errors

vim +862 drivers/md/dm-writecache.c

   855  
   856  static int writecache_alloc_entries(struct dm_writecache *wc)
   857  {
   858  size_t b;
   859  
   860  if (wc->entries)
   861  return 0;
 > 862  wc->entries = vmalloc(array_size(sizeof(struct wc_entry), 
 > wc->n_blocks));
   863  if (!wc->entries)
   864  return -ENOMEM;
   865  for (b = 0; b < wc->n_blocks; b++) {
   866  struct wc_entry *e = >entries[b];
   867  e->index = b;
   868  e->write_in_progress = false;
   869  }
   870  
   871  return 0;
   872  }
   873  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH v2 1/5] md: Avoid namespace collision with bitmap API

2018-06-15 Thread kbuild test robot
Hi Andy,

I love your patch! Yet something to improve:

[auto build test ERROR on next-20180615]
[also build test ERROR on v4.17]
[cannot apply to md/for-next linus/master dm/for-next v4.17 v4.17-rc7 v4.17-rc6]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Andy-Shevchenko/bitmap-Introduce-alloc-free-helpers/20180615-214724
config: x86_64-randconfig-x008-201823 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

>> drivers/md/persistent-data/dm-space-map-common.c:111:23: error: 
>> 'bitmap_prepare_for_write' undeclared here (not in a function); did you mean 
>> 'md_bitmap_prepare_for_write'?
 .prepare_for_write = bitmap_prepare_for_write,
  ^~~~
  md_bitmap_prepare_for_write
>> drivers/md/persistent-data/dm-space-map-common.c:112:11: error: 
>> 'bitmap_check' undeclared here (not in a function); did you mean 
>> 'md_bitmap_check'?
 .check = bitmap_check
  ^~~~
  md_bitmap_check
   drivers/md/persistent-data/dm-space-map-common.c:84:12: warning: 
'md_bitmap_check' defined but not used [-Wunused-function]
static int md_bitmap_check(struct dm_block_validator *v,
   ^~~
   drivers/md/persistent-data/dm-space-map-common.c:72:13: warning: 
'md_bitmap_prepare_for_write' defined but not used [-Wunused-function]
static void md_bitmap_prepare_for_write(struct dm_block_validator *v,
^~~

vim +111 drivers/md/persistent-data/dm-space-map-common.c

3241b1d3 Joe Thornber 2011-10-31  108  
3241b1d3 Joe Thornber 2011-10-31  109  static struct dm_block_validator 
dm_sm_bitmap_validator = {
3241b1d3 Joe Thornber 2011-10-31  110   .name = "sm_bitmap",
3241b1d3 Joe Thornber 2011-10-31 @111   .prepare_for_write = 
bitmap_prepare_for_write,
3241b1d3 Joe Thornber 2011-10-31 @112   .check = bitmap_check
3241b1d3 Joe Thornber 2011-10-31  113  };
3241b1d3 Joe Thornber 2011-10-31  114  

:: The code at line 111 was first introduced by commit
:: 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4 dm: add persistent data library

:: TO: Joe Thornber 
:: CC: Alasdair G Kergon 

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH v2 1/5] md: Avoid namespace collision with bitmap API

2018-06-15 Thread kbuild test robot
Hi Andy,

I love your patch! Yet something to improve:

[auto build test ERROR on next-20180615]
[also build test ERROR on v4.17]
[cannot apply to md/for-next linus/master dm/for-next v4.17 v4.17-rc7 v4.17-rc6]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Andy-Shevchenko/bitmap-Introduce-alloc-free-helpers/20180615-214724
config: i386-randconfig-b0-06141412 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

>> drivers/md/persistent-data/dm-space-map-common.c:111:23: error: 
>> 'bitmap_prepare_for_write' undeclared here (not in a function)
 .prepare_for_write = bitmap_prepare_for_write,
  ^
>> drivers/md/persistent-data/dm-space-map-common.c:112:11: error: 
>> 'bitmap_check' undeclared here (not in a function)
 .check = bitmap_check
  ^
   drivers/md/persistent-data/dm-space-map-common.c:72:13: warning: 
'md_bitmap_prepare_for_write' defined but not used [-Wunused-function]
static void md_bitmap_prepare_for_write(struct dm_block_validator *v,
^
   drivers/md/persistent-data/dm-space-map-common.c:84:12: warning: 
'md_bitmap_check' defined but not used [-Wunused-function]
static int md_bitmap_check(struct dm_block_validator *v,
   ^

vim +/bitmap_prepare_for_write +111 
drivers/md/persistent-data/dm-space-map-common.c

3241b1d3 Joe Thornber 2011-10-31  108  
3241b1d3 Joe Thornber 2011-10-31  109  static struct dm_block_validator 
dm_sm_bitmap_validator = {
3241b1d3 Joe Thornber 2011-10-31  110   .name = "sm_bitmap",
3241b1d3 Joe Thornber 2011-10-31 @111   .prepare_for_write = 
bitmap_prepare_for_write,
3241b1d3 Joe Thornber 2011-10-31 @112   .check = bitmap_check
3241b1d3 Joe Thornber 2011-10-31  113  };
3241b1d3 Joe Thornber 2011-10-31  114  

:: The code at line 111 was first introduced by commit
:: 3241b1d3e0aaafbfcd320f4d71ade629728cc4f4 dm: add persistent data library

:: TO: Joe Thornber 
:: CC: Alasdair G Kergon 

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 1/7] fs: allow per-device dax status checking for filesystems

2018-05-26 Thread kbuild test robot
Hi Darrick,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v4.17-rc6]
[cannot apply to dm/for-next]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Ross-Zwisler/Fix-DM-DAX-handling/20180526-212746
config: i386-randconfig-x014-201820 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

>> drivers//dax/super.c:85:5: error: redefinition of 'bdev_dax_supported'
int bdev_dax_supported(struct block_device *bdev, int blocksize)
^~
   In file included from drivers//dax/super.c:23:0:
   include/linux/dax.h:82:19: note: previous definition of 'bdev_dax_supported' 
was here
static inline int bdev_dax_supported(struct block_device *bdev,
  ^~

vim +/bdev_dax_supported +85 drivers//dax/super.c

74  
75  /**
76   * bdev_dax_supported() - Check if the device supports dax for 
filesystem
77   * @bdev: block device to check
78   * @blocksize: The block size of the device
79   *
80   * This is a library function for filesystems to check if the block 
device
81   * can be mounted with dax option.
82   *
83   * Return: negative errno if unsupported, 0 if supported.
84   */
  > 85  int bdev_dax_supported(struct block_device *bdev, int blocksize)
86  {
87  struct dax_device *dax_dev;
88  pgoff_t pgoff;
89  int err, id;
90  void *kaddr;
91  pfn_t pfn;
92  long len;
93  char buf[BDEVNAME_SIZE];
94  
95  if (blocksize != PAGE_SIZE) {
96  pr_debug("%s: error: unsupported blocksize for dax\n",
97  bdevname(bdev, buf));
98  return -EINVAL;
99  }
   100  
   101  err = bdev_dax_pgoff(bdev, 0, PAGE_SIZE, );
   102  if (err) {
   103  pr_debug("%s: error: unaligned partition for dax\n",
   104  bdevname(bdev, buf));
   105  return err;
   106  }
   107  
   108  dax_dev = dax_get_by_host(bdev->bd_disk->disk_name);
   109  if (!dax_dev) {
   110  pr_debug("%s: error: device does not support dax\n",
   111  bdevname(bdev, buf));
   112  return -EOPNOTSUPP;
   113  }
   114  
   115  id = dax_read_lock();
   116  len = dax_direct_access(dax_dev, pgoff, 1, , );
   117  dax_read_unlock(id);
   118  
   119  put_dax(dax_dev);
   120  
   121  if (len < 1) {
   122  pr_debug("%s: error: dax access failed (%ld)\n",
   123  bdevname(bdev, buf), len);
   124  return len < 0 ? len : -EIO;
   125  }
   126  
   127  if (IS_ENABLED(CONFIG_FS_DAX_LIMITED) && pfn_t_special(pfn)) {
   128  /*
   129   * An arch that has enabled the pmem api should also
   130   * have its drivers support pfn_t_devmap()
   131   *
   132   * This is a developer warning and should not trigger in
   133   * production. dax_flush() will crash since it depends
   134   * on being able to do (page_address(pfn_to_page())).
   135   */
   136  WARN_ON(IS_ENABLED(CONFIG_ARCH_HAS_PMEM_API));
   137  } else if (pfn_t_devmap(pfn)) {
   138  /* pass */;
   139  } else {
   140  pr_debug("%s: error: dax support not enabled\n",
   141  bdevname(bdev, buf));
   142  return -EOPNOTSUPP;
   143  }
   144  
   145  return 0;
   146  }
   147  EXPORT_SYMBOL_GPL(bdev_dax_supported);
   148  #endif
   149  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

[dm-devel] [dm:for-next 10/13] drivers/md/dm-writecache.c:2301:10: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'int'

2018-05-19 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
head:   ec9fab4b1951f0ae4d0e8492fcd4b402a7b499e2
commit: cf83a95f5e14f95a5cce73d3acea5c06c6a94adb [10/13] dm: add writecache 
target
config: x86_64-randconfig-x016-201820 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
git checkout cf83a95f5e14f95a5cce73d3acea5c06c6a94adb
# save the attached .config to linux build tree
make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   In file included from drivers/md/dm-writecache.c:7:0:
   drivers/md/dm-writecache.c: In function 'writecache_status':
>> drivers/md/dm-writecache.c:2301:10: warning: format '%ld' expects argument 
>> of type 'long int', but argument 4 has type 'int' [-Wformat=]
  DMEMIT("%ld %llu %llu %llu", writecache_has_error(wc),
 ^
   include/linux/device-mapper.h:549:46: note: in definition of macro 'DMEMIT'
 0 : scnprintf(result + sz, maxlen - sz, x))
 ^

vim +2301 drivers/md/dm-writecache.c

  2290  
  2291  static void writecache_status(struct dm_target *ti, status_type_t type,
  2292unsigned status_flags, char *result, 
unsigned maxlen)
  2293  {
  2294  struct dm_writecache *wc = ti->private;
  2295  unsigned extra_args;
  2296  unsigned sz = 0;
  2297  uint64_t x;
  2298  
  2299  switch (type) {
  2300  case STATUSTYPE_INFO:
> 2301  DMEMIT("%ld %llu %llu %llu", writecache_has_error(wc),
  2302 (unsigned long long)wc->n_blocks, (unsigned long 
long)wc->freelist_size,
  2303 (unsigned long long)wc->writeback_size);
  2304  break;
  2305  case STATUSTYPE_TABLE:
  2306  DMEMIT("%c %s %s %u ", WC_MODE_PMEM(wc) ? 'p' : 's',
  2307  wc->dev->name, wc->ssd_dev->name, 
wc->block_size);
  2308  extra_args = 0;
  2309  if (wc->high_wm_percent_set)
  2310  extra_args += 2;
  2311  if (wc->low_wm_percent_set)
  2312  extra_args += 2;
  2313  if (wc->max_writeback_jobs_set)
  2314  extra_args += 2;
  2315  if (wc->autocommit_blocks_set)
  2316  extra_args += 2;
  2317  if (wc->autocommit_time_set)
  2318  extra_args += 2;
  2319  #ifndef DM_WRITECACHE_ONLY_SSD
  2320  if (wc->writeback_fua_set)
  2321  extra_args++;
  2322  #endif
  2323  DMEMIT("%u", extra_args);
  2324  if (wc->high_wm_percent_set) {
  2325  x = (uint64_t)wc->freelist_high_watermark * 100;
  2326  x += wc->n_blocks / 2;
  2327  do_div(x, (size_t)wc->n_blocks);
  2328  DMEMIT(" high_watermark %u", 100 - (unsigned)x);
  2329  }
  2330  if (wc->low_wm_percent_set) {
  2331  x = (uint64_t)wc->freelist_low_watermark * 100;
  2332  x += wc->n_blocks / 2;
  2333  do_div(x, (size_t)wc->n_blocks);
  2334  DMEMIT(" low_watermark %u", 100 - (unsigned)x);
  2335  }
  2336  if (wc->max_writeback_jobs_set) {
  2337  DMEMIT(" writeback_jobs %u", 
wc->max_writeback_jobs);
  2338  }
  2339  if (wc->autocommit_blocks_set) {
  2340  DMEMIT(" autocommit_blocks %u", 
wc->autocommit_blocks);
  2341  }
  2342  if (wc->autocommit_time_set) {
  2343  DMEMIT(" autocommit_time %u", 
jiffies_to_msecs(wc->autocommit_jiffies));
  2344  }
  2345  #ifndef DM_WRITECACHE_ONLY_SSD
  2346  if (wc->writeback_fua_set) {
  2347  DMEMIT(" %sfua", wc->writeback_fua ? "" : "no");
  2348  }
  2349  #endif
  2350  break;
  2351  }
  2352  }
  2353  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

[dm-devel] [dm:for-next 31/31] drivers/md/dm-zoned-target.c:954:20: error: initialization from incompatible pointer type

2018-04-03 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
head:   a39e613506eca803cede2cf555d4d1dc485352e7
commit: a39e613506eca803cede2cf555d4d1dc485352e7 [31/31] dm: remove fmode_t 
argument from .prepare_ioctl hook
config: i386-randconfig-x015-201813 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
git checkout a39e613506eca803cede2cf555d4d1dc485352e7
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

>> drivers/md/dm-zoned-target.c:954:20: error: initialization from incompatible 
>> pointer type [-Werror=incompatible-pointer-types]
 .prepare_ioctl  = dmz_prepare_ioctl,
   ^
   drivers/md/dm-zoned-target.c:954:20: note: (near initialization for 
'dmz_type.prepare_ioctl')
   cc1: some warnings being treated as errors

vim +954 drivers/md/dm-zoned-target.c

3b1a94c8 Damien Le Moal 2017-06-07  943  
3b1a94c8 Damien Le Moal 2017-06-07  944  static struct target_type dmz_type = {
3b1a94c8 Damien Le Moal 2017-06-07  945 .name= "zoned",
3b1a94c8 Damien Le Moal 2017-06-07  946 .version = {1, 0, 0},
3b1a94c8 Damien Le Moal 2017-06-07  947 .features= 
DM_TARGET_SINGLETON | DM_TARGET_ZONED_HM,
3b1a94c8 Damien Le Moal 2017-06-07  948 .module  = THIS_MODULE,
3b1a94c8 Damien Le Moal 2017-06-07  949 .ctr = dmz_ctr,
3b1a94c8 Damien Le Moal 2017-06-07  950 .dtr = dmz_dtr,
3b1a94c8 Damien Le Moal 2017-06-07  951 .map = dmz_map,
3b1a94c8 Damien Le Moal 2017-06-07  952 .end_io  = dmz_end_io,
3b1a94c8 Damien Le Moal 2017-06-07  953 .io_hints= dmz_io_hints,
3b1a94c8 Damien Le Moal 2017-06-07 @954 .prepare_ioctl   = 
dmz_prepare_ioctl,
3b1a94c8 Damien Le Moal 2017-06-07  955 .postsuspend = dmz_suspend,
3b1a94c8 Damien Le Moal 2017-06-07  956 .resume  = dmz_resume,
3b1a94c8 Damien Le Moal 2017-06-07  957 .iterate_devices = 
dmz_iterate_devices,
3b1a94c8 Damien Le Moal 2017-06-07  958  };
3b1a94c8 Damien Le Moal 2017-06-07  959  

:: The code at line 954 was first introduced by commit
:: 3b1a94c88b798d4f3bd1a5b61f5c8fb9d987c242 dm zoned: drive-managed zoned 
block device target

:: TO: Damien Le Moal 
:: CC: Mike Snitzer 

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

[dm-devel] [dm:dm-4.17 25/25] drivers//md/dm-verity-target.c:560:22: error: assignment from incompatible pointer type

2018-03-26 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
dm-4.17
head:   8702a90d3c773f590c875d4300e751fce1780bbc
commit: 8702a90d3c773f590c875d4300e751fce1780bbc [25/25] dm verity: allow 
parallel processing of blocks
config: i386-randconfig-x016-201812 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
git checkout 8702a90d3c773f590c875d4300e751fce1780bbc
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers//md/dm-verity-target.c: In function 'verity_verify_io':
>> drivers//md/dm-verity-target.c:560:22: error: assignment from incompatible 
>> pointer type [-Werror=incompatible-pointer-types]
 iodata->reqdata_arr = reqdata_arr;
 ^
   cc1: some warnings being treated as errors

vim +560 drivers//md/dm-verity-target.c

   533  
   534  static void verity_release_req(struct dm_verity_io_data *iodata)
   535  {
   536  kfree(iodata->reqdata_arr);
   537  kfree(iodata);
   538  }
   539  /*
   540   * Verify one "dm_verity_io" structure.
   541   */
   542  static void verity_verify_io(struct dm_verity_io *io)
   543  {
   544  bool is_zero;
   545  struct dm_verity *v = io->v;
   546  unsigned int b = 0, blocks = 0;
   547  struct dm_verity_io_data *iodata = NULL;
   548  struct dm_verity_req_data *reqdata_arr = NULL;
   549  struct scatterlist *sg = NULL;
   550  int r;
   551  
   552  iodata = kmalloc(sizeof(*iodata), GFP_NOIO);
   553  reqdata_arr = kmalloc_array(io->n_blocks,
   554  sizeof(struct dm_verity_req_data), 
GFP_NOIO);
   555  if (unlikely((iodata == NULL) || (reqdata_arr == NULL))) {
   556  WARN_ON((iodata == NULL) || (reqdata_arr == NULL));
   557  goto err_memfree;
   558  }
   559  atomic_set(>expected_reqs, io->n_blocks);
 > 560  iodata->reqdata_arr = reqdata_arr;
   561  iodata->io = io;
   562  iodata->total_reqs = blocks = io->n_blocks;
   563  
   564  for (b = 0; b < blocks; b++) {
   565  unsigned int nents;
   566  unsigned int total_len = 0;
   567  unsigned int num_of_buffs = 0;
   568  sector_t cur_block = io->block + b;
   569  
   570  if (v->validated_blocks &&
   571  likely(test_bit(cur_block, v->validated_blocks))) {
   572  verity_bv_skip_block(v, io, >iter);
   573  continue;
   574  }
   575  
   576  reqdata_arr[b].req = ahash_request_alloc(v->tfm, 
GFP_NOIO);
   577  if (unlikely(reqdata_arr[b].req == NULL))
   578  goto err_memfree;
   579  ahash_request_set_tfm(reqdata_arr[b].req, v->tfm);
   580  
   581  /* +1 for the salt buffer */
   582  num_of_buffs = verity_calc_buffs_for_bv(v, io, 
>iter) + 1;
   583  WARN_ON(num_of_buffs < 1);
   584  sg = kmalloc_array(num_of_buffs, sizeof(struct 
scatterlist),
   585 GFP_NOIO);
   586  if (!sg) {
   587  DMERR_LIMIT("%s: kmalloc_array failed", 
__func__);
   588  goto err_memfree;
   589  }
   590  sg_init_table(sg, num_of_buffs);
   591  // FIXME: if we 'err_memfree' (or continue;) below how 
does this sg get kfree()'d?
   592  
   593  r = verity_hash_for_block(v, io, cur_block,
   594reqdata_arr[b].want_digest,
   595_arr[b].fec_io, 
_zero);
   596  if (unlikely(r < 0))
   597  goto err_memfree;
   598  
   599  if (is_zero) {
   600  /*
   601   * If we expect a zero block, don't validate, 
just
   602   * return zeroes.
   603   */
   604  r = verity_for_bv_block(v, io, >iter,
   605  verity_bv_zero);
   606  if (unlikely(r < 0))
   607  goto err_memfree;
   608  verity_cb_complete(iodata, r);
   609  continue;
   610  }
   611  
   612  nents = 0;
   613  total_len = 0;
   614  if (verity_is_salt_required(v, START_SG))
   615  verity_add_salt(v, sg, , _len);
   616  
   617  verity_for_io_block(v, io, >iter, sg, , 
_len);
   618  if (verity_is_salt_required(v, 

Re: [dm-devel] [PATCH v4 1/2] dm-unstripe: unstripe RAID 0/dm-striped device

2017-12-20 Thread kbuild test robot
Hi Scott,

I love your patch! Yet something to improve:

[auto build test ERROR on dm/for-next]
[also build test ERROR on v4.15-rc4]
[cannot apply to next-20171220]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Scott-Bauer/dm-unstripe/20171220-121845
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
config: arm-allyesconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.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
make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   drivers/md/dm-unstripe.o: In function `set_ctr':
>> dm-unstripe.c:(.text+0x438): undefined reference to `__aeabi_uldivmod'
   dm-unstripe.c:(.text+0x450): undefined reference to `__aeabi_uldivmod'

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH v4 1/2] dm-unstripe: unstripe RAID 0/dm-striped device

2017-12-20 Thread kbuild test robot
Hi Scott,

I love your patch! Yet something to improve:

[auto build test ERROR on dm/for-next]
[also build test ERROR on v4.15-rc4]
[cannot apply to next-20171220]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Scott-Bauer/dm-unstripe/20171220-121845
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
config: m68k-allyesconfig (attached as .config)
compiler: m68k-linux-gnu-gcc (Debian 7.2.0-11) 7.2.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
make.cross ARCH=m68k 

All errors (new ones prefixed by >>):

   drivers/md/dm-unstripe.o: In function `set_ctr':
>> dm-unstripe.c:(.text+0x36a): undefined reference to `__udivdi3'
>> dm-unstripe.c:(.text+0x384): undefined reference to `__umoddi3'

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

[dm-devel] [dm:branches/for-4.15/dm 26/27] drivers/md/dm-table.c:1772:11: warning: 'i' is used uninitialized in this function

2017-11-14 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
branches/for-4.15/dm
head:   6a768a2a8fd04fa89cfad1385d15601ff22adaff
commit: 21846377c4fd5d3ccfcf0dc68f0a4866c0c49803 [26/27] dm: discard support 
requires all targets in a table support discards
config: i386-randconfig-x001-201746 (attached as .config)
compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026
reproduce:
git checkout 21846377c4fd5d3ccfcf0dc68f0a4866c0c49803
# save the attached .config to linux build tree
make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/md/dm-table.c: In function 'dm_table_set_restrictions':
>> drivers/md/dm-table.c:1772:11: warning: 'i' is used uninitialized in this 
>> function [-Wuninitialized]
 unsigned i;
  ^

vim +/i +1772 drivers/md/dm-table.c

a7ffb6a5 Mikulas Patocka 2014-07-10  1768  
a7ffb6a5 Mikulas Patocka 2014-07-10  1769  static bool 
dm_table_supports_discards(struct dm_table *t)
a7ffb6a5 Mikulas Patocka 2014-07-10  1770  {
a7ffb6a5 Mikulas Patocka 2014-07-10  1771   struct dm_target *ti;
3c120169 Mikulas Patocka 2017-04-18 @1772   unsigned i;
a7ffb6a5 Mikulas Patocka 2014-07-10  1773  
21846377 Mike Snitzer2017-11-14  1774   while (i < 
dm_table_get_num_targets(t)) {
21846377 Mike Snitzer2017-11-14  1775   ti = 
dm_table_get_target(t, i++);
a7ffb6a5 Mikulas Patocka 2014-07-10  1776  
a7ffb6a5 Mikulas Patocka 2014-07-10  1777   if 
(!ti->num_discard_bios)
21846377 Mike Snitzer2017-11-14  1778   return false;
a7ffb6a5 Mikulas Patocka 2014-07-10  1779  
21846377 Mike Snitzer2017-11-14  1780   /*
21846377 Mike Snitzer2017-11-14  1781* Either the target 
provides discard support (as implied by setting
21846377 Mike Snitzer2017-11-14  1782* 
'discards_supported') or it relies on _all_ data devices having
21846377 Mike Snitzer2017-11-14  1783* discard support.
21846377 Mike Snitzer2017-11-14  1784*/
21846377 Mike Snitzer2017-11-14  1785   if 
(!ti->discards_supported &&
21846377 Mike Snitzer2017-11-14  1786   
(!ti->type->iterate_devices ||
21846377 Mike Snitzer2017-11-14  1787
ti->type->iterate_devices(ti, device_not_discard_capable, NULL)))
21846377 Mike Snitzer2017-11-14  1788   return false;
a7ffb6a5 Mikulas Patocka 2014-07-10  1789   }
a7ffb6a5 Mikulas Patocka 2014-07-10  1790  
21846377 Mike Snitzer2017-11-14  1791   return true;
a7ffb6a5 Mikulas Patocka 2014-07-10  1792  }
a7ffb6a5 Mikulas Patocka 2014-07-10  1793  

:: The code at line 1772 was first introduced by commit
:: 3c12016910061c2a19d985fba7f7dec19d6a3a09 dm table: replace while loops 
with for loops

:: TO: Mikulas Patocka 
:: CC: Mike Snitzer 

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

[dm-devel] [dm:branches/for-4.15/dm 26/27] drivers//md/dm-table.c:1775:8: warning: 'i' may be used uninitialized in this function

2017-11-14 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
branches/for-4.15/dm
head:   6a768a2a8fd04fa89cfad1385d15601ff22adaff
commit: 21846377c4fd5d3ccfcf0dc68f0a4866c0c49803 [26/27] dm: discard support 
requires all targets in a table support discards
config: x86_64-randconfig-x001-201746 (attached as .config)
compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026
reproduce:
git checkout 21846377c4fd5d3ccfcf0dc68f0a4866c0c49803
# save the attached .config to linux build tree
make ARCH=x86_64 

Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings

All warnings (new ones prefixed by >>):

   drivers//md/dm-table.c: In function 'dm_table_set_restrictions':
>> drivers//md/dm-table.c:1775:8: warning: 'i' may be used uninitialized in 
>> this function [-Wmaybe-uninitialized]
  ti = dm_table_get_target(t, i++);
   ^~~
   drivers//md/dm-table.c:1772:11: note: 'i' was declared here
 unsigned i;
  ^

vim +/i +1775 drivers//md/dm-table.c

  1768  
  1769  static bool dm_table_supports_discards(struct dm_table *t)
  1770  {
  1771  struct dm_target *ti;
  1772  unsigned i;
  1773  
  1774  while (i < dm_table_get_num_targets(t)) {
> 1775  ti = dm_table_get_target(t, i++);
  1776  
  1777  if (!ti->num_discard_bios)
  1778  return false;
  1779  
  1780  /*
  1781   * Either the target provides discard support (as 
implied by setting
  1782   * 'discards_supported') or it relies on _all_ data 
devices having
  1783   * discard support.
  1784   */
  1785  if (!ti->discards_supported &&
  1786  (!ti->type->iterate_devices ||
  1787   ti->type->iterate_devices(ti, 
device_not_discard_capable, NULL)))
  1788  return false;
  1789  }
  1790  
  1791  return true;
  1792  }
  1793  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

[dm-devel] [dm:for-next 18/27] drivers//md/dm-cache-target.c:1441:19: error: 'ws' undeclared

2017-11-10 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
head:   b93f980e5c9e057254d694c388daef774e717729
commit: 10d807b74cef508e163e7ae622321f5d6ae866df [18/27] dm cache: fix race 
condition in the writeback mode overwrite_bio optimisation
config: i386-randconfig-x019-201745 (attached as .config)
compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026
reproduce:
git checkout 10d807b74cef508e163e7ae622321f5d6ae866df
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers//md/dm-cache-target.c: In function 'mg_full_copy':
>> drivers//md/dm-cache-target.c:1441:19: error: 'ws' undeclared (first use in 
>> this function)
  mg_upgrade_lock(ws);
  ^~
   drivers//md/dm-cache-target.c:1441:19: note: each undeclared identifier is 
reported only once for each function it appears in
   In file included from include/linux/linkage.h:4:0,
from include/linux/fs.h:4,
from drivers//md/dm.h:13,
from drivers//md/dm-cache-target.c:7:
   drivers//md/dm-cache-target.c: At top level:
   include/linux/compiler.h:162:4: warning: '__f' is static but declared in 
inline function 'strcpy' which is not static
   __f = { \
   ^
   include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
  ^~
   include/linux/string.h:421:2: note: in expansion of macro 'if'
 if (p_size == (size_t)-1 && q_size == (size_t)-1)
 ^~
   include/linux/compiler.h:162:4: warning: '__f' is static but declared in 
inline function 'kmemdup' which is not static
   __f = { \
   ^
   include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
  ^~
   include/linux/string.h:411:2: note: in expansion of macro 'if'
 if (p_size < size)
 ^~
   include/linux/compiler.h:162:4: warning: '__f' is static but declared in 
inline function 'kmemdup' which is not static
   __f = { \
   ^
   include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
  ^~
   include/linux/string.h:409:2: note: in expansion of macro 'if'
 if (__builtin_constant_p(size) && p_size < size)
 ^~
   include/linux/compiler.h:162:4: warning: '__f' is static but declared in 
inline function 'memchr_inv' which is not static
   __f = { \
   ^
   include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
  ^~
   include/linux/string.h:400:2: note: in expansion of macro 'if'
 if (p_size < size)
 ^~
   include/linux/compiler.h:162:4: warning: '__f' is static but declared in 
inline function 'memchr_inv' which is not static
   __f = { \
   ^
   include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
  ^~
   include/linux/string.h:398:2: note: in expansion of macro 'if'
 if (__builtin_constant_p(size) && p_size < size)
 ^~
   include/linux/compiler.h:162:4: warning: '__f' is static but declared in 
inline function 'memchr' which is not static
   __f = { \
   ^
   include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
  ^~
   include/linux/string.h:389:2: note: in expansion of macro 'if'
 if (p_size < size)
 ^~
   include/linux/compiler.h:162:4: warning: '__f' is static but declared in 
inline function 'memchr' which is not static
   __f = { \
   ^
   include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
  ^~
   include/linux/string.h:387:2: note: in expansion of macro 'if'
 if (__builtin_constant_p(size) && p_size < size)
 ^~
   include/linux/compiler.h:162:4: warning: '__f' is static but declared in 
inline function 'memcmp' which is not static
   __f = { \
   ^
   include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
  ^~
   include/linux/string.h:379:2: note: in expansion of macro 'if'
 if (p_size < size || q_size < size)
 ^~
   include/linux/compiler.h:162:4: warning: '__f' is static but declared in 
inline function 'memcmp' which is not static
   __f = { \
   ^
   

[dm-devel] [dm:for-next 8/9] drivers//md/dm-log-writes.c:279:17: note: in expansion of macro 'min'

2017-10-24 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
head:   ae613bbb0144e84cb3c0ebfa9f4fd4d1507c2f0e
commit: 6a697d036324c7fbe63fb49599027269006161e7 [8/9] dm log writes: add 
support for inline data buffers
config: i386-randconfig-x014-201743 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 6a697d036324c7fbe63fb49599027269006161e7
# save the attached .config to linux build tree
make ARCH=i386 

All warnings (new ones prefixed by >>):

   In file included from include/linux/list.h:8:0,
from include/linux/wait.h:6,
from include/linux/wait_bit.h:7,
from include/linux/fs.h:5,
from include/linux/highmem.h:4,
from include/linux/bio.h:21,
from include/linux/device-mapper.h:11,
from drivers//md/dm-log-writes.c:7:
   drivers//md/dm-log-writes.c: In function 'write_inline_data':
   include/linux/kernel.h:790:16: warning: comparison of distinct pointer types 
lacks a cast
 (void) ( == );   \
   ^
   include/linux/kernel.h:799:2: note: in expansion of macro '__min'
 __min(typeof(x), typeof(y),   \
 ^
>> drivers//md/dm-log-writes.c:279:17: note: in expansion of macro 'min'
   pg_datalen = min(datalen, PAGE_SIZE);
^~~

vim +/min +279 drivers//md/dm-log-writes.c

   248  
   249  static int write_inline_data(struct log_writes_c *lc, void *entry,
   250   size_t entrylen, void *data, size_t 
datalen,
   251   sector_t sector)
   252  {
   253  int num_pages, bio_pages, pg_datalen, pg_sectorlen, i;
   254  struct page *page;
   255  struct bio *bio;
   256  size_t ret;
   257  void *ptr;
   258  
   259  while (datalen) {
   260  num_pages = ALIGN(datalen, PAGE_SIZE) >> PAGE_SHIFT;
   261  bio_pages = min(num_pages, BIO_MAX_PAGES);
   262  
   263  atomic_inc(>io_blocks);
   264  
   265  bio = bio_alloc(GFP_KERNEL, bio_pages);
   266  if (!bio) {
   267  DMERR("Couldn't alloc inline data bio");
   268  goto error;
   269  }
   270  
   271  bio->bi_iter.bi_size = 0;
   272  bio->bi_iter.bi_sector = sector;
   273  bio_set_dev(bio, lc->logdev->bdev);
   274  bio->bi_end_io = log_end_io;
   275  bio->bi_private = lc;
   276  bio_set_op_attrs(bio, REQ_OP_WRITE, 0);
   277  
   278  for (i = 0; i < bio_pages; i++) {
 > 279  pg_datalen = min(datalen, PAGE_SIZE);
   280  pg_sectorlen = ALIGN(pg_datalen, 
lc->sectorsize);
   281  
   282  page = alloc_page(GFP_KERNEL);
   283  if (!page) {
   284  DMERR("Couldn't alloc inline data 
page");
   285  goto error_bio;
   286  }
   287  
   288  ptr = kmap_atomic(page);
   289  memcpy(ptr, data, pg_datalen);
   290  if (pg_sectorlen > pg_datalen)
   291  memset(ptr + pg_datalen, 0, 
pg_sectorlen - pg_datalen);
   292  kunmap_atomic(ptr);
   293  
   294  ret = bio_add_page(bio, page, pg_sectorlen, 0);
   295  if (ret != pg_sectorlen) {
   296  DMERR("Couldn't add page of inline 
data");
   297  __free_page(page);
   298  goto error_bio;
   299  }
   300  
   301  datalen -= pg_datalen;
   302  data+= pg_datalen;
   303  }
   304  submit_bio(bio);
   305  
   306  sector += bio_pages * PAGE_SECTORS;
   307  }
   308  return 0;
   309  error_bio:
   310  bio_free_pages(bio);
   311  bio_put(bio);
   312  error:
   313  put_io_block(lc);
   314  return -1;
   315  }
   316  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH v6 04/19] crypto: marvell/cesa: remove redundant backlog checks on EBUSY

2017-08-24 Thread kbuild test robot
Hi Gilad,

[auto build test ERROR on cryptodev/master]
[also build test ERROR on v4.13-rc6 next-20170823]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Gilad-Ben-Yossef/crypto-change-transient-busy-return-code-to-EAGAIN/20170824-180606
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget 
https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm 

All error/warnings (new ones prefixed by >>):

   drivers/crypto/marvell/cesa.c: In function 'mv_cesa_queue_req':
>> drivers/crypto/marvell/cesa.c:187:3: error: expected ')' before 
>> 'mv_cesa_tdma_chain'
  mv_cesa_tdma_chain(engine, creq);
  ^~
>> drivers/crypto/marvell/cesa.c:196:1: error: expected expression before '}' 
>> token
}
^
>> drivers/crypto/marvell/cesa.c:196:1: warning: control reaches end of 
>> non-void function [-Wreturn-type]
}
^

vim +187 drivers/crypto/marvell/cesa.c

f63601fd6 Boris Brezillon  2015-06-18  176  
53da740fe Romain Perier2016-06-21  177  int mv_cesa_queue_req(struct 
crypto_async_request *req,
53da740fe Romain Perier2016-06-21  178struct 
mv_cesa_req *creq)
f63601fd6 Boris Brezillon  2015-06-18  179  {
f63601fd6 Boris Brezillon  2015-06-18  180  int ret;
bf8f91e71 Romain Perier2016-06-21  181  struct mv_cesa_engine *engine = 
creq->engine;
f63601fd6 Boris Brezillon  2015-06-18  182  
bf8f91e71 Romain Perier2016-06-21  183  spin_lock_bh(>lock);
bf8f91e71 Romain Perier2016-06-21  184  ret = 
crypto_enqueue_request(>queue, req);
603e989eb Romain Perier2016-07-22  185  if ((mv_cesa_req_get_type(creq) 
== CESA_DMA_REQ) &&
3a1c7473a Gilad Ben-Yossef 2017-08-21  186  (ret == -EINPROGRESS || ret 
== -EBUSY)
603e989eb Romain Perier2016-07-22 @187  
mv_cesa_tdma_chain(engine, creq);
bf8f91e71 Romain Perier2016-06-21  188  spin_unlock_bh(>lock);
f63601fd6 Boris Brezillon  2015-06-18  189  
f63601fd6 Boris Brezillon  2015-06-18  190  if (ret != -EINPROGRESS)
f63601fd6 Boris Brezillon  2015-06-18  191  return ret;
f63601fd6 Boris Brezillon  2015-06-18  192  
85030c516 Romain Perier2016-06-21  193  mv_cesa_rearm_engine(engine);
f63601fd6 Boris Brezillon  2015-06-18  194  
f63601fd6 Boris Brezillon  2015-06-18  195  return -EINPROGRESS;
f63601fd6 Boris Brezillon  2015-06-18 @196  }
f63601fd6 Boris Brezillon  2015-06-18  197  

:: The code at line 187 was first introduced by commit
:: 603e989ebee21bfa9cddf8390d0515a07324edc8 crypto: marvell - Don't chain 
at DMA level when backlog is disabled

:: TO: Romain Perier 
:: CC: Herbert Xu 

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH v2] dm: allow device-mapper to operate without dax support

2017-08-02 Thread kbuild test robot
Hi Dan,

[auto build test ERROR on dm/for-next]
[also build test ERROR on v4.13-rc3 next-20170802]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Dan-Williams/dm-allow-device-mapper-to-operate-without-dax-support/20170802-155255
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
config: s390-defconfig (attached as .config)
compiler: s390x-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget 
https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=s390 

All errors (new ones prefixed by >>):

   drivers/md/dm.o: In function `cleanup_mapped_device':
>> drivers/md/dm.c:1684: undefined reference to `kill_dax'
>> drivers/md/dm.c:1685: undefined reference to `put_dax'
   drivers/md/dm.o: In function `close_table_device':
   drivers/md/dm.c:651: undefined reference to `put_dax'
   drivers/md/dm.o: In function `open_table_device':
>> drivers/md/dm.c:637: undefined reference to `dax_get_by_host'
   drivers/md/dm.o: In function `dm_dax_flush':
>> drivers/md/dm.c:1003: undefined reference to `dax_get_private'
   drivers/md/dm.o: In function `dm_dax_copy_from_iter':
   drivers/md/dm.c:979: undefined reference to `dax_get_private'
   drivers/md/dm.o: In function `dm_dax_direct_access':
   drivers/md/dm.c:951: undefined reference to `dax_get_private'
   drivers/md/dm.o: In function `alloc_dev':
>> drivers/md/dm.c:1783: undefined reference to `alloc_dax'
   drivers/md/dm-table.o: In function `device_dax_write_cache_enabled':
   drivers/md/dm-table.c:1644: undefined reference to `dax_write_cache_enabled'
   drivers/md/dm-table.o: In function `dm_table_set_restrictions':
   drivers/md/dm-table.c:1822: undefined reference to `dax_write_cache'
   drivers/md/dm-linear.o: In function `linear_dax_flush':
>> drivers/md/dm-linear.c:197: undefined reference to `bdev_dax_pgoff'
>> drivers/md/dm-linear.c:199: undefined reference to `dax_flush'
   drivers/md/dm-linear.o: In function `linear_dax_copy_from_iter':
   drivers/md/dm-linear.c:183: undefined reference to `bdev_dax_pgoff'
>> drivers/md/dm-linear.c:185: undefined reference to `dax_copy_from_iter'
   drivers/md/dm-linear.o: In function `linear_dax_direct_access':
   drivers/md/dm-linear.c:168: undefined reference to `bdev_dax_pgoff'
>> drivers/md/dm-linear.c:171: undefined reference to `dax_direct_access'
   drivers/md/dm-stripe.o: In function `stripe_dax_flush':
>> drivers/md/dm-stripe.c:369: undefined reference to `bdev_dax_pgoff'
>> drivers/md/dm-stripe.c:371: undefined reference to `dax_flush'
   drivers/md/dm-stripe.o: In function `stripe_dax_copy_from_iter':
   drivers/md/dm-stripe.c:350: undefined reference to `bdev_dax_pgoff'
>> drivers/md/dm-stripe.c:352: undefined reference to `dax_copy_from_iter'
   drivers/md/dm-stripe.o: In function `stripe_dax_direct_access':
   drivers/md/dm-stripe.c:330: undefined reference to `bdev_dax_pgoff'
>> drivers/md/dm-stripe.c:333: undefined reference to `dax_direct_access'

vim +1684 drivers/md/dm.c

4a0b4ddf2 Mike Snitzer2010-08-12  1672  
0f20972f7 Mike Snitzer2015-04-28  1673  static void 
cleanup_mapped_device(struct mapped_device *md)
0f20972f7 Mike Snitzer2015-04-28  1674  {
0f20972f7 Mike Snitzer2015-04-28  1675  if (md->wq)
0f20972f7 Mike Snitzer2015-04-28  1676  
destroy_workqueue(md->wq);
0f20972f7 Mike Snitzer2015-04-28  1677  if (md->kworker_task)
0f20972f7 Mike Snitzer2015-04-28  1678  
kthread_stop(md->kworker_task);
0f20972f7 Mike Snitzer2015-04-28  1679  
mempool_destroy(md->io_pool);
0f20972f7 Mike Snitzer2015-04-28  1680  if (md->bs)
0f20972f7 Mike Snitzer2015-04-28  1681  
bioset_free(md->bs);
0f20972f7 Mike Snitzer2015-04-28  1682  
f26c5719b Dan Williams2017-04-12  1683  if (md->dax_dev) {
f26c5719b Dan Williams2017-04-12 @1684  
kill_dax(md->dax_dev);
f26c5719b Dan Williams2017-04-12 @1685  
put_dax(md->dax_dev);
f26c5719b Dan Williams2017-04-12  1686  md->dax_dev = 
NULL;
f26c5719b Dan Williams2017-04-12  1687  }
f26c5719b Dan Williams2017-04-12  1688  
0f20972f7 Mike Snitzer2015-04-28  1689  if (md->disk) {
0f20972f7 Mike Snitzer2015-04-28  1690  
spin_lock(&_minor_lock);
0f20972f7 Mike Snitzer2015-04-28  1691  
md->disk->private_data = NULL;
0f20972f7 Mike Snitzer2015-04-28  1692  
spin_unlock(&_minor_lock);
0f20972f7 Mike Snitzer2015-04-28  1693  
del_gendisk(md->disk);
0f20972f7 Mike Snitzer2015-04-28  

Re: [dm-devel] [PATCH] dm: enable opt-out of device-mapper dax support

2017-08-01 Thread kbuild test robot
Hi Dan,

[auto build test ERROR on dm/for-next]
[also build test ERROR on v4.13-rc3 next-20170801]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Dan-Williams/dm-enable-opt-out-of-device-mapper-dax-support/20170802-063827
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
config: sparc64-defconfig (attached as .config)
compiler: sparc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget 
https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=sparc64 

All errors (new ones prefixed by >>):

>> ERROR: "dax_write_cache" [drivers/md/dm-mod.ko] undefined!
>> ERROR: "dax_write_cache_enabled" [drivers/md/dm-mod.ko] undefined!

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH] dm: enable opt-out of device-mapper dax support

2017-08-01 Thread kbuild test robot
Hi Dan,

[auto build test ERROR on dm/for-next]
[also build test ERROR on v4.13-rc3 next-20170801]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Dan-Williams/dm-enable-opt-out-of-device-mapper-dax-support/20170802-063827
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
config: x86_64-allyesdebian (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/md/dm-table.o: In function `device_dax_write_cache_enabled':
>> dm-table.c:(.text+0x568): undefined reference to `dax_write_cache_enabled'
   drivers/md/dm-table.o: In function `dm_table_set_restrictions':
>> dm-table.c:(.text+0x1e40): undefined reference to `dax_write_cache'

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH v2 2/2] crypto/algapi - make crypto_xor() take separate dst and src arguments

2017-07-23 Thread kbuild test robot
Hi Ard,

[auto build test ERROR on cryptodev/master]
[also build test ERROR on v4.13-rc1 next-20170721]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Ard-Biesheuvel/crypto-algapi-use-separate-dst-and-src-operands-for-__crypto_xor/20170719-090848
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget 
https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=powerpc 

All errors (new ones prefixed by >>):

   drivers/crypto/vmx/aes_ctr.c: In function 'p8_aes_ctr_final':
   drivers/crypto/vmx/aes_ctr.c:107:29: warning: passing argument 3 of 
'crypto_xor' makes integer from pointer without a cast [-Wint-conversion]
 crypto_xor(dst, keystream, src, nbytes);
^~~
   In file included from include/crypto/scatterwalk.h:19:0,
from drivers/crypto/vmx/aes_ctr.c:29:
   include/crypto/algapi.h:197:20: note: expected 'unsigned int' but argument 
is of type 'u8 * {aka unsigned char *}'
static inline void crypto_xor(u8 *dst, const u8 *src, unsigned int size)
   ^~
>> drivers/crypto/vmx/aes_ctr.c:107:2: error: too many arguments to function 
>> 'crypto_xor'
 crypto_xor(dst, keystream, src, nbytes);
 ^~
   In file included from include/crypto/scatterwalk.h:19:0,
from drivers/crypto/vmx/aes_ctr.c:29:
   include/crypto/algapi.h:197:20: note: declared here
static inline void crypto_xor(u8 *dst, const u8 *src, unsigned int size)
   ^~

vim +/crypto_xor +107 drivers/crypto/vmx/aes_ctr.c

89  
90  static void p8_aes_ctr_final(struct p8_aes_ctr_ctx *ctx,
91   struct blkcipher_walk *walk)
92  {
93  u8 *ctrblk = walk->iv;
94  u8 keystream[AES_BLOCK_SIZE];
95  u8 *src = walk->src.virt.addr;
96  u8 *dst = walk->dst.virt.addr;
97  unsigned int nbytes = walk->nbytes;
98  
99  preempt_disable();
   100  pagefault_disable();
   101  enable_kernel_vsx();
   102  aes_p8_encrypt(ctrblk, keystream, >enc_key);
   103  disable_kernel_vsx();
   104  pagefault_enable();
   105  preempt_enable();
   106  
 > 107  crypto_xor(dst, keystream, src, nbytes);
   108  crypto_inc(ctrblk, AES_BLOCK_SIZE);
   109  }
   110  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

[dm-devel] [dm:for-next 4/6] drivers/md/dm-integrity.c:1734:1: error: expected '; ' before '}' token

2017-07-21 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
head:   8df89eed38e29b085c604fbcc93e9d4047f72e44
commit: b3f610889cef75a63e9e7729f5c336a288237244 [4/6] dm integrity: WARN_ON if 
variables representing journal usage get out of sync
config: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.0
reproduce:
wget 
https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout b3f610889cef75a63e9e7729f5c336a288237244
# save the attached .config to linux build tree
make.cross ARCH=xtensa 

All errors (new ones prefixed by >>):

   drivers/md/dm-integrity.c: In function 'pad_uncommitted':
>> drivers/md/dm-integrity.c:1734:1: error: expected ';' before '}' token
}
^

vim +1734 drivers/md/dm-integrity.c

7eada909b Mikulas Patocka 2017-01-04  1722  
7eada909b Mikulas Patocka 2017-01-04  1723  static void pad_uncommitted(struct 
dm_integrity_c *ic)
7eada909b Mikulas Patocka 2017-01-04  1724  {
7eada909b Mikulas Patocka 2017-01-04  1725  if (ic->free_section_entry) {
7eada909b Mikulas Patocka 2017-01-04  1726  ic->free_sectors -= 
ic->journal_section_entries - ic->free_section_entry;
7eada909b Mikulas Patocka 2017-01-04  1727  ic->free_section_entry 
= 0;
7eada909b Mikulas Patocka 2017-01-04  1728  ic->free_section++;
7eada909b Mikulas Patocka 2017-01-04  1729  wraparound_section(ic, 
>free_section);
7eada909b Mikulas Patocka 2017-01-04  1730  
ic->n_uncommitted_sections++;
7eada909b Mikulas Patocka 2017-01-04  1731  }
b3f610889 Mikulas Patocka 2017-07-21  1732  WARN_ON(ic->journal_sections * 
ic->journal_section_entries !=
b3f610889 Mikulas Patocka 2017-07-21  1733  
(ic->n_uncommitted_sections + ic->n_committed_sections) * 
ic->journal_section_entries + ic->free_sectors)
7eada909b Mikulas Patocka 2017-01-04 @1734  }
7eada909b Mikulas Patocka 2017-01-04  1735  

:: The code at line 1734 was first introduced by commit
:: 7eada909bfd7ac90a4522e56aa3179d1fd68cd14 dm: add integrity target

:: TO: Mikulas Patocka 
:: CC: Mike Snitzer 

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

[dm-devel] [dm:for-next 10/14] drivers/md/dm.c:1089:5: error: 'struct bio' has no member named 'bi_error'; did you mean 'bi_iter'?

2017-06-12 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
head:   efc857919fd776a9f8ca2824a87adc32285cba15
commit: 7a8ce0902a42d8b5bc126dddc2c90adaf7b7a73c [10/14] dm: introduce 
dm_remap_zone_report()
config: x86_64-randconfig-x019-201724 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 7a8ce0902a42d8b5bc126dddc2c90adaf7b7a73c
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/md/dm.c: In function 'dm_remap_zone_report':
>> drivers/md/dm.c:1089:5: error: 'struct bio' has no member named 'bi_error'; 
>> did you mean 'bi_iter'?
 bio->bi_error = -ENOTSUPP;
^~

vim +1089 drivers/md/dm.c

  1083  kunmap_atomic(hdr);
  1084  }
  1085  
  1086  bio_advance(report_bio, report_bio->bi_iter.bi_size);
  1087  
  1088  #else /* !CONFIG_BLK_DEV_ZONED */
> 1089  bio->bi_error = -ENOTSUPP;
  1090  #endif
  1091  }
  1092  EXPORT_SYMBOL_GPL(dm_remap_zone_report);

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

[dm-devel] [dm:for-next 12/12] drivers/md/dm-zoned-target.c:947:2: warning: initialization from incompatible pointer type

2017-06-09 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
head:   02da2e15e81f3f0b7cd1665a84669c6bb56276bc
commit: 02da2e15e81f3f0b7cd1665a84669c6bb56276bc [12/12] dm zoned: 
drive-managed zoned block device target
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 4.9.0
reproduce:
wget 
https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 02da2e15e81f3f0b7cd1665a84669c6bb56276bc
# save the attached .config to linux build tree
make.cross ARCH=m68k 

All warnings (new ones prefixed by >>):

   drivers/md/dm-zoned-target.c:947:2: error: unknown field 'suspend' specified 
in initializer
 .suspend  = dmz_suspend,
 ^
>> drivers/md/dm-zoned-target.c:947:2: warning: initialization from 
>> incompatible pointer type
   drivers/md/dm-zoned-target.c:947:2: warning: (near initialization for 
'dmz_type.busy')

vim +947 drivers/md/dm-zoned-target.c

   931  struct dmz_target *dmz = ti->private;
   932  
   933  return fn(ti, dmz->ddev, 0, dmz->dev->capacity, data);
   934  }
   935  
   936  static struct target_type dmz_type = {
   937  .name= "zoned",
   938  .version = {1, 0, 0},
   939  .features= DM_TARGET_SINGLETON | DM_TARGET_ZONED_HM,
   940  .module  = THIS_MODULE,
   941  .ctr = dmz_ctr,
   942  .dtr = dmz_dtr,
   943  .map = dmz_map,
   944  .end_io  = dmz_end_io,
   945  .io_hints= dmz_io_hints,
   946  .prepare_ioctl   = dmz_prepare_ioctl,
 > 947  .suspend = dmz_suspend,
   948  .resume  = dmz_resume,
   949  .iterate_devices = dmz_iterate_devices,
   950  };
   951  
   952  static int __init dmz_init(void)
   953  {
   954  return dm_register_target(_type);
   955  }

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

[dm-devel] [dm:for-next 12/12] drivers/md/dm-zoned-target.c:947:2: error: unknown field 'suspend' specified in initializer

2017-06-08 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
head:   02da2e15e81f3f0b7cd1665a84669c6bb56276bc
commit: 02da2e15e81f3f0b7cd1665a84669c6bb56276bc [12/12] dm zoned: 
drive-managed zoned block device target
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 02da2e15e81f3f0b7cd1665a84669c6bb56276bc
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

>> drivers/md/dm-zoned-target.c:947:2: error: unknown field 'suspend' specified 
>> in initializer
 .suspend  = dmz_suspend,
 ^
>> drivers/md/dm-zoned-target.c:947:14: error: initialization from incompatible 
>> pointer type [-Werror=incompatible-pointer-types]
 .suspend  = dmz_suspend,
 ^~~
   drivers/md/dm-zoned-target.c:947:14: note: (near initialization for 
'dmz_type.busy')
   cc1: some warnings being treated as errors

vim +/suspend +947 drivers/md/dm-zoned-target.c

   941  .ctr = dmz_ctr,
   942  .dtr = dmz_dtr,
   943  .map = dmz_map,
   944  .end_io  = dmz_end_io,
   945  .io_hints= dmz_io_hints,
   946  .prepare_ioctl   = dmz_prepare_ioctl,
 > 947  .suspend = dmz_suspend,
   948  .resume  = dmz_resume,
   949  .iterate_devices = dmz_iterate_devices,
   950  };

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 2/6] blk-mq: use the introduced blk_mq_unquiesce_queue()

2017-05-26 Thread kbuild test robot
Hi Ming,

[auto build test ERROR on block/for-next]
[also build test ERROR on v4.12-rc2 next-20170525]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Ming-Lei/blk-mq-introduce-blk_mq_unquiesce_queue/20170526-140138
base:   https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git 
for-next
config: x86_64-randconfig-x019-201721 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

Note: the 
linux-review/Ming-Lei/blk-mq-introduce-blk_mq_unquiesce_queue/20170526-140138 
HEAD 470e70e5203ed8f76bb7c1a86db58023098bfc21 builds fine.
  It only hurts bisectibility.

All errors (new ones prefixed by >>):

   drivers/scsi/scsi_lib.c: In function 'scsi_internal_device_unblock':
>> drivers/scsi/scsi_lib.c:3033:7: error: implicit declaration of function 
>> 'blk_queue_quiesced' [-Werror=implicit-function-declaration]
  if (blk_queue_quiesced(q))
  ^~
   Cyclomatic Complexity 5 include/linux/compiler.h:__read_once_size
   Cyclomatic Complexity 5 include/linux/compiler.h:__write_once_size
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:test_and_clear_bit
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:constant_test_bit
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:variable_test_bit
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:fls64
   Cyclomatic Complexity 1 include/uapi/linux/swab.h:__swab16p
   Cyclomatic Complexity 1 
include/uapi/linux/byteorder/little_endian.h:__be16_to_cpup
   Cyclomatic Complexity 1 include/linux/log2.h:__ilog2_u64
   Cyclomatic Complexity 1 include/linux/list.h:INIT_LIST_HEAD
   Cyclomatic Complexity 1 include/linux/list.h:__list_add_valid
   Cyclomatic Complexity 1 include/linux/list.h:__list_del_entry_valid
   Cyclomatic Complexity 2 include/linux/list.h:__list_add
   Cyclomatic Complexity 1 include/linux/list.h:list_add_tail
   Cyclomatic Complexity 1 include/linux/list.h:__list_del
   Cyclomatic Complexity 2 include/linux/list.h:__list_del_entry
   Cyclomatic Complexity 1 include/linux/list.h:list_del
   Cyclomatic Complexity 1 include/linux/list.h:list_del_init
   Cyclomatic Complexity 1 include/linux/list.h:list_move_tail
   Cyclomatic Complexity 1 include/linux/list.h:list_empty
   Cyclomatic Complexity 1 include/linux/list.h:__list_splice
   Cyclomatic Complexity 2 include/linux/list.h:list_splice
   Cyclomatic Complexity 2 include/linux/list.h:list_splice_init
   Cyclomatic Complexity 1 arch/x86/include/asm/current.h:get_current
   Cyclomatic Complexity 1 include/asm-generic/getorder.h:__get_order
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:atomic_read
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:atomic_set
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:atomic_inc
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:atomic_dec
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:atomic_add_return
   Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:atomic_sub_return
   Cyclomatic Complexity 1 include/linux/jump_label.h:static_key_count
   Cyclomatic Complexity 2 include/linux/jump_label.h:static_key_false
   Cyclomatic Complexity 1 arch/x86/include/asm/paravirt.h:arch_local_save_flags
   Cyclomatic Complexity 1 
arch/x86/include/asm/irqflags.h:arch_irqs_disabled_flags
   Cyclomatic Complexity 5 arch/x86/include/asm/preempt.h:__preempt_count_add
   Cyclomatic Complexity 1 
arch/x86/include/asm/preempt.h:__preempt_count_dec_and_test
   Cyclomatic Complexity 1 include/linux/spinlock.h:spinlock_check
   Cyclomatic Complexity 1 include/linux/spinlock.h:spin_lock_irq
   Cyclomatic Complexity 1 include/linux/spinlock.h:spin_unlock_irq
   Cyclomatic Complexity 1 include/linux/spinlock.h:spin_unlock_irqrestore
   Cyclomatic Complexity 1 include/linux/rcupdate.h:rcu_read_lock_sched_notrace
   Cyclomatic Complexity 1 include/linux/mm.h:lowmem_page_address
   Cyclomatic Complexity 1 include/linux/uaccess.h:pagefault_disabled_inc
   Cyclomatic Complexity 1 include/linux/uaccess.h:pagefault_disabled_dec
   Cyclomatic Complexity 1 include/linux/uaccess.h:pagefault_disable
   Cyclomatic Complexity 1 include/linux/uaccess.h:pagefault_enable
   Cyclomatic Complexity 1 include/linux/highmem.h:kmap_atomic
   Cyclomatic Complexity 1 include/linux/blk_types.h:op_is_write
   Cyclomatic Complexity 1 include/linux/slab.h:kmem_cache_alloc_node
   Cyclomatic Complexity 68 include/linux/slab.h:kmalloc_large
   Cyclomatic Complexity 3 include/linux/slab.h:kmalloc
   Cyclomatic Complexity 1 include/linux/slab.h:kzalloc
   Cyclomatic Complexity 1 include/linux/blkdev.h:blk_rq_is_scsi
   Cyclomatic Complexity 1 include/linux/blkdev.h:blk_rq_is_private
   Cyclomatic Complexity 3 include/linux/blkdev.h:blk_rq_is_passthrough
   Cyclomatic Complexity 1 

Re: [dm-devel] [PATCH] dm verity: deferred hash checking for restart/logging mode

2017-04-24 Thread kbuild test robot
Hi Bongkyu,

[auto build test ERROR on dm/for-next]
[also build test ERROR on v4.11-rc8 next-20170421]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Bongkyu-Kim/dm-verity-deferred-hash-checking-for-restart-logging-mode/20170424-154859
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
config: x86_64-rhel (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

>> ERROR: "free_io" [drivers/md/dm-verity.ko] undefined!

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH v3] axon_ram: add dax_operations support

2017-04-19 Thread kbuild test robot
Hi Dan,

[auto build test WARNING on powerpc/next]
[also build test WARNING on v4.11-rc7 next-20170419]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Dan-Williams/axon_ram-add-dax_operations-support/20170420-091615
base:   https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget 
https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=powerpc 

All warnings (new ones prefixed by >>):

   arch/powerpc/sysdev/axonram.c: In function 'axon_ram_dax_direct_access':
   arch/powerpc/sysdev/axonram.c:176:31: error: implicit declaration of 
function 'dax_get_private' [-Werror=implicit-function-declaration]
 struct axon_ram_bank *bank = dax_get_private(dax_dev);
  ^~~
>> arch/powerpc/sysdev/axonram.c:176:31: warning: initialization makes pointer 
>> from integer without a cast [-Wint-conversion]
   arch/powerpc/sysdev/axonram.c: At top level:
   arch/powerpc/sysdev/axonram.c:181:21: error: variable 'axon_ram_dax_ops' has 
initializer but incomplete type
static const struct dax_operations axon_ram_dax_ops = {
^~
   arch/powerpc/sysdev/axonram.c:182:2: error: unknown field 'direct_access' 
specified in initializer
 .direct_access = axon_ram_dax_direct_access,
 ^
>> arch/powerpc/sysdev/axonram.c:182:19: warning: excess elements in struct 
>> initializer
 .direct_access = axon_ram_dax_direct_access,
  ^~
   arch/powerpc/sysdev/axonram.c:182:19: note: (near initialization for 
'axon_ram_dax_ops')
   arch/powerpc/sysdev/axonram.c: In function 'axon_ram_probe':
   arch/powerpc/sysdev/axonram.c:255:18: error: implicit declaration of 
function 'alloc_dax' [-Werror=implicit-function-declaration]
 bank->dax_dev = alloc_dax(bank, bank->disk->disk_name,
 ^
>> arch/powerpc/sysdev/axonram.c:255:16: warning: assignment makes pointer from 
>> integer without a cast [-Wint-conversion]
 bank->dax_dev = alloc_dax(bank, bank->disk->disk_name,
   ^
   arch/powerpc/sysdev/axonram.c:313:3: error: implicit declaration of function 
'kill_dax' [-Werror=implicit-function-declaration]
  kill_dax(bank->dax_dev);
  ^~~~
   arch/powerpc/sysdev/axonram.c:314:3: error: implicit declaration of function 
'put_dax' [-Werror=implicit-function-declaration]
  put_dax(bank->dax_dev);
  ^~~
   arch/powerpc/sysdev/axonram.c: At top level:
   arch/powerpc/sysdev/axonram.c:181:36: error: storage size of 
'axon_ram_dax_ops' isn't known
static const struct dax_operations axon_ram_dax_ops = {
   ^~~~
   cc1: some warnings being treated as errors

vim +176 arch/powerpc/sysdev/axonram.c

   170  };
   171  
   172  static long
   173  axon_ram_dax_direct_access(struct dax_device *dax_dev, pgoff_t pgoff, 
long nr_pages,
   174 void **kaddr, pfn_t *pfn)
   175  {
 > 176  struct axon_ram_bank *bank = dax_get_private(dax_dev);
   177  
   178  return __axon_ram_direct_access(bank, pgoff, nr_pages, kaddr, 
pfn);
   179  }
   180  
   181  static const struct dax_operations axon_ram_dax_ops = {
 > 182  .direct_access = axon_ram_dax_direct_access,
   183  };
   184  
   185  /**
   186   * axon_ram_probe - probe() method for platform driver
   187   * @device: see platform_driver method
   188   */
   189  static int axon_ram_probe(struct platform_device *device)
   190  {
   191  static int axon_ram_bank_id = -1;
   192  struct axon_ram_bank *bank;
   193  struct resource resource;
   194  int rc = 0;
   195  
   196  axon_ram_bank_id++;
   197  
   198  dev_info(>dev, "Found memory controller on %s\n",
   199  device->dev.of_node->full_name);
   200  
   201  bank = kzalloc(sizeof(struct axon_ram_bank), GFP_KERNEL);
   202  if (bank == NULL) {
   203  dev_err(>dev, "Out of memory\n");
   204  rc = -ENOMEM;
   205  goto failed;
   206  }
   207  
   208  device->dev.platform_data = bank;
   209  
   210  bank->device = device;
   211  
   212  if (of_address_to_resource(device->dev.of_node, 0, ) 
!= 0) {
   213  dev_err(>dev, "Cannot access device tree\n");
   214  rc = -EFAULT;
   215  goto failed;
   216  }
   217  
   218  bank->size = resource_size();
   219  
   220  if (bank->size == 0) {
   221  

Re: [dm-devel] [PATCH v3] dcssblk: add dax_operations support

2017-04-19 Thread kbuild test robot
Hi Dan,

[auto build test ERROR on linus/master]
[also build test ERROR on v4.11-rc7 next-20170419]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Dan-Williams/dcssblk-add-dax_operations-support/20170420-090408
config: s390-defconfig (attached as .config)
compiler: s390x-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget 
https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=s390 

All error/warnings (new ones prefixed by >>):

>> drivers/s390/block/dcssblk.c:36:46: warning: 'struct dax_device' declared 
>> inside parameter list will not be visible outside of this definition or 
>> declaration
static long dcssblk_dax_direct_access(struct dax_device *dax_dev, pgoff_t 
pgoff,
 ^~
>> drivers/s390/block/dcssblk.c:49:21: error: variable 'dcssblk_dax_ops' has 
>> initializer but incomplete type
static const struct dax_operations dcssblk_dax_ops = {
^~
>> drivers/s390/block/dcssblk.c:50:2: error: unknown field 'direct_access' 
>> specified in initializer
 .direct_access = dcssblk_dax_direct_access,
 ^
>> drivers/s390/block/dcssblk.c:50:19: warning: excess elements in struct 
>> initializer
 .direct_access = dcssblk_dax_direct_access,
  ^
   drivers/s390/block/dcssblk.c:50:19: note: (near initialization for 
'dcssblk_dax_ops')
   drivers/s390/block/dcssblk.c: In function 'dcssblk_shared_store':
>> drivers/s390/block/dcssblk.c:400:2: error: implicit declaration of function 
>> 'kill_dax' [-Werror=implicit-function-declaration]
 kill_dax(dev_info->dax_dev);
 ^~~~
>> drivers/s390/block/dcssblk.c:401:2: error: implicit declaration of function 
>> 'put_dax' [-Werror=implicit-function-declaration]
 put_dax(dev_info->dax_dev);
 ^~~
   drivers/s390/block/dcssblk.c: In function 'dcssblk_add_store':
>> drivers/s390/block/dcssblk.c:667:22: error: implicit declaration of function 
>> 'alloc_dax' [-Werror=implicit-function-declaration]
 dev_info->dax_dev = alloc_dax(dev_info, dev_info->gd->disk_name,
 ^
>> drivers/s390/block/dcssblk.c:667:20: warning: assignment makes pointer from 
>> integer without a cast [-Wint-conversion]
 dev_info->dax_dev = alloc_dax(dev_info, dev_info->gd->disk_name,
   ^
   drivers/s390/block/dcssblk.c: At top level:
   drivers/s390/block/dcssblk.c:932:1: error: conflicting types for 
'dcssblk_dax_direct_access'
dcssblk_dax_direct_access(struct dax_device *dax_dev, pgoff_t pgoff,
^
   drivers/s390/block/dcssblk.c:36:13: note: previous declaration of 
'dcssblk_dax_direct_access' was here
static long dcssblk_dax_direct_access(struct dax_device *dax_dev, pgoff_t 
pgoff,
^
   drivers/s390/block/dcssblk.c: In function 'dcssblk_dax_direct_access':
>> drivers/s390/block/dcssblk.c:935:38: error: implicit declaration of function 
>> 'dax_get_private' [-Werror=implicit-function-declaration]
 struct dcssblk_dev_info *dev_info = dax_get_private(dax_dev);
 ^~~
>> drivers/s390/block/dcssblk.c:935:38: warning: initialization makes pointer 
>> from integer without a cast [-Wint-conversion]
   drivers/s390/block/dcssblk.c: At top level:
>> drivers/s390/block/dcssblk.c:49:36: error: storage size of 'dcssblk_dax_ops' 
>> isn't known
static const struct dax_operations dcssblk_dax_ops = {
   ^~~
   drivers/s390/block/dcssblk.c:36:13: warning: 'dcssblk_dax_direct_access' 
used but never defined
static long dcssblk_dax_direct_access(struct dax_device *dax_dev, pgoff_t 
pgoff,
^
   drivers/s390/block/dcssblk.c:932:1: warning: 'dcssblk_dax_direct_access' 
defined but not used [-Wunused-function]
dcssblk_dax_direct_access(struct dax_device *dax_dev, pgoff_t pgoff,
^
   cc1: some warnings being treated as errors

vim +/dcssblk_dax_ops +49 drivers/s390/block/dcssblk.c

30  static int dcssblk_open(struct block_device *bdev, fmode_t mode);
31  static void dcssblk_release(struct gendisk *disk, fmode_t mode);
32  static blk_qc_t dcssblk_make_request(struct request_queue *q,
33  struct bio *bio);
34  static long dcssblk_blk_direct_access(struct block_device *bdev, 
sector_t secnum,
35   void **kaddr, pfn_t *pfn, long size);
  > 36  static long dcssblk_dax_direct_access(struct dax_device *dax_dev, 
pgoff_t pgoff,
37  long nr_pages, void **kaddr, pfn_t *pfn);
 

Re: [dm-devel] [PATCH v3] axon_ram: add dax_operations support

2017-04-19 Thread kbuild test robot
Hi Dan,

[auto build test ERROR on powerpc/next]
[also build test ERROR on v4.11-rc7 next-20170419]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Dan-Williams/axon_ram-add-dax_operations-support/20170420-091615
base:   https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: powerpc-defconfig (attached as .config)
compiler: powerpc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget 
https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=powerpc 

All errors (new ones prefixed by >>):

   arch/powerpc/sysdev/axonram.c: In function 'axon_ram_dax_direct_access':
>> arch/powerpc/sysdev/axonram.c:176:31: error: implicit declaration of 
>> function 'dax_get_private' [-Werror=implicit-function-declaration]
 struct axon_ram_bank *bank = dax_get_private(dax_dev);
  ^~~
>> arch/powerpc/sysdev/axonram.c:176:31: error: initialization makes pointer 
>> from integer without a cast [-Werror=int-conversion]
   arch/powerpc/sysdev/axonram.c: At top level:
>> arch/powerpc/sysdev/axonram.c:181:21: error: variable 'axon_ram_dax_ops' has 
>> initializer but incomplete type
static const struct dax_operations axon_ram_dax_ops = {
^~
>> arch/powerpc/sysdev/axonram.c:182:2: error: unknown field 'direct_access' 
>> specified in initializer
 .direct_access = axon_ram_dax_direct_access,
 ^
   arch/powerpc/sysdev/axonram.c:182:19: error: excess elements in struct 
initializer [-Werror]
 .direct_access = axon_ram_dax_direct_access,
  ^~
   arch/powerpc/sysdev/axonram.c:182:19: note: (near initialization for 
'axon_ram_dax_ops')
   arch/powerpc/sysdev/axonram.c: In function 'axon_ram_probe':
>> arch/powerpc/sysdev/axonram.c:255:18: error: implicit declaration of 
>> function 'alloc_dax' [-Werror=implicit-function-declaration]
 bank->dax_dev = alloc_dax(bank, bank->disk->disk_name,
 ^
>> arch/powerpc/sysdev/axonram.c:255:16: error: assignment makes pointer from 
>> integer without a cast [-Werror=int-conversion]
 bank->dax_dev = alloc_dax(bank, bank->disk->disk_name,
   ^
>> arch/powerpc/sysdev/axonram.c:313:3: error: implicit declaration of function 
>> 'kill_dax' [-Werror=implicit-function-declaration]
  kill_dax(bank->dax_dev);
  ^~~~
>> arch/powerpc/sysdev/axonram.c:314:3: error: implicit declaration of function 
>> 'put_dax' [-Werror=implicit-function-declaration]
  put_dax(bank->dax_dev);
  ^~~
   arch/powerpc/sysdev/axonram.c: At top level:
>> arch/powerpc/sysdev/axonram.c:181:36: error: storage size of 
>> 'axon_ram_dax_ops' isn't known
static const struct dax_operations axon_ram_dax_ops = {
   ^~~~
   cc1: all warnings being treated as errors

vim +/dax_get_private +176 arch/powerpc/sysdev/axonram.c

   170  };
   171  
   172  static long
   173  axon_ram_dax_direct_access(struct dax_device *dax_dev, pgoff_t pgoff, 
long nr_pages,
   174 void **kaddr, pfn_t *pfn)
   175  {
 > 176  struct axon_ram_bank *bank = dax_get_private(dax_dev);
   177  
   178  return __axon_ram_direct_access(bank, pgoff, nr_pages, kaddr, 
pfn);
   179  }
   180  
 > 181  static const struct dax_operations axon_ram_dax_ops = {
 > 182  .direct_access = axon_ram_dax_direct_access,
   183  };
   184  
   185  /**
   186   * axon_ram_probe - probe() method for platform driver
   187   * @device: see platform_driver method
   188   */
   189  static int axon_ram_probe(struct platform_device *device)
   190  {
   191  static int axon_ram_bank_id = -1;
   192  struct axon_ram_bank *bank;
   193  struct resource resource;
   194  int rc = 0;
   195  
   196  axon_ram_bank_id++;
   197  
   198  dev_info(>dev, "Found memory controller on %s\n",
   199  device->dev.of_node->full_name);
   200  
   201  bank = kzalloc(sizeof(struct axon_ram_bank), GFP_KERNEL);
   202  if (bank == NULL) {
   203  dev_err(>dev, "Out of memory\n");
   204  rc = -ENOMEM;
   205  goto failed;
   206  }
   207  
   208  device->dev.platform_data = bank;
   209  
   210  bank->device = device;
   211  
   212  if (of_address_to_resource(device->dev.of_node, 0, ) 
!= 0) {
   213  dev_err(>dev, "Cannot access device tree\n");
   214  rc = -EFAULT;
   215  goto failed;
   216  }
   217  
   218  bank->size = resource_size();
   219  
   220  if 

Re: [dm-devel] [PATCH] device-mapper: Convert printks to pr_ macros

2017-04-17 Thread kbuild test robot
Hi Joe,

[auto build test ERROR on v4.9-rc8]
[also build test ERROR on next-20170413]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Joe-Perches/device-mapper-Convert-printks-to-pr_-level-macros/20170418-030508
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

All error/warnings (new ones prefixed by >>):

   In file included from fs/nfs/blocklayout/blocklayout.h:35:0,
from fs/nfs/blocklayout/dev.c:11:
   fs/nfs/blocklayout/dev.c: In function 'bl_free_device':
>> include/linux/device-mapper.h:536:34: error: expected ')' before 
>> 'DM_MSG_PREFIX'
#define pr_fmt(fmt) DM_NAME ": " DM_MSG_PREFIX ": " fmt
 ^
>> include/linux/printk.h:277:18: note: in expansion of macro 'pr_fmt'
 printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
 ^~
>> fs/nfs/blocklayout/dev.c:33:5: note: in expansion of macro 'pr_err'
pr_err("failed to unregister PR key.\n");
^~
   fs/nfs/blocklayout/dev.c: In function 'nfs4_block_decode_volume':
>> include/linux/device-mapper.h:536:34: error: expected ')' before 
>> 'DM_MSG_PREFIX'
#define pr_fmt(fmt) DM_NAME ": " DM_MSG_PREFIX ": " fmt
 ^
   include/linux/printk.h:284:19: note: in expansion of macro 'pr_fmt'
 printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
  ^~
>> fs/nfs/blocklayout/dev.c:81:5: note: in expansion of macro 'pr_info'
pr_info("signature too long: %d\n",
^~~
   fs/nfs/blocklayout/dev.c: In function 'bl_validate_designator':
>> include/linux/device-mapper.h:536:34: error: expected ')' before 
>> 'DM_MSG_PREFIX'
#define pr_fmt(fmt) DM_NAME ": " DM_MSG_PREFIX ": " fmt
 ^
>> include/linux/printk.h:277:18: note: in expansion of macro 'pr_fmt'
 printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
 ^~
   fs/nfs/blocklayout/dev.c:287:3: note: in expansion of macro 'pr_err'
  pr_err("pNFS: unsupported designator "
  ^~
>> include/linux/device-mapper.h:536:34: error: expected ')' before 
>> 'DM_MSG_PREFIX'
#define pr_fmt(fmt) DM_NAME ": " DM_MSG_PREFIX ": " fmt
 ^
>> include/linux/printk.h:277:18: note: in expansion of macro 'pr_fmt'
 printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
 ^~
   fs/nfs/blocklayout/dev.c:294:3: note: in expansion of macro 'pr_err'
  pr_err("pNFS: invalid designator "
  ^~
   fs/nfs/blocklayout/dev.c: In function 'bl_open_udev_path':
>> include/linux/device-mapper.h:536:34: error: expected ')' before 
>> 'DM_MSG_PREFIX'
#define pr_fmt(fmt) DM_NAME ": " DM_MSG_PREFIX ": " fmt
 ^
   include/linux/printk.h:279:22: note: in expansion of macro 'pr_fmt'
 printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
 ^~
   include/linux/printk.h:280:17: note: in expansion of macro 'pr_warning'
#define pr_warn pr_warning
^~
>> fs/nfs/blocklayout/dev.c:320:3: note: in expansion of macro 'pr_warn'
  pr_warn("pNFS: failed to open device %s (%ld)\n",
  ^~~
   fs/nfs/blocklayout/dev.c: In function 'bl_parse_scsi':
>> include/linux/device-mapper.h:536:34: error: expected ')' before 
>> 'DM_MSG_PREFIX'
#define pr_fmt(fmt) DM_NAME ": " DM_MSG_PREFIX ": " fmt
 ^
   include/linux/printk.h:284:19: note: in expansion of macro 'pr_fmt'
 printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
  ^~
   fs/nfs/blocklayout/dev.c:373:2: note: in expansion of macro 'pr_info'
 pr_info("pNFS: using block device %s (reservation key 0x%llx)\n",
 ^~~
>> include/linux/device-mapper.h:536:34: error: expected ')' before 
>> 'DM_MSG_PREFIX'
#define pr_fmt(fmt) DM_NAME ": " DM_MSG_PREFIX ": " fmt
 ^
>> include/linux/printk.h:277:18: note: in expansion of macro 'pr_fmt'
 printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
 ^~
   fs/nfs/blocklayout/dev.c:378:3: note: in expansion of macro 'pr_err'
  pr_err("pNFS: block device %s does not support reservations.",
  ^~
>> include/linux/device-mapper.h:536:34: error: expected ')' before 
>> 'DM_MSG_PREFIX'
#define pr_fmt(fmt) DM_NAME ": " DM_MSG_PREFIX ": " fmt
 ^
>> include/linux/printk.h:277:18: note: in expansion of macro 'pr_fmt'
 printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
 ^~
   fs/nfs/blocklayout/dev.c:386:3: note: in expansion of macro 'pr_err'
  pr_err("pNFS: failed to register key for block device %s.",
  ^~
--
   In file included from 

Re: [dm-devel] [PATCH 4/5] init: add support to directly boot to a mapped device

2017-04-11 Thread kbuild test robot
Hi Will,

[auto build test ERROR on dm/for-next]
[also build test ERROR on v4.11-rc6 next-20170411]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Enric-Balletbo-i-Serra/dm-boot-a-mapped-device-without-an-initramfs/20170412-071136
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
config: x86_64-randconfig-x010-201715 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

Note: the 
linux-review/Enric-Balletbo-i-Serra/dm-boot-a-mapped-device-without-an-initramfs/20170412-071136
 HEAD 76c4f3dfe69e92fc617c7d30e966931aec694c75 builds fine.
  It only hurts bisectibility.

All errors (new ones prefixed by >>):

   init/do_mounts_dm.c: In function 'dm_parse_targets':
>> init/do_mounts_dm.c:231:32: error: passing argument 3 of 'kstrtoull' from 
>> incompatible pointer type [-Werror=incompatible-pointer-types]
  if (kstrtoull(opt.start, 10, &(*target)->begin))
   ^
   In file included from include/linux/list.h:8:0,
from include/linux/async.h:16,
from init/do_mounts_dm.c:8:
   include/linux/kernel.h:282:18: note: expected 'long long unsigned int *' but 
argument is of type 'sector_t * {aka long unsigned int *}'
int __must_check kstrtoull(const char *s, unsigned int base, unsigned long 
long *res);
 ^
   init/do_mounts_dm.c:240:32: error: passing argument 3 of 'kstrtoull' from 
incompatible pointer type [-Werror=incompatible-pointer-types]
  if (kstrtoull(opt.start, 10, &(*target)->length))
   ^
   In file included from include/linux/list.h:8:0,
from include/linux/async.h:16,
from init/do_mounts_dm.c:8:
   include/linux/kernel.h:282:18: note: expected 'long long unsigned int *' but 
argument is of type 'sector_t * {aka long unsigned int *}'
int __must_check kstrtoull(const char *s, unsigned int base, unsigned long 
long *res);
 ^
   cc1: some warnings being treated as errors

vim +/kstrtoull +231 init/do_mounts_dm.c

   225  if (!get_dm_option(, DM_FIELD_SEP)) {
   226  DMERR("failed to parse starting sector"
   227" for target %s<%ld>", dev->name, i);
   228  goto parse_fail;
   229  }
   230  
 > 231  if (kstrtoull(opt.start, 10, &(*target)->begin))
   232  goto parse_fail;
   233  
   234  if (!get_dm_option(, DM_FIELD_SEP)) {

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

[dm-devel] [dm:for-next 23/25] drivers/md/dm-raid.c:3469:3: error: 'else' without a previous 'if'

2017-02-28 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
head:   b08c607678274dd6e0245c6e2b77ea0692f03b00
commit: a482ed76823e7d2ab358ae7f140c5866c837e2ab [23/25] dm raid: fix raid 
"check" regression due to improper cleanup in raid_message()
config: i386-randconfig-x002-201709 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout a482ed76823e7d2ab358ae7f140c5866c837e2ab
# save the attached .config to linux build tree
make ARCH=i386 

All error/warnings (new ones prefixed by >>):

   drivers/md/dm-raid.c: In function 'raid_message':
>> drivers/md/dm-raid.c:3465:3: warning: this 'if' clause does not guard... 
>> [-Wmisleading-indentation]
  if (!strcasecmp(argv[0], "check"))
  ^~
   drivers/md/dm-raid.c:3467:4: note: ...this statement, but the latter is 
misleadingly indented as if it is guarded by the 'if'
   set_bit(MD_RECOVERY_REQUESTED, >recovery);
   ^~~
>> drivers/md/dm-raid.c:3469:3: error: 'else' without a previous 'if'
  else if (!strcasecmp(argv[0], "repair")) {
  ^~~~

vim +3469 drivers/md/dm-raid.c

be83651f Jonathan Brassow  2013-04-24  3459 return -EBUSY;
be83651f Jonathan Brassow  2013-04-24  3460 else if (!strcasecmp(argv[0], 
"resync"))
3a1c1ef2 Heinz Mauelshagen 2016-05-19  3461 ; /* MD_RECOVERY_NEEDED 
set below */
3a1c1ef2 Heinz Mauelshagen 2016-05-19  3462 else if (!strcasecmp(argv[0], 
"recover"))
be83651f Jonathan Brassow  2013-04-24  3463 
set_bit(MD_RECOVERY_RECOVER, >recovery);
3a1c1ef2 Heinz Mauelshagen 2016-05-19  3464 else {
be83651f Jonathan Brassow  2013-04-24 @3465 if 
(!strcasecmp(argv[0], "check"))
be83651f Jonathan Brassow  2013-04-24  3466 
set_bit(MD_RECOVERY_CHECK, >recovery);
a482ed76 Mike Snitzer  2017-02-28  3467 
set_bit(MD_RECOVERY_REQUESTED, >recovery);
a482ed76 Mike Snitzer  2017-02-28  3468 
set_bit(MD_RECOVERY_SYNC, >recovery);
105db599 Mike Snitzer  2017-01-06 @3469 else if 
(!strcasecmp(argv[0], "repair")) {
be83651f Jonathan Brassow  2013-04-24  3470 
set_bit(MD_RECOVERY_REQUESTED, >recovery);
be83651f Jonathan Brassow  2013-04-24  3471 
set_bit(MD_RECOVERY_SYNC, >recovery);
105db599 Mike Snitzer  2017-01-06  3472 } else

:: The code at line 3469 was first introduced by commit
:: 105db5991240cb2675f193589130ef0c8a4f70fe dm raid: cleanup awkward 
branching in raid_message() option processing

:: TO: Mike Snitzer 
:: CC: Mike Snitzer 

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

[dm-devel] [dm:dm-4.12 30/33] drivers/md/dm-cache-target.c:1581:3: error: implicit declaration of function 'bio_complete'

2017-02-23 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
dm-4.12
head:   6e0e0be26ca65b9ba581c44dea8b163ebb6cf60c
commit: 99edc741bc221751bdcf8a13b935d082e12bbfeb [30/33] [dm-cache] put 
passthrough back in
config: x86_64-rhel (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 99edc741bc221751bdcf8a13b935d082e12bbfeb
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/md/dm-cache-target.c: In function 'invalidate_complete':
>> drivers/md/dm-cache-target.c:1581:3: error: implicit declaration of function 
>> 'bio_complete' [-Werror=implicit-function-declaration]
  bio_complete(mg->overwrite_bio, -EIO);
  ^~~~
   cc1: some warnings being treated as errors

vim +/bio_complete +1581 drivers/md/dm-cache-target.c

  1575  if (dm_cell_unlock_v2(cache->prison, mg->cell, ))
  1576  free_prison_cell(cache, mg->cell);
  1577  
  1578  if (success)
  1579  defer_bio(cache, mg->overwrite_bio);
  1580  else
> 1581  bio_complete(mg->overwrite_bio, -EIO);
  1582  
  1583  free_migration(mg);
  1584  defer_bios(cache, );

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

[dm-devel] [dm:dm-4.12 29/37] dm-cache-policy-validator.c:undefined reference to `__udivdi3'

2017-02-18 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
dm-4.12
head:   735bd9981f8f16a1d3439fd3762d52be84ea3e13
commit: 8dcadfc8c4b167fe92884b1316db7057ca5b498c [29/37] dm cache: validator 
policy
config: i386-randconfig-x0-02190640 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 8dcadfc8c4b167fe92884b1316db7057ca5b498c
# save the attached .config to linux build tree
make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers/built-in.o: In function `create_validator_policy':
>> dm-cache-policy-validator.c:(.text+0x4e3dfc): undefined reference to 
>> `__udivdi3'

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH v4 1/1] DM: inplace compressed DM target

2017-02-13 Thread kbuild test robot
Hi Ram,

[auto build test WARNING on dm/for-next]
[also build test WARNING on v4.10-rc8 next-20170213]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Ram-Pai/DM-inplace-compressed-DM-target/20170214-055727
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
config: openrisc-allyesconfig (attached as .config)
compiler: or32-linux-gcc (GCC) 4.5.1-or32-1.0rc1
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=openrisc 

All warnings (new ones prefixed by >>):

   drivers/md/dm-inplace-compress.c: In function 'dm_icomp_status':
>> drivers/md/dm-inplace-compress.c:2096:3: warning: format '%ld' expects type 
>> 'long int', but argument 4 has type 'long long int'
   drivers/md/dm-inplace-compress.c:2096:3: warning: format '%ld' expects type 
'long int', but argument 5 has type 'long long int'
   drivers/md/dm-inplace-compress.c:2096:3: warning: format '%ld' expects type 
'long int', but argument 6 has type 'long long int'

vim +2096 drivers/md/dm-inplace-compress.c

  2080  req->locked_locks = 0;
  2081  
  2082  req->cpu = raw_smp_processor_id();
  2083  dm_icomp_queue_req(info, req);
  2084  
  2085  return DM_MAPIO_SUBMITTED;
  2086  }
  2087  
  2088  static void dm_icomp_status(struct dm_target *ti, status_type_t type,
  2089unsigned int status_flags, char *result, unsigned int maxlen)
  2090  {
  2091  struct dm_icomp_info *info = ti->private;
  2092  unsigned int sz = 0;
  2093  
  2094  switch (type) {
  2095  case STATUSTYPE_INFO:
> 2096  DMEMIT("%ld %ld %ld",
  2097  atomic64_read(>uncompressed_write_size),
  2098  atomic64_read(>compressed_write_size),
  2099  atomic64_read(>meta_write_size));
  2100  break;
  2101  case STATUSTYPE_TABLE:
  2102  if (info->write_mode == DMCP_WRITE_BACK)
  2103  DMEMIT("%s %s:%d %s:%s %s:%d", info->dev->name,
  2104  "writeback", info->writeback_delay,

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH v4 1/1] DM: inplace compressed DM target

2017-02-13 Thread kbuild test robot
Hi Ram,

[auto build test WARNING on dm/for-next]
[also build test WARNING on v4.10-rc8 next-20170213]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Ram-Pai/DM-inplace-compressed-DM-target/20170214-055727
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 4.9.0
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=m68k 

All warnings (new ones prefixed by >>):

   drivers/md/dm-inplace-compress.c: In function 'dm_icomp_status':
>> drivers/md/dm-inplace-compress.c:2096:3: warning: format '%ld' expects 
>> argument of type 'long int', but argument 4 has type 'long long int' 
>> [-Wformat=]
  DMEMIT("%ld %ld %ld",
  ^
   drivers/md/dm-inplace-compress.c:2096:3: warning: format '%ld' expects 
argument of type 'long int', but argument 5 has type 'long long int' [-Wformat=]
   drivers/md/dm-inplace-compress.c:2096:3: warning: format '%ld' expects 
argument of type 'long int', but argument 6 has type 'long long int' [-Wformat=]

vim +2096 drivers/md/dm-inplace-compress.c

  2080  req->locked_locks = 0;
  2081  
  2082  req->cpu = raw_smp_processor_id();
  2083  dm_icomp_queue_req(info, req);
  2084  
  2085  return DM_MAPIO_SUBMITTED;
  2086  }
  2087  
  2088  static void dm_icomp_status(struct dm_target *ti, status_type_t type,
  2089unsigned int status_flags, char *result, unsigned int maxlen)
  2090  {
  2091  struct dm_icomp_info *info = ti->private;
  2092  unsigned int sz = 0;
  2093  
  2094  switch (type) {
  2095  case STATUSTYPE_INFO:
> 2096  DMEMIT("%ld %ld %ld",
  2097  atomic64_read(>uncompressed_write_size),
  2098  atomic64_read(>compressed_write_size),
  2099  atomic64_read(>meta_write_size));
  2100  break;
  2101  case STATUSTYPE_TABLE:
  2102  if (info->write_mode == DMCP_WRITE_BACK)
  2103  DMEMIT("%s %s:%d %s:%s %s:%d", info->dev->name,
  2104  "writeback", info->writeback_delay,

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH] block: Make rescuer threads per request_queue, not per bioset

2017-02-07 Thread kbuild test robot
Hi Kent,

[auto build test WARNING on linus/master]
[also build test WARNING on v4.10-rc7]
[cannot apply to next-20170207]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Kent-Overstreet/block-Make-rescuer-threads-per-request_queue-not-per-bioset/20170208-130414
config: x86_64-randconfig-x017-201706 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   In file included from include/uapi/linux/stddef.h:1:0,
from include/linux/stddef.h:4,
from include/uapi/linux/posix_types.h:4,
from include/uapi/linux/types.h:13,
from include/linux/types.h:5,
from include/uapi/linux/capability.h:16,
from include/linux/capability.h:15,
from include/linux/sched.h:15,
from include/linux/kasan.h:4,
from kernel/sched/core.c:29:
   kernel/sched/core.c: In function 'sched_submit_work':
   kernel/sched/core.c:3445:7: error: implicit declaration of function 
'bio_list_empty' [-Werror=implicit-function-declaration]
 !bio_list_empty(>bio_list->bios) &&
  ^
   include/linux/compiler.h:149:30: note: in definition of macro '__trace_if'
 if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
 ^~~~
>> kernel/sched/core.c:3444:2: note: in expansion of macro 'if'
 if (tsk->bio_list &&
 ^~
   kernel/sched/core.c:3445:36: error: dereferencing pointer to incomplete type 
'struct bio_plug_list'
 !bio_list_empty(>bio_list->bios) &&
   ^
   include/linux/compiler.h:149:30: note: in definition of macro '__trace_if'
 if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
 ^~~~
>> kernel/sched/core.c:3444:2: note: in expansion of macro 'if'
 if (tsk->bio_list &&
 ^~
   kernel/sched/core.c:3447:3: error: implicit declaration of function 
'blk_punt_blocked_bios' [-Werror=implicit-function-declaration]
  blk_punt_blocked_bios(tsk->bio_list);
  ^
   cc1: some warnings being treated as errors

vim +/if +3444 kernel/sched/core.c

  3428  
  3429  /* causes final put_task_struct in finish_task_switch(). */
  3430  __set_current_state(TASK_DEAD);
  3431  current->flags |= PF_NOFREEZE;  /* tell freezer to ignore us */
  3432  __schedule(false);
  3433  BUG();
  3434  /* Avoid "noreturn function does return".  */
  3435  for (;;)
  3436  cpu_relax();/* For when BUG is null */
  3437  }
  3438  
  3439  static inline void sched_submit_work(struct task_struct *tsk)
  3440  {
  3441  if (!tsk->state || tsk_is_pi_blocked(tsk))
  3442  return;
  3443  
> 3444  if (tsk->bio_list &&
  3445  !bio_list_empty(>bio_list->bios) &&
  3446  tsk->bio_list->q->rescue_workqueue)
  3447  blk_punt_blocked_bios(tsk->bio_list);
  3448  
  3449  /*
  3450   * If we are going to sleep and we have plugged IO queued,
  3451   * make sure to submit it to avoid deadlocks.
  3452   */

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH] block: Make rescuer threads per request_queue, not per bioset

2017-02-07 Thread kbuild test robot
Hi Kent,

[auto build test ERROR on linus/master]
[also build test ERROR on v4.10-rc7]
[cannot apply to next-20170207]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Kent-Overstreet/block-Make-rescuer-threads-per-request_queue-not-per-bioset/20170208-130414
config: x86_64-randconfig-x014-201706 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

   kernel/sched/core.c: In function 'sched_submit_work':
>> kernel/sched/core.c:3445:7: error: implicit declaration of function 
>> 'bio_list_empty' [-Werror=implicit-function-declaration]
 !bio_list_empty(>bio_list->bios) &&
  ^~
>> kernel/sched/core.c:3445:36: error: dereferencing pointer to incomplete type 
>> 'struct bio_plug_list'
 !bio_list_empty(>bio_list->bios) &&
   ^~
>> kernel/sched/core.c:3447:3: error: implicit declaration of function 
>> 'blk_punt_blocked_bios' [-Werror=implicit-function-declaration]
  blk_punt_blocked_bios(tsk->bio_list);
  ^
   cc1: some warnings being treated as errors

vim +/bio_list_empty +3445 kernel/sched/core.c

  3439  static inline void sched_submit_work(struct task_struct *tsk)
  3440  {
  3441  if (!tsk->state || tsk_is_pi_blocked(tsk))
  3442  return;
  3443  
  3444  if (tsk->bio_list &&
> 3445  !bio_list_empty(>bio_list->bios) &&
  3446  tsk->bio_list->q->rescue_workqueue)
> 3447  blk_punt_blocked_bios(tsk->bio_list);
  3448  
  3449  /*
  3450   * If we are going to sleep and we have plugged IO queued,

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH v3 1/1] DM: inplace compressed DM target

2017-01-31 Thread kbuild test robot
Hi Ram,

[auto build test ERROR on dm/for-next]
[also build test ERROR on v4.10-rc6]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Ram-Pai/DM-inplace-compressed-DM-target/20170131-154811
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 4.9.0
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=m68k 

All errors (new ones prefixed by >>):

   WARNING: modpost: missing MODULE_LICENSE() in 
drivers/media/dvb-frontends/gp8psk-fe.o
   see include/linux/module.h for more information
>> ERROR: "__umoddi3" [drivers/md/dm-inplace-compress.ko] undefined!
>> ERROR: "__udivdi3" [drivers/md/dm-inplace-compress.ko] undefined!

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH v3 1/1] DM: inplace compressed DM target

2017-01-31 Thread kbuild test robot
Hi Ram,

[auto build test WARNING on dm/for-next]
[also build test WARNING on v4.10-rc6 next-20170130]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Ram-Pai/DM-inplace-compressed-DM-target/20170131-154811
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
config: cris-allyesconfig (attached as .config)
compiler: cris-linux-gcc (GCC) 6.2.0
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=cris 

All warnings (new ones prefixed by >>):

   drivers/md/dm-inplace-compress.c: In function 'dm_icomp_handle_read_decomp':
>> drivers/md/dm-inplace-compress.c:1580:41: warning: passing argument 3 of 
>> 'dm_icomp_bio_copy' makes pointer from integer without a cast 
>> [-Wint-conversion]
   dm_icomp_bio_copy(req->bio, bio_off, empty_zero_page,
^~~
   drivers/md/dm-inplace-compress.c:1133:13: note: expected 'void *' but 
argument is of type 'long unsigned int'
static void dm_icomp_bio_copy(struct bio *bio, off_t bio_off, void *buf,
^
   drivers/md/dm-inplace-compress.c:1593:40: warning: passing argument 3 of 
'dm_icomp_bio_copy' makes pointer from integer without a cast [-Wint-conversion]
  dm_icomp_bio_copy(req->bio, bio_off, empty_zero_page,
   ^~~
   drivers/md/dm-inplace-compress.c:1133:13: note: expected 'void *' but 
argument is of type 'long unsigned int'
static void dm_icomp_bio_copy(struct bio *bio, off_t bio_off, void *buf,
^
   In file included from drivers/md/dm-inplace-compress.c:12:0:
   drivers/md/dm-inplace-compress.c: In function 'dm_icomp_status':
   drivers/md/dm-inplace-compress.c:2090:10: warning: format '%lu' expects 
argument of type 'long unsigned int', but argument 4 has type 'long long int' 
[-Wformat=]
  DMEMIT("%lu %lu %lu",
 ^
   include/linux/device-mapper.h:577:46: note: in definition of macro 'DMEMIT'
 0 : scnprintf(result + sz, maxlen - sz, x))
 ^
   drivers/md/dm-inplace-compress.c:2090:10: warning: format '%lu' expects 
argument of type 'long unsigned int', but argument 5 has type 'long long int' 
[-Wformat=]
  DMEMIT("%lu %lu %lu",
 ^
   include/linux/device-mapper.h:577:46: note: in definition of macro 'DMEMIT'
 0 : scnprintf(result + sz, maxlen - sz, x))
 ^
   drivers/md/dm-inplace-compress.c:2090:10: warning: format '%lu' expects 
argument of type 'long unsigned int', but argument 6 has type 'long long int' 
[-Wformat=]
  DMEMIT("%lu %lu %lu",
 ^
   include/linux/device-mapper.h:577:46: note: in definition of macro 'DMEMIT'
 0 : scnprintf(result + sz, maxlen - sz, x))
 ^

vim +/dm_icomp_bio_copy +1580 drivers/md/dm-inplace-compress.c

  1564  dm_icomp_release_comp_buffer(io);
  1565  req->result = -EIO;
  1566  return;
  1567  }
  1568  
  1569  len = min_t(ssize_t,
  1570  max_t(ssize_t, decomp_len - src_off, 0),
  1571  max_t(ssize_t, bio_len - dst_off, 0));
  1572  
  1573  dm_icomp_bio_copy(req->bio, dst_off,
  1574 io->decomp_data + src_off, len, false);
  1575  
  1576  /* io range in all_io list is ordered for read IO */
  1577  while (bio_off < dst_off) {
  1578  ssize_t size = min_t(ssize_t, PAGE_SIZE,
  1579  dst_off - bio_off);
> 1580  dm_icomp_bio_copy(req->bio, bio_off, 
> empty_zero_page,
  1581  size, false);
  1582  bio_off += size;
  1583  }
  1584  
  1585  bio_off = dst_off + len;
  1586  dm_icomp_release_decomp_buffer(io);
  1587  dm_icomp_release_comp_buffer(io);
  1588  }

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

[dm-devel] [dm:dm-4.10 22/27] drivers/md/dm-cache-target.c:3583:3: error: 'else' without a previous 'if'

2016-11-17 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
dm-4.10
head:   7d343dd89451f88b1e38e3f076fd3da3fc72067e
commit: 76829ab72b51923497512a166050345fe748bb5b [22/27] dm cache metadata: add 
"separate_dirty_bits" feature
config: x86_64-kexec (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 76829ab72b51923497512a166050345fe748bb5b
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/md/dm-cache-target.c: In function 'cache_status':
>> drivers/md/dm-cache-target.c:3583:3: error: 'else' without a previous 'if'
  else {
  ^~~~

vim +3583 drivers/md/dm-cache-target.c

76829ab7 Joe Thornber 2016-09-22  3577  
76829ab7 Joe Thornber 2016-09-22  3578  if 
(cache->features.metadata_features.separate_dirty_bits)
76829ab7 Joe Thornber 2016-09-22  3579  
DMEMIT("separate_dirty_bits ");
76829ab7 Joe Thornber 2016-09-22  3580  else
76829ab7 Joe Thornber 2016-09-22  3581  
DMEMIT("combined_dirty_bits ");
2ee57d58 Joe Thornber 2013-10-24  3582  
2ee57d58 Joe Thornber 2013-10-24 @3583  else {
b61d9509 Mike Snitzer 2015-04-22  3584  DMERR("%s: 
internal error: unknown io mode: %d",
b61d9509 Mike Snitzer 2015-04-22  3585
cache_device_name(cache), (int) cache->features.io_mode);
2ee57d58 Joe Thornber 2013-10-24  3586  goto err;

:: The code at line 3583 was first introduced by commit
:: 2ee57d587357f0d752af6c2e3e46434a74b1bee3 dm cache: add passthrough mode

:: TO: Joe Thornber 
:: CC: Mike Snitzer 

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: application/gzip
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH] dm stripe: add DAX support

2016-06-24 Thread kbuild test robot
Hi,

[auto build test ERROR on dm/for-next]
[also build test ERROR on v4.7-rc4 next-20160624]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Toshi-Kani/dm-stripe-add-DAX-support/20160625-022600
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
config: x86_64-randconfig-s5-06250328 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All error/warnings (new ones prefixed by >>):

>> drivers/md/dm-stripe.c:452:2: error: unknown field 'direct_access' specified 
>> in initializer
 .direct_access = stripe_direct_access,
 ^
>> drivers/md/dm-stripe.c:452:19: error: initialization from incompatible 
>> pointer type [-Werror=incompatible-pointer-types]
 .direct_access = stripe_direct_access,
  ^~~~
   drivers/md/dm-stripe.c:452:19: note: (near initialization for 
'stripe_target.list.next')
>> drivers/md/dm-stripe.c:441:43: warning: missing braces around initializer 
>> [-Wmissing-braces]
static struct target_type stripe_target = {
  ^
   drivers/md/dm-stripe.c:441:43: note: (near initialization for 
'stripe_target')
   cc1: some warnings being treated as errors

vim +/direct_access +452 drivers/md/dm-stripe.c

   435  unsigned chunk_size = sc->chunk_size << SECTOR_SHIFT;
   436  
   437  blk_limits_io_min(limits, chunk_size);
   438  blk_limits_io_opt(limits, chunk_size * sc->stripes);
   439  }
   440  
 > 441  static struct target_type stripe_target = {
   442  .name   = "striped",
   443  .version = {1, 5, 1},
   444  .module = THIS_MODULE,
   445  .ctr= stripe_ctr,
   446  .dtr= stripe_dtr,
   447  .map= stripe_map,
   448  .end_io = stripe_end_io,
   449  .status = stripe_status,
   450  .iterate_devices = stripe_iterate_devices,
   451  .io_hints = stripe_io_hints,
 > 452  .direct_access = stripe_direct_access,
   453  };
   454  
   455  int __init dm_stripe_init(void)

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH] dm stripe: add DAX support

2016-06-24 Thread kbuild test robot
Hi,

[auto build test WARNING on dm/for-next]
[also build test WARNING on v4.7-rc4 next-20160624]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/Toshi-Kani/dm-stripe-add-DAX-support/20160625-022600
base:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
config: m68k-sun3_defconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 4.9.0
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=m68k 

All warnings (new ones prefixed by >>):

   drivers/md/dm-stripe.c:452:2: error: unknown field 'direct_access' specified 
in initializer
 .direct_access = stripe_direct_access,
 ^
   drivers/md/dm-stripe.c:452:2: warning: missing braces around initializer 
[-Wmissing-braces]
   drivers/md/dm-stripe.c:452:2: warning: (near initialization for 
'stripe_target.list') [-Wmissing-braces]
>> drivers/md/dm-stripe.c:452:2: warning: initialization from incompatible 
>> pointer type
   drivers/md/dm-stripe.c:452:2: warning: (near initialization for 
'stripe_target.list.next')

vim +452 drivers/md/dm-stripe.c

   436  
   437  blk_limits_io_min(limits, chunk_size);
   438  blk_limits_io_opt(limits, chunk_size * sc->stripes);
   439  }
   440  
   441  static struct target_type stripe_target = {
   442  .name   = "striped",
   443  .version = {1, 5, 1},
   444  .module = THIS_MODULE,
   445  .ctr= stripe_ctr,
   446  .dtr= stripe_dtr,
   447  .map= stripe_map,
   448  .end_io = stripe_end_io,
   449  .status = stripe_status,
   450  .iterate_devices = stripe_iterate_devices,
   451  .io_hints = stripe_io_hints,
 > 452  .direct_access = stripe_direct_access,
   453  };
   454  
   455  int __init dm_stripe_init(void)
   456  {
   457  int r;
   458  
   459  r = dm_register_target(_target);
   460  if (r < 0)

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

[dm-devel] [dm:for-next 1/4] drivers/md/dm.c:1757:36: error: passing argument 2 of 'dm_mq_init_request_queue' from incompatible pointer type

2016-06-10 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
for-next
head:   b18ef3eb063790f62f2630015a116cb495cb143f
commit: 3fa1ee95f14c676ef9d8f53516f31f1bdcb194f1 [1/4] dm: move request-based 
code out to dm-rq.[hc]
config: i386-defconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
git checkout 3fa1ee95f14c676ef9d8f53516f31f1bdcb194f1
# save the attached .config to linux build tree
make ARCH=i386 

Note: the dm/for-next HEAD b18ef3eb063790f62f2630015a116cb495cb143f builds fine.
  It only hurts bisectibility.

All errors (new ones prefixed by >>):

   drivers/md/dm.c: In function 'dm_setup_md_queue':
>> drivers/md/dm.c:1757:36: error: passing argument 2 of 
>> 'dm_mq_init_request_queue' from incompatible pointer type 
>> [-Werror=incompatible-pointer-types]
  r = dm_mq_init_request_queue(md, t);
   ^
   In file included from drivers/md/dm.c:9:0:
   drivers/md/dm-rq.h:52:5: note: expected 'struct dm_target *' but argument is 
of type 'struct dm_table *'
int dm_mq_init_request_queue(struct mapped_device *md, struct dm_target 
*immutable_tgt);
^~~~
   cc1: some warnings being treated as errors

vim +/dm_mq_init_request_queue +1757 drivers/md/dm.c

  1751  if (r) {
  1752  DMERR("Cannot initialize queue for 
request-based mapped device");
  1753  return r;
  1754  }
  1755  break;
  1756  case DM_TYPE_MQ_REQUEST_BASED:
> 1757  r = dm_mq_init_request_queue(md, t);
  1758  if (r) {
  1759  DMERR("Cannot initialize queue for 
request-based dm-mq mapped device");
  1760  return r;

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 42/45] block, fs, drivers: remove REQ_OP compat defs and related code

2016-06-05 Thread kbuild test robot
Hi,

[auto build test ERROR on v4.7-rc1]
[cannot apply to dm/for-next md/for-next next-20160603]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/mchristi-redhat-com/v8-separate-operations-from-flags-in-the-bio-request-structs/20160606-040240
config: blackfin-BF526-EZBRD_defconfig (attached as .config)
compiler: bfin-uclinux-gcc (GCC) 4.6.3
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=blackfin 

All errors (new ones prefixed by >>):

   drivers/built-in.o: In function `sd_init_command':
>> drivers/scsi/sd.c:1141: undefined reference to `__ucmpdi2'

vim +1141 drivers/scsi/sd.c

^1da177e Linus Torvalds2005-04-16  1135  }
^1da177e Linus Torvalds2005-04-16  1136  
87949eee Christoph Hellwig 2014-06-28  1137  static int sd_init_command(struct 
scsi_cmnd *cmd)
87949eee Christoph Hellwig 2014-06-28  1138  {
87949eee Christoph Hellwig 2014-06-28  1139 struct request *rq = 
cmd->request;
87949eee Christoph Hellwig 2014-06-28  1140  
b826ba83 Mike Christie 2016-06-05 @1141 switch (req_op(rq)) {
b826ba83 Mike Christie 2016-06-05  1142 case REQ_OP_DISCARD:
87949eee Christoph Hellwig 2014-06-28  1143 return 
sd_setup_discard_cmnd(cmd);
b826ba83 Mike Christie 2016-06-05  1144 case REQ_OP_WRITE_SAME:

:: The code at line 1141 was first introduced by commit
:: b826ba83985b86029288d8cc24fb93ce96947b18 drivers: use req op accessor

:: TO: Mike Christie 
:: CC: 0day robot 

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 01/45] block/fs/drivers: remove rw argument from submit_bio

2016-06-05 Thread kbuild test robot
Hi,

[auto build test WARNING on v4.7-rc1]
[cannot apply to dm/for-next md/for-next next-20160603]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/mchristi-redhat-com/v8-separate-operations-from-flags-in-the-bio-request-structs/20160606-040240
config: i386-allyesconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

All warnings (new ones prefixed by >>):

   fs/ext4/crypto.c: In function 'ext4_encrypted_zeroout':
>> fs/ext4/crypto.c:442:25: warning: passing argument 1 of 'submit_bio_wait' 
>> makes pointer from integer without a cast [-Wint-conversion]
  err = submit_bio_wait(WRITE, bio);
^
   In file included from include/linux/blkdev.h:19:0,
from fs/ext4/ext4.h:20,
from fs/ext4/ext4_extents.h:22,
from fs/ext4/crypto.c:37:
   include/linux/bio.h:476:12: note: expected 'struct bio *' but argument is of 
type 'long long unsigned int'
extern int submit_bio_wait(struct bio *bio);
   ^~~
   fs/ext4/crypto.c:442:9: error: too many arguments to function 
'submit_bio_wait'
  err = submit_bio_wait(WRITE, bio);
^~~
   In file included from include/linux/blkdev.h:19:0,
from fs/ext4/ext4.h:20,
from fs/ext4/ext4_extents.h:22,
from fs/ext4/crypto.c:37:
   include/linux/bio.h:476:12: note: declared here
extern int submit_bio_wait(struct bio *bio);
   ^~~

vim +/submit_bio_wait +442 fs/ext4/crypto.c

b30ab0e0 Michael Halcrow 2015-04-12  426goto errout;
b30ab0e0 Michael Halcrow 2015-04-12  427}
b30ab0e0 Michael Halcrow 2015-04-12  428bio->bi_bdev = 
inode->i_sb->s_bdev;
36086d43 Theodore Ts'o   2015-10-03  429bio->bi_iter.bi_sector =
36086d43 Theodore Ts'o   2015-10-03  430pblk << 
(inode->i_sb->s_blocksize_bits - 9);
36086d43 Theodore Ts'o   2015-10-03  431ret = bio_add_page(bio, 
ciphertext_page,
b30ab0e0 Michael Halcrow 2015-04-12  432   
inode->i_sb->s_blocksize, 0);
36086d43 Theodore Ts'o   2015-10-03  433if (ret != 
inode->i_sb->s_blocksize) {
36086d43 Theodore Ts'o   2015-10-03  434/* should never 
happen! */
36086d43 Theodore Ts'o   2015-10-03  435
ext4_msg(inode->i_sb, KERN_ERR,
36086d43 Theodore Ts'o   2015-10-03  436 
"bio_add_page failed: %d", ret);
36086d43 Theodore Ts'o   2015-10-03  437WARN_ON(1);
b30ab0e0 Michael Halcrow 2015-04-12  438bio_put(bio);
36086d43 Theodore Ts'o   2015-10-03  439err = -EIO;
b30ab0e0 Michael Halcrow 2015-04-12  440goto errout;
b30ab0e0 Michael Halcrow 2015-04-12  441}
b30ab0e0 Michael Halcrow 2015-04-12 @442err = 
submit_bio_wait(WRITE, bio);
36086d43 Theodore Ts'o   2015-10-03  443if ((err == 0) && 
bio->bi_error)
36086d43 Theodore Ts'o   2015-10-03  444err = -EIO;
95ea68b4 Theodore Ts'o   2015-05-31  445bio_put(bio);
b30ab0e0 Michael Halcrow 2015-04-12  446if (err)
b30ab0e0 Michael Halcrow 2015-04-12  447goto errout;
36086d43 Theodore Ts'o   2015-10-03  448lblk++; pblk++;
b30ab0e0 Michael Halcrow 2015-04-12  449}
b30ab0e0 Michael Halcrow 2015-04-12  450err = 0;

:: The code at line 442 was first introduced by commit
:: b30ab0e03407d2aa2d9316cba199c757e4bfc8ad ext4 crypto: add ext4 
encryption facilities

:: TO: Michael Halcrow 
:: CC: Theodore Ts'o 

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 42/45] block, fs, drivers: remove REQ_OP compat defs and related code

2016-06-05 Thread kbuild test robot
Hi,

[auto build test ERROR on v4.7-rc1]
[cannot apply to dm/for-next md/for-next next-20160603]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/mchristi-redhat-com/v8-separate-operations-from-flags-in-the-bio-request-structs/20160606-040240
config: m32r-opsput_defconfig (attached as .config)
compiler: m32r-linux-gcc (GCC) 4.9.0
reproduce:
wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=m32r 

All errors (new ones prefixed by >>):

>> ERROR: "__ucmpdi2" [drivers/scsi/sd_mod.ko] undefined!

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 01/45] block/fs/drivers: remove rw argument from submit_bio

2016-06-05 Thread kbuild test robot
Hi,

[auto build test WARNING on v4.7-rc1]
[cannot apply to dm/for-next md/for-next next-20160603]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/mchristi-redhat-com/v8-separate-operations-from-flags-in-the-bio-request-structs/20160606-040240
reproduce:
# apt-get install sparse
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

   include/linux/compiler.h:232:8: sparse: attribute 'no_sanitize_address': 
unknown attribute
>> fs/ext4/crypto.c:442:38: sparse: too many arguments for function 
>> submit_bio_wait
   In file included from include/linux/fs.h:31:0,
from include/linux/seq_file.h:10,
from include/linux/pinctrl/consumer.h:17,
from include/linux/pinctrl/devinfo.h:21,
from include/linux/device.h:24,
from include/linux/genhd.h:64,
from include/linux/blkdev.h:9,
from fs/ext4/ext4.h:20,
from fs/ext4/ext4_extents.h:22,
from fs/ext4/crypto.c:37:
   fs/ext4/crypto.c: In function 'ext4_encrypted_zeroout':
   include/linux/blk_types.h:194:20: warning: passing argument 1 of 
'submit_bio_wait' makes pointer from integer without a cast [-Wint-conversion]
#define REQ_WRITE  (1ULL << __REQ_WRITE)
   ^
   include/linux/fs.h:196:19: note: in expansion of macro 'REQ_WRITE'
#define RW_MASK   REQ_WRITE
  ^
   include/linux/fs.h:200:17: note: in expansion of macro 'RW_MASK'
#define WRITE   RW_MASK
^~~
   fs/ext4/crypto.c:442:25: note: in expansion of macro 'WRITE'
  err = submit_bio_wait(WRITE, bio);
^
   In file included from include/linux/blkdev.h:19:0,
from fs/ext4/ext4.h:20,
from fs/ext4/ext4_extents.h:22,
from fs/ext4/crypto.c:37:
   include/linux/bio.h:476:12: note: expected 'struct bio *' but argument is of 
type 'long long unsigned int'
extern int submit_bio_wait(struct bio *bio);
   ^~~
   fs/ext4/crypto.c:442:9: error: too many arguments to function 
'submit_bio_wait'
  err = submit_bio_wait(WRITE, bio);
^~~
   In file included from include/linux/blkdev.h:19:0,
from fs/ext4/ext4.h:20,
from fs/ext4/ext4_extents.h:22,
from fs/ext4/crypto.c:37:
   include/linux/bio.h:476:12: note: declared here
extern int submit_bio_wait(struct bio *bio);
   ^~~

vim +442 fs/ext4/crypto.c

b30ab0e0 Michael Halcrow 2015-04-12  426goto errout;
b30ab0e0 Michael Halcrow 2015-04-12  427}
b30ab0e0 Michael Halcrow 2015-04-12  428bio->bi_bdev = 
inode->i_sb->s_bdev;
36086d43 Theodore Ts'o   2015-10-03  429bio->bi_iter.bi_sector =
36086d43 Theodore Ts'o   2015-10-03  430pblk << 
(inode->i_sb->s_blocksize_bits - 9);
36086d43 Theodore Ts'o   2015-10-03  431ret = bio_add_page(bio, 
ciphertext_page,
b30ab0e0 Michael Halcrow 2015-04-12  432   
inode->i_sb->s_blocksize, 0);
36086d43 Theodore Ts'o   2015-10-03  433if (ret != 
inode->i_sb->s_blocksize) {
36086d43 Theodore Ts'o   2015-10-03  434/* should never 
happen! */
36086d43 Theodore Ts'o   2015-10-03  435
ext4_msg(inode->i_sb, KERN_ERR,
36086d43 Theodore Ts'o   2015-10-03  436 
"bio_add_page failed: %d", ret);
36086d43 Theodore Ts'o   2015-10-03  437WARN_ON(1);
b30ab0e0 Michael Halcrow 2015-04-12  438bio_put(bio);
36086d43 Theodore Ts'o   2015-10-03  439err = -EIO;
b30ab0e0 Michael Halcrow 2015-04-12  440goto errout;
b30ab0e0 Michael Halcrow 2015-04-12  441}
b30ab0e0 Michael Halcrow 2015-04-12 @442err = 
submit_bio_wait(WRITE, bio);
36086d43 Theodore Ts'o   2015-10-03  443if ((err == 0) && 
bio->bi_error)
36086d43 Theodore Ts'o   2015-10-03  444err = -EIO;
95ea68b4 Theodore Ts'o   2015-05-31  445bio_put(bio);
b30ab0e0 Michael Halcrow 2015-04-12  446if (err)
b30ab0e0 Michael Halcrow 2015-04-12  447goto errout;
36086d43 Theodore Ts'o   2015-10-03  448lblk++; pblk++;
b30ab0e0 Michael Halcrow 2015-04-12  449}
b30ab0e0 Michael Halcrow 2015-04-12  450err = 0;

:: The code at line 442 was first introduced by commit
:: b30ab0e03407d2aa2d9316cba199c757e4bfc8ad ext4 crypto: add ext4 
encryption facilities

:: TO: Michael Halcrow 

Re: [dm-devel] [PATCH 42/45] block, fs, drivers: remove REQ_OP compat defs and related code

2016-06-05 Thread kbuild test robot
Hi,

[auto build test WARNING on v4.7-rc1]
[cannot apply to dm/for-next md/for-next next-20160603]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/mchristi-redhat-com/v8-separate-operations-from-flags-in-the-bio-request-structs/20160606-040240
config: x86_64-randconfig-i0-201623 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   In file included from include/linux/genhd.h:67:0,
from include/linux/blkdev.h:9,
from fs/ext4/ext4.h:20,
from fs/ext4/ext4_extents.h:22,
from fs/ext4/crypto.c:37:
   fs/ext4/crypto.c: In function 'ext4_encrypted_zeroout':
>> include/linux/fs.h:197:19: warning: passing argument 1 of 'submit_bio_wait' 
>> makes pointer from integer without a cast [-Wint-conversion]
#define RW_MASK   REQ_OP_WRITE
  ^
   include/linux/fs.h:201:17: note: in expansion of macro 'RW_MASK'
#define WRITE   RW_MASK
^~~
   fs/ext4/crypto.c:442:25: note: in expansion of macro 'WRITE'
  err = submit_bio_wait(WRITE, bio);
^
   In file included from include/linux/blkdev.h:19:0,
from fs/ext4/ext4.h:20,
from fs/ext4/ext4_extents.h:22,
from fs/ext4/crypto.c:37:
   include/linux/bio.h:471:12: note: expected 'struct bio *' but argument is of 
type 'int'
extern int submit_bio_wait(struct bio *bio);
   ^~~
   fs/ext4/crypto.c:442:9: error: too many arguments to function 
'submit_bio_wait'
  err = submit_bio_wait(WRITE, bio);
^~~
   In file included from include/linux/blkdev.h:19:0,
from fs/ext4/ext4.h:20,
from fs/ext4/ext4_extents.h:22,
from fs/ext4/crypto.c:37:
   include/linux/bio.h:471:12: note: declared here
extern int submit_bio_wait(struct bio *bio);
   ^~~

vim +/submit_bio_wait +197 include/linux/fs.h

   181   * READAUsed for read-ahead operations. Lower priority, 
and the
   182   *  block layer could (in theory) choose to ignore 
this
   183   *  request if it runs into resource problems.
   184   * WRITEA normal async write. Device will be plugged.
   185   * WRITE_SYNC   Synchronous write. Identical to WRITE, but 
passes down
   186   *  the hint that someone will be waiting on this IO
   187   *  shortly. The write equivalent of READ_SYNC.
   188   * WRITE_ODIRECTSpecial case write for O_DIRECT only.
   189   * WRITE_FLUSH  Like WRITE_SYNC but with preceding cache flush.
   190   * WRITE_FUALike WRITE_SYNC but data is guaranteed to be on
   191   *  non-volatile media on completion.
   192   * WRITE_FLUSH_FUA  Combination of WRITE_FLUSH and FUA. The IO is 
preceded
   193   *  by a cache flush and data is guaranteed to be on
   194   *  non-volatile media on completion.
   195   *
   196   */
 > 197  #define RW_MASK REQ_OP_WRITE
   198  #define RWA_MASKREQ_RAHEAD
   199  
   200  #define READREQ_OP_READ
   201  #define WRITE   RW_MASK
   202  #define READA   RWA_MASK
   203  
   204  #define READ_SYNC   REQ_SYNC
   205  #define WRITE_SYNC  (REQ_SYNC | REQ_NOIDLE)

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 01/45] block/fs/drivers: remove rw argument from submit_bio

2016-06-05 Thread kbuild test robot
Hi,

[auto build test ERROR on v4.7-rc1]
[cannot apply to dm/for-next md/for-next next-20160603]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:
https://github.com/0day-ci/linux/commits/mchristi-redhat-com/v8-separate-operations-from-flags-in-the-bio-request-structs/20160606-040240
config: x86_64-randconfig-i0-201623 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All error/warnings (new ones prefixed by >>):

   In file included from include/linux/fs.h:31:0,
from include/linux/genhd.h:67,
from include/linux/blkdev.h:9,
from fs/ext4/ext4.h:20,
from fs/ext4/ext4_extents.h:22,
from fs/ext4/crypto.c:37:
   fs/ext4/crypto.c: In function 'ext4_encrypted_zeroout':
   include/linux/blk_types.h:194:20: warning: passing argument 1 of 
'submit_bio_wait' makes pointer from integer without a cast [-Wint-conversion]
#define REQ_WRITE  (1ULL << __REQ_WRITE)
   ^
   include/linux/fs.h:196:19: note: in expansion of macro 'REQ_WRITE'
#define RW_MASK   REQ_WRITE
  ^
>> include/linux/fs.h:200:17: note: in expansion of macro 'RW_MASK'
#define WRITE   RW_MASK
^~~
>> fs/ext4/crypto.c:442:25: note: in expansion of macro 'WRITE'
  err = submit_bio_wait(WRITE, bio);
^
   In file included from include/linux/blkdev.h:19:0,
from fs/ext4/ext4.h:20,
from fs/ext4/ext4_extents.h:22,
from fs/ext4/crypto.c:37:
   include/linux/bio.h:476:12: note: expected 'struct bio *' but argument is of 
type 'long long unsigned int'
extern int submit_bio_wait(struct bio *bio);
   ^~~
>> fs/ext4/crypto.c:442:9: error: too many arguments to function 
>> 'submit_bio_wait'
  err = submit_bio_wait(WRITE, bio);
^~~
   In file included from include/linux/blkdev.h:19:0,
from fs/ext4/ext4.h:20,
from fs/ext4/ext4_extents.h:22,
from fs/ext4/crypto.c:37:
   include/linux/bio.h:476:12: note: declared here
extern int submit_bio_wait(struct bio *bio);
   ^~~

vim +/submit_bio_wait +442 fs/ext4/crypto.c

36086d43 Theodore Ts'o   2015-10-03  436 
"bio_add_page failed: %d", ret);
36086d43 Theodore Ts'o   2015-10-03  437WARN_ON(1);
b30ab0e0 Michael Halcrow 2015-04-12  438bio_put(bio);
36086d43 Theodore Ts'o   2015-10-03  439err = -EIO;
b30ab0e0 Michael Halcrow 2015-04-12  440goto errout;
b30ab0e0 Michael Halcrow 2015-04-12  441}
b30ab0e0 Michael Halcrow 2015-04-12 @442err = 
submit_bio_wait(WRITE, bio);
36086d43 Theodore Ts'o   2015-10-03  443if ((err == 0) && 
bio->bi_error)
36086d43 Theodore Ts'o   2015-10-03  444err = -EIO;
95ea68b4 Theodore Ts'o   2015-05-31  445bio_put(bio);

:: The code at line 442 was first introduced by commit
:: b30ab0e03407d2aa2d9316cba199c757e4bfc8ad ext4 crypto: add ext4 
encryption facilities

:: TO: Michael Halcrow 
:: CC: Theodore Ts'o 

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

[dm-devel] [dm:dm-fallocate 22/22] DockBook: block/blk-lib.c:331: warning: Excess function parameter 'gfp_mask' description in 'blkdev_ensure_space_exists'

2016-04-12 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
dm-fallocate
head:   c79eaa33c66f54e2e41c12bc7de505365b43401d
commit: c79eaa33c66f54e2e41c12bc7de505365b43401d [22/22] block: wire 
blkdev_fallocate() to block_device_operations' reserve_space
reproduce: make htmldocs

All warnings (new ones prefixed by >>):

   lib/crc32.c:148: warning: No description found for parameter 'tab)[256]'
   lib/crc32.c:148: warning: Excess function parameter 'tab' description in 
'crc32_le_generic'
   lib/crc32.c:293: warning: No description found for parameter 'tab)[256]'
   lib/crc32.c:293: warning: Excess function parameter 'tab' description in 
'crc32_be_generic'
   lib/crc32.c:1: warning: no structured comments found
>> block/blk-lib.c:331: warning: Excess function parameter 'gfp_mask' 
>> description in 'blkdev_ensure_space_exists'

vim +331 block/blk-lib.c

   315  }
   316  EXPORT_SYMBOL(blkdev_issue_zeroout);
   317  
   318  /**
   319   * blkdev_ensure_space_exists - preallocate a block range
   320   * @bdev:   blockdev to preallocate space for
   321   * @sector: start sector
   322   * @nr_sects:   number of sectors to preallocate
   323   * @gfp_mask:   memory allocation flags (for bio_alloc)
   324   * @flags:  FALLOC_FL_* to control behaviour
   325   *
   326   * Description:
   327   *Ensure space exists, or is preallocated, for the sectors in 
question.
   328   */
   329  int blkdev_ensure_space_exists(struct block_device *bdev, sector_t 
sector,
   330  sector_t nr_sects, unsigned long flags)
 > 331  {
   332  sector_t res;
   333  const struct block_device_operations *ops = bdev->bd_disk->fops;
   334  
   335  if (!ops->reserve_space)
   336  return -EOPNOTSUPP;
   337  
   338  // FIXME: check with Brian Foster on whether it makes sense to
   339  // use BDEV_RES_GET/BDEV_RES_MOD instead of BDEV_RES_PROVISION?

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

[dm-devel] [dm:dm-fallocate 11/22] fs/block_dev.c:1856:20: error: 'PAGE_CACHE_SHIFT' undeclared

2016-04-12 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git 
dm-fallocate
head:   c79eaa33c66f54e2e41c12bc7de505365b43401d
commit: 3443026307e452c76f32d913c2c335b864c34a0d [11/22] block: implement (some 
of) fallocate for block devices
config: x86_64-randconfig-x010-201615 (attached as .config)
reproduce:
git checkout 3443026307e452c76f32d913c2c335b864c34a0d
# save the attached .config to linux build tree
make ARCH=x86_64 

All error/warnings (new ones prefixed by >>):

   fs/block_dev.c: In function 'blkdev_fallocate':
>> fs/block_dev.c:1856:20: error: 'PAGE_CACHE_SHIFT' undeclared (first use in 
>> this function)
  start >> PAGE_CACHE_SHIFT,
   ^
   fs/block_dev.c:1856:20: note: each undeclared identifier is reported only 
once for each function it appears in
>> fs/block_dev.c:1858:1: warning: control reaches end of non-void function 
>> [-Wreturn-type]
}
^

vim +/PAGE_CACHE_SHIFT +1856 fs/block_dev.c

  1850  
  1851  /*
  1852   * Invalidate again; if someone wandered in and dirtied a page,
  1853   * the caller will be given -EBUSY;
  1854   */
  1855  return invalidate_inode_pages2_range(mapping,
> 1856   start >> PAGE_CACHE_SHIFT,
  1857   end >> PAGE_CACHE_SHIFT);
> 1858  }
  1859  EXPORT_SYMBOL_GPL(blkdev_fallocate);
  1860  
  1861  const struct file_operations def_blk_fops = {

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 31/35] block, fs: remove old REQ definitions.

2016-02-24 Thread kbuild test robot
Hi Mike,

[auto build test WARNING on next-20160224]
[cannot apply to dm/for-next v4.5-rc5 v4.5-rc4 v4.5-rc3 v4.5-rc5]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improving the system]

url:
https://github.com/0day-ci/linux/commits/mchristi-redhat-com/separate-operations-from-flags-in-the-bio-request-structs/20160225-041726
config: i386-allmodconfig (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=i386 

All warnings (new ones prefixed by >>):

   In file included from include/linux/pagemap.h:8:0,
from fs/crypto/crypto.c:24:
   fs/crypto/crypto.c: In function 'fscrypt_zeroout_range':
>> include/linux/fs.h:198:19: warning: passing argument 1 of 'submit_bio_wait' 
>> makes pointer from integer without a cast [-Wint-conversion]
#define RW_MASK   REQ_OP_WRITE
  ^
   include/linux/fs.h:202:17: note: in expansion of macro 'RW_MASK'
#define WRITE   RW_MASK
^
   fs/crypto/crypto.c:325:25: note: in expansion of macro 'WRITE'
  err = submit_bio_wait(WRITE, bio);
^
   In file included from fs/crypto/crypto.c:29:0:
   include/linux/bio.h:449:12: note: expected 'struct bio *' but argument is of 
type 'int'
extern int submit_bio_wait(struct bio *bio);
   ^
   fs/crypto/crypto.c:325:9: error: too many arguments to function 
'submit_bio_wait'
  err = submit_bio_wait(WRITE, bio);
^
   In file included from fs/crypto/crypto.c:29:0:
   include/linux/bio.h:449:12: note: declared here
extern int submit_bio_wait(struct bio *bio);
   ^

vim +/submit_bio_wait +198 include/linux/fs.h

   182   * READAUsed for read-ahead operations. Lower priority, 
and the
   183   *  block layer could (in theory) choose to ignore 
this
   184   *  request if it runs into resource problems.
   185   * WRITEA normal async write. Device will be plugged.
   186   * WRITE_SYNC   Synchronous write. Identical to WRITE, but 
passes down
   187   *  the hint that someone will be waiting on this IO
   188   *  shortly. The write equivalent of READ_SYNC.
   189   * WRITE_ODIRECTSpecial case write for O_DIRECT only.
   190   * WRITE_FLUSH  Like WRITE_SYNC but with preceding cache flush.
   191   * WRITE_FUALike WRITE_SYNC but data is guaranteed to be on
   192   *  non-volatile media on completion.
   193   * WRITE_FLUSH_FUA  Combination of WRITE_FLUSH and FUA. The IO is 
preceded
   194   *  by a cache flush and data is guaranteed to be on
   195   *  non-volatile media on completion.
   196   *
   197   */
 > 198  #define RW_MASK REQ_OP_WRITE
   199  #define RWA_MASKREQ_RAHEAD
   200  
   201  #define READREQ_OP_READ
   202  #define WRITE   RW_MASK
   203  #define READA   RWA_MASK
   204  
   205  #define READ_SYNC   REQ_SYNC
   206  #define WRITE_SYNC  (REQ_SYNC | REQ_NOIDLE)

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 26/35] block: set op to REQ_OP

2016-02-24 Thread kbuild test robot
Hi Mike,

[auto build test WARNING on next-20160224]
[cannot apply to dm/for-next v4.5-rc5 v4.5-rc4 v4.5-rc3 v4.5-rc5]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improving the system]

url:
https://github.com/0day-ci/linux/commits/mchristi-redhat-com/separate-operations-from-flags-in-the-bio-request-structs/20160225-041726
reproduce: make htmldocs

All warnings (new ones prefixed by >>):

   lib/crc32.c:148: warning: No description found for parameter 'tab)[256]'
   lib/crc32.c:148: warning: Excess function parameter 'tab' description in 
'crc32_le_generic'
   lib/crc32.c:293: warning: No description found for parameter 'tab)[256]'
   lib/crc32.c:293: warning: Excess function parameter 'tab' description in 
'crc32_be_generic'
   lib/crc32.c:1: warning: no structured comments found
>> block/blk-core.c:1248: warning: No description found for parameter 'op'
>> block/blk-core.c:1248: warning: No description found for parameter 'op'

vim +/op +1248 block/blk-core.c

da8303c6 block/blk-core.c  Tejun Heo  2011-10-19  1232   * @q: 
request_queue to allocate request from
3cbf3506 block/blk-core.c  Mike Christie  2016-02-24  1233   * op: 
REQ_OP_READ/REQ_OP_WRITE
3cbf3506 block/blk-core.c  Mike Christie  2016-02-24  1234   * 
@op_flags: rq_flag_bits
da8303c6 block/blk-core.c  Tejun Heo  2011-10-19  1235   * @bio: 
bio to allocate request for (can be %NULL)
a06e05e6 block/blk-core.c  Tejun Heo  2012-06-04  1236   * 
@gfp_mask: allocation mask
da8303c6 block/blk-core.c  Tejun Heo  2011-10-19  1237   *
d0164adc block/blk-core.c  Mel Gorman 2015-11-06  1238   * Get a 
free request from @q.  If %__GFP_DIRECT_RECLAIM is set in @gfp_mask,
d0164adc block/blk-core.c  Mel Gorman 2015-11-06  1239   * this 
function keeps retrying under memory pressure and fails iff @q is dead.
d6344532 drivers/block/ll_rw_blk.c Nick Piggin2005-06-28  1240   *
da3dae54 block/blk-core.c  Masanari Iida  2014-09-09  1241   * Must be 
called with @q->queue_lock held and,
a492f075 block/blk-core.c  Joe Lawrence   2014-08-28  1242   * Returns 
ERR_PTR on failure, with @q->queue_lock held.
a492f075 block/blk-core.c  Joe Lawrence   2014-08-28  1243   * Returns 
request pointer on success, with @q->queue_lock *not held*.
^1da177e drivers/block/ll_rw_blk.c Linus Torvalds 2005-04-16  1244   */
3cbf3506 block/blk-core.c  Mike Christie  2016-02-24  1245  static 
struct request *get_request(struct request_queue *q, int op,
3cbf3506 block/blk-core.c  Mike Christie  2016-02-24  1246  
   int op_flags, struct bio *bio,
3cbf3506 block/blk-core.c  Mike Christie  2016-02-24  1247  
   gfp_t gfp_mask)
^1da177e drivers/block/ll_rw_blk.c Linus Torvalds 2005-04-16 @1248  {
3cbf3506 block/blk-core.c  Mike Christie  2016-02-24  1249  const 
bool is_sync = rw_is_sync(op, op_flags) != 0;
450991bc drivers/block/ll_rw_blk.c Nick Piggin2005-06-28  1250  
DEFINE_WAIT(wait);
a051661c block/blk-core.c  Tejun Heo  2012-06-26  1251  struct 
request_list *rl;
a06e05e6 block/blk-core.c  Tejun Heo  2012-06-04  1252  struct 
request *rq;
a051661c block/blk-core.c  Tejun Heo  2012-06-26  1253  
a051661c block/blk-core.c  Tejun Heo  2012-06-26  1254  rl = 
blk_get_rl(q, bio);/* transferred to @rq on success */
a06e05e6 block/blk-core.c  Tejun Heo  2012-06-04  1255  retry:
3cbf3506 block/blk-core.c  Mike Christie  2016-02-24  1256  rq = 
__get_request(rl, op, op_flags, bio, gfp_mask);

:: The code at line 1248 was first introduced by commit
:: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:: TO: Linus Torvalds 
:: CC: Linus Torvalds 

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 1/26] block: cryptoloop - Use new skcipher interface

2016-01-24 Thread kbuild test robot
Hi Herbert,

[auto build test ERROR on net/master]
[also build test ERROR on v4.4 next-20160122]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improving the system]

url:
https://github.com/0day-ci/linux/commits/Herbert-Xu/crypto-Use-skcipher-and-ahash-shash-where-possible/20160124-212323
config: x86_64-randconfig-x014-201604 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/block/cryptoloop.c: In function 'cryptoloop_transfer':
>> drivers/block/cryptoloop.c:167:2: error: implicit declaration of function 
>> 'skcipher_request_zero' [-Werror=implicit-function-declaration]
 skcipher_request_zero(req);
 ^
   cc1: some warnings being treated as errors

vim +/skcipher_request_zero +167 drivers/block/cryptoloop.c

   161  out_offs += sz;
   162  }
   163  
   164  err = 0;
   165  
   166  out:
 > 167  skcipher_request_zero(req);
   168  return err;
   169  }
   170  

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 7/26] wusb: Use skcipher

2016-01-24 Thread kbuild test robot
Hi Herbert,

[auto build test ERROR on net/master]
[also build test ERROR on v4.4 next-20160122]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improving the system]

url:
https://github.com/0day-ci/linux/commits/Herbert-Xu/crypto-Use-skcipher-and-ahash-shash-where-possible/20160124-212323
config: x86_64-randconfig-x016-201604 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/usb/wusbcore/crypto.c: In function 'wusb_ccm_mac':
>> drivers/usb/wusbcore/crypto.c:266:2: error: implicit declaration of function 
>> 'skcipher_request_zero' [-Werror=implicit-function-declaration]
 skcipher_request_zero(req);
 ^
   cc1: some warnings being treated as errors

vim +/skcipher_request_zero +266 drivers/usb/wusbcore/crypto.c

   260  sg_init_one(_dst, dst_buf, dst_size);
   261  
   262  skcipher_request_set_tfm(req, tfm_cbc);
   263  skcipher_request_set_callback(req, 0, NULL, NULL);
   264  skcipher_request_set_crypt(req, sg, _dst, dst_size, iv);
   265  result = crypto_skcipher_encrypt(req);
 > 266  skcipher_request_zero(req);
   267  if (result < 0) {
   268  printk(KERN_ERR "E: can't compute CBC-MAC tag (MIC): 
%d\n",
   269 result);

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 24/26] nfsd: Use shash

2016-01-24 Thread kbuild test robot
Hi Herbert,

[auto build test ERROR on net/master]
[also build test ERROR on v4.4 next-20160122]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improving the system]

url:
https://github.com/0day-ci/linux/commits/Herbert-Xu/crypto-Use-skcipher-and-ahash-shash-where-possible/20160124-212323
config: x86_64-randconfig-x009-201604 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64 

All errors (new ones prefixed by >>):

   fs/nfsd/nfs4recover.c: In function 'nfs4_make_rec_clidname':
>> fs/nfsd/nfs4recover.c:133:3: error: implicit declaration of function 
>> 'shash_desc_zero' [-Werror=implicit-function-declaration]
  shash_desc_zero(desc);
  ^
   cc1: some warnings being treated as errors

vim +/shash_desc_zero +133 fs/nfsd/nfs4recover.c

   127  
   128  desc->tfm = tfm;
   129  desc->flags = CRYPTO_TFM_REQ_MAY_SLEEP;
   130  
   131  status = crypto_shash_digest(desc, clname->data, 
clname->len,
   132   cksum.data);
 > 133  shash_desc_zero(desc);
   134  }
   135  
   136  if (status)

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation


.config.gz
Description: Binary data
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel