Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp430889pxb; Fri, 28 Jan 2022 02:18:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJzIlOnpTnbeAao+FyYeNRc7oJgn0E4tTt5HR73XHm+MW41/ZTmQ3OY9kvHZHPZmbUhqBYXZ X-Received: by 2002:a17:903:18d:: with SMTP id z13mr7581920plg.113.1643365111533; Fri, 28 Jan 2022 02:18:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643365111; cv=none; d=google.com; s=arc-20160816; b=mCT+L/ko70UNMh7qtQFgPmVJz20eN8PuueIGKjG98FhmBHHpGRQpN6/8UYPgvsg015 WNHQZMqxKGFZstNwhx3PlAiJ71ZjPm15TGIuhwF9O4Tv/g3GWeJxbYIHpAlkVq3HhMnV VnTOdSfkKsDOza9lRbsUdiW08gttOnYhdMW4XNVAzZyttGoGHrh5OfOlMymlYo0DJDqz YSzYq7RaejZ8kq7uCDxeAcc0nyXrig4Hx9whYcbKpAmIMXguTSFz9CEXVz2Tn52Hwkw8 /3CwruAyu8UcVx1LwS/HLGoMDCiDckTmswgsBCRR+ItY0PH3vurDUYre8uKPx2AJ2x7x uc3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=FPUb1QH/ncWDtKS7kFvoVp7YqaCwR5WsCGCtvoNXRow=; b=RmjilSDILxIJSnW1O9/CxsUf9ZTV2/BEYnJrYz6sZhm3ob5XpqTfaJHELvXoNf0cUz SF6LHtNZ+Pm/slUWhj5Y9ERcQj2z1L2gs13FzrsIekZVQjJ7SKBHfwLb8IIID7TBd5t8 VVRIwgjtDFXYDHPnXwI7L+pQxhbnNHgX2pulhDoQeR69/39WYt2sBr1oZgao8JSkKkR4 sfIITkD4vbidt/mcDlB7Kt8oAnF9qnkQrUz/NHGl2A7LFQZcFrtOkrLV9kwLAhhTU2Yi pY9ea+Ey9ol8bf76wWfBhp+OwoG4yFIQPh/hrxHu8YwiZMxGQR+0hYcWOugj7XNlnDWm vTXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YUpUQhuP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gq7si1910681pjb.149.2022.01.28.02.18.19; Fri, 28 Jan 2022 02:18:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YUpUQhuP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244083AbiA0QpJ (ORCPT + 99 others); Thu, 27 Jan 2022 11:45:09 -0500 Received: from mga11.intel.com ([192.55.52.93]:21456 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244072AbiA0QpI (ORCPT ); Thu, 27 Jan 2022 11:45:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643301908; x=1674837908; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=0XYCULJz8eCwunpqt4WW86gJKS6aVCwiIa+rTXc0vrY=; b=YUpUQhuP2P2ONDNu4UHFwQJz3C8gKeIwbv2Vx8nQgLz/ReIXjxEID2Ky 0Jph+dEdAQQqGcvt0XFhWQTyWBHWg157Ti94RXIry4Z/nT61+boVAypni xGsMDgaVjCz8NDhlbPnfs2y8wx8lq3S6RQEDLZhFvp4F+RlApPiRMpPod petoW8eQmz5jGdW3KTw9nYhYGDm36P2kr6y1rFhqJ+dtccCT+lmaaiZze etRAVh8xAjcKU2Pe3tIemI1n1SV+LgGhMM+0aQOjRuIlFLfDnjGqnlN7q Lc6u9VRbUHWD+gzttJNs2IqYsujht23Skitdpch+9ccRd7KRtqe9XtWtk A==; X-IronPort-AV: E=McAfee;i="6200,9189,10239"; a="244510328" X-IronPort-AV: E=Sophos;i="5.88,321,1635231600"; d="scan'208";a="244510328" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jan 2022 08:45:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,321,1635231600"; d="scan'208";a="477935447" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 27 Jan 2022 08:45:04 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1nD7tP-000MoH-LD; Thu, 27 Jan 2022 16:45:03 +0000 Date: Fri, 28 Jan 2022 00:44:02 +0800 From: kernel test robot To: Shiyang Ruan , linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org, nvdimm@lists.linux.dev, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org Cc: kbuild-all@lists.01.org, djwong@kernel.org, dan.j.williams@intel.com, david@fromorbit.com, hch@infradead.org, jane.chu@oracle.com Subject: Re: [PATCH v10 1/9] dax: Introduce holder for dax_device Message-ID: <202201280035.A565CZYV-lkp@intel.com> References: <20220127124058.1172422-2-ruansy.fnst@fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220127124058.1172422-2-ruansy.fnst@fujitsu.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Shiyang, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linux/master] [also build test WARNING on linus/master v5.17-rc1 next-20220127] [cannot apply to xfs-linux/for-next hnaz-mm/master] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Shiyang-Ruan/fsdax-introduce-fs-query-to-support-reflink/20220127-204239 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 2c271fe77d52a0555161926c232cd5bc07178b39 config: powerpc-allnoconfig (https://download.01.org/0day-ci/archive/20220128/202201280035.A565CZYV-lkp@intel.com/config) compiler: powerpc-linux-gcc (GCC) 11.2.0 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 # https://github.com/0day-ci/linux/commit/57669ed05e93b37d995c5247eebe218ab2058c9a git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Shiyang-Ruan/fsdax-introduce-fs-query-to-support-reflink/20220127-204239 git checkout 57669ed05e93b37d995c5247eebe218ab2058c9a # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross 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 warnings (new ones prefixed by >>): In file included from mm/filemap.c:15: >> include/linux/dax.h:73:30: warning: 'struct dax_holder_operations' declared inside parameter list will not be visible outside of this definition or declaration 73 | const struct dax_holder_operations *ops) | ^~~~~~~~~~~~~~~~~~~~~ vim +73 include/linux/dax.h 48 49 void dax_register_holder(struct dax_device *dax_dev, void *holder, 50 const struct dax_holder_operations *ops); 51 void dax_unregister_holder(struct dax_device *dax_dev); 52 void *dax_get_holder(struct dax_device *dax_dev); 53 void put_dax(struct dax_device *dax_dev); 54 void kill_dax(struct dax_device *dax_dev); 55 void dax_write_cache(struct dax_device *dax_dev, bool wc); 56 bool dax_write_cache_enabled(struct dax_device *dax_dev); 57 bool dax_synchronous(struct dax_device *dax_dev); 58 void set_dax_synchronous(struct dax_device *dax_dev); 59 /* 60 * Check if given mapping is supported by the file / underlying device. 61 */ 62 static inline bool daxdev_mapping_supported(struct vm_area_struct *vma, 63 struct dax_device *dax_dev) 64 { 65 if (!(vma->vm_flags & VM_SYNC)) 66 return true; 67 if (!IS_DAX(file_inode(vma->vm_file))) 68 return false; 69 return dax_synchronous(dax_dev); 70 } 71 #else 72 static inline void dax_register_holder(struct dax_device *dax_dev, void *holder, > 73 const struct dax_holder_operations *ops) 74 { 75 } 76 static inline void dax_unregister_holder(struct dax_device *dax_dev) 77 { 78 } 79 static inline void *dax_get_holder(struct dax_device *dax_dev) 80 { 81 return NULL; 82 } 83 static inline struct dax_device *alloc_dax(void *private, 84 const struct dax_operations *ops) 85 { 86 /* 87 * Callers should check IS_ENABLED(CONFIG_DAX) to know if this 88 * NULL is an error or expected. 89 */ 90 return NULL; 91 } 92 static inline void put_dax(struct dax_device *dax_dev) 93 { 94 } 95 static inline void kill_dax(struct dax_device *dax_dev) 96 { 97 } 98 static inline void dax_write_cache(struct dax_device *dax_dev, bool wc) 99 { 100 } 101 static inline bool dax_write_cache_enabled(struct dax_device *dax_dev) 102 { 103 return false; 104 } 105 static inline bool dax_synchronous(struct dax_device *dax_dev) 106 { 107 return true; 108 } 109 static inline void set_dax_synchronous(struct dax_device *dax_dev) 110 { 111 } 112 static inline bool daxdev_mapping_supported(struct vm_area_struct *vma, 113 struct dax_device *dax_dev) 114 { 115 return !(vma->vm_flags & VM_SYNC); 116 } 117 #endif 118 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org