From: kernel test robot <lkp@intel.com>
To: "Matthew Wilcox (Oracle)" <willy@infradead.org>,
Andrew Morton <akpm@linux-foundation.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Linux Memory Management List <linux-mm@kvack.org>,
"Matthew Wilcox (Oracle)" <willy@infradead.org>
Subject: Re: [PATCH 3/6] mm: Convert page_to_pgoff() to page_pgoff()
Date: Wed, 24 Jul 2024 15:24:06 +0800 [thread overview]
Message-ID: <202407241549.hEuWenpa-lkp@intel.com> (raw)
In-Reply-To: <20240723153503.1669586-4-willy@infradead.org>
Hi Matthew,
kernel test robot noticed the following build errors:
[auto build test ERROR on akpm-mm/mm-everything]
[also build test ERROR on linus/master next-20240724]
[cannot apply to tip/x86/mm dennis-percpu/for-next v6.10]
[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#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Matthew-Wilcox-Oracle/bootmem-Stop-using-page-index/20240723-233932
base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link: https://lore.kernel.org/r/20240723153503.1669586-4-willy%40infradead.org
patch subject: [PATCH 3/6] mm: Convert page_to_pgoff() to page_pgoff()
config: x86_64-allnoconfig (https://download.01.org/0day-ci/archive/20240724/202407241549.hEuWenpa-lkp@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240724/202407241549.hEuWenpa-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202407241549.hEuWenpa-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from mm/filemap.c:51:
>> mm/internal.h:899:39: error: passing 'const struct folio *' to parameter of type 'struct folio *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
899 | return folio->index + folio_page_idx(folio, page);
| ^~~~~
include/linux/mm.h:216:62: note: expanded from macro 'folio_page_idx'
216 | #define folio_page_idx(folio, p) (page_to_pfn(p) - folio_pfn(folio))
| ^~~~~
include/linux/mm.h:1877:53: note: passing argument to parameter 'folio' here
1877 | static inline unsigned long folio_pfn(struct folio *folio)
| ^
1 error generated.
--
In file included from mm/rmap.c:85:
>> mm/internal.h:899:39: error: passing 'const struct folio *' to parameter of type 'struct folio *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
899 | return folio->index + folio_page_idx(folio, page);
| ^~~~~
include/linux/mm.h:216:62: note: expanded from macro 'folio_page_idx'
216 | #define folio_page_idx(folio, p) (page_to_pfn(p) - folio_pfn(folio))
| ^~~~~
include/linux/mm.h:1877:53: note: passing argument to parameter 'folio' here
1877 | static inline unsigned long folio_pfn(struct folio *folio)
| ^
mm/rmap.c:796:40: error: passing 'const struct folio *' to parameter of type 'struct folio *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
796 | pgoff = folio->index + folio_page_idx(folio, page);
| ^~~~~
include/linux/mm.h:216:62: note: expanded from macro 'folio_page_idx'
216 | #define folio_page_idx(folio, p) (page_to_pfn(p) - folio_pfn(folio))
| ^~~~~
include/linux/mm.h:1877:53: note: passing argument to parameter 'folio' here
1877 | static inline unsigned long folio_pfn(struct folio *folio)
| ^
2 errors generated.
vim +899 mm/internal.h
895
896 static inline pgoff_t page_pgoff(const struct folio *folio,
897 const struct page *page)
898 {
> 899 return folio->index + folio_page_idx(folio, page);
900 }
901
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-07-24 7:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-23 15:34 [PATCH 0/6] page->index removals in mm Matthew Wilcox (Oracle)
2024-07-23 15:34 ` [PATCH 1/6] bootmem: Stop using page->index Matthew Wilcox (Oracle)
2024-07-23 15:34 ` [PATCH 2/6] mm: Constify page_address_in_vma() Matthew Wilcox (Oracle)
2024-07-24 5:54 ` kernel test robot
2024-07-24 7:24 ` kernel test robot
2024-07-23 15:34 ` [PATCH 3/6] mm: Convert page_to_pgoff() to page_pgoff() Matthew Wilcox (Oracle)
2024-07-24 7:24 ` kernel test robot [this message]
2024-07-23 15:34 ` [PATCH 4/6] mm: Mass constification of folio/page pointers Matthew Wilcox (Oracle)
2024-07-23 15:35 ` [PATCH 5/6] mm: Remove references to page->index in huge_memory.c Matthew Wilcox (Oracle)
2024-07-23 15:35 ` [PATCH 6/6] mm: Use page->private instead of page->index in percpu Matthew Wilcox (Oracle)
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=202407241549.hEuWenpa-lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=linux-mm@kvack.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=willy@infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox