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.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by gnuweeb.org (Postfix) with ESMTPS id 4B0C87E58D for ; Sat, 11 Jun 2022 10:22:14 +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=Jp5jrKrO; 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=1654942934; x=1686478934; h=date:from:to:cc:subject:message-id:mime-version; bh=gC2juinoSHEY0+8X831/SBR5lbbv9snE6ZelIhvr+uA=; b=Jp5jrKrOX0KlCo8RSjEjNyYt3ISb/ECixf+FFWzo834hGyKsA1O2ZhDw qvCArNKKSjh3bPYjyECHNo7/ok2It4gqBOVLGLFzTEGC5s6AWVB2hQc6M hfHghxmMj5CNlD3JKzZ9/KAmaLaq2b2orpUVBAr29ZyNPo+him7iOJ7F0 mDs2RLpy7kd2QY5S4KlXESnxG+cnEsM3e7tQ0m02vChorZ7PtYe0hTov8 tNgINfvnaz6HM6FKfTp+zucx//KrNSQgwh6JcbtQlpMM9adgibTvwcV3g YNGRm9BgnLe1FS7TVTKUuCTBaXIo6h27ONHdvQ/FpyCD1zTCjfioy/y0F A==; X-IronPort-AV: E=McAfee;i="6400,9594,10374"; a="260965330" X-IronPort-AV: E=Sophos;i="5.91,293,1647327600"; d="scan'208";a="260965330" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2022 03:22:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,293,1647327600"; d="scan'208";a="828714157" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by fmsmga006.fm.intel.com with ESMTP; 11 Jun 2022 03:22:10 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1nzyFu-000InV-3j; Sat, 11 Jun 2022 10:22:10 +0000 Date: Sat, 11 Jun 2022 18:22:05 +0800 From: kernel test robot To: David Howells Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, GNU/Weeb Mailing List , linux-kernel@vger.kernel.org Subject: [ammarfaizi2-block:dhowells/linux-fs/netfs-linked-list 57/57] fs/netfs/buffered_write.c:934:2: warning: TRIGGER NEW FLUSH GROUP FOR TESTING Message-ID: <202206111840.22bAafuo-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: c19d336b7f0c53bd31e73f6d7d6c1524f0df55b8 commit: c19d336b7f0c53bd31e73f6d7d6c1524f0df55b8 [57/57] netfs: Add a struct to group modifications together and flushed in order config: arm-randconfig-r034-20220610 (https://download.01.org/0day-ci/archive/20220611/202206111840.22bAafuo-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project ff4abe755279a3a47cc416ef80dbc900d9a98a19) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # https://github.com/ammarfaizi2/linux-block/commit/c19d336b7f0c53bd31e73f6d7d6c1524f0df55b8 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 c19d336b7f0c53bd31e73f6d7d6c1524f0df55b8 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash fs/netfs/ lib/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> fs/netfs/buffered_write.c:934:2: warning: TRIGGER NEW FLUSH GROUP FOR TESTING [-W#warnings] #warning TRIGGER NEW FLUSH GROUP FOR TESTING ^ fs/netfs/buffered_write.c:22:20: warning: unused function 'netfs_pgoff_before_touch' [-Wunused-function] static inline bool netfs_pgoff_before_touch(pgoff_t a, pgoff_t b) ^ 2 warnings generated. vim +934 fs/netfs/buffered_write.c 893 894 /** 895 * netfs_file_write_iter - write data to a file 896 * @iocb: IO state structure 897 * @from: iov_iter with data to write 898 * 899 * This is a wrapper around __generic_file_write_iter() to be used by most 900 * filesystems. It takes care of syncing the file in case of O_SYNC file and 901 * acquires i_mutex as needed. 902 * Return: 903 * * negative error code if no data has been written at all of 904 * vfs_fsync_range() failed for a synchronous write 905 * * number of bytes written, even for truncated writes 906 */ 907 ssize_t netfs_file_write_iter(struct kiocb *iocb, struct iov_iter *from) 908 { 909 struct file *file = iocb->ki_filp; 910 struct inode *inode = file->f_mapping->host; 911 struct netfs_inode *ctx = netfs_inode(inode); 912 ssize_t ret; 913 914 _enter("%llx,%zx,%llx", iocb->ki_pos, iov_iter_count(from), i_size_read(inode)); 915 916 inode_lock(inode); 917 ret = generic_write_checks(iocb, from); 918 if (ret <= 0) 919 goto error_unlock; 920 921 trace_netfs_write_iter(iocb, from); 922 923 /* We can write back this queue in page reclaim */ 924 current->backing_dev_info = inode_to_bdi(inode); 925 ret = file_remove_privs(file); 926 if (ret) 927 goto error; 928 929 ret = file_update_time(file); 930 if (ret) 931 goto error; 932 933 { > 934 #warning TRIGGER NEW FLUSH GROUP FOR TESTING 935 static atomic_t jump; 936 ret = netfs_require_flush_group(inode, (atomic_inc_return(&jump) & 3) == 3); 937 if (ret < 0) 938 goto error; 939 } 940 941 ret = netfs_flush_conflicting_writes(ctx, file, iocb->ki_pos, 942 iov_iter_count(from), NULL); 943 if (ret < 0 && ret != -EAGAIN) 944 goto error; 945 946 if (iocb->ki_flags & IOCB_DIRECT) 947 ret = netfs_direct_write_iter(iocb, from); 948 else 949 ret = netfs_perform_write(iocb, from); 950 951 error: 952 inode_unlock(inode); 953 /* TODO: Wait for DSYNC region here. */ 954 current->backing_dev_info = NULL; 955 return ret; 956 error_unlock: 957 inode_unlock(inode); 958 return ret; 959 } 960 EXPORT_SYMBOL(netfs_file_write_iter); 961 -- 0-DAY CI Kernel Test Service https://01.org/lkp