From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by gnuweeb.org (Postfix) with ESMTPS id 2803E7E795 for ; Thu, 28 Apr 2022 09:27:27 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=JARQCRc8; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651138047; x=1682674047; h=date:from:to:cc:subject:message-id:mime-version; bh=BL7FbK1nu3gA7P1M1qIu9/gKr1VPvrt+sdkc/scSC5c=; b=JARQCRc8P0yFsWKt6DU4jWDZjrv/QeeGWkQuXk78eH9ke7cwnos29mfF RQLhU1IuIWBfdL+Ul9+6APlvwbYPq+ETjp7MO+NF7iA5oYbX9D93FSg8+ GzDQq+03IEZLP2+YYABgBiDinWRVviXaNlYGEgSkZmdeYpIgiN9dYEz1J PYqiLDB6P1em8/QzR1eJinCstgtSZgLeePEVAv4XUzDCAgRQ3L2VuDhFr E4VwAP+Ydg7cMeyopkKCxqmicTQ3SEq1F7p68idgMDvHuKcS78lfx6glx fcsTKhzwChZyYI0ekExdZaHJ/xO57TaMePUUgW6gXc8CS/jQrWN9g4Qf+ Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10330"; a="326714296" X-IronPort-AV: E=Sophos;i="5.90,295,1643702400"; d="scan'208";a="326714296" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2022 02:27:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,295,1643702400"; d="scan'208";a="651141431" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by FMSMGA003.fm.intel.com with ESMTP; 28 Apr 2022 02:27:17 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1nk0Qe-0005Ex-Hy; Thu, 28 Apr 2022 09:27:16 +0000 Date: Thu, 28 Apr 2022 17:27:02 +0800 From: kernel test robot To: David Howells Cc: kbuild-all@lists.01.org, GNU/Weeb Mailing List , linux-kernel@vger.kernel.org Subject: [ammarfaizi2-block:dhowells/linux-fs/netfs-linked-list 39/45] fs/netfs/buffered_write.c:669:13: sparse: sparse: incorrect type in assignment (different base types) Message-ID: <202204281739.ZRJW1o8Z-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-Id: tree: https://github.com/ammarfaizi2/linux-block dhowells/linux-fs/netfs-linked-list head: a20ca5707a9b524115f5ded439fed1f8e552dd6b commit: 95f517db4cb2fbcfdabe76d0be06d75746958b0b [39/45] netfs: Allow buffered shared-writeable mmap through netfs_page_mkwrite() config: s390-randconfig-s032-20220428 (https://download.01.org/0day-ci/archive/20220428/202204281739.ZRJW1o8Z-lkp@intel.com/config) compiler: s390-linux-gcc (GCC) 11.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.4-dirty # https://github.com/ammarfaizi2/linux-block/commit/95f517db4cb2fbcfdabe76d0be06d75746958b0b git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block dhowells/linux-fs/netfs-linked-list git checkout 95f517db4cb2fbcfdabe76d0be06d75746958b0b # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=s390 SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> fs/netfs/buffered_write.c:669:13: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted vm_fault_t [usertype] ret @@ got int @@ fs/netfs/buffered_write.c:669:13: sparse: expected restricted vm_fault_t [usertype] ret fs/netfs/buffered_write.c:669:13: sparse: got int >> fs/netfs/buffered_write.c:670:13: sparse: sparse: restricted vm_fault_t degrades to integer vim +669 fs/netfs/buffered_write.c 640 641 /* 642 * Notification that a previously read-only page is about to become writable. 643 * Note that the caller indicates a single page of a multipage folio. 644 */ 645 vm_fault_t netfs_page_mkwrite(struct vm_fault *vmf) 646 { 647 struct netfs_dirty_region *region; 648 struct folio *folio = page_folio(vmf->page); 649 struct file *file = vmf->vma->vm_file; 650 struct inode *inode = file_inode(file); 651 struct netfs_i_context *ctx = netfs_i_context(inode); 652 vm_fault_t ret = VM_FAULT_RETRY; 653 int err; 654 LIST_HEAD(spare_regions); 655 656 _enter("%lx", folio->index); 657 658 if (ctx->ops->validate_for_write(inode, file) < 0) 659 return VM_FAULT_SIGBUS; 660 661 sb_start_pagefault(inode->i_sb); 662 663 if (folio_wait_writeback_killable(folio)) 664 goto out; 665 666 if (folio_lock_killable(folio) < 0) 667 goto out; 668 > 669 ret = netfs_preallocate_regions(&spare_regions); > 670 if (ret < 0) { -- 0-DAY CI Kernel Test Service https://01.org/lkp