public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [zab-rpdfs:rpdfs-initial 44/51] fs/rpdfs/block.c:978:2: error: use of undeclared identifier 'u128'
@ 2026-04-07 10:38 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-04-07 10:38 UTC (permalink / raw)
  To: Zach Brown; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/zab/linux-rpdfs.git rpdfs-initial
head:   9a0627207ad856d2a5eb09f3458afb1e34ac10a3
commit: cd9dddd9348e8c1bbbdedf8547a6c42b73b03f82 [44/51] rpdfs: serialize write handles and flushing
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20260407/202604071828.OZaTFess-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/20260407/202604071828.OZaTFess-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/202604071828.OZaTFess-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from fs/rpdfs/block.c:10:
   In file included from fs/rpdfs/balloc.h:10:
   In file included from fs/rpdfs/txn.h:7:
   In file included from fs/rpdfs/block.h:8:
   fs/rpdfs/place.h:17:15: error: unknown type name 'u128'
      17 | static inline u128 rpdfs_place_full(u8 type, u64 ino, u8 depth, u64 off)
         |               ^
   fs/rpdfs/place.h:19:11: error: use of undeclared identifier 'u128'
      19 |         return ((u128)rpdfs_place_hi(type, ino, depth) << 64) | off;
         |                  ^
   fs/rpdfs/place.h:32:65: error: unknown type name 'u128'
      32 | static inline void rpdfs_place_split_le(__le64 *lo, __le64 *hi, u128 full)
         |                                                                 ^
   fs/rpdfs/place.h:38:15: error: unknown type name 'u128'
      38 | static inline u128 rpdfs_place_combine_le(__le64 lo, __le64 hi)
         |               ^
   fs/rpdfs/place.h:40:11: error: use of undeclared identifier 'u128'
      40 |         return ((u128)le64_to_cpu(hi) << 64) | le64_to_cpu(lo);
         |                  ^
   In file included from fs/rpdfs/block.c:10:
   In file included from fs/rpdfs/balloc.h:10:
   In file included from fs/rpdfs/txn.h:7:
   fs/rpdfs/block.h:79:2: error: unknown type name 'u128'
      79 |         u128 place;
         |         ^
>> fs/rpdfs/block.c:978:2: error: use of undeclared identifier 'u128'
     978 |         u128 place;
         |         ^
>> fs/rpdfs/block.c:982:3: error: use of undeclared identifier 'place'
     982 |                 place = bk->hnd.place;
         |                 ^
   fs/rpdfs/block.c:984:3: error: use of undeclared identifier 'place'
     984 |                 place = 0;
         |                 ^
   fs/rpdfs/block.c:991:28: error: use of undeclared identifier 'place'
     991 |                         BUG_ON(bk->hnd.place == place);
         |                                                 ^
   fs/rpdfs/block.c:992:30: error: use of undeclared identifier 'place'
     992 |                         ordered = bk->hnd.place > place;
         |                                                   ^
   fs/rpdfs/block.c:1001:5: error: use of undeclared identifier 'place'
    1001 |                                 place = bk->hnd.place;
         |                                 ^
   fs/rpdfs/block.c:1012:24: error: use of undeclared identifier 'place'
    1012 |                         if (bk->hnd.place < place)
         |                                             ^
   13 errors generated.


vim +/u128 +978 fs/rpdfs/block.c

   957	
   958	/*
   959	 * Walk the clear list and set write on each block as long as they're
   960	 * sorted by place.
   961	 *
   962	 * If we hit a block in the clear list that isn't sorted by place then
   963	 * we unwind all the blocks in the set list greater than the out of
   964	 * order block.  The caller will sort the clear list and try again.
   965	 *
   966	 * As we set write we also see if we need to extend the boundary to
   967	 * cover more dependent blocks.  As the caller retries they also check
   968	 * their boundary against the dirty list.
   969	 */
   970	static bool set_write_in_order(struct list_head *set_list, struct list_head *clear_list,
   971				       struct rpdfs_dist_write *wri, struct rpdfs_dirty_boundary *bnd)
   972	{
   973		struct rpdfs_block *bk;
   974		struct rpdfs_block *_bk_;
   975		bool ordered = true;
   976		bool extended = false;
   977		bool writer;
 > 978		u128 place;
   979	
   980		if (!list_empty(set_list)) {
   981			bk = list_last_entry(set_list, struct rpdfs_block, dirty_head);
 > 982			place = bk->hnd.place;
   983		} else {
   984			place = 0;
   985		}
   986	
   987		list_for_each_entry_safe(bk, _bk_, clear_list, dirty_head) {
   988			do {
   989				write_seqlock(&bk->seqlock);
   990				/* would be.. corruption error? but we don't have io errors wired up */
   991				BUG_ON(bk->hnd.place == place);
   992				ordered = bk->hnd.place > place;
   993				writer = bk->writer;
   994				if (ordered && !writer) {
   995					bk->wri = wri;
   996					extended |= extend_boundary(bnd, &bk->dirty_bnd);
   997					list_move_tail(&bk->dirty_head, set_list);
   998				}
   999				/* save for unwinding or for continuing ordered test */
  1000				if (!ordered || !writer)
  1001					place = bk->hnd.place;
  1002				write_sequnlock(&bk->seqlock);
  1003				if (ordered && writer)
  1004					wait_event(bk->waitq, !block_has_writer(bk));
  1005			} while (ordered && writer);
  1006			if (!ordered)
  1007				break;
  1008		}
  1009	
  1010		if (!ordered) {
  1011			list_for_each_entry_safe_reverse(bk, _bk_, set_list, dirty_head) {
  1012				if (bk->hnd.place < place)
  1013					break;
  1014				write_seqlock(&bk->seqlock);
  1015				bk->wri = NULL;
  1016				list_move(&bk->dirty_head, clear_list);
  1017				write_sequnlock(&bk->seqlock);
  1018				wake_up_all(&bk->waitq);
  1019			}
  1020		}
  1021	
  1022		return extended || !ordered;
  1023	}
  1024	

-- 
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-04-07 10:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-07 10:38 [zab-rpdfs:rpdfs-initial 44/51] fs/rpdfs/block.c:978:2: error: use of undeclared identifier 'u128' 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