From: kernel test robot <lkp@intel.com>
To: "Mika Penttilä" <mpenttil@redhat.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [RFC PATCH 2/4] mm: unified fault and migrate device page paths
Date: Fri, 15 Aug 2025 07:10:58 +0800 [thread overview]
Message-ID: <202508150630.antrDWYh-lkp@intel.com> (raw)
In-Reply-To: <20250814072045.3637192-4-mpenttil@redhat.com>
Hi Mika,
[This is a private test report for your RFC patch.]
kernel test robot noticed the following build errors:
[auto build test ERROR on akpm-mm/mm-everything]
[also build test ERROR on akpm-mm/mm-nonmm-unstable linus/master v6.17-rc1 next-20250814]
[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/Mika-Penttil/mm-use-current-as-mmu-notifier-s-owner/20250814-152712
base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link: https://lore.kernel.org/r/20250814072045.3637192-4-mpenttil%40redhat.com
patch subject: [RFC PATCH 2/4] mm: unified fault and migrate device page paths
config: arc-randconfig-002-20250815 (https://download.01.org/0day-ci/archive/20250815/202508150630.antrDWYh-lkp@intel.com/config)
compiler: arc-linux-gcc (GCC) 9.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250815/202508150630.antrDWYh-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/202508150630.antrDWYh-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from include/linux/pagewalk.h:5,
from mm/hmm.c:11:
include/linux/mm.h:80: warning: "PAGES_TO_MB" redefined
80 | #define PAGES_TO_MB(pages) ((pages) >> (20 - PAGE_SHIFT))
|
In file included from arch/arc/include/asm/irqflags-compact.h:16,
from arch/arc/include/asm/irqflags.h:11,
from include/linux/irqflags.h:18,
from include/linux/spinlock.h:59,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:7,
from include/linux/mm.h:7,
from include/linux/pagewalk.h:5,
from mm/hmm.c:11:
arch/arc/include/asm/arcregs.h:155: note: this is the location of the previous definition
155 | #define PAGES_TO_MB(n_pages) (PAGES_TO_KB(n_pages) >> 10)
|
>> mm/hmm.c:55:30: error: return type is an incomplete type
55 | static enum migrate_vma_info hmm_want_migrate(struct hmm_range *range)
| ^~~~~~~~~~~~~~~~
mm/hmm.c: In function 'hmm_want_migrate':
>> mm/hmm.c:57:24: error: storage size of 'minfo' isn't known
57 | enum migrate_vma_info minfo;
| ^~~~~
>> mm/hmm.c:59:41: error: dereferencing pointer to incomplete type 'struct migrate_vma'
59 | minfo = range->migrate ? range->migrate->flags : 0;
| ^~
>> mm/hmm.c:61:3: error: 'MIGRATE_VMA_SELECT_SYSTEM' undeclared (first use in this function)
61 | MIGRATE_VMA_SELECT_SYSTEM : 0;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
mm/hmm.c:61:3: note: each undeclared identifier is reported only once for each function it appears in
mm/hmm.c:63:9: warning: 'return' with a value, in function returning void [-Wreturn-type]
63 | return minfo;
| ^~~~~
mm/hmm.c:55:30: note: declared here
55 | static enum migrate_vma_info hmm_want_migrate(struct hmm_range *range)
| ^~~~~~~~~~~~~~~~
mm/hmm.c:57:24: warning: unused variable 'minfo' [-Wunused-variable]
57 | enum migrate_vma_info minfo;
| ^~~~~
mm/hmm.c: In function 'hmm_pfns_fill':
>> mm/hmm.c:73:7: error: void value not ignored as it ought to be
73 | if (hmm_want_migrate(range) &&
| ^~~~~~~~~~~~~~~~~~~~~~~
mm/hmm.c: In function 'hmm_vma_handle_migrate_prepare':
mm/hmm.c:367:24: error: storage size of 'minfo' isn't known
367 | enum migrate_vma_info minfo;
| ^~~~~
>> mm/hmm.c:415:17: error: 'MIGRATE_VMA_SELECT_DEVICE_PRIVATE' undeclared (first use in this function)
415 | if (!(minfo & MIGRATE_VMA_SELECT_DEVICE_PRIVATE))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mm/hmm.c:425:16: error: 'MIGRATE_VMA_SELECT_SYSTEM' undeclared (first use in this function)
425 | (minfo & MIGRATE_VMA_SELECT_SYSTEM)) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> mm/hmm.c:437:10: error: 'MIGRATE_VMA_SELECT_DEVICE_COHERENT' undeclared (first use in this function)
437 | MIGRATE_VMA_SELECT_DEVICE_COHERENT) ||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> mm/hmm.c:519:4: error: implicit declaration of function 'flush_tlb_range'; did you mean 'flush_pmd_tlb_range'? [-Werror=implicit-function-declaration]
519 | flush_tlb_range(walk->vma, addr, addr + PAGE_SIZE);
| ^~~~~~~~~~~~~~~
| flush_pmd_tlb_range
mm/hmm.c:367:24: warning: unused variable 'minfo' [-Wunused-variable]
367 | enum migrate_vma_info minfo;
| ^~~~~
mm/hmm.c: In function 'hmm_vma_capture_migrate_range':
>> mm/hmm.c:580:6: error: invalid use of void expression
580 | if (!hmm_want_migrate(range))
| ^
mm/hmm.c: In function 'hmm_vma_walk_pmd':
mm/hmm.c:637:6: error: void value not ignored as it ought to be
637 | if (hmm_want_migrate(range) &&
| ^~~~~~~~~~~~~~~~~~~~~~~
mm/hmm.c: In function 'hmm_range_fault':
mm/hmm.c:937:6: error: void value not ignored as it ought to be
937 | if (hmm_want_migrate(range) && range->migrate &&
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +55 mm/hmm.c
54
> 55 static enum migrate_vma_info hmm_want_migrate(struct hmm_range *range)
56 {
> 57 enum migrate_vma_info minfo;
58
> 59 minfo = range->migrate ? range->migrate->flags : 0;
60 minfo |= (range->default_flags & HMM_PFN_REQ_MIGRATE) ?
> 61 MIGRATE_VMA_SELECT_SYSTEM : 0;
62
63 return minfo;
64 }
65
66 static int hmm_pfns_fill(unsigned long addr, unsigned long end,
67 struct hmm_vma_walk *hmm_vma_walk, unsigned long cpu_flags)
68 {
69 struct hmm_range *range = hmm_vma_walk->range;
70 unsigned long i = (addr - range->start) >> PAGE_SHIFT;
71
72 if (cpu_flags != HMM_PFN_ERROR)
> 73 if (hmm_want_migrate(range) &&
74 (vma_is_anonymous(hmm_vma_walk->vma)))
75 cpu_flags |= (HMM_PFN_VALID | HMM_PFN_MIGRATE);
76
77 for (; addr < end; addr += PAGE_SIZE, i++) {
78 range->hmm_pfns[i] &= HMM_PFN_INOUT_FLAGS;
79 range->hmm_pfns[i] |= cpu_flags;
80 }
81
82 return 0;
83 }
84
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-08-14 23:11 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-14 7:19 [RFC PATCH 0/4] Migrate on fault for device pages Mika Penttilä
2025-08-14 7:19 ` [RFC PATCH 1/4] mm: use current as mmu notifier's owner Mika Penttilä
2025-08-14 12:40 ` Jason Gunthorpe
2025-08-14 12:53 ` Mika Penttilä
2025-08-14 13:04 ` Jason Gunthorpe
2025-08-14 13:20 ` Mika Penttilä
2025-08-14 14:11 ` Jason Gunthorpe
2025-08-14 17:00 ` Mika Penttilä
2025-08-14 17:20 ` Jason Gunthorpe
2025-08-14 17:45 ` Mika Penttilä
2025-08-15 5:23 ` Alistair Popple
2025-08-15 7:11 ` Mika Penttilä
2025-08-19 4:27 ` Balbir Singh
2025-08-19 4:33 ` Mika Penttilä
2025-08-14 7:19 ` [RFC PATCH 2/4] mm: unified fault and migrate device page paths Mika Penttilä
2025-08-14 21:36 ` kernel test robot
2025-08-14 23:10 ` kernel test robot [this message]
2025-08-21 4:30 ` Balbir Singh
2025-08-21 5:10 ` Mika Penttilä
2025-08-22 5:02 ` Alistair Popple
2025-08-14 7:19 ` [RFC PATCH 3/4] mm:/migrate_device.c: remove migrate_vma_collect_*() functions Mika Penttilä
2025-08-14 7:19 ` [RFC PATCH 4/4] mm: add new testcase for the migrate on fault case Mika Penttilä
2025-08-15 11:36 ` [RFC PATCH 0/4] Migrate on fault for device pages Balbir Singh
2025-08-15 11:44 ` Mika Penttilä
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=202508150630.antrDWYh-lkp@intel.com \
--to=lkp@intel.com \
--cc=mpenttil@redhat.com \
--cc=oe-kbuild-all@lists.linux.dev \
/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.