From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 574AFC433FE for ; Sun, 20 Mar 2022 07:45:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244972AbiCTH13 (ORCPT ); Sun, 20 Mar 2022 03:27:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238644AbiCTH10 (ORCPT ); Sun, 20 Mar 2022 03:27:26 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20061E098D for ; Sun, 20 Mar 2022 00:26:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647761161; x=1679297161; h=date:from:to:cc:subject:message-id:mime-version; bh=56P2OUjwQxXbL3U3aFHsH9FyVLP+P+Me0B076HwrZLI=; b=EY3ybDb1aZaAk60ThCBonUm5lpSoWktygWSknfQ3qMQ9/Vijm5dhHRmv qr0w5aPZkGz1DwlaHFCoiTvGxCFPARBQyXRUWx79C3CuPyBkZ5iIjQ3wN JWqYiJErmW0fzFQ5PlbCFogB4Rx0t2HzBEDt6RR+65t+FFBxAcywEsanU 4CqRHAz3jbv217cv6EeB9vg3N9jVR0fsFqTWnfgpSrav+FTCu1iWZapVo cbr3G55hMUqAFVUu3Vt1B16ffedmQ0IPamRSzvpOgIoOEY2JK4ZvNj7iD CNBBluSVt5CU3NCW8XptmXF2xoJ9Ws2BY0URMshEzNXRMK7NNEfY8FWr2 g==; X-IronPort-AV: E=McAfee;i="6200,9189,10291"; a="343792654" X-IronPort-AV: E=Sophos;i="5.90,195,1643702400"; d="scan'208";a="343792654" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Mar 2022 00:26:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,195,1643702400"; d="scan'208";a="648189085" Received: from lkp-server02.sh.intel.com (HELO 89b41b6ae01c) ([10.239.97.151]) by orsmga004.jf.intel.com with ESMTP; 20 Mar 2022 00:25:59 -0700 Received: from kbuild by 89b41b6ae01c with local (Exim 4.92) (envelope-from ) id 1nVpws-000GgH-FN; Sun, 20 Mar 2022 07:25:58 +0000 Date: Sun, 20 Mar 2022 15:24:56 +0800 From: kernel test robot To: David Howells Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [dhowells-fs:netfs-lib 44/59] fs/netfs/objects.c:48:2: error: implicit declaration of function 'netfs_proc_add_writeback' Message-ID: <202203201546.NwQXcQOd-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) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git netfs-lib head: be5db4483c9c2527fc63622f257ffd916ac87c98 commit: 72ab86a3e8b3709b611f7a709382fad7be00df69 [44/59] netfs: Add a procfile to list in-progress requests config: s390-randconfig-c005-20220320 (https://download.01.org/0day-ci/archive/20220320/202203201546.NwQXcQOd-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 85e9b2687a13d1908aa86d1b89c5ce398a06cd39) 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 s390 cross compiling tool for clang build # apt-get install binutils-s390x-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/commit/?id=72ab86a3e8b3709b611f7a709382fad7be00df69 git remote add dhowells-fs https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git git fetch --no-tags dhowells-fs netfs-lib git checkout 72ab86a3e8b3709b611f7a709382fad7be00df69 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=s390 SHELL=/bin/bash fs/netfs/ 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:48:2: error: implicit declaration of function 'netfs_proc_add_writeback' [-Werror,-Wimplicit-function-declaration] netfs_proc_add_writeback(rreq); ^ fs/netfs/objects.c:48:2: note: did you mean 'netfs_proc_add_rreq'? fs/netfs/internal.h:51:20: note: 'netfs_proc_add_rreq' declared here static inline void netfs_proc_add_rreq(struct netfs_io_request *rreq) {} ^ >> fs/netfs/objects.c:80:2: error: implicit declaration of function 'netfs_proc_del_writeback' [-Werror,-Wimplicit-function-declaration] netfs_proc_del_writeback(rreq); ^ fs/netfs/objects.c:80:2: note: did you mean 'netfs_proc_del_rreq'? fs/netfs/internal.h:52:20: note: 'netfs_proc_del_rreq' declared here static inline void netfs_proc_del_rreq(struct netfs_io_request *rreq) {} ^ 2 errors generated. vim +/netfs_proc_add_writeback +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