From: kernel test robot <lkp@intel.com>
To: David Hildenbrand <david@redhat.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [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
Date: Wed, 19 Jun 2024 10:32:12 +0800 [thread overview]
Message-ID: <202406191000.EqmfjbTD-lkp@intel.com> (raw)
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
reply other threads:[~2024-06-19 2:32 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=202406191000.EqmfjbTD-lkp@intel.com \
--to=lkp@intel.com \
--cc=david@redhat.com \
--cc=llvm@lists.linux.dev \
--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 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).