From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [hch-misc:dax-support-cleanups 2/9] drivers/dax/super.c:168:6: error: redefinition of 'bdev_dax_supported'
Date: Fri, 30 Jul 2021 08:55:49 +0800 [thread overview]
Message-ID: <202107300843.wPK8LqEs-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3195 bytes --]
tree: git://git.infradead.org/users/hch/misc.git dax-support-cleanups
head: 4b01cc047f5c0a9139340eaae24ec0b80f869396
commit: 306e4c90987837ad7874bc0bc89a55548df3b0a9 [2/9] dax: rename __bdev_dax_supported to bdev_dax_supported
config: m68k-amiga_defconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 10.3.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
git remote add hch-misc git://git.infradead.org/users/hch/misc.git
git fetch --no-tags hch-misc dax-support-cleanups
git checkout 306e4c90987837ad7874bc0bc89a55548df3b0a9
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=m68k SHELL=/bin/bash drivers/dax/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/dax/super.c:168:6: error: redefinition of 'bdev_dax_supported'
168 | bool bdev_dax_supported(struct block_device *bdev, int blocksize)
| ^~~~~~~~~~~~~~~~~~
In file included from drivers/dax/super.c:16:
include/linux/dax.h:179:20: note: previous definition of 'bdev_dax_supported' was here
179 | static inline bool bdev_dax_supported(struct block_device *bdev,
| ^~~~~~~~~~~~~~~~~~
drivers/dax/super.c:449:6: warning: no previous prototype for 'run_dax' [-Wmissing-prototypes]
449 | void run_dax(struct dax_device *dax_dev)
| ^~~~~~~
vim +/bdev_dax_supported +168 drivers/dax/super.c
157
158 /**
159 * bdev_dax_supported() - Check if the device supports dax for filesystem
160 * @bdev: block device to check
161 * @blocksize: The block size of the device
162 *
163 * This is a library function for filesystems to check if the block device
164 * can be mounted with dax option.
165 *
166 * Return: true if supported, false if unsupported
167 */
> 168 bool bdev_dax_supported(struct block_device *bdev, int blocksize)
169 {
170 struct dax_device *dax_dev;
171 struct request_queue *q;
172 bool ret;
173 int id;
174
175 q = bdev_get_queue(bdev);
176 if (!q || !blk_queue_dax(q)) {
177 pr_info("%pg: error: request queue doesn't support dax\n", bdev);
178 return false;
179 }
180
181 dax_dev = dax_get_by_host(bdev->bd_disk->disk_name);
182 if (!dax_dev) {
183 pr_info("%pg: error: device does not support dax\n", bdev);
184 return false;
185 }
186
187 id = dax_read_lock();
188 ret = dax_supported(dax_dev, bdev, blocksize, 0,
189 i_size_read(bdev->bd_inode) / 512);
190 dax_read_unlock(id);
191
192 put_dax(dax_dev);
193
194 return ret;
195 }
196 EXPORT_SYMBOL_GPL(bdev_dax_supported);
197 #endif
198
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 16691 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Christoph Hellwig <hch@lst.de>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [hch-misc:dax-support-cleanups 2/9] drivers/dax/super.c:168:6: error: redefinition of 'bdev_dax_supported'
Date: Fri, 30 Jul 2021 08:55:49 +0800 [thread overview]
Message-ID: <202107300843.wPK8LqEs-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3113 bytes --]
tree: git://git.infradead.org/users/hch/misc.git dax-support-cleanups
head: 4b01cc047f5c0a9139340eaae24ec0b80f869396
commit: 306e4c90987837ad7874bc0bc89a55548df3b0a9 [2/9] dax: rename __bdev_dax_supported to bdev_dax_supported
config: m68k-amiga_defconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 10.3.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
git remote add hch-misc git://git.infradead.org/users/hch/misc.git
git fetch --no-tags hch-misc dax-support-cleanups
git checkout 306e4c90987837ad7874bc0bc89a55548df3b0a9
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=m68k SHELL=/bin/bash drivers/dax/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/dax/super.c:168:6: error: redefinition of 'bdev_dax_supported'
168 | bool bdev_dax_supported(struct block_device *bdev, int blocksize)
| ^~~~~~~~~~~~~~~~~~
In file included from drivers/dax/super.c:16:
include/linux/dax.h:179:20: note: previous definition of 'bdev_dax_supported' was here
179 | static inline bool bdev_dax_supported(struct block_device *bdev,
| ^~~~~~~~~~~~~~~~~~
drivers/dax/super.c:449:6: warning: no previous prototype for 'run_dax' [-Wmissing-prototypes]
449 | void run_dax(struct dax_device *dax_dev)
| ^~~~~~~
vim +/bdev_dax_supported +168 drivers/dax/super.c
157
158 /**
159 * bdev_dax_supported() - Check if the device supports dax for filesystem
160 * @bdev: block device to check
161 * @blocksize: The block size of the device
162 *
163 * This is a library function for filesystems to check if the block device
164 * can be mounted with dax option.
165 *
166 * Return: true if supported, false if unsupported
167 */
> 168 bool bdev_dax_supported(struct block_device *bdev, int blocksize)
169 {
170 struct dax_device *dax_dev;
171 struct request_queue *q;
172 bool ret;
173 int id;
174
175 q = bdev_get_queue(bdev);
176 if (!q || !blk_queue_dax(q)) {
177 pr_info("%pg: error: request queue doesn't support dax\n", bdev);
178 return false;
179 }
180
181 dax_dev = dax_get_by_host(bdev->bd_disk->disk_name);
182 if (!dax_dev) {
183 pr_info("%pg: error: device does not support dax\n", bdev);
184 return false;
185 }
186
187 id = dax_read_lock();
188 ret = dax_supported(dax_dev, bdev, blocksize, 0,
189 i_size_read(bdev->bd_inode) / 512);
190 dax_read_unlock(id);
191
192 put_dax(dax_dev);
193
194 return ret;
195 }
196 EXPORT_SYMBOL_GPL(bdev_dax_supported);
197 #endif
198
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 16691 bytes --]
next reply other threads:[~2021-07-30 0:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-30 0:55 kernel test robot [this message]
2021-07-30 0:55 ` [hch-misc:dax-support-cleanups 2/9] drivers/dax/super.c:168:6: error: redefinition of 'bdev_dax_supported' kernel test robot
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=202107300843.wPK8LqEs-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.