* [davidhildenbrand:rmap_id 10/10] mm/internal.h:659:2: error: call to undeclared function '__folio_prep_large_mapcount'; ISO C99 and later do not support implicit function declarations
@ 2024-06-19 2:32 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-06-19 2:32 UTC (permalink / raw)
To: David Hildenbrand; +Cc: llvm, oe-kbuild-all
tree: https://github.com/davidhildenbrand/linux rmap_id
head: 28522f2898f6be45285b138912245f743d2118b5
commit: d7bf123ba843ca74ae36377c58b495264fdb3dbd [10/10] rmap_id
config: arm-randconfig-003-20240619 (https://download.01.org/0day-ci/archive/20240619/202406191000.EqmfjbTD-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 78ee473784e5ef6f0b19ce4cb111fb6e4d23c6b2)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240619/202406191000.EqmfjbTD-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/202406191000.EqmfjbTD-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from mm/vmscan.c:15:
In file included from include/linux/mm.h:2258:
include/linux/vmstat.h:498:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
498 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
In file included from mm/vmscan.c:30:
include/linux/mm_inline.h:47:41: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
47 | __mod_lruvec_state(lruvec, NR_LRU_BASE + lru, nr_pages);
| ~~~~~~~~~~~ ^ ~~~
include/linux/mm_inline.h:49:22: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
49 | NR_ZONE_LRU_BASE + lru, nr_pages);
| ~~~~~~~~~~~~~~~~ ^ ~~~
In file included from mm/vmscan.c:67:
>> mm/internal.h:659:2: error: call to undeclared function '__folio_prep_large_mapcount'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
659 | __folio_prep_large_mapcount(folio, order);
| ^
mm/internal.h:659:2: note: did you mean 'folio_large_mapcount'?
include/linux/mm.h:1237:19: note: 'folio_large_mapcount' declared here
1237 | static inline int folio_large_mapcount(const struct folio *folio)
| ^
mm/vmscan.c:401:51: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
401 | size += zone_page_state(zone, NR_ZONE_LRU_BASE + lru);
| ~~~~~~~~~~~~~~~~ ^ ~~~
mm/vmscan.c:1729:4: warning: arithmetic between different enumeration types ('enum vm_event_item' and 'enum zone_type') [-Wenum-enum-conversion]
1729 | __count_zid_vm_events(PGSCAN_SKIP, zid, nr_skipped[zid]);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:119:34: note: expanded from macro '__count_zid_vm_events'
119 | __count_vm_events(item##_NORMAL - ZONE_NORMAL + zid, delta)
| ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~
mm/vmscan.c:2232:51: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
2232 | inactive = lruvec_page_state(lruvec, NR_LRU_BASE + inactive_lru);
| ~~~~~~~~~~~ ^ ~~~~~~~~~~~~
mm/vmscan.c:2233:49: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
2233 | active = lruvec_page_state(lruvec, NR_LRU_BASE + active_lru);
| ~~~~~~~~~~~ ^ ~~~~~~~~~~
mm/vmscan.c:6259:3: warning: arithmetic between different enumeration types ('enum vm_event_item' and 'enum zone_type') [-Wenum-enum-conversion]
6259 | __count_zid_vm_events(ALLOCSTALL, sc->reclaim_idx, 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:119:34: note: expanded from macro '__count_zid_vm_events'
119 | __count_vm_events(item##_NORMAL - ZONE_NORMAL + zid, delta)
| ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~
8 warnings and 1 error generated.
--
In file included from mm/list_lru.c:10:
In file included from include/linux/mm.h:2258:
include/linux/vmstat.h:498:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
498 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
In file included from mm/list_lru.c:16:
>> mm/internal.h:659:2: error: call to undeclared function '__folio_prep_large_mapcount'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
659 | __folio_prep_large_mapcount(folio, order);
| ^
mm/internal.h:659:2: note: did you mean 'folio_large_mapcount'?
include/linux/mm.h:1237:19: note: 'folio_large_mapcount' declared here
1237 | static inline int folio_large_mapcount(const struct folio *folio)
| ^
1 warning and 1 error generated.
--
In file included from mm/workingset.c:8:
In file included from include/linux/memcontrol.h:21:
In file included from include/linux/mm.h:2258:
include/linux/vmstat.h:498:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
498 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
In file included from mm/workingset.c:9:
include/linux/mm_inline.h:47:41: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
47 | __mod_lruvec_state(lruvec, NR_LRU_BASE + lru, nr_pages);
| ~~~~~~~~~~~ ^ ~~~
include/linux/mm_inline.h:49:22: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
49 | NR_ZONE_LRU_BASE + lru, nr_pages);
| ~~~~~~~~~~~~~~~~ ^ ~~~
In file included from mm/workingset.c:19:
>> mm/internal.h:659:2: error: call to undeclared function '__folio_prep_large_mapcount'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
659 | __folio_prep_large_mapcount(folio, order);
| ^
mm/internal.h:659:2: note: did you mean 'folio_large_mapcount'?
include/linux/mm.h:1237:19: note: 'folio_large_mapcount' declared here
1237 | static inline int folio_large_mapcount(const struct folio *folio)
| ^
3 warnings and 1 error generated.
--
In file included from mm/page_alloc.c:19:
In file included from include/linux/mm.h:2258:
include/linux/vmstat.h:498:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
498 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
In file included from mm/page_alloc.c:44:
include/linux/mm_inline.h:47:41: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
47 | __mod_lruvec_state(lruvec, NR_LRU_BASE + lru, nr_pages);
| ~~~~~~~~~~~ ^ ~~~
include/linux/mm_inline.h:49:22: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
49 | NR_ZONE_LRU_BASE + lru, nr_pages);
| ~~~~~~~~~~~~~~~~ ^ ~~~
In file included from mm/page_alloc.c:59:
>> mm/internal.h:659:2: error: call to undeclared function '__folio_prep_large_mapcount'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
659 | __folio_prep_large_mapcount(folio, order);
| ^
mm/internal.h:659:2: note: did you mean 'folio_large_mapcount'?
include/linux/mm.h:1237:19: note: 'folio_large_mapcount' declared here
1237 | static inline int folio_large_mapcount(const struct folio *folio)
| ^
>> mm/page_alloc.c:1072:4: error: call to undeclared function '__folio_undo_large_mapcount'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1072 | __folio_undo_large_mapcount(page_folio(page));
| ^
mm/page_alloc.c:1072:4: note: did you mean '__folio_undo_large_rmappable'?
mm/internal.h:625:6: note: '__folio_undo_large_rmappable' declared here
625 | void __folio_undo_large_rmappable(struct folio *folio);
| ^
mm/page_alloc.c:2930:2: warning: arithmetic between different enumeration types ('enum vm_event_item' and 'enum zone_type') [-Wenum-enum-conversion]
2930 | __count_zid_vm_events(PGALLOC, page_zonenum(page), 1 << order);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:119:34: note: expanded from macro '__count_zid_vm_events'
119 | __count_vm_events(item##_NORMAL - ZONE_NORMAL + zid, delta)
| ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~
mm/page_alloc.c:3047:3: warning: arithmetic between different enumeration types ('enum vm_event_item' and 'enum zone_type') [-Wenum-enum-conversion]
3047 | __count_zid_vm_events(PGALLOC, page_zonenum(page), 1 << order);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:119:34: note: expanded from macro '__count_zid_vm_events'
119 | __count_vm_events(item##_NORMAL - ZONE_NORMAL + zid, delta)
| ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~
mm/page_alloc.c:4688:2: warning: arithmetic between different enumeration types ('enum vm_event_item' and 'enum zone_type') [-Wenum-enum-conversion]
4688 | __count_zid_vm_events(PGALLOC, zone_idx(zone), nr_account);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:119:34: note: expanded from macro '__count_zid_vm_events'
119 | __count_vm_events(item##_NORMAL - ZONE_NORMAL + zid, delta)
| ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~
6 warnings and 2 errors generated.
vim +/__folio_prep_large_mapcount +659 mm/internal.h
650
651 static inline void prep_compound_head(struct page *page, unsigned int order)
652 {
653 struct folio *folio = (struct folio *)page;
654
655 folio_set_order(folio, order);
656 atomic_set(&folio->_pincount, 0);
657 if (order > 1)
658 INIT_LIST_HEAD(&folio->_deferred_list);
> 659 __folio_prep_large_mapcount(folio, order);
660 }
661
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-06-19 2:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-19 2:32 [davidhildenbrand:rmap_id 10/10] mm/internal.h:659:2: error: call to undeclared function '__folio_prep_large_mapcount'; ISO C99 and later do not support implicit function declarations kernel test robot
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).