From: kernel test robot <lkp@intel.com>
To: "Matthew Wilcox (Oracle)" <willy@infradead.org>,
linux-kernel@vger.kernel.org,
Andrew Morton <akpm@linux-foundation.org>
Cc: kbuild-all@lists.01.org,
Linux Memory Management List <linux-mm@kvack.org>,
"Matthew Wilcox (Oracle)" <willy@infradead.org>,
Huang Ying <ying.huang@intel.com>,
Mike Rapoport <rppt@linux.vnet.ibm.com>
Subject: Re: [PATCH] mm: Move page_mapping_file to pagemap.h
Date: Wed, 17 Mar 2021 00:03:29 +0800 [thread overview]
Message-ID: <202103162330.mQEYO3rW-lkp@intel.com> (raw)
In-Reply-To: <20210316141040.37576-1-willy@infradead.org>
[-- Attachment #1: Type: text/plain, Size: 5409 bytes --]
Hi "Matthew,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on hnaz-linux-mm/master]
url: https://github.com/0day-ci/linux/commits/Matthew-Wilcox-Oracle/mm-Move-page_mapping_file-to-pagemap-h/20210316-221138
base: https://github.com/hnaz/linux-mm master
config: nios2-defconfig (attached as .config)
compiler: nios2-linux-gcc (GCC) 9.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
# https://github.com/0day-ci/linux/commit/5f7b112de945843f38fbf9f602dd547010e8b8d0
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Matthew-Wilcox-Oracle/mm-Move-page_mapping_file-to-pagemap-h/20210316-221138
git checkout 5f7b112de945843f38fbf9f602dd547010e8b8d0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nios2
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
arch/nios2/mm/cacheflush.c:160:6: warning: no previous prototype for '__flush_dcache_page' [-Wmissing-prototypes]
160 | void __flush_dcache_page(struct address_space *mapping, struct page *page)
| ^~~~~~~~~~~~~~~~~~~
arch/nios2/mm/cacheflush.c: In function 'flush_dcache_page':
>> arch/nios2/mm/cacheflush.c:183:12: error: implicit declaration of function 'page_mapping_file'; did you mean 'page_mapping'? [-Werror=implicit-function-declaration]
183 | mapping = page_mapping_file(page);
| ^~~~~~~~~~~~~~~~~
| page_mapping
>> arch/nios2/mm/cacheflush.c:183:10: warning: assignment to 'struct address_space *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
183 | mapping = page_mapping_file(page);
| ^
arch/nios2/mm/cacheflush.c: In function 'update_mmu_cache':
arch/nios2/mm/cacheflush.c:221:10: warning: assignment to 'struct address_space *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
221 | mapping = page_mapping_file(page);
| ^
cc1: some warnings being treated as errors
vim +183 arch/nios2/mm/cacheflush.c
93c91cb228e76b Ley Foon Tan 2014-11-06 159
1a70db49a73535 Ley Foon Tan 2015-04-24 @160 void __flush_dcache_page(struct address_space *mapping, struct page *page)
1a70db49a73535 Ley Foon Tan 2015-04-24 161 {
1a70db49a73535 Ley Foon Tan 2015-04-24 162 /*
1a70db49a73535 Ley Foon Tan 2015-04-24 163 * Writeback any data associated with the kernel mapping of this
1a70db49a73535 Ley Foon Tan 2015-04-24 164 * page. This ensures that data in the physical page is mutually
1a70db49a73535 Ley Foon Tan 2015-04-24 165 * coherent with the kernels mapping.
1a70db49a73535 Ley Foon Tan 2015-04-24 166 */
1a70db49a73535 Ley Foon Tan 2015-04-24 167 unsigned long start = (unsigned long)page_address(page);
1a70db49a73535 Ley Foon Tan 2015-04-24 168
8e3d7c834ba0f7 Ley Foon Tan 2015-11-26 169 __flush_dcache(start, start + PAGE_SIZE);
1a70db49a73535 Ley Foon Tan 2015-04-24 170 }
1a70db49a73535 Ley Foon Tan 2015-04-24 171
93c91cb228e76b Ley Foon Tan 2014-11-06 172 void flush_dcache_page(struct page *page)
93c91cb228e76b Ley Foon Tan 2014-11-06 173 {
93c91cb228e76b Ley Foon Tan 2014-11-06 174 struct address_space *mapping;
93c91cb228e76b Ley Foon Tan 2014-11-06 175
93c91cb228e76b Ley Foon Tan 2014-11-06 176 /*
93c91cb228e76b Ley Foon Tan 2014-11-06 177 * The zero page is never written to, so never has any dirty
93c91cb228e76b Ley Foon Tan 2014-11-06 178 * cache lines, and therefore never needs to be flushed.
93c91cb228e76b Ley Foon Tan 2014-11-06 179 */
93c91cb228e76b Ley Foon Tan 2014-11-06 180 if (page == ZERO_PAGE(0))
93c91cb228e76b Ley Foon Tan 2014-11-06 181 return;
93c91cb228e76b Ley Foon Tan 2014-11-06 182
cb9f753a3731f7 Huang Ying 2018-04-05 @183 mapping = page_mapping_file(page);
93c91cb228e76b Ley Foon Tan 2014-11-06 184
93c91cb228e76b Ley Foon Tan 2014-11-06 185 /* Flush this page if there are aliases. */
93c91cb228e76b Ley Foon Tan 2014-11-06 186 if (mapping && !mapping_mapped(mapping)) {
93c91cb228e76b Ley Foon Tan 2014-11-06 187 clear_bit(PG_dcache_clean, &page->flags);
93c91cb228e76b Ley Foon Tan 2014-11-06 188 } else {
1a70db49a73535 Ley Foon Tan 2015-04-24 189 __flush_dcache_page(mapping, page);
1a70db49a73535 Ley Foon Tan 2015-04-24 190 if (mapping) {
93c91cb228e76b Ley Foon Tan 2014-11-06 191 unsigned long start = (unsigned long)page_address(page);
93c91cb228e76b Ley Foon Tan 2014-11-06 192 flush_aliases(mapping, page);
1a70db49a73535 Ley Foon Tan 2015-04-24 193 flush_icache_range(start, start + PAGE_SIZE);
1a70db49a73535 Ley Foon Tan 2015-04-24 194 }
93c91cb228e76b Ley Foon Tan 2014-11-06 195 set_bit(PG_dcache_clean, &page->flags);
93c91cb228e76b Ley Foon Tan 2014-11-06 196 }
93c91cb228e76b Ley Foon Tan 2014-11-06 197 }
93c91cb228e76b Ley Foon Tan 2014-11-06 198 EXPORT_SYMBOL(flush_dcache_page);
93c91cb228e76b Ley Foon Tan 2014-11-06 199
---
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: 9901 bytes --]
next prev parent reply other threads:[~2021-03-16 16:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-16 14:10 [PATCH] mm: Move page_mapping_file to pagemap.h Matthew Wilcox (Oracle)
2021-03-16 16:03 ` kernel test robot [this message]
2021-03-16 17:18 ` 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=202103162330.mQEYO3rW-lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=rppt@linux.vnet.ibm.com \
--cc=willy@infradead.org \
--cc=ying.huang@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).