Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* Re: [PATCH v6 04/12] mm, swap: support physical swap as a vswap backend
       [not found] <20261021060323.553433-5-nphamcs@gmail.com>
@ 2026-10-25 12:37 ` kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-25 12:37 UTC (permalink / raw)
  To: Nhat Pham, akpm
  Cc: llvm, oe-kbuild-all, chrisl, kasong, hannes, mhocko,
	roman.gushchin, shakeel.butt, yosry, david, muchun.song,
	shikemeng, baoquan.he, baohua, youngjun.park, chengming.zhou, ljs,
	liam, vbabka, rppt, surenb, qi.zheng, axelrasmussen, yuanchu,
	weixugc, riel, gourry, haowenchao22, corbet, hughd, baolin.wang

Hi Nhat,

kernel test robot noticed the following build errors:

[auto build test ERROR on 4dbe24720eb3811563cd56b35d87ddf3f9beed2a]

url:    https://github.com/intel-lab-lkp/linux/commits/Nhat-Pham/mm-swap-add-virtual-swap-device-infrastructure/20261020-230312
base:   4dbe24720eb3811563cd56b35d87ddf3f9beed2a
patch link:    https://lore.kernel.org/r/20261021060323.553433-5-nphamcs%40gmail.com
patch subject: [PATCH v6 04/12] mm, swap: support physical swap as a vswap backend
config: arm-allnoconfig (https://download.01.org/0day-ci/archive/20261025/202610252016.SuCWXL35-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261025/202610252016.SuCWXL35-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/202610252016.SuCWXL35-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from mm/workingset.c:19:
>> mm/swap_table.h:418:10: error: call to undeclared function 'swp_offset'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     418 |         return (swp_offset(entry) << SWP_TB_VSWAP_MARK_BITS) | SWP_TB_VSWAP_MARK;
         |                 ^
>> mm/swap_table.h:427:9: error: call to undeclared function 'swp_entry'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     427 |         return swp_entry(vswap_si->type, offset);
         |                ^
>> mm/swap_table.h:427:9: error: returning 'int' from a function with incompatible result type 'swp_entry_t'
     427 |         return swp_entry(vswap_si->type, offset);
         |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   3 errors generated.


vim +/swp_offset +418 mm/swap_table.h

   415	
   416	static inline unsigned long swp_entry_to_swp_tb_vswap(swp_entry_t entry)
   417	{
 > 418		return (swp_offset(entry) << SWP_TB_VSWAP_MARK_BITS) | SWP_TB_VSWAP_MARK;
   419	}
   420	
   421	static inline swp_entry_t swp_tb_vswap_to_swp_entry(unsigned long swp_tb)
   422	{
   423		unsigned long offset;
   424	
   425		VM_WARN_ON(!swp_tb_is_vswap(swp_tb));
   426		offset = (swp_tb & SWP_RMAP_ENTRY_MASK) >> SWP_TB_VSWAP_MARK_BITS;
 > 427		return swp_entry(vswap_si->type, offset);
   428	}
   429	

--
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:[~2026-10-25 12:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20261021060323.553433-5-nphamcs@gmail.com>
2026-10-25 12:37 ` [PATCH v6 04/12] mm, swap: support physical swap as a vswap backend 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