From: kernel test robot <lkp@intel.com>
To: Chao Yu <yuchao0@huawei.com>, Chao Yu <chao@kernel.org>
Cc: kbuild-all@lists.01.org, Chao Yu <yuchao0@huawei.com>,
Chao Yu <chao@kernel.org>,
linux-kernel@vger.kernel.org
Subject: [chao:feature/dax 8/10] fs/f2fs/file.c:1107:22: warning: assignment to 'struct page *' from 'int' makes pointer from integer without a cast
Date: Mon, 8 Aug 2022 06:30:48 +0800 [thread overview]
Message-ID: <202208080625.gFSUHC8I-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git feature/dax
head: 42f73c9b2a369f724de6c1df5acb0bbde2688e35
commit: 59714a25c71315156f6ba8d49b3173915d6943cc [8/10] f2fs: handle layout changes to pinned DAX mappings
config: arm-randconfig-r001-20220807 (https://download.01.org/0day-ci/archive/20220808/202208080625.gFSUHC8I-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 12.1.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://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git/commit/?id=59714a25c71315156f6ba8d49b3173915d6943cc
git remote add chao https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git
git fetch --no-tags chao feature/dax
git checkout 59714a25c71315156f6ba8d49b3173915d6943cc
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash fs/f2fs/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
fs/f2fs/file.c: In function 'f2fs_file_mmap':
fs/f2fs/file.c:585:14: error: implicit declaration of function 'daxdev_mapping_supported' [-Werror=implicit-function-declaration]
585 | if (!daxdev_mapping_supported(vma, F2FS_I_SB(inode)->s_daxdev))
| ^~~~~~~~~~~~~~~~~~~~~~~~
fs/f2fs/file.c: In function 'f2fs_break_layouts':
fs/f2fs/file.c:1107:24: error: implicit declaration of function 'dax_layout_busy_page' [-Werror=implicit-function-declaration]
1107 | page = dax_layout_busy_page(inode->i_mapping);
| ^~~~~~~~~~~~~~~~~~~~
>> fs/f2fs/file.c:1107:22: warning: assignment to 'struct page *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
1107 | page = dax_layout_busy_page(inode->i_mapping);
| ^
cc1: some warnings being treated as errors
vim +1107 fs/f2fs/file.c
1097
1098 int f2fs_break_layouts(struct inode *inode)
1099 {
1100 struct page *page;
1101 int error;
1102
1103 if (WARN_ON_ONCE(!rwsem_is_locked(&inode->i_mapping->invalidate_lock)))
1104 return -EINVAL;
1105
1106 do {
> 1107 page = dax_layout_busy_page(inode->i_mapping);
1108 if (!page)
1109 return 0;
1110
1111 error = ___wait_var_event(&page->_refcount,
1112 atomic_read(&page->_refcount) == 1,
1113 TASK_INTERRUPTIBLE, 0, 0,
1114 f2fs_wait_dax_page(inode));
1115 } while (error == 0);
1116
1117 return error;
1118 }
1119
--
0-DAY CI Kernel Test Service
https://01.org/lkp
reply other threads:[~2022-08-07 22:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202208080625.gFSUHC8I-lkp@intel.com \
--to=lkp@intel.com \
--cc=chao@kernel.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=yuchao0@huawei.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