Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [gourryinverse:gourry_pagecache 5/6] include/linux/migrate.h:159:5: warning: no previous prototype for function 'migrate_misplaced_folio_batch'
@ 2025-01-07  3:24 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-01-07  3:24 UTC (permalink / raw)
  To: Gregory Price; +Cc: llvm, oe-kbuild-all, Gregory Price

tree:   https://github.com/gourryinverse/linux gourry_pagecache
head:   0b481ba53a1ea6337129cbe63f9234a748df4843
commit: 853ef17ea1577e0a625e695acd45250f2610f004 [5/6] migrate: implement migrate_misplaced_folio_batch
config: i386-buildonly-randconfig-003-20250107 (https://download.01.org/0day-ci/archive/20250107/202501071136.MXhN3C8N-lkp@intel.com/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250107/202501071136.MXhN3C8N-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/202501071136.MXhN3C8N-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from mm/zsmalloc.c:47:
>> include/linux/migrate.h:159:5: warning: no previous prototype for function 'migrate_misplaced_folio_batch' [-Wmissing-prototypes]
     159 | int migrate_misplaced_folio_batch(struct list_head *foliolist, int node)
         |     ^
   include/linux/migrate.h:159:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     159 | int migrate_misplaced_folio_batch(struct list_head *foliolist, int node)
         | ^
         | static 
   mm/zsmalloc.c:455:20: warning: function 'is_first_zpdesc' is not needed and will not be emitted [-Wunneeded-internal-declaration]
     455 | static inline bool is_first_zpdesc(struct zpdesc *zpdesc)
         |                    ^~~~~~~~~~~~~~~
   2 warnings generated.
--
   In file included from mm/compaction.c:13:
>> include/linux/migrate.h:159:5: warning: no previous prototype for function 'migrate_misplaced_folio_batch' [-Wmissing-prototypes]
     159 | int migrate_misplaced_folio_batch(struct list_head *foliolist, int node)
         |     ^
   include/linux/migrate.h:159:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     159 | int migrate_misplaced_folio_batch(struct list_head *foliolist, int node)
         | ^
         | static 
   In file included from mm/compaction.c:15:
   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);
         |                                 ~~~~~~~~~~~~~~~~ ^ ~~~
   3 warnings generated.
--
   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:42:
>> include/linux/migrate.h:159:5: warning: no previous prototype for function 'migrate_misplaced_folio_batch' [-Wmissing-prototypes]
     159 | int migrate_misplaced_folio_batch(struct list_head *foliolist, int node)
         |     ^
   include/linux/migrate.h:159:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     159 | int migrate_misplaced_folio_batch(struct list_head *foliolist, int node)
         | ^
         | static 
   mm/vmscan.c:409:51: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     409 |                         size += zone_page_state(zone, NR_ZONE_LRU_BASE + lru);
         |                                                       ~~~~~~~~~~~~~~~~ ^ ~~~
   mm/vmscan.c:1773:4: warning: arithmetic between different enumeration types ('enum vm_event_item' and 'enum zone_type') [-Wenum-enum-conversion]
    1773 |                         __count_zid_vm_events(PGSCAN_SKIP, zid, nr_skipped[zid]);
         |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/vmstat.h:139:34: note: expanded from macro '__count_zid_vm_events'
     139 |         __count_vm_events(item##_NORMAL - ZONE_NORMAL + zid, delta)
         |                           ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~
   mm/vmscan.c:2279:51: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
    2279 |         inactive = lruvec_page_state(lruvec, NR_LRU_BASE + inactive_lru);
         |                                              ~~~~~~~~~~~ ^ ~~~~~~~~~~~~
   mm/vmscan.c:2280:49: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
    2280 |         active = lruvec_page_state(lruvec, NR_LRU_BASE + active_lru);
         |                                            ~~~~~~~~~~~ ^ ~~~~~~~~~~
   mm/vmscan.c:6292:3: warning: arithmetic between different enumeration types ('enum vm_event_item' and 'enum zone_type') [-Wenum-enum-conversion]
    6292 |                 __count_zid_vm_events(ALLOCSTALL, sc->reclaim_idx, 1);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/vmstat.h:139:34: note: expanded from macro '__count_zid_vm_events'
     139 |         __count_vm_events(item##_NORMAL - ZONE_NORMAL + zid, delta)
         |                           ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~
   8 warnings generated.
--
   In file included from mm/memory.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/memory.c:67:
>> include/linux/migrate.h:159:5: warning: no previous prototype for function 'migrate_misplaced_folio_batch' [-Wmissing-prototypes]
     159 | int migrate_misplaced_folio_batch(struct list_head *foliolist, int node)
         |     ^
   include/linux/migrate.h:159:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     159 | int migrate_misplaced_folio_batch(struct list_head *foliolist, int node)
         | ^
         | static 
   3 warnings generated.
--
   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:46:
>> include/linux/migrate.h:159:5: warning: no previous prototype for function 'migrate_misplaced_folio_batch' [-Wmissing-prototypes]
     159 | int migrate_misplaced_folio_batch(struct list_head *foliolist, int node)
         |     ^
   include/linux/migrate.h:159:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     159 | int migrate_misplaced_folio_batch(struct list_head *foliolist, int node)
         | ^
         | static 
   mm/page_alloc.c:2933:2: warning: arithmetic between different enumeration types ('enum vm_event_item' and 'enum zone_type') [-Wenum-enum-conversion]
    2933 |         __count_zid_vm_events(PGALLOC, page_zonenum(page), 1 << order);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/vmstat.h:139:34: note: expanded from macro '__count_zid_vm_events'
     139 |         __count_vm_events(item##_NORMAL - ZONE_NORMAL + zid, delta)
         |                           ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~
   mm/page_alloc.c:3050:3: warning: arithmetic between different enumeration types ('enum vm_event_item' and 'enum zone_type') [-Wenum-enum-conversion]
    3050 |                 __count_zid_vm_events(PGALLOC, page_zonenum(page), 1 << order);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/vmstat.h:139:34: note: expanded from macro '__count_zid_vm_events'
     139 |         __count_vm_events(item##_NORMAL - ZONE_NORMAL + zid, delta)
         |                           ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~
   mm/page_alloc.c:4692:2: warning: arithmetic between different enumeration types ('enum vm_event_item' and 'enum zone_type') [-Wenum-enum-conversion]
    4692 |         __count_zid_vm_events(PGALLOC, zone_idx(zone), nr_account);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/vmstat.h:139:34: note: expanded from macro '__count_zid_vm_events'
     139 |         __count_vm_events(item##_NORMAL - ZONE_NORMAL + zid, delta)
         |                           ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~
   6 warnings generated.
--
   In file included from fs/btrfs/disk-io.c:13:
>> include/linux/migrate.h:159:5: warning: no previous prototype for function 'migrate_misplaced_folio_batch' [-Wmissing-prototypes]
     159 | int migrate_misplaced_folio_batch(struct list_head *foliolist, int node)
         |     ^
   include/linux/migrate.h:159:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     159 | int migrate_misplaced_folio_batch(struct list_head *foliolist, int node)
         | ^
         | static 
   1 warning generated.
--
   In file included from zsmalloc.c:47:
>> include/linux/migrate.h:159:5: warning: no previous prototype for function 'migrate_misplaced_folio_batch' [-Wmissing-prototypes]
     159 | int migrate_misplaced_folio_batch(struct list_head *foliolist, int node)
         |     ^
   include/linux/migrate.h:159:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     159 | int migrate_misplaced_folio_batch(struct list_head *foliolist, int node)
         | ^
         | static 
   zsmalloc.c:455:20: warning: function 'is_first_zpdesc' is not needed and will not be emitted [-Wunneeded-internal-declaration]
     455 | static inline bool is_first_zpdesc(struct zpdesc *zpdesc)
         |                    ^~~~~~~~~~~~~~~
   2 warnings generated.


vim +/migrate_misplaced_folio_batch +159 include/linux/migrate.h

   143	
   144	#ifdef CONFIG_NUMA_BALANCING
   145	int migrate_misplaced_folio_prepare(struct folio *folio,
   146			struct vm_area_struct *vma, int node);
   147	int migrate_misplaced_folio(struct folio *folio, int node);
   148	int migrate_misplaced_folio_batch(struct list_head *foliolist, int node);
   149	#else
   150	static inline int migrate_misplaced_folio_prepare(struct folio *folio,
   151			struct vm_area_struct *vma, int node)
   152	{
   153		return -EAGAIN; /* can't migrate now */
   154	}
   155	static inline int migrate_misplaced_folio(struct folio *folio, int node)
   156	{
   157		return -EAGAIN; /* can't migrate now */
   158	}
 > 159	int migrate_misplaced_folio_batch(struct list_head *foliolist, int node)
   160	{
   161		return -EAGAIN; /* can't migrate now */
   162	}
   163	#endif /* CONFIG_NUMA_BALANCING */
   164	

-- 
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:[~2025-01-07  3:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-07  3:24 [gourryinverse:gourry_pagecache 5/6] include/linux/migrate.h:159:5: warning: no previous prototype for function 'migrate_misplaced_folio_batch' 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