tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git 
for-next.recovery6o
head:   1b7696df0c689a9c6610ebd1f1a5f5353c228ba5
commit: 846ea61cee4947e91765afe2df90bdd9f9913349 [11/25] gfs2: Only complain 
the first time an io error occurs in quota or log
reproduce:
        # apt-get install sparse
        git checkout 846ea61cee4947e91765afe2df90bdd9f9913349
        make ARCH=x86_64 allmodconfig
        make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <[email protected]>


sparse warnings: (new ones prefixed by >>)

>> fs/gfs2/lops.c:215:22: sparse: sparse: incorrect type in initializer 
>> (different base types) @@    expected int __new @@    got restricted 
>> blk_status_t [usertyint __new @@
>> fs/gfs2/lops.c:215:22: sparse:    expected int __new
>> fs/gfs2/lops.c:215:22: sparse:    got restricted blk_status_t [usertype] 
>> bi_status

vim +215 fs/gfs2/lops.c

   195  
   196  /**
   197   * gfs2_end_log_write - end of i/o to the log
   198   * @bio: The bio
   199   *
   200   * Each bio_vec contains either data from the pagecache or data
   201   * relating to the log itself. Here we iterate over the bio_vec
   202   * array, processing both kinds of data.
   203   *
   204   */
   205  
   206  static void gfs2_end_log_write(struct bio *bio)
   207  {
   208          struct gfs2_sbd *sdp = bio->bi_private;
   209          struct bio_vec *bvec;
   210          struct page *page;
   211          int i;
   212          struct bvec_iter_all iter_all;
   213  
   214          if (bio->bi_status) {
 > 215                  if (!cmpxchg(&sdp->sd_log_error, 0, bio->bi_status))
   216                          fs_err(sdp, "Error %d writing to journal, 
jid=%u\n",
   217                                 bio->bi_status, sdp->sd_jdesc->jd_jid);
   218                  wake_up(&sdp->sd_logd_waitq);
   219          }
   220  
   221          bio_for_each_segment_all(bvec, bio, i, iter_all) {
   222                  page = bvec->bv_page;
   223                  if (page_has_buffers(page))
   224                          gfs2_end_log_write_bh(sdp, bvec, 
bio->bi_status);
   225                  else
   226                          mempool_free(page, gfs2_page_pool);
   227          }
   228  
   229          bio_put(bio);
   230          if (atomic_dec_and_test(&sdp->sd_log_in_flight))
   231                  wake_up(&sdp->sd_log_flush_wait);
   232  }
   233  

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

Reply via email to