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 0965F7E342 for ; Tue, 5 Apr 2022 05:19:48 +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=QiFGRmsH; 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=1649135988; x=1680671988; h=date:from:to:cc:subject:message-id:mime-version; bh=1qkMhrLj1ASwiXrwHQ9CNqfZSxNgBNAwIxTvtjinTpI=; b=QiFGRmsH2ziTlm9tn9gj5vV6uH/UG/opSU3DafKICwE2SIkjLFBkMxp2 lbbzti2hKN+3F3Tji8S+A3jaFmEaahE6W/qlzWzfKQJPH5vpRaOITGwXH ieFJyq2gi51W3u+AGhIYwmXotXW2TRXWh5gM6CnPDyHnZo9074wGFrYKm K8ComParFUdOKoIKFGDOzDlgagKppTLZgz2tYbSkw6H+Al5iSwyDFBsK7 GVHzVkTMwvhE6y2TaSbHCJPr6GlFLrlM2BNMFngUg7WiJOx2UBZsEY/Ke LRyi2VGkKcg3+86geMLfseXTfrKnQN9pYZYxDbU8Deju+IN3OIMQIOYGg A==; X-IronPort-AV: E=McAfee;i="6200,9189,10307"; a="242808916" X-IronPort-AV: E=Sophos;i="5.90,235,1643702400"; d="scan'208";a="242808916" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Apr 2022 22:19:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,235,1643702400"; d="scan'208";a="721912007" Received: from lkp-server02.sh.intel.com (HELO a44fdfb70b94) ([10.239.97.151]) by orsmga005.jf.intel.com with ESMTP; 04 Apr 2022 22:19:45 -0700 Received: from kbuild by a44fdfb70b94 with local (Exim 4.95) (envelope-from ) id 1nbbbV-0002fj-A6; Tue, 05 Apr 2022 05:19:45 +0000 Date: Tue, 5 Apr 2022 13:19:36 +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-maple 2/40] fs/netfs/objects.c:48:9: error: implicit declaration of function 'netfs_proc_add_writeback'; did you mean 'netfs_proc_add_rreq'? Message-ID: <202204051305.EmtUGQOR-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: tree: https://github.com/ammarfaizi2/linux-block dhowells/linux-fs/netfs-maple head: 674eea41fc70a740ff83ec590f9833f805852464 commit: 9bff5b05142d47cc6a64f5e023fd01d9bf8bee9e [2/40] netfs: Add a procfile to list in-progress requests config: powerpc64-randconfig-s031-20220405 (https://download.01.org/0day-ci/archive/20220405/202204051305.EmtUGQOR-lkp@intel.com/config) compiler: powerpc64le-linux-gcc (GCC) 11.2.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/9bff5b05142d47cc6a64f5e023fd01d9bf8bee9e git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block dhowells/linux-fs/netfs-maple git checkout 9bff5b05142d47cc6a64f5e023fd01d9bf8bee9e # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=powerpc SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): fs/netfs/objects.c: In function 'netfs_alloc_request': >> fs/netfs/objects.c:48:9: error: implicit declaration of function 'netfs_proc_add_writeback'; did you mean 'netfs_proc_add_rreq'? [-Werror=implicit-function-declaration] 48 | netfs_proc_add_writeback(rreq); | ^~~~~~~~~~~~~~~~~~~~~~~~ | netfs_proc_add_rreq fs/netfs/objects.c: In function 'netfs_free_request': >> fs/netfs/objects.c:80:9: error: implicit declaration of function 'netfs_proc_del_writeback'; did you mean 'netfs_proc_del_rreq'? [-Werror=implicit-function-declaration] 80 | netfs_proc_del_writeback(rreq); | ^~~~~~~~~~~~~~~~~~~~~~~~ | netfs_proc_del_rreq cc1: some warnings being treated as errors vim +48 fs/netfs/objects.c 10 11 /* 12 * Allocate an I/O request and initialise it. 13 */ 14 struct netfs_io_request *netfs_alloc_request(struct address_space *mapping, 15 struct file *file, 16 loff_t start, size_t len, 17 enum netfs_io_origin origin) 18 { 19 static atomic_t debug_ids; 20 struct inode *inode = file ? file_inode(file) : mapping->host; 21 struct netfs_i_context *ctx = netfs_i_context(inode); 22 struct netfs_io_request *rreq; 23 int ret; 24 25 rreq = kzalloc(sizeof(struct netfs_io_request), GFP_KERNEL); 26 if (!rreq) 27 return ERR_PTR(-ENOMEM); 28 29 rreq->start = start; 30 rreq->len = len; 31 rreq->origin = origin; 32 rreq->netfs_ops = ctx->ops; 33 rreq->mapping = mapping; 34 rreq->inode = inode; 35 rreq->i_size = i_size_read(inode); 36 rreq->debug_id = atomic_inc_return(&debug_ids); 37 INIT_LIST_HEAD(&rreq->subrequests); 38 refcount_set(&rreq->ref, 1); 39 __set_bit(NETFS_RREQ_IN_PROGRESS, &rreq->flags); 40 if (rreq->netfs_ops->init_request) { 41 ret = rreq->netfs_ops->init_request(rreq, file); 42 if (ret < 0) { 43 kfree(rreq); 44 return ERR_PTR(ret); 45 } 46 } 47 > 48 netfs_proc_add_writeback(rreq); 49 netfs_stat(&netfs_n_rh_rreq); 50 return rreq; 51 } 52 53 void netfs_get_request(struct netfs_io_request *rreq, enum netfs_rreq_ref_trace what) 54 { 55 int r; 56 57 __refcount_inc(&rreq->ref, &r); 58 trace_netfs_rreq_ref(rreq->debug_id, r + 1, what); 59 } 60 61 void netfs_clear_subrequests(struct netfs_io_request *rreq, bool was_async) 62 { 63 struct netfs_io_subrequest *subreq; 64 65 while (!list_empty(&rreq->subrequests)) { 66 subreq = list_first_entry(&rreq->subrequests, 67 struct netfs_io_subrequest, rreq_link); 68 list_del(&subreq->rreq_link); 69 netfs_put_subrequest(subreq, was_async, 70 netfs_sreq_trace_put_clear); 71 } 72 } 73 74 static void netfs_free_request(struct work_struct *work) 75 { 76 struct netfs_io_request *rreq = 77 container_of(work, struct netfs_io_request, work); 78 79 trace_netfs_rreq(rreq, netfs_rreq_trace_free); > 80 netfs_proc_del_writeback(rreq); 81 netfs_clear_subrequests(rreq, false); 82 if (rreq->netfs_ops->free_request) 83 rreq->netfs_ops->free_request(rreq); 84 if (rreq->cache_resources.ops) 85 rreq->cache_resources.ops->end_operation(&rreq->cache_resources); 86 kfree_rcu(rreq, rcu); 87 netfs_stat_d(&netfs_n_rh_rreq); 88 } 89 -- 0-DAY CI Kernel Test Service https://01.org/lkp