From: kbuild test robot <lkp@intel.com>
To: Dave Jiang <dave.jiang@intel.com>
Cc: kbuild-all@01.org, darrick.wong@oracle.com,
linux-nvdimm@lists.01.org, david@fromorbit.com,
linux-xfs@vger.kernel.org, ross.zwisler@linux.intel.com,
linux-ext4@vger.kernel.org, dan.j.williams@intel.com
Subject: Re: [PATCH v4 1/3] fs: allow per-device dax status checking for filesystems
Date: Thu, 1 Mar 2018 09:22:47 +0800 [thread overview]
Message-ID: <201803010915.KJGs7One%fengguang.wu@intel.com> (raw)
In-Reply-To: <151871655228.27617.3514495396592472682.stgit@djiang5-desk3.ch.intel.com>
[-- Attachment #1: Type: text/plain, Size: 3294 bytes --]
Hi Darrick,
I love your patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v4.16-rc3 next-20180228]
[cannot apply to dgc-xfs/for-next]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Dave-Jiang/minimal-DAX-support-for-XFS-realtime-device/20180218-154220
config: i386-randconfig-c0-03010621 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
All errors (new ones prefixed by >>):
>> drivers/dax/super.c:86:5: error: redefinition of 'bdev_dax_supported'
int bdev_dax_supported(struct super_block *sb, struct block_device *bdev,
^~~~~~~~~~~~~~~~~~
In file included from drivers/dax/super.c:23:0:
include/linux/dax.h:62:19: note: previous definition of 'bdev_dax_supported' was here
static inline int bdev_dax_supported(struct super_block *sb,
^~~~~~~~~~~~~~~~~~
vim +/bdev_dax_supported +86 drivers/dax/super.c
74
75 /**
76 * bdev_dax_supported() - Check if the device supports dax for filesystem
77 * @sb: The superblock of the device
78 * @bdev: block device to check
79 * @blocksize: The block size of the device
80 *
81 * This is a library function for filesystems to check if the block device
82 * can be mounted with dax option.
83 *
84 * Return: negative errno if unsupported, 0 if supported.
85 */
> 86 int bdev_dax_supported(struct super_block *sb, struct block_device *bdev,
87 int blocksize)
88 {
89 struct dax_device *dax_dev;
90 pgoff_t pgoff;
91 int err, id;
92 void *kaddr;
93 pfn_t pfn;
94 long len;
95
96 if (blocksize != PAGE_SIZE) {
97 pr_debug("VFS (%s): error: unsupported blocksize for dax\n",
98 sb->s_id);
99 return -EINVAL;
100 }
101
102 err = bdev_dax_pgoff(bdev, 0, PAGE_SIZE, &pgoff);
103 if (err) {
104 pr_debug("VFS (%s): error: unaligned partition for dax\n",
105 sb->s_id);
106 return err;
107 }
108
109 dax_dev = dax_get_by_host(bdev->bd_disk->disk_name);
110 if (!dax_dev) {
111 pr_debug("VFS (%s): error: device does not support dax\n",
112 sb->s_id);
113 return -EOPNOTSUPP;
114 }
115
116 id = dax_read_lock();
117 len = dax_direct_access(dax_dev, pgoff, 1, &kaddr, &pfn);
118 dax_read_unlock(id);
119
120 put_dax(dax_dev);
121
122 if (len < 1) {
123 pr_debug("VFS (%s): error: dax access failed (%ld)\n",
124 sb->s_id, len);
125 return len < 0 ? len : -EIO;
126 }
127
128 if ((IS_ENABLED(CONFIG_FS_DAX_LIMITED) && pfn_t_special(pfn))
129 || pfn_t_devmap(pfn))
130 /* pass */;
131 else {
132 pr_debug("VFS (%s): error: dax support not enabled\n",
133 sb->s_id);
134 return -EOPNOTSUPP;
135 }
136
137 return 0;
138 }
139 EXPORT_SYMBOL_GPL(bdev_dax_supported);
140 #endif
141
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 29519 bytes --]
next prev parent reply other threads:[~2018-03-01 1:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-15 17:42 [PATCH v4 0/3] minimal DAX support for XFS realtime device Dave Jiang
2018-02-15 17:42 ` [PATCH v4 1/3] fs: allow per-device dax status checking for filesystems Dave Jiang
2018-02-15 17:52 ` Christoph Hellwig
2018-02-15 17:58 ` Dave Jiang
2018-02-15 18:05 ` Christoph Hellwig
2018-02-15 19:06 ` Darrick J. Wong
2018-03-01 1:22 ` kbuild test robot [this message]
2018-02-15 17:42 ` [PATCH v4 2/3] dax: change bdev_dax_supported() to support boolean returns Dave Jiang
2018-02-18 8:22 ` kbuild test robot
2018-02-15 17:42 ` [PATCH v4 3/3] xfs: reject removal of realtime flag when datadev doesn't support DAX Dave Jiang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201803010915.KJGs7One%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=dan.j.williams@intel.com \
--cc=darrick.wong@oracle.com \
--cc=dave.jiang@intel.com \
--cc=david@fromorbit.com \
--cc=kbuild-all@01.org \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-nvdimm@lists.01.org \
--cc=linux-xfs@vger.kernel.org \
--cc=ross.zwisler@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).